Edwin Kempin | 33e92d0 | 2011-07-11 22:00:57 +0200 | [diff] [blame] | 1 | gerrit set-reviewers |
Conley Owens | 3f41a0a | 2011-08-03 14:59:04 -0700 | [diff] [blame] | 2 | ==================== |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Edwin Kempin | 33e92d0 | 2011-07-11 22:00:57 +0200 | [diff] [blame] | 6 | gerrit set-reviewers - Add or remove reviewers to a change |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
Edwin Kempin | 33e92d0 | 2011-07-11 22:00:57 +0200 | [diff] [blame] | 11 | 'ssh' -p <port> <host> 'gerrit set-reviewers' |
Edwin Kempin | 73b2698 | 2012-07-16 13:53:22 +0200 | [diff] [blame] | 12 | [--project <PROJECT> | -p <PROJECT>] |
| 13 | [--add <REVIEWER> ... | -a <REVIEWER> ...] |
| 14 | [--remove <REVIEWER> ... | -r <REVIEWER> ...] |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 15 | [--] |
| 16 | {COMMIT | CHANGE-ID}... |
| 17 | |
| 18 | DESCRIPTION |
| 19 | ----------- |
| 20 | Adds or removes reviewers to the specified change, sending email |
| 21 | notifications when changes are made. |
| 22 | |
| 23 | Changes should be specified as complete or abbreviated Change-Ids |
| 24 | such as 'Iac6b2ac2'. They may also be specified by numeric change |
| 25 | identifiers, such as '8242' or by complete or abbreviated commit |
| 26 | SHA-1s. |
| 27 | |
| 28 | OPTIONS |
| 29 | ------- |
| 30 | |
| 31 | --project:: |
| 32 | -p:: |
| 33 | Name of the project the intended change is contained within. This |
| 34 | option must be supplied before Change-ID in order to take effect. |
| 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 | |
| 53 | ACCESS |
| 54 | ------ |
| 55 | Any user who has configured an SSH key. |
| 56 | |
| 57 | SCRIPTING |
| 58 | --------- |
| 59 | This command is intended to be used in scripts. |
| 60 | |
| 61 | EXAMPLES |
| 62 | -------- |
| 63 | |
| 64 | Add reviewers alice and bob, but remove eve from change Iac6b2ac2. |
| 65 | ===== |
Edwin Kempin | 33e92d0 | 2011-07-11 22:00:57 +0200 | [diff] [blame] | 66 | $ ssh -p 29418 review.example.com gerrit set-reviewers \ |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 67 | -a alice@example.com -a bob@example.com \ |
| 68 | -r eve@example.com \ |
| 69 | Iac6b2ac2 |
| 70 | ===== |
| 71 | |
| 72 | Add reviewer elvis to old-style change id 1935 specifying that the change is in project "graceland" |
| 73 | ===== |
Edwin Kempin | 33e92d0 | 2011-07-11 22:00:57 +0200 | [diff] [blame] | 74 | $ ssh -p 29418 review.example.com gerrit set-reviewers \ |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 75 | --project graceland \ |
| 76 | -a elvis@example.com \ |
| 77 | 1935 |
| 78 | ===== |
| 79 | |
Edwin Kempin | 5e65d9b | 2011-07-08 07:35:48 +0200 | [diff] [blame] | 80 | Add all project owners as reviewers to change Iac6b2ac2. |
| 81 | ===== |
Edwin Kempin | 33e92d0 | 2011-07-11 22:00:57 +0200 | [diff] [blame] | 82 | $ ssh -p 29418 review.example.com gerrit set-reviewers \ |
Edwin Kempin | 5e65d9b | 2011-07-08 07:35:48 +0200 | [diff] [blame] | 83 | -a "'Project Owners'" \ |
| 84 | Iac6b2ac2 |
| 85 | ===== |
| 86 | |
Conley Owens | f3ea0ab | 2011-06-10 11:34:34 -0700 | [diff] [blame] | 87 | GERRIT |
| 88 | ------ |
| 89 | Part of link:index.html[Gerrit Code Review] |