Skip to content

Instantly share code, notes, and snippets.

@trivoallan
Forked from gmacaire/gitflow-release-helper
Created February 10, 2011 20:26
Show Gist options
  • Select an option

  • Save trivoallan/821258 to your computer and use it in GitHub Desktop.

Select an option

Save trivoallan/821258 to your computer and use it in GitHub Desktop.
#!/bin/sh
VERSION=0.1.1-rc2
ENVIRONMENT=preproduction
PROJECT=robusto
[email protected]
git remote update
git checkout develop && git pull origin develop
git checkout master && git pull origin master
git flow release start $VERSION
echo "[$ENVIRONMENT] [$PROJECT] [$VERSION] Début de la livraison..."
git log --pretty --numstat --summary release/$VERSION..master | ~/Applications/git2cl
mail --subject="[$ENVIRONMENT] [$PROJECT] [$VERSION] Début de la livraison..." $EMAIL < `git log --pretty --numstat --summary release/$VERSION..master | ~/Applications/git2cl`
# preprend changelog with newest changes
cat git log --pretty --numstat --summary release/$VERSION..master | ~/Applications/git2cl > changes.new.tmp
cat changes.new.tmp Changelog > Changelog.new
mv Changelog.new Changelog
rm changes.new.tmp
git add Changelog
git commit -m "[] [release] Updated changelog"
git flow release finish $VERSION
git push --tags origin develop master
@trivoallan
Copy link
Copy Markdown
Author

Tentative log generation using branches instead of tags.

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