Skip to content

Refuse the Wait-Only Flags on Other pr_review Subcommands #3496

Closed

Description

@ptr727

Context

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

  1. added
    pre-existing
    script
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pre-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions