Allow rulesets to require pull request approval from a specific GitHub App #213507
Replies: 3 comments 3 replies
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
I don't think rulesets can do this today. Nothing in a ruleset lets you name a specific reviewer, and CODEOWNERS only takes users and teams, not apps. What's possible right now:
For the feature itself, "required reviewer = installed App" is a clear ask. A concrete suggestion for the team: allow a ruleset's required reviewers to include apps, not just teams. |
|
You're asking for a genuine gap. Rulesets can require reviews, but they can't name who has to give them — CODEOWNERS only takes users and teams, and GitHub Apps aren't valid reviewers in that model. The closest thing today is a split approach:
The catch is the one you already identified: that review only counts toward the number of approvals, so a second human approval could satisfy the same requirement. If you need the App's sign-off to be independently mandatory, the only supported route is a dedicated machine account added as a required reviewer via CODEOWNERS or the ruleset's review requirement — with a PAT or App token posting the review. It works, but it's the "separate machine user" you were trying to avoid, with the extra secret-management burden that comes with it. One detail worth designing around: whatever you build, make the App's review dismiss on new pushes. Otherwise a stale approval can linger after the head changes, which is worse than having no automated reviewer at all. Your post is a good, concrete feature request — "let a ruleset name an installed App as a required reviewer" is a small, well-scoped API addition. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
Body
We use weighted code review: a pull request needs two approval points, and a reviewer's contribution depends on their ownership of the changed code. Our GitHub App already calculates the score. What we need is a way for a ruleset to require that specific App’s approval, independently of the number of human approvals.
The behavior we want is simple: CI can be green while Merge is blocked on review. Until the selected App approves the current PR head, Merge should stay blocked, even if another reviewer approves. Once the App approves, anyone who already has merge permission should be able to use the normal Merge button. If the App withdraws its approval, the requirement should become unsatisfied again.
A required status check can enforce the score, but it puts a review decision in Checks and makes a commit with passing tests look pending. We’d like this to appear under Reviews, without needing a separate machine user and personal access token.
We’re not asking GitHub to implement our weighting formula. Letting a ruleset name an installed GitHub App as a required reviewer would be enough.
All reactions