Skip to content

Commit 912f1dc

Browse files
committed
CIHelper.setupGitHubAction: configure Git committer information
GitGitGadget will obtain this information via `git var` whenever sending mails, and also when tagging the patch series' iterations. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 4a99b4e commit 912f1dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/ci-helper.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ export class CIHelper {
8383
break;
8484
}
8585

86+
// configure the Git committer information
87+
process.env.GIT_CONFIG_PARAMETERS = [
88+
process.env.GIT_CONFIG_PARAMETERS,
89+
"'user.name=GitGitGadget'",
90+
"'user.email=gitgitgadget@gmail.com'",
91+
]
92+
.filter((e) => e)
93+
.join(" ");
94+
8695
// get the access tokens via the inputs of the GitHub Action
8796
this.setAccessToken(this.config.repo.owner, core.getInput("pr-repo-token"));
8897
this.setAccessToken(this.config.repo.baseOwner, core.getInput("upstream-repo-token"));

0 commit comments

Comments
 (0)