Skip to content

all/docs: Run docs-lint only when documentation changes #46

Closed

Description

@l-nmch

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 .md file in any folder), everything under docs/, and the documentation configuration itself (docs-lint/, templates/docs/, the documentation workflows). Documentation is not only docs/.
  • 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 main and 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-lint in seconds without running the tools, on all five repositories.
  • A pull request that changes a README.md or any .md outside docs/ 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).

Activity

  1. added this to the 2026-Q4 milestone on Oct 28, 2026
  2. self-assigned this
    on Oct 28, 2026
  3. added
    area/ci
    on Oct 28, 2026
  4. added theissue type on Oct 28, 2026
  5. l-nmch commented on Nov 3, 2026

    @l-nmch
    MemberAuthor

    /time 1h implemented the detection in the reusable workflow, tested it locally and with two throwaway pull requests, merge (estimated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ci

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions