All Projects → kaelaela → danger-auto_label

kaelaela / danger-auto_label

Licence: MIT License
Enable to set label automatically from Danger. This is made from Danger plugin.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to danger-auto label

danger-plugin-flow
Ensure all JS files that get touched in a PR are flow typed
Stars: ✭ 23 (+53.33%)
Mutual labels:  danger, danger-plugin
danger-plugin-lint-report
No description or website provided.
Stars: ✭ 17 (+13.33%)
Mutual labels:  danger, danger-plugin
danger-swift-xcodesummary
A Danger-Swift plugin that adds build errors, warnings and unit tests results generated from xcodebuild to your Danger report
Stars: ✭ 72 (+380%)
Mutual labels:  danger, danger-plugin
danger-eslint
A Danger plugin for linting javascript with eslint.
Stars: ✭ 13 (-13.33%)
Mutual labels:  danger, danger-plugin
danger-mention
Danger plugin to automatically mention potential reviewers on pull requests
Stars: ✭ 29 (+93.33%)
Mutual labels:  danger, danger-plugin
danger-flutter lint
A Danger Plugin to lint dart files using flutter analyze command line interface.
Stars: ✭ 28 (+86.67%)
Mutual labels:  danger, danger-plugin
help-me
When there's none to go to. In times of danger or trouble, there is nowhere to seek help from. Help-me comes with an innovative solution to the above problem. It will automatically send notifications to your nearby people and it will be the moral duty of the people to help the person in danger.
Stars: ✭ 20 (+33.33%)
Mutual labels:  danger
detekt-hint
Detection of design principle violations in Kotlin as a plugin to detekt.
Stars: ✭ 63 (+320%)
Mutual labels:  danger
danger-action
Execute danger action for GitHub Actions.
Stars: ✭ 24 (+60%)
Mutual labels:  danger
Danger
🚫 Stop saying "you forgot to …" in code review (in Ruby)
Stars: ✭ 4,691 (+31173.33%)
Mutual labels:  danger
Danger Js
⚠️ Stop saying "you forgot to …" in code review
Stars: ✭ 4,076 (+27073.33%)
Mutual labels:  danger

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") 
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].