Repository navigation
ci: let pull requests that change only docs/ through without an issue, and label them - #28
Merged
Merged
Conversation
…, 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.
|
Thanks for the PR, @lukas-frey! Pull requests go into |
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.
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.
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.yml): a PR that changes only files indocs/(both sides of a rename) needs no issue. The gate now also runs onsynchronize, 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.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;writeoradminisn't gated.labeler.yml,.github/labeler.yml, new):actions/labeler@v7addsdocumentationto PRs that changedocs/**.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
mainbecause GitHub runspull_request_targetworkflows and reads the PR template from the default branch.docs/itself arrives with #29 intodevelop; until it's released, CONTRIBUTING.md mentions a folder that's not onmainyet.