Skip to content

core/docs: skip the watched-key check for listed PR head branches; release 1.9.0 (#169) - #170

Merged
jirathip-k merged 1 commit into
stagingfrom
issue-169
Nov 29, 2026
Merged

jirathip-k merged 1 commit into
stagingfrom
issue-169

Conversation

@jirathip-k

Copy link
Copy Markdown
Contributor

Closes #169

For humans

A repo can now list pull-request branches, such as release branches, whose pull requests skip only the "a changed setting needs a doc line" part of the docs gate.
Release PRs from staging to main stop failing on changes that already passed that check one by one on their way into staging.
Every other docs check still runs on them, and the run note says when and why the skip happened. This ships as version 1.9.0.

What changed

  • [docs] watch_skip_heads = ["release/*"] (globs, default empty): a PR whose head branch (GITHUB_HEAD_REF) matches skips watch::undocumented; with no head known or the key unset, nothing changes.
  • The run note gains ; watched-key check skipped: head matches watch_skip_heads``.
  • Fixture cases (core/docs selftest): watched-key-skip-head (passes without no doc:), watched-key-other-head (feature/release/x, still fails with both findings), watched-key-skip-head-stale-path (still gets the stale-path finding; its expect also asserts the skip note).
  • README docs-gate table documents the key; version 1.9.0 (Cargo.toml, lockfile, pin example, skill, ratchet fixture, regenerated examples).

Evidence (head 454a0bd)

  • cargo run -q -p gatekeeper -- selftest --pack core: exit 0 (ok core/docs clean and 40 cases)
  • cargo run -q -p gatekeeper -- check --gate core/docs: exit 0 (80 files, 0 findings)
  • cargo clippy -q -p gatekeeper-engine -p gatekeeper -p gatekeeper-model: exit 0
  • cargo fmt --check: exit 0 · drover arch-check: exit 0 (0 violations)

src/ net +24 (budget +30): one config field, one context field threaded from the cli, the skip and its note in the docs check.

Decisions

  • Head branch read from GITHUB_HEAD_REF (set by GitHub on every pull_request run, also inside gates.yml via workflow_call), no new run flag: no action change needed.
  • The note names the skip only when the watched-key check would otherwise have run (base set, no no doc: line).
  • Version 1.9.0 rather than shipping in the unreleased 1.8.0: a distinct version drover can pin for this feature; the 1.8.0 upgrade note stays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant