[llvm] [workflows] Mention the correct user who makes a /cherry-pick comment (PR #82680)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 12:07:34 PST 2024


https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/82680

We were mentioning the creator of the issue with the comment rather than the creator of the comment.

>From a10899f11b78ff70c748a154fc13e65735fe2b46 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Thu, 22 Feb 2024 18:50:20 +0000
Subject: [PATCH] [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 448c1c56f897f5..5ec2e88447e87b 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



More information about the llvm-commits mailing list