Skip to content

Commit 81761bd

Browse files
authored
Try to fix good-first-issue bot (llvm#71816)
The previous code was just overriding the `comment` variable. Fix this by writing two comments if necessary instead.
1 parent c072247 commit 81761bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/utils/git/github-automation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ def run(self) -> bool:
7878
if not team:
7979
print(f"couldn't find team named {self.team_name}")
8080
return False
81+
8182
comment = ""
8283
if team.slug == "issue-subscribers-good-first-issue":
8384
comment = "{}\n".format(beginner_comment)
85+
self.issue.create_comment(comment)
8486

8587
body = escape_description(self.issue.body)
86-
8788
comment = f"""
8889
@llvm/{team.slug}
8990

0 commit comments

Comments
 (0)