policy-bot
policy-bot copied to clipboard
Feature request: Mute email notifications from policy bot
First, thank you for all of your efforts on this project.
We rolled out Policy Bot in our organization and observed that developers are sort of getting annoyed because of email notifications from policy Bot. Is it possible to turn off notifications from the policy bot ?
Unfortunately, GitHub controls email notifications. When Policy Bot performs an action, I don't think we have the ability to disable notifications.
As a first step, I'd review the settings GitHub provides for notifications. For instance, you can disable email notifications or use the documented email properties to create filter rules in your email client that delete or hide notifications from Policy Bot. This might be the best option, as each developer can write custom rules that fit their workflow.
If that's not sufficient, I think the only change we can make in Policy Bot is to fix situations where there are redundant actions. Since the only event that triggers notifications right now is assigning reviewers, this means identifying and fixing cases where reviewers are requested too often.
If that's the case, I recommend checking that you are running latest version of Policy Bot, as I fixed some bugs related to this in the last few releases. Then, if there are still too many reviewer assignments, it would help to have some more details about your policy file and the PRs where the reviews happen so we can look for bugs or optimizations.
Thank you for the detailed explanation. We will test some flows and will update this ticket with details.