Skip to content

Instantly share code, notes, and snippets.

View nmcc's full-sized avatar

Nuno Caneco nmcc

  • Philip Morris International
  • Lisbon, Portugal
View GitHub Profile
@justinmklam
justinmklam / generate-changelog.sh
Last active February 6, 2020 06:41
Bash script to generate a changelog
#!/usr/bin/env bash
# Generates a changelog between tagged releases. Collects commits of pull requests, major, and bugfix tags
repository_url="https://bitbucket.org/MYPROJECT/MYREPO"
function generate_changelog() {
previous_tag=0
for current_tag in $(git tag --sort=-creatordate)
do
if [ "$previous_tag" != 0 ];then