Repository navigation
all/docs: Run docs-lint only when documentation changes - #52
Merged
Merged
Conversation
The reusable workflow lists the files of the pull request (merge commit against its first parent) and runs the tools only when one is documentation: any Markdown file, docs/, and the configuration of the check. Otherwise the job reports success at once, so the required check never blocks a Renovate or release-please pull request. Pushes, the schedule and manual runs always run in full. CHANGELOG.md and CLAUDE.md at the root do not count: the Markdown check skips them.
This was referenced Nov 3, 2026
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 #46
Closes #27
What
docs-lint(the shared reusable workflow) now decides from the files of the pull request instead of always running the tools:HEAD^1..HEAD..mdfile anywhere,docs/,docs-lint/,templates/docs/,scripts/check_docs.pyand thedocs*.ymlworkflows. The rootCHANGELOG.mdandCLAUDE.mddo not count, because the Markdown check already skips them (a release-please pull request would otherwise run the full check).docs-lintreports success in seconds. The check is still reported on every pull request, so it can stay required.main, schedule, manual run), or no merge commit to compare: the full check runs.@mainwith no path filter. The header comment of the workflow and the Checks section of the documentation standard now say it..github#27is closed with this pull request:#46was its last open sub-issue.Tested
CHANGELOG.mdonly → skip; root and nestedREADME.md/.md,docs/file,docs-lint/,docs.yml→ full; schedule → full.docs / docs-lint.txtfile only (#53)README.md(#54)docs-lint.ymland a docs page)Not tested here: the four other repositories call the workflow at
@main, so they pick the change up after the merge (the next Renovate pull request there should skip the tools).