From 2f6d1d5c01dffdbdfc8027e8a7d7a44726fad809 Mon Sep 17 00:00:00 2001 From: jyejare Date: Fri, 16 Sep 2022 12:32:56 +0530 Subject: [PATCH] AutoCherrypicked PRs author is now parent PRs author --- .github/workflows/auto_cherry_pick.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/auto_cherry_pick.yml b/.github/workflows/auto_cherry_pick.yml index fd0c68ac25e..4de5808dba2 100644 --- a/.github/workflows/auto_cherry_pick.yml +++ b/.github/workflows/auto_cherry_pick.yml @@ -25,6 +25,8 @@ jobs: if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CherryPick') needs: previous-branch runs-on: ubuntu-latest + env: + PR_AUTHOR: ${{ github.event.pull_request.user.login }} strategy: matrix: to_branch: ${{ fromJson(needs.previous-branch.outputs.previous_branch) }} @@ -35,6 +37,7 @@ jobs: - name: Cherry pick into ${{ matrix.to_branch }} uses: jyejare/github-cherry-pick-action@main with: + author: ${{ env.PR_AUTHOR }} <${{ env.PR_AUTHOR }}@users.noreply.github.com> token: ${{ secrets.CHERRYPICK_PAT }} branch: ${{ matrix.to_branch }} labels: |