A Danger plugin for that links JIRA issues to pull requests. Inspired by danger-plugin-jira-issue
This Danger-Jira plugin works with gitlab and gitlab CI.
Add this line to your Gemfile:
gem 'danger-jira', :git => https://github.com/radimhalfar/danger-jira
or install it directly using
$ gem install specific_install
$ gem specific_install https://github.com/radimhalfar/danger-jira
// 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
)
With "KEY-123" in the PR title or PR body, Danger will comment with:
Messages | |
---|---|
📖 | 📎 KEY-123 |
Generated by 🚫 Danger
MIT