Skip to content

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

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]
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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published