blob: 764e326e7f32336d69be4783b93c6e4cb27609ed [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
Edwin Kempin9e972cc2016-04-15 10:39:13 +020032[[default-star]]
33== Default Star
34
35If the default star is set by a user, this user is automatically
36notified by email whenever updates are made to that change.
37
38The default star is the star that is shown in the WebUI and which can
39be updated from there.
40
41The default star is represented by the special star label 'star'.
42
Edwin Kempin77704302016-04-19 13:47:19 +020043[[ignore-star]]
44== Ignore Star
45
46If the ignore star is set by a user, this user gets no email
47notifications for updates of that change, even if this user is a
48reviewer of the change or the change is matched by a project watch of
49the user.
50
51Since changes can only be ignored once they are created, users that
52watch a project will always get the email notifications for the change
53creation. Only then the change can be ignored.
54
Edwin Kempin5822cb32017-03-10 10:52:04 +010055Users that are added as reviewer or assignee to a change that they have
56ignored will be notified about this, so that they know about the review
57request. They can then decide to remove the ignore star.
Edwin Kempin77704302016-04-19 13:47:19 +020058
59The ignore star is represented by the special star label 'ignore'.
60
Edwin Kempin9e972cc2016-04-15 10:39:13 +020061[[query-stars]]
62== Query Stars
63
64There are several query operators to find changes with stars:
65
Edwin Kempin9e972cc2016-04-15 10:39:13 +020066* link:user-search.html#is-starred[is:starred] /
67 link:user-search.html#has-star[has:star]:
68 Matches any change that was starred by the current user with the
69 link:#default-star[default star].
70
71[[syntax]]
72== Syntax
73
74Star labels cannot contain whitespace characters. All other characters
75are allowed.
76
77GERRIT
78------
79Part of link:index.html[Gerrit Code Review]
80
81SEARCHBOX
82---------