Skip to content

Commit f8148e4

Browse files
[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.
1 parent 6828194 commit f8148e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/utils/git/github-automation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def run(self) -> bool:
8282
comment = f"""
8383
@llvm/{team.slug}
8484
85+
Author: {self.issue.user.name} ({self.issue.user.login})
86+
8587
<details>
8688
{body}
8789
</details>
@@ -165,6 +167,8 @@ def run(self) -> bool:
165167
{self.COMMENT_TAG}
166168
{team_mention}
167169
170+
Author: {self.pr.user.name} ({self.pr.user.login})
171+
168172
<details>
169173
<summary>Changes</summary>
170174

0 commit comments

Comments
 (0)