jesusreal / jira-link-tickets-from-git-commits

Links all jira-issues found in git commits since a given git tag to a specified jira ticket. In our usecase, a release-ticket needs to be linked to every commited jira issue.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jira-link-tickets-from-git-commits

Links all jira-issues found in git commits since a given git tag to a specified jira ticket. In our usecase, a release-ticket needs to be linked to every commited jira issue.

Prerequisites: node 5+ and git 2.5+ must be available globally

Usage

# you may define your settings upfront, so you don't need to provide them
export JIRA_USER=youmail.whatever@mail.at
export JIRA_PASS=yoursecretpassword

# long format
./jira-commit-linker.js --tag v1.7.0 --path ../projectfolder --releaseissue FOO-2560
# short
./jira-commit-linker.js -t v1.7.0 -p ../projectfolder -r FOO-2560

Actions performed

  • read commits from local branch
  • grab all jira ticket numbers of the commit messages and make them unique
  • read current links of --releaseissue issue
  • create links for not yet linked tickets

Compatibility

developed and tested on mac os 10.10, git 2.5.4, node 5.10.1, npm 3.8.3

About

Links all jira-issues found in git commits since a given git tag to a specified jira ticket. In our usecase, a release-ticket needs to be linked to every commited jira issue.

License:MIT License


Languages

Language:JavaScript 100.0%