Repository navigation
feat: pull request policy shared by every repository - #7
Merged
Merged
Conversation
Two rules enforced by a reusable workflow, called from each repository through pull_request_target so it runs the base branch's copy with write access: - Open-PR cap. An author keeps at most three open pull requests per repository. The oldest three stay; a newer one is closed on opening or reopening with a comment naming the ones that stay. Ranking by number (not a plain count) keeps a burst of simultaneous openings from closing all of them. - Review-request gate. A review request to a maintainer is removed until the author has reviewed their own pull request (one review of any state) and the description has no unchecked box. One comment per PR, updated in place. Exempt logins and the gated maintainer list are inputs with org defaults. Also a workflow template for the caller and a CONTRIBUTING section (en, ko).
This was referenced Oct 12, 2026
4 tasks done
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.
What this changes
Adds a reusable pull request policy workflow, its caller template, and the matching CONTRIBUTING section (en, ko).
Why
One member has opened 428 pull requests across the org in 30 days with 184 review requests to the maintainer. GitHub has no native control for either (interaction limits do not apply to members; there is no "self-review first" rule), so a workflow enforces both:
its-janghoonis removed until the author has reviewed their own pull request and ticked every box in the description.its-janghoonanddependabot[bot]are exempt. Each repository gets a 14-line caller (follow-up PRs).How it was verified
YAML parsed with PyYAML; the run script extracted and passed
bash -nandshellcheck.Dry run against the live
redrob-labs/redrob-code(writes stubbed): with 4 open PRs by the author, #75/#76/#77 are kept and #78 would be closed; exempt author short-circuits; a request to a non-gated reviewer or a team is ignored; #78 with 0 self-reviews would have its request toits-janghoonremoved.Not exercised: the real
pull_request_targetrun, which needs this file onmainfirst. The first caller PR in a product repository is the live test.The repository's own gates pass locally
Verified against the built artifact, not only the diff
No credential, token or
.envfile in the diffUser-facing strings go through the translation layer, in both locale tables