Repository navigation
fix(policy)!: check pull requests by title and added content - #9
Merged
Merged
Conversation
Members squash-merge with the PR title as the subject and an empty body, so pull-request commits never reach the default branch. Pull-request policy now checks the title, added lines and paths only; commit verification, committer identity, subjects and attribution trailers stay on default-branch pushes and dispatch. Merge commits that update a pull request and external contributors' commits pass, as the organization standard describes.
Pull requests are no longer checked commit by commit, and default-branch squash commits have empty bodies, so the Dependabot signoff exception no longer applies anywhere. Remove the input, its environment variable, the authentication helper and its tests. README and CHANGELOG state that manual dispatch checks only the selected commit, and that callers must squash-merge with the PR title and an empty body. Tests assert added-line findings on pull requests and that the original author is not restricted on default-branch pushes.
showxu
marked this pull request as ready for review
October 27, 2026 07:57
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.
Pull-request policy now matches the organization standard: it checks the title, added content and added or modified paths. Members squash-merge with the PR title as the subject and an empty body, so pull-request commits never reach the default branch.
What changes
The original author is not restricted.
dependabot-exceptioninput is removed. It existed only for pull-request commit checks, and default-branch squash commits carry no trailers. This repository was the only caller passing it.## Unreleased. No version is released; members move their pins to the merge commit.Validation
python3 -m unittest discover -s tests: 140 tests pass.actionlintpasses.policycheck runs the candidate.