No release in over 3 years
Low commit activity in last 3 years
A simple auto labeler for issue or PR. Made by Danger plugin.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 2.14
= 3.0.7
>= 0
~> 10.0
~> 3.4
~> 0.52
~> 0.9.12

Runtime

 Project Readme

A Danger plugin. (RubyGems)

danger-auto_label

No more set label to issue or pull request manually.
Example, you can set labels simply by changing the PR title.

sample

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.

# Add "WIP" label to this Pull Request
pr_number = github.pr_json["number"]
auto_label.wip=(pr_number) 

set - Set any labels to PR by this.

# Add "Orange Label" with orange color to this Pull Request
# Note: will create label if it does not exist
pr_number = github.pr_json["number"]
auto_label.set(pr_number, "Orange Label", "ff8800") 

delete - Delete any labels from repository.

# Remove "Orange Label" from this Repository (use with caution!)
auto_label.delete("Orange Label") 

remove - Remove any labels from PR.

# Remove "Orange Label" from this Pull Request
auto_label.remove("Orange Label")