Skip to content

Conversation

apiraino
Copy link
Contributor

@apiraino apiraino commented Oct 21, 2025

Documentation for label aliases, see triagebot#2172.

Merge after that PR.

Rendered

@apiraino apiraino force-pushed the docs-for-label-aliases branch from 087035d to 10d4fbd Compare October 21, 2025 15:27
@apiraino apiraino force-pushed the docs-for-label-aliases branch from 10d4fbd to 427bedd Compare October 22, 2025 12:09
@apiraino apiraino marked this pull request as ready for review October 22, 2025 12:09
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 22, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 22, 2025

r? @Urgau

rustbot has assigned @Urgau.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Comment on lines +18 to +25
Labels are parsed from left to right and then applied by grouping *adding* labels and *removing* labels. Example:
```
# this command ...
@rustbot label +Alpaca -Bench -Carlo +Esteban +Dwight
# ... will be executed as:
@rustbot label +Alpaca +Esteban +Dwight -Bench -Carlo
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should explain what's happening with conflicting deltas. Maybe something like this.

Suggested change
Labels are parsed from left to right and then applied by grouping *adding* labels and *removing* labels. Example:
```
# this command ...
@rustbot label +Alpaca -Bench -Carlo +Esteban +Dwight
# ... will be executed as:
@rustbot label +Alpaca +Esteban +Dwight -Bench -Carlo
```
Labels are parsed and applied from left to right (canceling conflicting deltas). Example:
# this command ...
@rustbot label +Alpaca -Bench -Carlo +Esteban +Dwight +Bench
# ... will be executed as:
@rustbot label +Alpaca +Esteban +Dwight -Carlo

*(GitHub is being silly, I had to remove the backticks, don't apply-it from GitHub)

]
```

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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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:
### Aliases
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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants