gitbucket / gitbucket-notifications-plugin

A GitBucket plug-in to provides email notifications feature
Apache License 2.0
20 stars 9 forks source link

Receive notifications only when involved / being the asignee #16

Open alwibrm opened 5 years ago

alwibrm commented 5 years ago

When you have a couple of projects hosted in GitBucket and the notifications plugin activated, you receive loads of mails by default (every time when someone is creating a PR, etc.). This can quickly become annoying and the risk that you miss the really important things (e.g. asignee = you) is increasing.

It would be nice to have an option which allows to receive notifications only when you're directly involved in a state change.

alwibrm commented 5 years ago

I just realized that you can adjust the "watch"-level per repository ("watching", "not watching", "ignoring"). But: I would find it useful to be able to set a "default watch level". Otherwise every single user has to adjust the settings per repository.

rkno82 commented 4 years ago

We would really appreciate that feature.

takezoe commented 4 years ago

The current notification plugin sends email to only involved users. https://github.com/gitbucket/gitbucket-notifications-plugin/blob/b51f194d2b7df2639471a3cc7a91441cb627607c/src/main/scala/gitbucket/notifications/service/NotificationsService.scala#L63-L94

takezoe commented 4 years ago

Involved users include a repository owner. So, if you are the owner of many repositories, you could get many notification emails. Do you want to avoid this case?

rkno82 commented 4 years ago

Out situation is the following. We are working as teams with multiple roles, developers and operations, and are using pull requests to ensure 4-eyes-principle within each role. The current setup leads to situations where every ops'ler is receiving every dev-pr and vise versa. We would like to be able to configure that less "spammy".

Thanks.

takezoe commented 4 years ago

Hm, I see. Group members and collaborators are included in the notification target. Will an option to exclude them work? https://github.com/gitbucket/gitbucket-notifications-plugin/blob/b51f194d2b7df2639471a3cc7a91441cb627607c/src/main/scala/gitbucket/notifications/service/NotificationsService.scala#L54-L61

alwibrm commented 4 years ago

As soon as collaborators are only users involved in the related PR / branch you get the notification for - that should work.