Skip to content

Commit 9a3cd1d

Browse files
joker-ephgithub-actions[bot]
authored andcommitted
Automerge: Fix the formatting script: do not try to update a GitHub PR without checking for should_update_gh (#159276)
2 parents b191b1c + 26e370b commit 9a3cd1d

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)