Martin Fick | 563a3e6 | 2015-04-02 13:37:53 -0600 | [diff] [blame] | 1 | = Gerrit Code Review - Named Destinations |
| 2 | |
Prudhvi Akhil Alahari | 01822da | 2023-07-17 17:00:38 +0530 | [diff] [blame] | 3 | [[user-or-group-named-destinations]] |
| 4 | == User Or Group Named Destinations |
| 5 | It is possible to define named destination sets on a user or group level. |
Martin Fick | 563a3e6 | 2015-04-02 13:37:53 -0600 | [diff] [blame] | 6 | To do this, define the named destination sets in files named after |
| 7 | each destination set in the `destinations` directory of the user's |
Prudhvi Akhil Alahari | 01822da | 2023-07-17 17:00:38 +0530 | [diff] [blame] | 8 | or group's account ref in the `All-Users` project. The user's account ref is |
| 9 | based on the user's account id which is an integer. The user account refs |
| 10 | are sharded by the last two digits (`+nn+`) in the refname, leading to refs |
| 11 | of the format `+refs/users/nn/accountid+`. Similarly, the group's ref is |
| 12 | based on the group id which is a UUID. The group refs are sharded |
| 13 | by the first 2 characters of the group UUID, leading to a refs of the |
| 14 | format `+refs/groups/cc/groupid+`. |
| 15 | |
| 16 | The destination files are a 2 column tab delimited file. Each |
Martin Fick | 563a3e6 | 2015-04-02 13:37:53 -0600 | [diff] [blame] | 17 | row in a destination file represents a single destination in the |
| 18 | named set. The left column represents the ref of the destination, |
| 19 | and the right column represents the project of the destination. |
Prudhvi Akhil Alahari | 02933c8 | 2020-10-15 23:25:07 +0530 | [diff] [blame] | 20 | The named destinations can be publicly accessible by other users. |
Martin Fick | 563a3e6 | 2015-04-02 13:37:53 -0600 | [diff] [blame] | 21 | |
| 22 | Example destination file named `destinations/myreviews`: |
| 23 | |
| 24 | ---- |
| 25 | # Ref Project |
| 26 | # |
| 27 | refs/heads/master gerrit |
| 28 | refs/heads/stable-2.11 gerrit |
| 29 | refs/heads/master plugins/cookbook-plugin |
| 30 | ---- |
| 31 | |
| 32 | GERRIT |
| 33 | ------ |
| 34 | Part of link:index.html[Gerrit Code Review] |
| 35 | |
| 36 | SEARCHBOX |
| 37 | --------- |