[Starlingx-discuss] [Gerrit] How to watch a Gerrit project for changes
Part of our new segment "Send Me More Email"
In the Gerrit Web UI select <user-name> -> Settings -> Watched Projects.
Add the list of projects you want to receive notifications for. Project names are in the form 'openstack/stx-root'. For each project added to the list you can select the type of notifications to receive, that is best explained by the Gerrit docs[0].
In your email client, set up a filter to route these to a folder or your inbox will eventually be flooded. In GMail a filter selection like:
list:"gerrit-openstack-stx-root"
will let you apply the desired action to notifications for the stx-root project. A filter like:
list:"gerrit-openstack-stx-"
will match notifications for all StarlingX projects.
My practice is to label these like "StarlingX/Gerrit" and skip the Inbox. When I want to see what has happened recently I can select that label and browse.
Those of you not new to Gerrit or OpenStack, what workflow has worked well for you?
dt
[0] https://gerrit-review.googlesource.com/Documentation/user-notify.html#user
[Following up with another approach]
Rather than getting notifications via email, Gerrit also has a 'Dashboard' concept that is way-cool. [0] However, it is fraught with trial-and-error and editing nasty long URLs isn't much fun. Way back in the stone age (2014?) Sean Dague created a nifty little tool called gerrit-dash-creator[1] to translate an easy-to-read-and-edit INI-format file into a Gerrit Dashbaord URL.
I have created a basic StarlingX dashboard [2] that lists open reviews based on some attributes like "Needs a final +2 (or +W) to merge", "Passes Zuul and has No Negative Feedback", "Things I am listed as a review but have not reviewd the current patchset" and so on.
I'm including the monster URL[3] that is created by [2] here so you can try it directly without having to install the whole package.
dt
[0] https://gerrit-review.googlesource.com/Documentation/user-dashboards.html [1] https://git.openstack.org/cgit/openstack/gerrit-dash-creator/ [2] https://review.openstack.org/575142 [3] https://review.openstack.org/#/dashboard/?foreach=%28project%3Aopenstack%2Fs...
participants (1)
-
Dean Troyer