Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RestlessThinker/danger-jira
Danger plugin to link JIRA issues in a pull request - Supports GitHub and GitLab
https://github.com/RestlessThinker/danger-jira
Last synced: about 1 month ago
JSON representation
Danger plugin to link JIRA issues in a pull request - Supports GitHub and GitLab
- Host: GitHub
- URL: https://github.com/RestlessThinker/danger-jira
- Owner: RestlessThinker
- License: mit
- Created: 2017-10-14T12:06:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T14:50:08.000Z (about 1 year ago)
- Last Synced: 2024-07-03T02:59:04.241Z (6 months ago)
- Language: Ruby
- Homepage:
- Size: 40 KB
- Stars: 16
- Watchers: 2
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-danger - danger-jira - Danger plugin to link JIRA issues in a pull request. (Plugins / Ruby (danger))
README
# 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 for both GitHub and GitLab. 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,
search_branch: false,
search_body: false,
fail_on_warning: false,
report_missing: true,
skippable: 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 if `no-jira` is provided on the PR title, description or commits. `nojira` is also allowed on branch names.
## License
MIT