Preview Feedback: Require review from specific team rule #178776
Replies: 3 comments 2 replies
-
|
Great in theory, but it doesn't seem negation works right now, when it says it uses the same syntax as .gitignore files! I.e. this does not work: PRs are still blocked + require specific approval if a negated/allowed file is edited. |
Beta Was this translation helpful? Give feedback.
-
|
I haven't had the chance to try this feature yet, since it's still in preview, and I would need to ask my organization manager to enable it. Before asking them, I have a question though. It seems unclear from the announcement what the exact behaviour is for pull requests. Is it similar to how CODEOWNERS work? Specifically I'm curious if this feature addresses https://github.com/orgs/community/discussions/178776. We would really like to be able to assign/require a team as reviewer, so that the team is automatically added to any PR as specified by the ruleset, but keep the team there as individual members add reviews to the PR. |
Beta Was this translation helpful? Give feedback.
-
|
@patrick-knight should this be supported in the REST API? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Required review by specific teams now available as a preview feature in rulesets
Take control of your protected branches! You can now use rulesets to require approvals from specific teams for changes to specific files and folders.
What's new
Rulesets vs. CODEOWNERS
While CODEOWNERS is great for defining ownership, this new ruleset focuses on policy enforcement. It makes it simple to require specific approvals on sensitive branches and critical code paths, all while scaling seamlessly across your enterprise.
This new rule is designed to augment CODEOWNER files but not replace them. The CODEOWNERS files will continue to be the way to manage ownership, support individuals as reviewers, and request reviews even if not required.
🌟 Leave a comment!
What do you think? Join the discussion and leave your feedback below!
Beta Was this translation helpful? Give feedback.
All reactions