You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/release/issue-triaging.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,10 @@ Triagebot needs to support `@rustbot label: xxx` usages terminated with a period
190
190
- Check existing labels to make sure you're not duplicating them.
191
191
- Discuss in <https://rust-lang.zulipchat.com/#narrow/channel/242269-t-release.2Ftriage/topic/New.20labels> if the new label may be non-conventional or controversial. Leave a comment about the new label as an FYI for others.
192
192
193
+
### Label aliases
194
+
195
+
Multiple labels can be added or removed in a single blow using *aliases*. Please visit the [relevant documentation][label-aliases] to learn more about aliases.
196
+
193
197
### Relnotes issues
194
198
195
199
Release note issues will currently come with `needs-triage` by default. The triage for relnotes is usually best done if you have sufficient context. Leave them as-is if you don't.
@@ -255,6 +259,7 @@ Another useful thing to do is to go through `E-needs-mcve` and `E-needs-bisectio
[^1]: The `O` in `O-*` labels originally stood for *operating system (OS)*.
260
265
[^2]: The `I` in `I-*` labels originally stood for *importance*. This makes the most sense for the `I-*-nominated` labels. For most `I-*` labels however it makes sense to interpret the `I` as *issue (kind)*.
The syntax for the command is somewhat flexible, supporting a few different forms to suit your pleasure.
19
29
Some examples of variants you can use:
20
30
@@ -81,6 +91,42 @@ allow-unauthenticated = [
81
91
]
82
92
```
83
93
94
+
### Aliases
95
+
96
+
The configuration also supports aliases, a single *word* that is expanded in a set of labels allowing setting multiple labels with a single command, useful when adding or removing the same set of labels over and over. To configure an alias, add to the triagebot the following item:
97
+
```toml
98
+
[relabel.alias-name]
99
+
add-labels = ["Foo", "Bar"]
100
+
rem-labels = ["Baz"]
101
+
```
102
+
103
+
`add-labels` and `rem-labels` and arrays of labels that the alias will expand to. For example, given the above configuration:
104
+
```
105
+
# the command
106
+
@rustbot label alias-name
107
+
108
+
# translates to
109
+
@rustbot label +Foo +Bar -Baz
110
+
```
111
+
112
+
Aliases can also be *negative*, inverting the effect:
113
+
```
114
+
# this command
115
+
@rustbot label -alias-name
116
+
117
+
# translates to
118
+
@rustbot label +Baz -Foo -Bar
119
+
```
120
+
121
+
You can also mix labels and aliases. Self-canceling labels will be omitted:
122
+
```
123
+
# this command
124
+
@rustbot label alias-name +Baz
125
+
126
+
# translates to:
127
+
@rustbot label +Foo +Bar
128
+
```
129
+
84
130
## Implementation
85
131
86
132
See [`src/handlers/relabel.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/relabel.rs).
0 commit comments