You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refuse the Wait-Only Flags on Other pr_review Subcommands #3496
scripts/pr_review.py's FLAG_OWNERS refuses each flag it lists on a subcommand that does not own it, since an ignored flag reads as one that took effect. Three flags only wait reads are not in it: --timeout, --min-rounds, and --ignore-quota-signal. The help text labels the last two wait:.
Failure
pr_review.py status 7 --repo OWNER/NAME --min-rounds 3 exits as a plain status would, with no error, so the caller reads the flag as having taken effect. The same holds for --ignore-quota-signal on status or reply, and for --timeout on any command but wait. Found by a local review of the change that introduced FLAG_OWNERS (#3458).
Suggested Change
Add a row for each of the three, owned by wait. --check-grace and --check-stall are read by status as well and stay unowned. The new errors change the output only for command lines that are wrong today, so a case per flag pins them.
Activity
Move wait Out of pr_review.py's main and Check Subcommand Flags From …
Refuse the Wait-Only and Check-Threshold Flags on Other pr_review Sub…