Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit set-reviewers |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 4 | gerrit set-reviewers - Add or remove reviewers to a change. |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 7 | [verse] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 8 | -- |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 9 | _ssh_ -p <port> <host> _gerrit set-reviewers_ |
Edwin Kempin | 73b2698 | 2012-07-16 13:53:22 +0200 | [diff] [blame] | 10 | [--project <PROJECT> | -p <PROJECT>] |
| 11 | [--add <REVIEWER> ... | -a <REVIEWER> ...] |
| 12 | [--remove <REVIEWER> ... | -r <REVIEWER> ...] |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 13 | [--] |
Dave Borowitz | 0be8b71 | 2015-10-28 09:57:15 -0400 | [diff] [blame] | 14 | {CHANGE-ID}... |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 15 | -- |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 16 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 17 | == DESCRIPTION |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 18 | Adds or removes reviewers to the specified change, sending email |
| 19 | notifications when changes are made. |
| 20 | |
Dave Borowitz | 0be8b71 | 2015-10-28 09:57:15 -0400 | [diff] [blame] | 21 | Changes can be specified in the |
| 22 | link:rest-api-changes.html#change-id[same format] supported by the REST |
Hector Oswaldo Caballero | 6161088 | 2017-10-18 20:16:30 -0400 | [diff] [blame] | 23 | API, as well as with the commit SHA-1 (at least the 7 first characters). |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 24 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 25 | == OPTIONS |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 26 | |
| 27 | --project:: |
| 28 | -p:: |
| 29 | Name of the project the intended change is contained within. This |
David Pursehouse | 2c6f638 | 2014-09-04 13:06:19 +0900 | [diff] [blame] | 30 | option must be supplied before Change-Id in order to take effect. |
Luca Milanesio | 0995aa7 | 2019-04-29 13:48:46 +0100 | [diff] [blame] | 31 | Please note that the project specified must be active. |
| 32 | |
| 33 | If omitted, the impacted changes can be from different projects and |
| 34 | the current user needs to be authorized to set reviewers to all of them. |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 35 | |
| 36 | --add:: |
| 37 | -a:: |
Edwin Kempin | 5e65d9b | 2011-07-08 07:35:48 +0200 | [diff] [blame] | 38 | A user that should be added as reviewer to the change or a group |
| 39 | for which all members should be added as reviewers to the change. |
| 40 | Multiple users and groups can be added at once as reviewers by |
| 41 | using this option multiple times. |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 42 | |
| 43 | --remove:: |
| 44 | -r:: |
Edwin Kempin | 5e65d9b | 2011-07-08 07:35:48 +0200 | [diff] [blame] | 45 | Remove this user from the reviewer list of the change. Multiple |
| 46 | users can be removed at once from the reviewer list by using this |
| 47 | option multiple times. |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 48 | |
| 49 | --help:: |
| 50 | -h:: |
| 51 | Display site-specific usage information |
| 52 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 53 | == ACCESS |
Gert van Dijk | dc4f8d1 | 2017-08-27 21:14:23 +0200 | [diff] [blame] | 54 | Any user who has SSH access to Gerrit. |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 55 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 56 | == SCRIPTING |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 57 | This command is intended to be used in scripts. |
| 58 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 59 | == EXAMPLES |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 60 | |
| 61 | Add reviewers alice and bob, but remove eve from change Iac6b2ac2. |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 62 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 63 | $ ssh -p 29418 review.example.com gerrit set-reviewers \ |
| 64 | -a alice@example.com -a bob@example.com \ |
| 65 | -r eve@example.com \ |
| 66 | Iac6b2ac2 |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 67 | ---- |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 68 | |
| 69 | Add reviewer elvis to old-style change id 1935 specifying that the change is in project "graceland" |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 70 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 71 | $ ssh -p 29418 review.example.com gerrit set-reviewers \ |
| 72 | --project graceland \ |
| 73 | -a elvis@example.com \ |
| 74 | 1935 |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 75 | ---- |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 76 | |
Edwin Kempin | 5e65d9b | 2011-07-08 07:35:48 +0200 | [diff] [blame] | 77 | Add all project owners as reviewers to change Iac6b2ac2. |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 78 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 79 | $ ssh -p 29418 review.example.com gerrit set-reviewers \ |
| 80 | -a "'Project Owners'" \ |
| 81 | Iac6b2ac2 |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 82 | ---- |
Edwin Kempin | 5e65d9b | 2011-07-08 07:35:48 +0200 | [diff] [blame] | 83 | |
Owen Li | 69e4ac2 | 2017-10-16 13:05:27 -0400 | [diff] [blame] | 84 | Add all project owners as reviewers to commit 13dff08acca571b22542ebd2e31acf4572ea0b86. |
| 85 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 86 | $ ssh -p 29418 review.example.com gerrit set-reviewers \ |
| 87 | -a "'Project Owners'" \ |
| 88 | 13dff08acca571b22542ebd2e31acf4572ea0b86 |
Owen Li | 69e4ac2 | 2017-10-16 13:05:27 -0400 | [diff] [blame] | 89 | ---- |
| 90 | |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 91 | GERRIT |
| 92 | ------ |
| 93 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 94 | |
| 95 | SEARCHBOX |
| 96 | --------- |