blob: a83ad449eedffc4ad6183cf851ca9fc5f5eeb9f9 [file] [log] [blame]
Edwin Kempin9e972cc2016-04-15 10:39:13 +02001= Gerrit Code Review - Stars
2
3== Description
4
5Changes can be starred with labels that behave like private hashtags.
6Any label can be applied to a change, but these labels are only visible
7to the user for which the labels have been set.
8
9Stars allow users to categorize changes by self-defined criteria and
10then build link:user-dashboards.html[dashboards] for them by making use
11of the link:#query-stars[star query operators].
12
13[[star-api]]
14== Star API
15
16The link:rest-api-accounts.html#star-endpoints[star REST API] supports:
17
18* link:rest-api-accounts.html#get-stars[
19 get star labels from a change]
20* link:rest-api-accounts.html#set-stars[
21 update star labels on a change]
22* link:rest-api-accounts.html#get-starred-changes[
23 list changes that are starred by any label]
24
25Star labels are also included in
26link:rest-api-changes.html#change-info[ChangeInfo] entities that are
27returned by the link:rest-api-changes.html[changes REST API].
28
29There are link:rest-api-accounts.html#default-star-endpoints[
30additional REST endpoints] for the link:#default-star[default star].
31
David Pursehousea61ee502016-09-06 16:27:09 +090032Only the link:#default-star[default star] is shown in the WebUI and
33can be updated from there. Other stars do not show up in the WebUI.
Edwin Kempin9e972cc2016-04-15 10:39:13 +020034
35[[default-star]]
36== Default Star
37
38If the default star is set by a user, this user is automatically
39notified by email whenever updates are made to that change.
40
41The default star is the star that is shown in the WebUI and which can
42be updated from there.
43
44The default star is represented by the special star label 'star'.
45
Edwin Kempin77704302016-04-19 13:47:19 +020046[[ignore-star]]
47== Ignore Star
48
49If the ignore star is set by a user, this user gets no email
50notifications for updates of that change, even if this user is a
51reviewer of the change or the change is matched by a project watch of
52the user.
53
54Since changes can only be ignored once they are created, users that
55watch a project will always get the email notifications for the change
56creation. Only then the change can be ignored.
57
Edwin Kempin5822cb32017-03-10 10:52:04 +010058Users that are added as reviewer or assignee to a change that they have
59ignored will be notified about this, so that they know about the review
60request. They can then decide to remove the ignore star.
Edwin Kempin77704302016-04-19 13:47:19 +020061
62The ignore star is represented by the special star label 'ignore'.
63
Edwin Kempinceb673e2017-10-01 12:29:05 +020064[[reviewed-star]]
65== Reviewed Star
66
67If the "reviewed/<patchset_id>"-star is set by a user, and <patchset_id>
68matches the current patch set, the change is always reported as "reviewed"
69in the ChangeInfo.
70
71This allows users to "de-highlight" changes in a dashboard until a new
72patchset has been uploaded.
73
74[[unreviewed-star]]
75== Unreviewed Star
76
77If the "unreviewed/<patchset_id>"-star is set by a user, and <patchset_id>
78matches the current patch set, the change is always reported as "unreviewed"
79in the ChangeInfo.
80
81This allows users to "highlight" changes in a dashboard.
82
Edwin Kempin9e972cc2016-04-15 10:39:13 +020083[[query-stars]]
84== Query Stars
85
86There are several query operators to find changes with stars:
87
88* link:user-search.html#star[star:<LABEL>]:
89 Matches any change that was starred by the current user with the
90 label `<LABEL>`.
91* link:user-search.html#has-stars[has:stars]:
92 Matches any change that was starred by the current user with any
93 label.
94* link:user-search.html#is-starred[is:starred] /
95 link:user-search.html#has-star[has:star]:
96 Matches any change that was starred by the current user with the
97 link:#default-star[default star].
98
99[[syntax]]
100== Syntax
101
102Star labels cannot contain whitespace characters. All other characters
103are allowed.
104
105GERRIT
106------
107Part of link:index.html[Gerrit Code Review]
108
109SEARCHBOX
110---------