[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
Tue Feb 27 17:49:24 PST 2024
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/82680
>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 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 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
>From 6785eae5fb52130eb0f3d26377874052c267250f Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
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 5ec2e88447e87b..eb88ec6e43c574 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
More information about the llvm-commits
mailing list