Sha256: f2b0df7ef99f6ab4634c9c71f37cd6bdd5bdb3631f80e28a4c4c34713de5e06a

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

A [Danger](http://danger.systems/ruby/) plugin. ([RubyGems](https://rubygems.org/gems/danger-auto_label))

### 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](gif/sample.gif)

### Usage

Very simple usage.  

First, install gem.

```
$ gem install danger-auto_label
```

Set wip label automatically when the PR title contains '[WIP]'.

```sample.rb
  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.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
danger-auto_label-1.3.1 README.md
danger-auto_label-1.3.0 README.md