Repository navigation
ci: skip checks for docs-only pull requests - #34
Merged
Merged
Conversation
5 tasks done
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.
What / why
PRs that touch only prose (README, AGENTS, release notes, templates) ran the full 3-OS Go matrix and the install-script checks. Nothing those jobs test had changed.
Changes
changesjob diffs the PR merge commit against its base (HEAD^1) and sorts each file:*.md,LICENSE,.github/CODEOWNERS,.github/ISSUE_TEMPLATE/*cmd/,internal/,test/,docs/, plus any file not in the skip list (go.mod,Makefile,release.yml, …)install.sh,install.ps1ci.ymlcheckmatrix: every step is gated onchanges. The job itself always starts.install scripts: skipped as a whole job when scripts didn't change.workflow_call(release) always runs everything.Verification
YAML parses.
Ran the file-sorting
caselocally on 8 sample file lists: docs-only and release-notes-only skip,docs/*.mdruns, Go changes run,install.shruns only scripts,go.mod/Makefile/release.ymlrun,ci.ymlruns both.This PR changes
ci.yml, so it should run everything. Still need a docs-only PR to confirm the skip on GitHub.make checkpasses locally (workflow-only change, not run)make docsrun if CLI help changed (n/a)No secrets/keys/tokens in diff or logs
No
v*tag or release commit in this PRNotes for reviewer
on.pull_request.paths: themain-protectionruleset requirescheck (<os>)×3 andinstall scriptsby name. If the workflow never starts, those checks stay pending forever.changesfails, everything runs: jobs use!cancelled()and check!= 'false', so an empty output still runs the checks.docs/still runs the Go checks on purpose. Those files are generated, andTestDocsAreCurrentfails on hand edits.🤖 Generated with Claude Code