Gerrit/Phabricator integration: Difference between revisions

From Wikitech
Content deleted Content added
{{gerrit nav}}
Tag: 2017 source edit
Add GitHub mirror
 
Line 5: Line 5:
== Source ==
== Source ==


The bot is implemented as a Gerrit plugin: https://gerrit-review.googlesource.com/#/admin/projects/plugins/its-phabricator
The bot is implemented as a Gerrit plugin: https://gerrit-review.googlesource.com/#/admin/projects/plugins/its-phabricator ([https://github.com/GerritCodeReview/plugins_its-phabricator GitHub])


The configuration is done via Gerrit daemon main config. See: [[phab:diffusion/OPUP/browse/production/modules/gerrit/templates/gerrit.config.erb|gerrit.config.erb]] (search for "its-phabricator") and the files beneath [[phab:diffusion/OPUP/browse/production/modules/gerrit/files/homedir/review_site/etc/its/|/etc/its]]
The configuration is done via Gerrit daemon main config. See: [[phab:diffusion/OPUP/browse/production/modules/gerrit/templates/gerrit.config.erb|gerrit.config.erb]] (search for "its-phabricator") and the files beneath [[phab:diffusion/OPUP/browse/production/modules/gerrit/files/homedir/review_site/etc/its/|/etc/its]]

Latest revision as of 10:35, 28 July 2021

Gerrit Notification Bot (aka gerritbot) is the username used by a Gerrit plugin to perform actions on Phabricator.

Source

The bot is implemented as a Gerrit plugin: https://gerrit-review.googlesource.com/#/admin/projects/plugins/its-phabricator (GitHub)

The configuration is done via Gerrit daemon main config. See: gerrit.config.erb (search for "its-phabricator") and the files beneath /etc/its

Functionality

  • If Bug: TXXX is used as a footer in a Gerrit commit message, Gerrit Notification Bot will:
    • Add a comment to task TXXX cross-referencing the Gerrit commit
    • Add the tag #Patch-For-Review to task TXXX
  • If a Gerrit commit is merged or abandoned that contains "Bug: TXXX" as a footer in its commit message, Gerrit Notification Bot will:
    • Add a comment to bug TXXX cross-referencing the Gerrit commit

Maintainer

If there's a problem, file a bug in Phabricator against #GerritBot.

Archive

The feature was previously provided by script: grrrit-wm