Skip to content

core/docs: note the watched-key skip even with a no doc: line (#171) - #172

Merged
jirathip-k merged 1 commit into
stagingfrom
issue-171
Nov 30, 2026
Merged

jirathip-k merged 1 commit into
stagingfrom
issue-171

Conversation

@jirathip-k

Copy link
Copy Markdown
Contributor

Closes #171

For humans

A release-branch PR that skips the "a changed setting needs a doc line" check now always says so in the docs run note.
Before, the note was missing when the PR body also had a "no doc:" line, so the skip went unreported.

What changed

  • crates/gatekeeper-engine/src/check/docs.rs: the skip note now depends on a base being present, not on the watched check otherwise running.
  • New fixture packs/core/fixtures/docs/watched-key-skip-head-no-doc (a listed head with a no doc: body) expects the note. It fails without the fix.
  • skill/gatekeeper/examples/core-docs.md regenerated with sh scripts/gen.sh.

Evidence (head 9102bb9)

  • Before fix, with fixture: ./.gatekeeper/run selftest --pack core: exit 1 (watched-key-skip-head-no-doc: failed without printing ... watched-key check skipped ...)
  • After fix: ./.gatekeeper/run selftest --pack core: exit 0 (13 gates, 0 failed)
  • cargo fmt --check: exit 0
  • drover arch-check: exit 0 (1273 files, 0 violations)

Decisions

  • Gate the note on cx.base and not on removing the filter: with no base (a local run), the watched check never runs, so a skip note would be noise.

src/ net +0 (budget +2): one condition changed in place.

@jirathip-k
jirathip-k merged commit c5a7fe7 into staging Nov 30, 2026
16 checks passed
@jirathip-k
jirathip-k deleted the issue-171 branch November 30, 2026 00:27
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