Skip to content

Detect a Stale pullRequestCheck: false in the Registry #3908

Done

Description

@ptr727

Problem

#3907 adds the optional registry fact pullRequestCheck. Setting it to false drops required_status_checks from a repository's composed rulesets. That covers a repository with no pull request workflow, and one whose aggregator job posts under another name.

Nothing detects a false that has outlived its reason. Suppose a repository later lands a conformant test-pull-request.yml and nobody removes the field. repo-config/configure.sh check and the audit then both read clean, while the repository merges without its required check.

Why the obvious detector is wrong

A rule like "flag false where test-pull-request.yml exists on the ground-truth branch" gives false positives. A repository's main can carry the workflow while its develop, the branch pull requests target, carries none, or carries one that posts under another name. A sound detector has to read the workflow on each branch a ruleset gates, and decide whether that workflow posts the required check name.

Done when

  • The audit (or configure.sh check) reports a pullRequestCheck: false entry whose PR-target branches all carry a workflow posting Check pull request workflow status job.
  • It does not flag an entry where any gated branch lacks that workflow or posts the check under another name.
  • A test covers both cases with constructed fixtures.

Found during the local review of #3907, deferred by the maintainer's call. Refs #3906.

Activity

  1. added
    enhancement
    on Nov 7, 2026
  2. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-24): PR #4423 merged to develop at 902d931; branch and worktree cleaned up, so this claim holds no files.

    Backlog burndown claim (away run 2026-11-24, round 4, group A): branch burndown/audit-stale-pr-check, issues #3908 and #1493 (#1493's AUDIT.md section 6 half only).

    Predicted files:

    Not in this claim: #1493's GOVERNANCE.md "Hub-Hosted Tooling" half (GOVERNANCE.md is held by the parked #1727 group), and #1493 item 5, the section 6 heading rename, which the issue itself calls its own change. repo-config/configure.sh and repo-config/README.md are not claimed here.

    • spec/checks.json, the rulesets.payload entry's description only (granted 2026-11-24: the check now also reports a stale pullRequestCheck: false).

    Any other group needing one of these files waits for this branch to merge.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions