Updated Release Process (markdown)

Alfonso Acosta
2016-06-15 14:39:09 +01:00
parent 38ab33be5e
commit 2d4e83b9e8
+4 -5
@@ -51,11 +51,10 @@ export GITHUB_TOKEN=xxx
# update latest_release tag in local clone
git fetch -t origin
# get merged PR titles
git log --oneline latest_release...HEAD | grep "Merge pull request"\
| awk '{issue=substr($5, 2)} \
{system("curl -s https://api.github.com/repos/weaveworks/scope/issues/" issue "'"?access_token=$GITHUB_TOKEN"' | jq \".title\"")} \
{print "\t["$5"](https://github.com/weaveworks/scope/pull/" issue ")"}'\
| sed -e 's/^"/- /' | sed -e 's/"$//'
git log --oneline latest_release...HEAD | \
sed -n -e 's%^.*Merge pull request #\([[:digit:]]*\) .*$%\1%p' -e 's%^.*(#\([[:digit:]]*\))$%\1%p' | \
xargs -I '{}' -- curl -s https://api.github.com/repos/weaveworks/scope/issues/{}?access_token=$GITHUB_TOKEN | \
jq -r '(.number | tostring) as $number | "- " + .title + "\n" + "\t[#" + $number + "](https://github.com/weaveworks/scope/pull/" + $number + ")"'
```
Then sort the lines by feature, bug fix, performance etc. sections.