Skip to content

Conversation

@apiraino
Copy link
Contributor

Note

This is the fixed version of 154a7e7

Configure relabel command aliases from the triagebot.toml. When a valid alias is parsed, it will be replaced with the labels configured.

Example configuration:

[relabel.cmd-alias]
add-labels = ["Foo", "Bar"]
rem-labels = ["Baz"]

The command @rustbot label cmd-alias translates to:

@rustbot label +Foo +Bar -Baz

The command @rustbot label -cmd-alias translates to:

@rustbot label +Baz -Foo -Bar

Note: self-canceling labels will be omitted.
The command @rustbot label cmd-alias +Baz translates to:

@rustbot label +Foo +Bar

r? @Urgau

Copy link
Member

@Urgau Urgau left a comment

Choose a reason for hiding this comment

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

Looks good to me. Feel free to merge with or without the nit.

View changes since this review

Configure relabel command aliases from the `triagebot.toml`.
When a valid alias is parsed, it will be replaced with the labels configured.

Example configuration:
```
[relabel.cmd-alias]
add-labels = ["Foo", "Bar"]
rem-labels = ["Baz"]
```

The command `@rustbot label cmd-alias` translates to:
```
@rustbot label +Foo +Bar -Baz
```

The command `@rustbot label -cmd-alias` translates to:
```
@rustbot label +Baz -Foo -Bar
```

Note: self-canceling labels will be omitted.
The command `@rustbot label cmd-alias +Baz` translates to:
```
@rustbot label +Foo +Bar
```

Signed-off-by: apiraino <[email protected]>
@apiraino apiraino force-pushed the alias-for-compound-labels-take2 branch from f7766ac to 83c13b0 Compare October 30, 2025 15:07
@apiraino apiraino enabled auto-merge October 30, 2025 15:07
@apiraino apiraino added this pull request to the merge queue Oct 30, 2025
Merged via the queue into rust-lang:master with commit 30acfc2 Oct 30, 2025
3 checks passed
@apiraino apiraino deleted the alias-for-compound-labels-take2 branch October 30, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants