Skip to content

Commit 648ca18

Browse files
authored
Merge pull request #849 from Urgau/relabel-fixes
Add documentation about quoted labels
2 parents 496bf22 + e347ee5 commit 648ca18

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/triagebot/labeling.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Some examples of variants you can use:
2323
* `@rustbot modify labels to +T-lang and -T-compiler`
2424
* `@rustbot modify labels: +T-lang and -T-compiler`
2525
* `@rustbot modify labels to +T-lang -T-compiler`
26+
* `@rustbot labels "+good first issue"`
2627

2728
The command can be terminated with a `.`, `;`, or the end of the line.
2829

@@ -35,15 +36,20 @@ Formally the grammar is:
3536
>    | `labels`
3637
>
3738
> label-list →\
38-
>       *label-delta*\
39+
> &nbsp;&nbsp; &nbsp;&nbsp; *label-delta*<sup>+</sup>\
3940
> &nbsp;&nbsp; | *label-delta* `and` *label-list*\
4041
> &nbsp;&nbsp; | *label-delta* `,` *label-list*\
4142
> &nbsp;&nbsp; | *label-delta* `,` `and` *label-list*
4243
>
4344
> label-delta →\
4445
> &nbsp;&nbsp; &nbsp;&nbsp; `+` *label*\
4546
> &nbsp;&nbsp; | `-` *label*\
46-
> &nbsp;&nbsp; | *label*
47+
> &nbsp;&nbsp; | *label* \
48+
> &nbsp;&nbsp; | `"` `+` *label-quoted* `"`\
49+
> &nbsp;&nbsp; | `"` `-` *label-quoted* `"`\
50+
> &nbsp;&nbsp; | `"` *label-quoted* `"`
51+
>
52+
> label-quoted → \[^"]*
4753
>
4854
> label → \[^.,:!?;\n() ]+
4955
@@ -77,4 +83,4 @@ allow-unauthenticated = [
7783

7884
## Implementation
7985

80-
See [`src/handlers/autolabel.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/autolabel.rs).
86+
See [`src/handlers/relabel.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/relabel.rs).

0 commit comments

Comments
 (0)