From 835b553cf802e69c75b495c6c44b86a9bc1f022d Mon Sep 17 00:00:00 2001 From: technote-space Date: Sun, 7 Feb 2021 15:08:36 +0000 Subject: [PATCH 1/3] chore: update npm dependencies --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4073d78..8320c29 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@actions/github": "^4.0.0", "@octokit/openapi-types": "^4.0.1", "@technote-space/filter-github-action": "^0.5.16", - "@technote-space/github-action-helper": "^5.1.0", + "@technote-space/github-action-helper": "^5.1.1", "moment": "^2.29.1" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index b39eef2..0f8071d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -777,10 +777,10 @@ "@actions/core" "^1.2.6" "@actions/github" "^4.0.0" -"@technote-space/github-action-helper@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.1.0.tgz#165eb548dae7b51263351c50cde3fdedaf0b0f40" - integrity sha512-E4GBqEkCGNrZTMuUMfYVNoE3Oy8VD6V1FmlYhpZ1Pim4eeVIZ9XoC064cpfYx+SsQFUJlItmGTB9lR9u3buTnA== +"@technote-space/github-action-helper@^5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.1.1.tgz#deae7d28d7280bd4ff65624e30e3c45390627e4e" + integrity sha512-16y4mN7+LFVjTdf12NlprDQdvEOqZWrCDQjNd+x8pxdjTeYdvW9Asip7RB6ouuM3XSDteneHAb6s4Qk4cyyaxg== dependencies: "@actions/core" "^1.2.6" "@actions/github" "^4.0.0" From d5465419bc97be793f17699bd0f36d3e4cbcf6b5 Mon Sep 17 00:00:00 2001 From: Technote Date: Mon, 8 Feb 2021 00:09:45 +0900 Subject: [PATCH 2/3] feat: update package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8320c29..42fd4a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/github-action-pr-helper", - "version": "2.2.0", + "version": "2.2.1", "description": "PullRequest Helper for GitHub Actions.", "keywords": [ "github", From 7feceb7c188df9655b4b51946826b7eeb33a4413 Mon Sep 17 00:00:00 2001 From: Technote Date: Mon, 8 Feb 2021 00:13:04 +0900 Subject: [PATCH 3/3] fix: broken tests --- __tests__/utils/command.test.ts | 28 +++++----- __tests__/utils/process1.test.ts | 20 +++---- __tests__/utils/process2.test.ts | 92 ++++++++++++++++---------------- 3 files changed, 70 insertions(+), 70 deletions(-) diff --git a/__tests__/utils/command.test.ts b/__tests__/utils/command.test.ts index 68318bf..164001b 100644 --- a/__tests__/utils/command.test.ts +++ b/__tests__/utils/command.test.ts @@ -105,7 +105,7 @@ describe('clone', () => { })); execCalledWith(mockExec, [ - 'git config \'init.defaultBranch\' master', + 'git config --global \'init.defaultBranch\' master', 'git config \'user.name\' \'GitHub Actions\'', 'git config \'user.email\' \'example@example.com\'', 'git init \'.\'', @@ -117,7 +117,7 @@ describe('clone', () => { ]); stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' \'GitHub Actions\'', ' >> stdout', @@ -361,7 +361,7 @@ describe('getChangedFiles', () => { }); stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -380,7 +380,7 @@ describe('getChangedFiles', () => { '[command]ls -la', '::endgroup::', '::group::Merging [origin/hello-world/test-branch] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -441,7 +441,7 @@ describe('getChangedFiles', () => { }); stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -458,7 +458,7 @@ describe('getChangedFiles', () => { '[command]ls -la', '::endgroup::', '::group::Merging [origin/hello-world/test-branch] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -559,7 +559,7 @@ describe('getChangedFiles', () => { }); stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -576,7 +576,7 @@ describe('getChangedFiles', () => { '[command]ls -la', '::endgroup::', '::group::Merging [origin/hello-world/test-branch] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -834,7 +834,7 @@ describe('resolveConflicts', () => { })); execCalledWith(mockExec, [ - 'git config \'init.defaultBranch\' master', + 'git config --global \'init.defaultBranch\' master', 'git config \'user.name\' \'GitHub Actions\'', 'git config \'user.email\' \'example@example.com\'', 'git init \'.\'', @@ -870,7 +870,7 @@ describe('resolveConflicts', () => { })); execCalledWith(mockExec, [ - 'git config \'init.defaultBranch\' master', + 'git config --global \'init.defaultBranch\' master', 'git config \'user.name\' \'GitHub Actions\'', 'git config \'user.email\' \'example@example.com\'', 'git init \'.\'', @@ -878,7 +878,7 @@ describe('resolveConflicts', () => { 'git fetch --no-tags origin \'refs/heads/feature/new-feature:refs/remotes/origin/feature/new-feature\' || :', 'git merge --no-edit origin/feature/new-feature || :', `rm -rdf ${workDir}`, - 'git config \'init.defaultBranch\' master', + 'git config --global \'init.defaultBranch\' master', 'git config \'user.name\' \'GitHub Actions\'', 'git config \'user.email\' \'example@example.com\'', 'git init \'.\'', @@ -928,7 +928,7 @@ describe('resolveConflicts', () => { })); execCalledWith(mockExec, [ - 'git config \'init.defaultBranch\' master', + 'git config --global \'init.defaultBranch\' master', 'git config \'user.name\' \'GitHub Actions\'', 'git config \'user.email\' \'example@example.com\'', 'git init \'.\'', @@ -936,7 +936,7 @@ describe('resolveConflicts', () => { 'git fetch --no-tags origin \'refs/heads/feature/new-feature:refs/remotes/origin/feature/new-feature\' || :', 'git merge --no-edit origin/feature/new-feature || :', `rm -rdf ${workDir}`, - 'git config \'init.defaultBranch\' master', + 'git config --global \'init.defaultBranch\' master', 'git config \'user.name\' \'GitHub Actions\'', 'git config \'user.email\' \'example@example.com\'', 'git init \'.\'', @@ -948,7 +948,7 @@ describe('resolveConflicts', () => { 'yarn upgrade', 'git add --all', 'git status --short -uno', - 'git config \'init.defaultBranch\' master', + 'git config --global \'init.defaultBranch\' master', 'git config \'user.name\' \'GitHub Actions\'', 'git config \'user.email\' \'example@example.com\'', 'git commit -qm \'commit message\'', diff --git a/__tests__/utils/process1.test.ts b/__tests__/utils/process1.test.ts index e04dc4f..07961a5 100644 --- a/__tests__/utils/process1.test.ts +++ b/__tests__/utils/process1.test.ts @@ -115,7 +115,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git remote add origin', @@ -129,7 +129,7 @@ describe('execute', () => { '[command]git merge --no-edit origin/change/new-topic1', '[command]ls -la', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git remote add origin', @@ -199,7 +199,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -228,7 +228,7 @@ describe('execute', () => { '::group::Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '::endgroup::', @@ -284,7 +284,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' \'GitHub Actions\'', ' >> stdout', @@ -439,7 +439,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -453,7 +453,7 @@ describe('execute', () => { '[command]git merge --no-edit origin/change/new-topic1', '[command]ls -la', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -463,7 +463,7 @@ describe('execute', () => { '> Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '> Committing...', @@ -647,7 +647,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' \'GitHub Actions\'', ' >> stdout', @@ -725,7 +725,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git remote add origin', diff --git a/__tests__/utils/process2.test.ts b/__tests__/utils/process2.test.ts index 783d5ac..7b37580 100644 --- a/__tests__/utils/process2.test.ts +++ b/__tests__/utils/process2.test.ts @@ -114,7 +114,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -143,7 +143,7 @@ describe('execute', () => { '::group::Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '::endgroup::', @@ -202,7 +202,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -287,7 +287,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -318,7 +318,7 @@ describe('execute', () => { '::endgroup::', '::group::Target PullRequest Ref [change/new-topic2]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -397,7 +397,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -421,7 +421,7 @@ describe('execute', () => { '> Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '> Committing...', @@ -491,7 +491,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -505,7 +505,7 @@ describe('execute', () => { '[command]git merge --no-edit origin/change/new-topic1', '[command]ls -la', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -515,7 +515,7 @@ describe('execute', () => { '> Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '> Committing...', @@ -562,7 +562,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -583,7 +583,7 @@ describe('execute', () => { '::group::Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '::endgroup::', @@ -637,7 +637,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -653,7 +653,7 @@ describe('execute', () => { '[command]ls -la', '::endgroup::', '::group::Merging [origin/feature/new-feature] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -666,7 +666,7 @@ describe('execute', () => { '::group::Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '::endgroup::', @@ -734,7 +734,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -748,7 +748,7 @@ describe('execute', () => { '[command]git merge --no-edit origin/change/new-topic1', '[command]ls -la', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -758,7 +758,7 @@ describe('execute', () => { '> Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '> Committing...', @@ -834,7 +834,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [feature/new-topic3]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -859,7 +859,7 @@ describe('execute', () => { '> Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '> Committing...', @@ -920,7 +920,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' develop', + '[command]git config --global \'init.defaultBranch\' develop', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout', @@ -944,7 +944,7 @@ describe('execute', () => { '[command]ls -la', ' >> stdout', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' develop', + '[command]git config --global \'init.defaultBranch\' develop', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout', @@ -1015,7 +1015,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout', @@ -1039,7 +1039,7 @@ describe('execute', () => { '[command]ls -la', ' >> stdout', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout', @@ -1125,7 +1125,7 @@ describe('execute', () => { '::endgroup::', '::group::Target PullRequest Ref [master]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1150,7 +1150,7 @@ describe('execute', () => { '> Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '> Committing...', @@ -1208,7 +1208,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [feature/new-topic3]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1290,7 +1290,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1304,7 +1304,7 @@ describe('execute', () => { '[command]git merge --no-edit origin/change/new-topic1', '[command]ls -la', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1322,7 +1322,7 @@ describe('execute', () => { '::endgroup::', '::group::Target PullRequest Ref [master]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1399,7 +1399,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1435,7 +1435,7 @@ describe('execute', () => { '[command]git diff \'HEAD..origin/feature/new-feature\' --name-only', '::endgroup::', '::group::Merging [origin/feature/new-feature] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1495,7 +1495,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git remote add origin', @@ -1512,7 +1512,7 @@ describe('execute', () => { ' >> Automatic merge failed; fix conflicts and then commit the result.', '[command]ls -la', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git remote add origin', @@ -1529,7 +1529,7 @@ describe('execute', () => { '[command]git diff \'HEAD..origin/master\' --name-only', '> This PR is not mergeable.', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git remote add origin', @@ -1540,7 +1540,7 @@ describe('execute', () => { ' >> Automatic merge failed; fix conflicts and then commit the result.', '> Initializing working directory...', '[command]rm -rdf [Working Directory]', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git remote add origin', @@ -1578,7 +1578,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' test-actor', '[command]git config \'user.email\' \'test-actor@users.noreply.github.com\'', '[command]git init \'.\'', @@ -1622,7 +1622,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1643,7 +1643,7 @@ describe('execute', () => { '::group::Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '::endgroup::', @@ -1685,7 +1685,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '[command]git remote add origin', @@ -1706,7 +1706,7 @@ describe('execute', () => { '::group::Checking diff...', '[command]git add --all', '[command]git status --short -uno', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', '[command]git config \'user.name\' \'GitHub Actions\'', '[command]git config \'user.email\' \'example@example.com\'', '::endgroup::', @@ -1751,7 +1751,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' \'GitHub Actions\'', ' >> stdout', @@ -1871,7 +1871,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout', @@ -1895,7 +1895,7 @@ describe('execute', () => { '[command]ls -la', ' >> stdout', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout', @@ -1983,7 +1983,7 @@ describe('execute', () => { stdoutCalledWith(mockStdout, [ '::group::Target PullRequest Ref [change/new-topic1]', '> Fetching...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout', @@ -2007,7 +2007,7 @@ describe('execute', () => { '[command]ls -la', ' >> stdout', '> Merging [origin/master] branch...', - '[command]git config \'init.defaultBranch\' master', + '[command]git config --global \'init.defaultBranch\' master', ' >> stdout', '[command]git config \'user.name\' test-actor', ' >> stdout',