From 887903650707561b1701f60b588e0db7e7aa8550 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Fri, 6 Oct 2023 12:19:56 -0700 Subject: [PATCH 1/2] [Github] Add PR author name to subscription email Currently the email that gets sent out to people subscribing to a label that the bot tags on the PR doesn't include any authorship information which some people are interested in having. This patch adds an author field to the message with the relevant information. --- llvm/utils/git/github-automation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py index b90c68a3618b9..cd549e75bf7d6 100755 --- a/llvm/utils/git/github-automation.py +++ b/llvm/utils/git/github-automation.py @@ -165,6 +165,8 @@ def run(self) -> bool: {self.COMMENT_TAG} {team_mention} +Author: {self.pr._user.name} ({self.pr._user.login}) +
Changes From f89660c49e7b7f956cedd1a530623c68faa2bc50 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Mon, 9 Oct 2023 02:35:32 +0000 Subject: [PATCH 2/2] Fix issue with PRs, add support for tagging issues with the author --- llvm/utils/git/github-automation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py index cd549e75bf7d6..52523704fe82d 100755 --- a/llvm/utils/git/github-automation.py +++ b/llvm/utils/git/github-automation.py @@ -82,6 +82,8 @@ def run(self) -> bool: comment = f""" @llvm/{team.slug} +Author: {self.issue.user.name} ({self.issue.user.login}) +
{body}
@@ -165,7 +167,7 @@ def run(self) -> bool: {self.COMMENT_TAG} {team_mention} -Author: {self.pr._user.name} ({self.pr._user.login}) +Author: {self.pr.user.name} ({self.pr.user.login})
Changes