Skip to content

Instantly share code, notes, and snippets.

@itayw
Created November 28, 2017 07:05
Show Gist options
  • Save itayw/9535792b4ec0f533a75f6d02795f3764 to your computer and use it in GitHub Desktop.
Save itayw/9535792b4ec0f533a75f6d02795f3764 to your computer and use it in GitHub Desktop.
Generate release notes
#! /bin/bash
set -e
set -x
IFS='.' read -a myarray <<< "$CIRCLE_TAG"
CIRCLE_TAG_MAJOR=${myarray[0]}
CIRCLE_TAG_MINOR=${myarray[0]}.${myarray[1]}
echo Major $CIRCLE_TAG_MAJOR
echo Minor $CIRCLE_TAG_MINOR
echo Build $CIRCLE_TAG
echo $pwd
LAST_TAG=$(git describe --abbrev=0 --tags)
git log $LAST_TAG..$CIRCLE_TAG_MINOR --merges --oneline >> merges.md
git log $LAST_TAG..$CIRCLE_TAG_MINOR --oneline >> changes.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment