Last active
July 6, 2017 14:55
-
-
Save ignasi35/489f0484b274c9cdca1c4f96629670cb to your computer and use it in GitHub Desktop.
Some bash magic to generate the changelogs for lagom.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change Dir (cd) into the branch you want to release. | |
# Set the value of "TAG='1.3.5'" to the latest tag in the branch you are releasing | |
# The script uses `git log --pretty=format:"" START_HASH..HEAD` to list all commits between the $TAG and HEAD | |
# The $TAG is converted into a HASH ID using `git show-ref --tags -d | grep "tags/$TAG^"\| awk -F\ '{print $1}'` | |
# Of the returned log messages we grep to keep only those that include "(#999)" via `grep "(#"` | |
# The output looks like: | |
# Warn when describeServices is overridden (#847) Tim Moore | |
# Fix typo (#845) Yuliana Apaza | |
# Update sbt-conductr version to 2.3.5 in docs (#843) Ignasi Marimon-Clos | |
# Travis injects values using env vars, not system props (#838) Ignasi Marimon-Clos | |
# Run whitesource in Travis CI (#821) Ignasi Marimon-Clos | |
# Issue #831, updated mentions of Production Suite to Enterprise Suite (#833) Ruth Stento | |
# And that's rewritten using `sed` into: | |
# * [847](https://github.com/lagom/lagom/issues/847) Warn when describeServices is overridden (Tim Moore) | |
# * [845](https://github.com/lagom/lagom/issues/845) Fix typo (Yuliana Apaza) | |
# * [843](https://github.com/lagom/lagom/issues/843) Update sbt-conductr version to 2.3.5 in docs (Ignasi Marimon-Clos) | |
# * [838](https://github.com/lagom/lagom/issues/838) Travis injects values using env vars, not system props (Ignasi Marimon-Clos) | |
# * [821](https://github.com/lagom/lagom/issues/821) Run whitesource in Travis CI (Ignasi Marimon-Clos) | |
# * [833](https://github.com/lagom/lagom/issues/833) Issue #831, updated mentions of Production Suite to Enterprise Suite (Ruth Stento) | |
# | |
$ TAG="1.3.5" ; git log --pretty=format:"%s %an" `git show-ref --tags -d | grep "tags/$TAG^"\| awk -F\ '{print $1}'`..HEAD | grep "(#" | sed 's/\([^(]*\)(#\(.*\)) \(.*\)/ \* [\2](https:\/\/github.com\/lagom\/lagom\/issues\/\2) \1(\3)/' | |
* [859](https://github.com/lagom/lagom/issues/859) Quote sbt.version in the sbt new command (AmeerGN) | |
* [849](https://github.com/lagom/lagom/issues/849) Update docs to use describeService (Tim Moore) | |
* [847](https://github.com/lagom/lagom/issues/847) Warn when describeServices is overridden (Tim Moore) | |
* [845](https://github.com/lagom/lagom/issues/845) Fix typo (Yuliana Apaza) | |
* [843](https://github.com/lagom/lagom/issues/843) Update sbt-conductr version to 2.3.5 in docs (Ignasi Marimon-Clos) | |
* [838](https://github.com/lagom/lagom/issues/838) Travis injects values using env vars, not system props (Ignasi Marimon-Clos) | |
* [821](https://github.com/lagom/lagom/issues/821) Run whitesource in Travis CI (Ignasi Marimon-Clos) | |
* [833](https://github.com/lagom/lagom/issues/833) Issue #831, updated mentions of Production Suite to Enterprise Suite (Ruth Stento) | |
* [830](https://github.com/lagom/lagom/issues/830) Fix support for overriding describeService (Tim Moore) | |
* [828](https://github.com/lagom/lagom/issues/828) Add "group: edge" to .travis.yml (Renato Cavalcanti) | |
* [823](https://github.com/lagom/lagom/issues/823) deprecate Descriptor#publishing (Elijah Rippeth) | |
* [818](https://github.com/lagom/lagom/issues/818) deprecate typo-infused public API by introducing preferred API. (Elijah Rippeth) | |
* [810](https://github.com/lagom/lagom/issues/810) Add awaits to CqrsIntegrationTest (Ignasi Marimon-Clos) | |
* [812](https://github.com/lagom/lagom/issues/812) fix link broken due to capitalisation (mihbor) | |
* [803](https://github.com/lagom/lagom/issues/803) Log project names with dependency problems (Tim Moore) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment