[llvm] f8148e4 - [Github] Add PR author name to subscription email (#68440)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 15:46:59 PDT 2023


Author: Aiden Grossman
Date: 2023-10-09T15:46:53-07:00
New Revision: f8148e4815f5e0bb1c94478cd2d74da238ceebff

URL: https://github.com/llvm/llvm-project/commit/f8148e4815f5e0bb1c94478cd2d74da238ceebff
DIFF: https://github.com/llvm/llvm-project/commit/f8148e4815f5e0bb1c94478cd2d74da238ceebff.diff

LOG: [Github] Add PR author name to subscription email (#68440)

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.

Added: 
    

Modified: 
    llvm/utils/git/github-automation.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py
index b90c68a3618b9d7..52523704fe82dc8 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})
+
 <details>
 {body}
 </details>
@@ -165,6 +167,8 @@ def run(self) -> bool:
 {self.COMMENT_TAG}
 {team_mention}
 
+Author: {self.pr.user.name} ({self.pr.user.login})
+
 <details>
 <summary>Changes</summary>
 


        


More information about the llvm-commits mailing list