Skip to content

Commit c846245

Browse files
joker-ephmahesh-attarde
authored andcommitted
Fix the formatting script: do not try to update a GitHub PR without checking for should_update_gh (llvm#159276)
1 parent 70543a8 commit c846245

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/utils/git/code-format-helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def run(self, changed_files: List[str], args: FormatArgs) -> bool:
173173
f":warning: The {self.friendly_name} failed without printing "
174174
"a diff. Check the logs for stderr output. :warning:"
175175
)
176-
self.update_pr(comment_text, args, create_new=False)
176+
if should_update_gh:
177+
self.update_pr(comment_text, args, create_new=False)
177178
return False
178179

179180

0 commit comments

Comments
 (0)