Skip to content

Danger plugin to link JIRA issues in a pull request - Supports GitHub and GitLab

License

Notifications You must be signed in to change notification settings

RestlessThinker/danger-jira

Repository files navigation

danger-jira

License Gem

A Danger plugin for that links JIRA issues to pull requests for both GitHub and GitLab. Inspired by danger-plugin-jira-issue

Installation

Add this line to your Gemfile:

gem 'danger-jira'

Usage

// 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
📖 📎 KEY-123

Generated by 🚫 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

About

Danger plugin to link JIRA issues in a pull request - Supports GitHub and GitLab

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages