Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    danger-plugin-jira-issuepublic

    danger-plugin-jira-issue

    Build Status npm version semantic-release Greenkeeper badge

    Danger plugin to link JIRA issue in pull request

    Usage

    Install:

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

    At a glance:

    // 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'; 
      }
    })

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

    Messages
    :book: :paperclip: JIRA-123

    Generated by :no_entry_sign: dangerJS

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

    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).

    See the documentation for detailed information.

    Changelog

    See the GitHub release history.

    Development

    Install Yarn, and install the dependencies - yarn install.

    Run the Jest test suite with yarn test.

    This project uses semantic-release for automated NPM package publishing.

    The main caveat: instead of running git commit, run yarn commit and follow the prompts to input a conventional changelog message via commitizen.

    ❤️

    install

    npm i danger-plugin-jira-issue

    Downloadsweekly downloads

    294

    version

    1.3.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar