Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Can I set up an email sending strategy where emails are sent only when the score of any one label is less than 0?

44 views
Skip to first unread message

Yingchun Li

unread,
Apr 15, 2025, 9:37:31 AMApr 15
to Repo and Gerrit Discussion
Hi,
    Currently, my developers are receiving too many email notifications. Some are generated by the build server, while others are triggered when changes are picked to other branches.
    To reduce the noise, I want to redefine the mail-sending strategy so that Gerrit sends emails only when the score of any label(such as code review, verify, or other customized labels) is less than 0. This way, I can focus on critical notifications and avoid being overwhelmed by unnecessary emails.
    Interesting is the chatGPT give me an suggestion, but I can not find the notify setting.
[sendemail] enable = true [notify] [notify "negativeLabel"] type = commentAdded filter = label:Code-Review<=-1 OR label:Verified<=-1 email = TO
Br,
Yingchun

Daniele Sassoli

unread,
Apr 15, 2025, 1:57:28 PMApr 15
to Repo and Gerrit Discussion
Hi

I'm no expert here, but I believe the first [notify] section is redundant.
A quick google "Gerrit email notify" brings you too [1].
From here it looks like it should be:

    [notify "negativeLabel"]
        type = commentAdded
        filter = label:Code-Review<=-1 OR label:Verified<=-1
        email = TO

Without the parent [notify].


Br,
Yingchun

Amir Zavelghorba

unread,
Apr 16, 2025, 3:29:53 AMApr 16
to Daniele Sassoli, Repo and Gerrit Discussion

I'll send you up to 1 more paste

Amir zavelghorba

در تاریخ سه‌شنبه ۱۵ آوریل ۲۰۲۵، ۲۱:۲۷ Daniele Sassoli <daniele...@gmail.com> نوشت:
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/a774edfa-3c38-4357-a72b-1d6ff25f67d4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages