Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/triagebot/labeling.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Some examples of variants you can use:
* `@rustbot modify labels to +T-lang and -T-compiler`
* `@rustbot modify labels: +T-lang and -T-compiler`
* `@rustbot modify labels to +T-lang -T-compiler`
* `@rustbot labels "+good first issue"`

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

Expand All @@ -35,15 +36,20 @@ Formally the grammar is:
>    | `labels`
>
> label-list →\
>       *label-delta*\
> &nbsp;&nbsp; &nbsp;&nbsp; *label-delta*<sup>+</sup>\
> &nbsp;&nbsp; | *label-delta* `and` *label-list*\
> &nbsp;&nbsp; | *label-delta* `,` *label-list*\
> &nbsp;&nbsp; | *label-delta* `,` `and` *label-list*
>
> label-delta →\
> &nbsp;&nbsp; &nbsp;&nbsp; `+` *label*\
> &nbsp;&nbsp; | `-` *label*\
> &nbsp;&nbsp; | *label*
> &nbsp;&nbsp; | *label* \
> &nbsp;&nbsp; | `"` `+` *label-quoted* `"`\
> &nbsp;&nbsp; | `"` `-` *label-quoted* `"`\
> &nbsp;&nbsp; | `"` *label-quoted* `"`
>
> label-quoted → \[^"]*
>
> label → \[^.,:!?;\n() ]+

Expand Down Expand Up @@ -77,4 +83,4 @@ allow-unauthenticated = [

## Implementation

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