Skip to content

Instantly share code, notes, and snippets.

@dgreda
Last active March 14, 2018 11:04
Show Gist options
  • Save dgreda/fa9f86f6600d3f89bddb7ea9060125a8 to your computer and use it in GitHub Desktop.
Save dgreda/fa9f86f6600d3f89bddb7ea9060125a8 to your computer and use it in GitHub Desktop.
Useful Bash Functions that you can add to your profile

Generating Release Notes as JIRA Links

function git-jira-links() {
  git log $1 | grep -Eo '([A-Z]{2,}-)([0-9]+)' | sort -u | awk '{ print "https://your.jira.domain/browse/"$1; }'
}

Usage example:

git-jira-links master..develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment