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

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 23 22:57:18 PST 2023


Author: Timm Baeder
Date: 2023-11-24T07:57:14+01:00
New Revision: 81761bd0f1fbb142546c946105384eab4811eba8

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

LOG: Try to fix good-first-issue bot (#71816)

The previous code was just overriding the `comment` variable. Fix this by writing two comments if necessary instead.

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 ad1878d41193920..d9d1f9c7dc7ca86 100755
--- a/llvm/utils/git/github-automation.py
+++ b/llvm/utils/git/github-automation.py
@@ -78,12 +78,13 @@ 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)
-
         comment = f"""
 @llvm/{team.slug}
 


        


More information about the llvm-commits mailing list