[llvm] github-automation: Use a single comment for team mentions on pull requests (PR #66037)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 10:49:23 PDT 2023
================
@@ -129,22 +137,34 @@ def run(self) -> bool:
patch_link = f"Full diff: {self.pr.diff_url}\n"
if len(patch) > DIFF_LIMIT:
patch_link = f"\nPatch is {human_readable_size(len(patch))}, truncated to {human_readable_size(DIFF_LIMIT)} below, full version: {self.pr.diff_url}\n"
- diff_stats = diff_stats[0:DIFF_LIMIT] + "...\n<truncated>\n"
+ import html
+ diff_stats = html.escape(diff_stats[0:DIFF_LIMIT]) + "...\n<truncated>\n"
diff_stats += "</pre>"
+ team_mention = "@llvm/{}".format(team.slug)
body = self.pr.body
----------------
tstellar wrote:
As discussed on Discord, I don't think this is an issue for pull requests.
https://github.com/llvm/llvm-project/pull/66037
More information about the llvm-commits
mailing list