From b9ae79192cc04c4231c76157fa35d566fad0026e Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 21 Nov 2023 15:33:20 -0800 Subject: [PATCH] Add git user info to cherry-pick task (#56495) --- .github/workflows/create-cherry-pick-pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create-cherry-pick-pr.yml b/.github/workflows/create-cherry-pick-pr.yml index 1a0a13e327c..a9014158270 100644 --- a/.github/workflows/create-cherry-pick-pr.yml +++ b/.github/workflows/create-cherry-pick-pr.yml @@ -62,6 +62,8 @@ jobs: const title = `🤖 Pick PR #${PR} (${pr.data.title.substring(0, 35)}${pr.data.title.length > 35 ? "..." : ""}) into ${TARGET_BRANCH}`; + await exec.exec("git", ["config", "user.email", "typescriptbot@microsoft.com"]); + await exec.exec("git", ["config", "user.name", "TypeScript Bot"]); await exec.exec("git", ["switch", "--detach", `origin/${TARGET_BRANCH}`]); await exec.exec("git", ["switch", "-c", pickBranch]); await exec.exec("git", ["cherry-pick", pr.data.merge_commit_sha]);