Repository navigation
Description
Goal
Run the docs-lint check only when documentation changes, instead of on every pull request. A dependency bump from Renovate rewrites no documentation, so it should not pay for Markdown, link and prose checks.
The check itself must not disappear: it is a required status check on main, so it keeps reporting on every pull request. When nothing documentary changed it reports success at once without running the tools.
Scope
- Decide from the files changed by the pull request, and count as documentation any Markdown file anywhere in the repository (
README.md,AGENTS.md,CONTRIBUTING.md, a.mdfile in any folder), everything underdocs/, and the documentation configuration itself (docs-lint/,templates/docs/, the documentation workflows). Documentation is not onlydocs/. - When a documentary file is touched, run the full check as today (header and layout, Markdown, links, prose).
- When none is touched (for example a Renovate or release-please pull request), skip the heavy steps and report success.
- Pushes to
mainand the scheduled run (which also checks the links to the web) are unchanged and always run in full. - Done in the shared reusable workflow of this repository, so that the five repositories that call it need no change. A path filter on the trigger is not an option: it makes a required check never report on pull requests that do not match, and blocks them.
Done when
- A pull request that changes no documentary file passes
docs / docs-lintin seconds without running the tools, on all five repositories. - A pull request that changes a
README.mdor any.mdoutsidedocs/runs the full check, and one that breaks a link or a header fails it. - A pull request that only changes
docs-lint/or the check's own workflow runs the full check. - No pull request stays waiting for the required check.
Notes
History: the check first had a path filter, which was removed because a skipped required check blocks the merge (#34).
Metadata
Metadata
Assignees
Labels
area/ciCI/CD, automation, dependencies
Type
Projects
- StatusShow more project fieldsReady
Activity
l-nmch commentedon Nov 3, 2026
/time 1h implemented the detection in the reusable workflow, tested it locally and with two throwaway pull requests, merge (estimated)