mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Allow -ic when no pending jobs (#97707)
fixes https://github.com/pytorch/test-infra/issues/3933 https://github.com/pytorch/test-infra/pull/3937 Pull Request resolved: https://github.com/pytorch/pytorch/pull/97707 Approved by: https://github.com/kit1980
This commit is contained in:
committed by
PyTorch MergeBot
parent
652592efa9
commit
6c450c7880
7
.github/scripts/trymerge.py
vendored
7
.github/scripts/trymerge.py
vendored
@ -1784,13 +1784,8 @@ def merge(
|
||||
|
||||
if ignore_current:
|
||||
checks = pr.get_checkrun_conclusions()
|
||||
pending, failing = categorize_checks(checks, list(checks.keys()))
|
||||
_, failing = categorize_checks(checks, list(checks.keys()))
|
||||
ignore_current_checks_info = failing
|
||||
if len(pending) == 0:
|
||||
raise RuntimeError(
|
||||
"The --ignore-current flag was used but there are no pending checks on this PR. Please use "
|
||||
+ "-f/--force instead."
|
||||
)
|
||||
|
||||
gh_post_pr_comment(
|
||||
org,
|
||||
|
Reference in New Issue
Block a user