# danger-plugin-jira-issue

> Danger plugin to link JIRA issue in pull request

Latest version **1.4.1** (published 2018-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install danger-plugin-jira-issue
pnpm add danger-plugin-jira-issue
yarn add danger-plugin-jira-issue
bun add danger-plugin-jira-issue
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2018-10-12 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Macklin Underdown |
| Maintainers | macklinu |
| Keywords | danger, danger-plugin, jira |

## Links

- npm: https://www.npmjs.com/package/danger-plugin-jira-issue
- Repository: https://github.com/macklinu/danger-plugin-jira-issue
- Homepage: https://github.com/macklinu/danger-plugin-jira-issue#readme
- Issues: https://github.com/macklinu/danger-plugin-jira-issue/issues
- npm.io page: https://npm.io/package/danger-plugin-jira-issue

## Recent versions

- 1.4.1 (latest) — 2018-10-12
- 1.4.0 — 2018-10-04
- 1.3.0 — 2017-11-30
- 1.2.0 — 2017-09-20
- 1.1.0 — 2017-06-02
- 1.0.2 — 2017-05-17
- 1.0.1 — 2017-05-14
- 1.0.0 — 2017-05-12

## README

# danger-plugin-jira-issue

[![Build Status](https://travis-ci.org/macklinu/danger-plugin-jira-issue.svg?branch=master)](https://travis-ci.org/macklinu/danger-plugin-jira-issue)
[![npm version](https://badge.fury.io/js/danger-plugin-jira-issue.svg)](https://badge.fury.io/js/danger-plugin-jira-issue)

> [Danger](https://github.com/danger/danger-js) plugin to link JIRA issue in pull request

## Usage

Install:

```sh
yarn add danger-plugin-jira-issue --dev
```

At a glance:

```js
// dangerfile.js
import jiraIssue from "danger-plugin-jira-issue";

jiraIssue({
  key: "JIRA",
  url: "https://myjira.atlassian.net/browse",
  emoji: ":paperclip:",
  format(emoji, jiraUrls) {
    // Optional Formatter
    return "Some Custom Message";
  },
  location: "title" // Optional location, either 'title' or 'branch'
});
```

With JIRA-123 in the PR title, Danger will comment with:

<table>
  <thead>
    <tr>
      <th width="50"></th>
      <th width="100%" data-danger-table="true">Messages</th>
    </tr>
  </thead>
  <tbody><tr>
      <td>:book:</td>
      <td>:paperclip: <a href="https://myjira.atlassian.net/browse/JIRA-123">JIRA-123</a></td>
    </tr>
  </tbody>
</table>

<p align="right">
  Generated by :no_entry_sign: <a href="http://github.com/danger/danger-js/">dangerJS</a>
</p>

If you work with multiple JIRA project boards, you can supply multiple project keys:

```js
jiraIssue({
  key: ["ABC", "DEF"],
  url: "https://myjira.atlassian.net/browse"
});
```

This plugin will recognize issues starting with those keys (e.g. `ABC-123` and `DEF-234`).

## Changelog

See the GitHub [release history](https://github.com/macklinu/danger-plugin-jira-issue/releases).

## Development

Install [Yarn](https://yarnpkg.com/en/), and install the dependencies - `yarn install`.

Run the [Jest](https://facebook.github.io/jest/) test suite with `yarn test`.

This project uses [semantic-release](https://github.com/semantic-release/semantic-release) for automated NPM package publishing.

:heart:

---
_Source: https://npm.io/package/danger-plugin-jira-issue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
