Repository navigation
core/docs: skip the watched-key check for listed PR head branches; release 1.9.0 (#169) - #170
Merged
Merged
Conversation
… head branches; release 1.9.0 (#169)
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 #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 skipswatch::undocumented; with no head known or the key unset, nothing changes.; watched-key check skipped: headmatches watch_skip_heads``.watched-key-skip-head(passes withoutno 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).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 0cargo 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
GITHUB_HEAD_REF(set by GitHub on every pull_request run, also insidegates.ymlvia workflow_call), no new run flag: no action change needed.no doc:line).