Repository navigation
core/docs: note the watched-key skip even with a no doc: line (#171) - #172
Merged
Merged
Conversation
…PR body has a no doc: line (#171)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.packs/core/fixtures/docs/watched-key-skip-head-no-doc(a listed head with ano doc:body) expects the note. It fails without the fix.skill/gatekeeper/examples/core-docs.mdregenerated withsh scripts/gen.sh.Evidence (head 9102bb9)
./.gatekeeper/run selftest --pack core: exit 1 (watched-key-skip-head-no-doc: failed without printing ... watched-key check skipped ...)./.gatekeeper/run selftest --pack core: exit 0 (13 gates, 0 failed)cargo fmt --check: exit 0drover arch-check: exit 0 (1273 files, 0 violations)Decisions
cx.baseand 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.