Skip to content

ci: let pull requests that change only docs/ through without an issue, and label them - #28

Merged
lukas-frey merged 2 commits into
mainfrom
hotfix/docs-prs
Oct 19, 2026
Merged

lukas-frey merged 2 commits into
mainfrom
hotfix/docs-prs

Conversation

@lukas-frey

@lukas-frey lukas-frey commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Problem

The documentation is moving from the private website repo into docs/ here, so that feature PRs can bring their docs along and anyone can fix a page with "Edit this page on GitHub". But the PR gate closes every outside PR that doesn't reference an approved issue, and nobody opens an issue to fix a typo.

Fix

  • PR gate (pr-gate.yml): a PR that changes only files in docs/ (both sides of a rename) needs no issue. The gate now also runs on synchronize, so a docs-only PR that gets other changes pushed later is checked against an approved issue like any other, and closed with a comment saying why if it has none. It still only reads the PR's file list through the API; it never checks out or runs its code.
  • Org members with private membership: GitHub reports them to the workflow as CONTRIBUTOR, so the gate closed their PRs (it closed this one and docs: move the documentation from the website into docs/, checked by tools/docslint #29). When the association doesn't say collaborator, the gate now asks for the author's permission on the repository; write or admin isn't gated.
  • Labeler (labeler.yml, .github/labeler.yml, new): actions/labeler@v7 adds documentation to PRs that change docs/**.
  • PR template: says a docs-only PR needs no issue and can drop the Fixes # line.
  • CONTRIBUTING.md: a Documentation section: where the docs live, that docs-only PRs need no issue, that the website shows released docs only, and that features should update their docs.

This goes into main because GitHub runs pull_request_target workflows and reads the PR template from the default branch. docs/ itself arrives with #29 into develop; until it's released, CONTRIBUTING.md mentions a folder that's not on main yet.

…, and label them

The PR gate now also runs on every push, so a docs-only PR that picks up other changes is
checked against an approved issue like any other. The labeler adds "documentation" to PRs
that change docs/. CONTRIBUTING.md and the PR template explain both.
@github-actions

Copy link
Copy Markdown

Thanks for the PR, @lukas-frey! Pull requests go into develop, not main, so this one is closed. Please open a new one against develop. See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Oct 19, 2026
GitHub reports them to the workflow as CONTRIBUTOR, so the gate closed their PRs. Their write
or admin access to the repository says they're maintainers.
@lukas-frey lukas-frey reopened this Oct 19, 2026
@lukas-frey
lukas-frey enabled auto-merge October 19, 2026 14:02
@lukas-frey
lukas-frey added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit 6f3fa92 Oct 19, 2026
8 checks passed
@lukas-frey
lukas-frey deleted the hotfix/docs-prs branch October 19, 2026 14:10
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