From a10899f11b78ff70c748a154fc13e65735fe2b46 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 22 Feb 2024 18:50:20 +0000 Subject: [PATCH 1/2] [workflows] Mention the correct user who makes a /cherry-pick comment We were mentioning the creator of the issue with the comment rather than the creator of the comment. --- .github/workflows/issue-release-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml index 448c1c56f897f..5ec2e88447e87 100644 --- a/.github/workflows/issue-release-workflow.yml +++ b/.github/workflows/issue-release-workflow.yml @@ -65,5 +65,5 @@ jobs: release-workflow \ --branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \ --issue-number ${{ github.event.issue.number }} \ - --requested-by ${{ github.event.issue.user.login }} \ + --requested-by ${{ (github.event.action == 'opened' && github.event.issue.body.user.login) || github.event.comment.user.login }} \ auto From 6785eae5fb52130eb0f3d26377874052c267250f Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 22 Feb 2024 19:39:52 +0000 Subject: [PATCH 2/2] Fixed for when comment is in the body --- .github/workflows/issue-release-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml index 5ec2e88447e87..eb88ec6e43c57 100644 --- a/.github/workflows/issue-release-workflow.yml +++ b/.github/workflows/issue-release-workflow.yml @@ -65,5 +65,5 @@ jobs: release-workflow \ --branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \ --issue-number ${{ github.event.issue.number }} \ - --requested-by ${{ (github.event.action == 'opened' && github.event.issue.body.user.login) || github.event.comment.user.login }} \ + --requested-by ${{ (github.event.action == 'opened' && github.event.issue.user.login) || github.event.comment.user.login }} \ auto