Skip to content

Lint this repo's Markdown in CI - #4

Merged
tillig merged 1 commit into
mainfrom
feature/markdown-lint-ci
Sep 3, 2026
Merged

Lint this repo's Markdown in CI#4
tillig merged 1 commit into
mainfrom
feature/markdown-lint-ci

Conversation

@tillig

@tillig tillig commented Sep 3, 2026

Copy link
Copy Markdown
Member

Nothing has ever linted this repo's Markdown. ci.yml is workflow_call-only — a reusable workflow the library repos consume — so it never runs here, and the .markdownlint.json added alongside MAINTAINERS.md had nothing invoking it.

Adds a .pre-commit-config.yaml and a lint.yaml that runs it, mirroring Documentation's setup: the frozen hook revs are copied byte for byte from that repo so the two stay in step, and contributors get the same local hooks.

One exclusion

PULL_REQUEST_TEMPLATE/pull_request_template.md fails MD041 (no top-level heading). GitHub injects that file into the PR description, so it's a fragment rather than a document and starting it with an # H1 would put a heading in every PR body. Excluded rather than "fixed".

The exclusion is scoped to that path — a heading-less file anywhere else still fails, which I checked with a scratch file.

Verification

All hooks pass, and no existing file was modified — the org docs were already clean, so this is enforcement going forward rather than a cleanup.

ci.yml is a reusable workflow for the library repos and never runs here, so
nothing has been checking the org-level docs. The frozen revs match
Documentation's config so the two stay in step.
@tillig
tillig merged commit bc0add0 into main Sep 3, 2026
2 checks passed
@tillig
tillig deleted the feature/markdown-lint-ci branch September 3, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant