danger-auto_label
No more set label to issue or pull request manually.
Example, you can set labels simply by changing the PR title.
Usage
Very simple usage.
First, install gem.
$ gem install danger-auto_label
Set wip label automatically when the PR title contains '[WIP]'.
if github.pr_title.include? "[WIP]"
auto_label.wip=(github.pr_json["number"])
else
auto_label.remove("WIP")
# If you want to delete label
# auto_label.delete("WIP")
end
Methods
wip=
- Set WIP label to PR.
set
- Set any labels to PR by this.
delete
- Delete any labels from repository.
remove
- Remove any labels from PR.