Label command
This responder defines a custom command to add and/or remove labels to the issue when invoked.
Listens to
@botname <command>
For example, if you configure the command to be review successful, it would respond to:
@botname review successful
Settings key
label_command
Params
- command:
The command this responder will listen to.
- add_labels:
<Array> A list of text labels to add to the issue.
- remove_labels:
<Array> A list of text labels to remove from the labels of the issue.
Examples
Simplest use case:
Just add a label.
...
responders:
label_command:
command: review successful
add_labels:
- recommend publication
...
Multiple instances of the responder, restricted to editors, adding and removing labels:
...
responders:
label_command:
- review_ok:
only: editors
command: review successful
add_labels:
- reviewed
- recommend publication
- pending publication
remove_labels:
- ongoing
- pending review
- review_nok:
only: editors
command: review failed
add_labels:
- recommend rejection
...