# danger-jira [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE.txt) [![Gem](https://img.shields.io/gem/v/danger-jira.svg?style=flat)](https://rubygems.org/gems/danger-jira) A [Danger](https://github.com/danger/danger) plugin for that links JIRA issues to pull requests. Inspired by [danger-plugin-jira-issue](https://github.com/macklinu/danger-plugin-jira-issue) ## Installation Add this line to your Gemfile: ```rb gem 'danger-jira' ``` ## Usage ```ruby // Dangerfile jira.check( key: ["KEY", "PM"], url: "https://myjira.atlassian.net/browse", search_title: true, search_commits: false, fail_on_warning: false, report_missing: true, skipabble: true ) ``` With "KEY-123" in the PR title or PR body, Danger will comment with:
Messages | |
---|---|
:book: | :paperclip: KEY-123 |
Generated by :no_entry_sign: Danger
## Skipping You can skip danger checking for a JIRA issue by having `[no-jira]` in your title or PR body. ## License MIT