Skip to main content
Enterprise Agile Planning Image

This post is from the CollabNet VersionOne blog and has not been updated since the original publish date.

Last Updated Nov 10, 2015 — Enterprise Agile Planning expert

Gerrit Productivity Hacks – Add Default Reviewer

Enterprise Agile Planning

We often get requests from the TeamForge users who’re using Git Integration for the one very common use case:  “How can I add a default reviewer to the code review request ? ”

Well, answer became much simpler with Gerrit’s  Reviewer plugin  and Gerrit 2.11 with which plugin can be configured per project with the comfort of Gerrit webUI.

Installation

The verified version of the plugin can be downloaded or install directly.

Download and install

wget https://s3-ap-southeast-1.amazonaws.com/ctf-dev-environment-vagrant/reviewers.jar
ssh -p 29418 <USERNAME>@<GERRIT_HOST>  gerrit plugin install -n reviewers.jar  -< reviewers.jar

Direct install

ssh -p 29418 <USERNAME>@<GERRIT_HOST>  gerrit plugin install -n reviewers.jar  - https://s3-ap-southeast-1.amazonaws.com/ctf-dev-environment-vagrant/reviewers.jar

Replace USERNAME with the user with administrators user and GERRIT_HOST  with the hostname of your Git integration server. In the future release of Gerrit 2.11, this plugin will be bundled so going forward it will not require to install it separately.

Usage

Plugin allows to configure default reviewer(s) per repository.

Go to Gerrit WebUI->project menu bar-> List-> Select project (repository name in TeamForge)

Click on the Reviewers tab

 Here you can specify filter and the default reviewer.

 reviewer can be added by name or email address.

filter can be of multiple types:

  1. *  (wildcard)  for any code review request  for this repository
  2. branch:master   for any code review request for the branch
  3. branch:release file:^lib/.* for any code review request for the release branch which involves change in lib directory

 

 Now with this configuration in place, any new change will have reviewer added as per configuration.

That’s it. Very easy. isn’t it?  Add your peers as a default reviewer and get their attention easily !

More from the Blog

View more
May 03, 2021

Bringing the agile planning approach to your whole business

Enterprise Agile Planning
The events of the last 12 months have demonstrated that the only sure ...
Read More
Apr 08, 2021

Making IT services more agile

Enterprise Agile Planning
The agile revolution completely transformed how we create digital prod ...
Read More
Feb 14, 2021

Reflecting on the 20th anniversary of the Agile Manifesto

Enterprise Agile Planning
Over the past 20 years, it’s been amazing to watch an idea from ...
Read More
Feb 08, 2021

How does agile apply to an entire organization?

Enterprise Agile Planning
Before we dive into the main subject of this blog post, it is importan ...
Read More
Contact Us