[llvm] Try to fix good-first-issue bot (PR #71816)

Timm Baeder via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 07:23:40 PST 2023


https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/71816

>From a9a4f7c6f3dd93acc8e33bf94fecf5611ff570aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Thu, 9 Nov 2023 16:21:06 +0100
Subject: [PATCH] Try to fix good-first-issue bot

---
 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 ad1878d41193920..60aa3eb26aa90c2 100755
--- a/llvm/utils/git/github-automation.py
+++ b/llvm/utils/git/github-automation.py
@@ -78,12 +78,14 @@ def run(self) -> bool:
         if not team:
             print(f"couldn't find team named {self.team_name}")
             return False
+
         comment = ""
         if team.slug == "issue-subscribers-good-first-issue":
             comment = "{}\n".format(beginner_comment)
+            self.issue.create_comment(comment)
 
-        body = escape_description(self.issue.body)
 
+        body = escape_description(self.issue.body)
         comment = f"""
 @llvm/{team.slug}
 



More information about the llvm-commits mailing list