Skip to content

Instantly share code, notes, and snippets.

@tvervest
Created December 5, 2017 09:55
Show Gist options
  • Save tvervest/bd311ce8238b44216c2bbfebe6829092 to your computer and use it in GitHub Desktop.
Save tvervest/bd311ce8238b44216c2bbfebe6829092 to your computer and use it in GitHub Desktop.
A one-liner to extract JIRA ticket numbers for a specific release tag. Based on the script from step 5 from 6 steps to better release management in Jira Software (https://www.atlassian.com/blog/jira-software/jira-release-management-steps), with the addition of a requirements for tickets to be merged from the feature branch.
git log <tag> --pretty=oneline | perl -ne '{ /feature\/(\w+)-(\d+)/ && print "$1-$2\n" }' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment