Skip to content
Martin Fischer edited this page Dec 13, 2021 · 9 revisions

This bot allows anyone to apply certain labels to issues.

The specific grammar can be found in https://github.com/rust-lang/triagebot/blob/master/parser/src/command/relabel.rs, but some examples are listed below. The grammar is intended to be fairly intuitive for people, to prevent needing to reach for documentation when using the bot.

@rustbot label: +T-lang -T-compiler

This will remove the T-compiler label and add the T-lang label. You can also omit the + sign, if you want, and it'll be implied. You can also omit the colon.

You can also write the same command in a few other ways:

@rustbot label: +T-lang, -T-compiler
@rustbot label: +T-lang and -T-compiler

You may also see @rustbot modify labels used instead of @rustbot label -- they are equivalent.

Note that the command can either terminate with a . or a newline -- otherwise, the bot will not parse the command successfully.

Errors

The bot currently restricts the labels that can be applied by people outside the Rust teams. For example, they can't add the I-unsound label. Most of the time, you shouldn't hit this. Feel free to ping the release team if you feel that a label should be added to the set of allowed labels!

Enabling

[relabel]
# any label is allowed to be set by team members (anyone on a team in rust-lang/team)
# but these can be set by anyone in the world
allow-unauthenticated = [
    "C-*", # any C- prefixed label will be allowed for anyone, independent of authorization with rust-lang/team
    "!C-bug", # but not C-bug (order does not matter)
]
Clone this wiki locally