Can we enable PR process for each directory in the repository ? #164820
Replies: 3 comments 1 reply
-
Hello @learnbalu Yes, you can absolutely enable a Pull Request (PR) review process based on different directories in your GitHub repository by using a Here's how you can do it:
With this setup:
Notes:
Let me know if you'd like help setting up a sample |
Beta Was this translation helpful? Give feedback.
-
Hi @learnbalu, Thank you for the follow-up question, this is a great point! In GitHub’s CODEOWNERS system, the most specific matching rule takes priority. Here’s how it works: If you have code owners set for both a parent folder and its subfolder:
If the PR includes changes in both the parent folder and the subfolder, then both sets of code owners will be required for review. Example CODEOWNERS Setup:
So in short: |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi
I need some help on GitHub PR process.
We have a Github repository. Where we want to add Codereview process on multiple folders. Like, whenever there is some code changes in the directory it needs to have codeowners review process. And each folder wants to have different codeowners to review the PR process.
It's like, how can we enable PR process for multiple folders in the branch ?
Any help on this really appreciated
Beta Was this translation helpful? Give feedback.
All reactions