-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Improvements in email notifications on issues and pull requests #5083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I looked into this and after about an hour I gave up. The whole thing is not built very good. We have notifications, these are ok and get updated far more often than emails are sent. One would expect we have some kind of goroutine which sends mails based on notifications, but the whole notification implementation doesn't send any mails. Mails are being send directly by the function which creates an issue/pr comment. But not for all kinds of comments.... (this is the reason for #4279) IMHO we should refactor these things in three steps:
|
@lunny Great, I haven't seen that! |
@kolaente, if email is generated on every action, option to configure, which emails the user is interested in is, in my opinion, a must. Currently there are too few emails sent. But I would not exchange it for too many. Another way to reduce email overload is deferring email sending and bundling some actions together. E.g. if I set a milestone, labels and assignee on an issue, they are separate actions as I can tell from the UI. But logically, I would not like to receive several mails for them. Or another case, line comments and review comment. If somebody is working on PR review, it does not make much sense to push every action as an email. Instead, they could be combined together in a single message. I worked for a while with BitBucket. It was behaving that way (I mean PR review), as far as I remember. I am too new to Gitea to contribute any code on that level of rework. Looking forward for the PR promised by @lunny. |
@rasmk I agree with you we need a notification configuration UI after the mail refactoring finished. |
The notification refactoring mentioned was #5085, right? Can we tackle this issue now? :) |
Mail notification has merged also. See https://github.com/go-gitea/gitea/blob/master/modules/notification/mail/mail.go |
I agree with @rasmk that we would need configuration options with an increase of emails. Is configuration available at all at the moment? I was contacted by a user with the request of opting-out of certain notification emails, though I haven't come across this functionality so far in Gitea. The ability to customize notifications for different repos would be brilliant, as certain repos may require greater attention than others. |
I would like to see a way to disable comments from specific users resulting in a mail/notification. We have technical users (bots) that write comments into every PR and when I create a PR, I already get multiple mails :-) |
Since the email templates could be overrided, I think we can close this one. |
Agree most of this is resolved/possible now |
I would like to see some improvements in email notifications Gitea sends on issues and pull requests.
Content extensions:
For that, I was thinking about having templates for subjects and adding some more data (e.g. issue and comment) to the data of the body template, so that custom templates can make use of that. Having separate templates per comment type may be an option too.
Besides, I would like to receive some more emails than today:
Nice to have: defer the email sending and bundle some related updates into a single mail. This should be particularly useful for the review notifications. This may be somehow related to #145 by @andreynering.
I would like to hear some feedback. Perhaps I could contribute a PR.
The text was updated successfully, but these errors were encountered: