blob: 79f7651f53c852478ad93d106c00c3619f6dcd6c [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit set-reviewers
Conley Owensf3ea0ab2011-06-10 11:34:34 -07002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
Edwin Kempin33e92d02011-07-11 22:00:57 +02004gerrit set-reviewers - Add or remove reviewers to a change
Conley Owensf3ea0ab2011-06-10 11:34:34 -07005
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08007--
Edwin Kempin33e92d02011-07-11 22:00:57 +02008'ssh' -p <port> <host> 'gerrit set-reviewers'
Edwin Kempin73b26982012-07-16 13:53:22 +02009 [--project <PROJECT> | -p <PROJECT>]
10 [--add <REVIEWER> ... | -a <REVIEWER> ...]
11 [--remove <REVIEWER> ... | -r <REVIEWER> ...]
Conley Owensf3ea0ab2011-06-10 11:34:34 -070012 [--]
13 {COMMIT | CHANGE-ID}...
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080014--
Conley Owensf3ea0ab2011-06-10 11:34:34 -070015
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080016== DESCRIPTION
Conley Owensf3ea0ab2011-06-10 11:34:34 -070017Adds or removes reviewers to the specified change, sending email
18notifications when changes are made.
19
20Changes should be specified as complete or abbreviated Change-Ids
21such as 'Iac6b2ac2'. They may also be specified by numeric change
22identifiers, such as '8242' or by complete or abbreviated commit
23SHA-1s.
24
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080025== OPTIONS
Conley Owensf3ea0ab2011-06-10 11:34:34 -070026
27--project::
28-p::
29 Name of the project the intended change is contained within. This
David Pursehouse2c6f6382014-09-04 13:06:19 +090030 option must be supplied before Change-Id in order to take effect.
Conley Owensf3ea0ab2011-06-10 11:34:34 -070031
32--add::
33-a::
Edwin Kempin5e65d9b2011-07-08 07:35:48 +020034 A user that should be added as reviewer to the change or a group
35 for which all members should be added as reviewers to the change.
36 Multiple users and groups can be added at once as reviewers by
37 using this option multiple times.
Conley Owensf3ea0ab2011-06-10 11:34:34 -070038
39--remove::
40-r::
Edwin Kempin5e65d9b2011-07-08 07:35:48 +020041 Remove this user from the reviewer list of the change. Multiple
42 users can be removed at once from the reviewer list by using this
43 option multiple times.
Conley Owensf3ea0ab2011-06-10 11:34:34 -070044
45--help::
46-h::
47 Display site-specific usage information
48
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080049== ACCESS
Conley Owensf3ea0ab2011-06-10 11:34:34 -070050Any user who has configured an SSH key.
51
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080052== SCRIPTING
Conley Owensf3ea0ab2011-06-10 11:34:34 -070053This command is intended to be used in scripts.
54
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080055== EXAMPLES
Conley Owensf3ea0ab2011-06-10 11:34:34 -070056
57Add reviewers alice and bob, but remove eve from change Iac6b2ac2.
58=====
Edwin Kempin33e92d02011-07-11 22:00:57 +020059 $ ssh -p 29418 review.example.com gerrit set-reviewers \
Conley Owensf3ea0ab2011-06-10 11:34:34 -070060 -a alice@example.com -a bob@example.com \
61 -r eve@example.com \
62 Iac6b2ac2
63=====
64
65Add reviewer elvis to old-style change id 1935 specifying that the change is in project "graceland"
66=====
Edwin Kempin33e92d02011-07-11 22:00:57 +020067 $ ssh -p 29418 review.example.com gerrit set-reviewers \
Conley Owensf3ea0ab2011-06-10 11:34:34 -070068 --project graceland \
69 -a elvis@example.com \
70 1935
71=====
72
Edwin Kempin5e65d9b2011-07-08 07:35:48 +020073Add all project owners as reviewers to change Iac6b2ac2.
74=====
Edwin Kempin33e92d02011-07-11 22:00:57 +020075 $ ssh -p 29418 review.example.com gerrit set-reviewers \
Edwin Kempin5e65d9b2011-07-08 07:35:48 +020076 -a "'Project Owners'" \
77 Iac6b2ac2
78=====
79
Conley Owensf3ea0ab2011-06-10 11:34:34 -070080GERRIT
81------
82Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070083
84SEARCHBOX
85---------