Enable code ownership without automatic PR notifications for entire teams #35673
Replies: 39 comments 14 replies
-
You can currently disable the option to require review from code owners. Is that not what you're asking for? You can also specify code owners for specific folders / subfolders of the repo as opposed to just global. |
Beta Was this translation helpful? Give feedback.
-
I second this request. There are times when we would like to force a required review by a member of the Security team on certain PRs but the Security Team shouldn't be Code Owners or get notifications for all PRs to the Repo, just when they are added as a required reviewer. |
Beta Was this translation helpful? Give feedback.
-
It would be great to see this be configurable. I would be great to have it enforced that a CODEOWNER review is required, and can be manually requested, but that the owner is not auto emailed and auto subscribed to the PR. When multiple PRs are being raised a day to a codeowner the amount of emails due to being assigned, new commits being pushed to each PR, discussions on multiple PRs, and the default reaction is to turn off all notifications at a repo level. This means people move to tagging people in Slack to review, or to respond to comments, which is not a desired workflow. I came here from https://stackoverflow.com/questions/72534373/how-to-enforce-review-from-codeowners-without-automatically-requesting-a-review which describes:
|
Beta Was this translation helpful? Give feedback.
-
Would also love to see this. I'm getting bombarded with notifications at the moment, but the only solution is to disable email notifications and risk missing notifications that are actually relevant when I'm assigned! |
Beta Was this translation helpful? Give feedback.
-
Just ran across this issue - there is an individual in our "maintainers" group who should have the ability to sign off PRs, but shouldn't necessarily always be notified as new PRs go up. |
Beta Was this translation helpful? Give feedback.
-
Another vote to have this functionality. I want to protect a certain branch and require codeowners to approve but I dont want them assigned to the PR's on other branches. |
Beta Was this translation helpful? Give feedback.
-
Also want to put in a request for this functionality! To be more specific about the need we've encountered at my organization, we want to use codeowners for branch protection, but don't want the automatic assignment of codeowners to review, and also (especially!) don't want the PR notifications for the whole codeowner team. Our workflow would look like this: a member of a non-codeowner team makes a PR, discusses during stand-up with codeowners, a codeowner self-selects to review the PR. |
Beta Was this translation helpful? Give feedback.
-
^ The root cause of my GitHub notification volume issue isn't watching a bunch of no star, inactive repos. It's the problem outlined in this thread. |
Beta Was this translation helpful? Give feedback.
-
You can use this to auto-assign for the team. https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team so not everyone get the notice. In the same place there is also |
Beta Was this translation helpful? Give feedback.
-
While auto-assign works I would appreciate more granular control when creating a PR as well.
|
Beta Was this translation helpful? Give feedback.
-
I also agree with this. Right now if CODEOWNERS exists and a developer creates a PR into another developers working branch a code review is requested by the entire dev team (assuming the team owns the code that is being changed), but you would really only want that one dev to be requested. Then once those changes need to be merged into main or some other gitflow branch it would make sense to make the request to the whole team. |
Beta Was this translation helpful? Give feedback.
-
I'm getting spammed with dozens of notifications every day for various PRs, even for repositories explicitly added to the ignore list – I still keep getting notifications from those with no way to disable. The only way currently is to get removed from the group listed in CODEOWNERS. |
Beta Was this translation helpful? Give feedback.
-
We have the same issue. We are automatically subscribed to every PR and receive infinite spam from GitHub. |
Beta Was this translation helpful? Give feedback.
-
We've had members leave because their team is assigned to PRs but the individuals didn't want 875 messages in their email or GH notification page. +1 |
Beta Was this translation helpful? Give feedback.
-
Also have the same issue here. We are using CODEOWNERS to implement branch protection on a subset of the files in the repo, but I don't want everyone getting an email for every PR in the repository. |
Beta Was this translation helpful? Give feedback.
-
My company is affected as well. Will Github ever do anything about such issues or will they keep ignoring all the issues with user experience in Github? |
Beta Was this translation helpful? Give feedback.
-
I second this problem and wish GitHub can do something about it. Also, The CODEOWNERS file doesn’t have an option to differentiate between draft and ready PRs. I do not want my code owners notified if its just draft PR. |
Beta Was this translation helpful? Give feedback.
-
I'm currently dealing with this using Gmail filters. I have noticed that Github adds the following footer to such emails: "You are receiving this because your review was requested". But when someone explicitly mentions you, not just the team, the footer is "You are receiving this because you were mentioned". So I have created the following filter in gmail to filter out github noise: Everything else from Github ends up in my inbox. |
Beta Was this translation helpful? Give feedback.
-
Hmm so it seems like GitHub does not provide a way to limit who is ALLOWED to approve PRs to a specific group of people, without also adding them automatically to the PR for review and then sending spamming all them an email. It would be nice is there was a way to have two groups of people, the superset that has ALL the people allowed to approve PRs and then a subset of those that are automatically added to the PR for as a group who would then be notified. This way we do not spam 100's of people, when we only need to spam maybe 10-20, as we have a number of people who should be allowed to approve them to pass checks but do not need nor want to get the email notifications. A quick and simple use case is let say you have staff engineers, principle engineers, architects and they need and should ahve the ability to approve PRs and pass the check that they are approved. While not spamming them with every PR a repo makes. They would like to know when someone has manually added them for their opinion or desire for feedback, so they can know when they see an email from The current implementation in GitHub if we use CODEOWNERS file is that we will be spamming everyone in this file by that email address which will make that email address worthless to those as a tool to filter by. Not sure if there is another way with existing GitHub settings or CODEOWNERS to achieve this tiered approach for approvers and those notified automatically to review a PR. |
Beta Was this translation helpful? Give feedback.
-
This doesn't distinguish between you being specifically assigned for review vs. team being assigned for review. |
Beta Was this translation helpful? Give feedback.
-
This issue has caused me so much frustration, please fix this 😭 |
Beta Was this translation helpful? Give feedback.
-
This would be a fantastic feature, would love to prevent automatic PR notifications for the entire team but still assign code ownership |
Beta Was this translation helpful? Give feedback.
-
GitHub, consider adding this feature to the codeowners file:
|
Beta Was this translation helpful? Give feedback.
-
Can we ship this already, please? |
Beta Was this translation helpful? Give feedback.
-
I second this, its really annoying |
Beta Was this translation helpful? Give feedback.
-
This is starting to look like Github is abandonware. (I know that's hyperbolic, but this dialogue is so similar to abandoned projects) |
Beta Was this translation helpful? Give feedback.
-
Please add this! The amount of email noise has immediately become problematic since we added code ownership rules for our team's files, but the benefit of code ownership rules is too much to give up. At our org, if a team needs external code review then they just drop a message in the other team's channel. We don't need the entire team getting emails for every PR that goes up where we're code owners, let alone emails for every comment and update that happens on all of those PRs. It would be a big quality of life improvement to be able to turn that off, and it's a bit frustrating that we are so close to it given there is already the "Only notify requested team members" setting (which only works if you set up auto-assignment). |
Beta Was this translation helpful? Give feedback.
-
This is so crucial I can't believe it isn't already a thing, and doesn't have thousands of upvotes. My team has ownership of tons of things. However, we assign 1 person on any given day to be the supporting engineer who fields questions, reviews PRs, etc. We want to express ownership through CODEOWNERS to ensure someone from our team reviews changes to stuff we own, but we neither need nor want the entire team to get emails about every single one of these changes. We have external mechanisms to figure out who specifically will review something (manually adding someone who worked with you on something, or was the original author, "tagging that person handling support tasks for the day", usually all this is through a messaging tool like slack...). github should be more flexible to allow for teams' workflows. |
Beta Was this translation helpful? Give feedback.
-
Still waiting. Our workaround is to not use codeowners... |
Beta Was this translation helpful? Give feedback.
-
GitLab solves it like this: https://docs.gitlab.com/user/project/codeowners/reference/#optional-sections the [Go] section is optional:
Should be easy enough to implement with the resources of M$ at your disposal, right? |
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.
-
I'm not sure there's another place for feature requests, so here it goes. The problem is that we would like to use code ownership to enforce reviews by certain teams on certain PRs before merging but not have the entire team get notifications for all the updates on a PR. This happens because the owning team/s get auto-assigned as reviewers once the PR gets created and are therefore subscribed to the PR. This creates lots of spam.
It would be great if we had the option to use code owners for indicating that certain PRs must be reviewed by specific team members, depending on their contents, but not automatically assign the teams as reviewers or at least not automatically subscribe them to updates on that PR.
I'm aware that we can all manage our notifications, use draft PRs and I'm also aware of the auto assign functionality, but unfortunately these don't quite fit our workflows. What do you think?
Thanks!
Edit: after posting this, I noticed there's a similar discussion going on here: https://github.com/orgs/community/discussions/15747. The main post is not exactly the same, but the top comment essentially states the same issue as this.
Beta Was this translation helpful? Give feedback.
All reactions