Skip to content

Commit 5106c7f

Browse files
author
Matthew Fisher
committed
Merge pull request #954 from deis/changelog-script
feat(contrib): add changelog generation script
2 parents 886551f + f3c60cc commit 5106c7f

3 files changed

Lines changed: 34 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## Change Log
2-
31
### v0.8.0 (2014/05/06 18:30 +00:00)
42
- [54ff9ca](https://github.com/deis/deis/commit/54ff9caaaaa2be20960afe41c883014a796b81b2) Updated CLI binaries and links in client README. (@mboersma)
53
- [4694844](https://github.com/deis/deis/commit/4694844e603583d2b0cee0fa0b4922a9857dc5d9) Switch master to v0.8.0. (@mboersma)
@@ -1460,4 +1458,4 @@
14601458
- [4ebd123](https://github.com/deis/deis/commit/4ebd123a1c37c539ea3e8a1909d4e5b422d8441c) standardize list and info cli output (@gabrtv)
14611459
- [abbc10a](https://github.com/deis/deis/commit/abbc10a2a0b6006353cc467cb87813293713c7df) fix flake8 line length (@gabrtv)
14621460
- [8834b94](https://github.com/deis/deis/commit/8834b946a99a40828a5e6ef01d06adab67e17e22) check for valid flavor on formations:create, add time-based done output #16 (@gabrtv)
1463-
- [72b8345](https://github.com/deis/deis/commit/72b8345ac6557a2c4707208a13a2c407478f740b) update in prep for 0.0.4 release (@gabrtv)
1461+
- [72b8345](https://github.com/deis/deis/commit/72b8345ac6557a2c4707208a13a2c407478f740b) update in prep for 0.0.4 release (@gabrtv)

contrib/util/generate-changelog.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
usage() {
4+
echo "Usage: $0 <from> [to]"
5+
}
6+
7+
retrieve() {
8+
git --no-pager log --oneline --no-merges --grep="$1" $FROM..$TO
9+
}
10+
11+
subheading() {
12+
echo "#### $1\n"
13+
retrieve "$2"
14+
echo
15+
}
16+
17+
FROM=$1
18+
TO=${2:-"HEAD"}
19+
20+
if [ -z $1 ];
21+
then
22+
usage
23+
exit 1
24+
fi
25+
26+
echo "### $FROM -> $TO\n"
27+
28+
subheading "Features" "feat("
29+
subheading "Fixes" "fix("
30+
subheading "Documentation" "docs("

docs/contributing/releases.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ github.com/deis/deis Repo
2323
- Move any `deis open issues`_ from the current release to the
2424
next milestone
2525
- Close the current `deis milestone`_
26-
- Recreate CHANGELOG.md in the root of the project using `github-changes`_
27-
* ``github-changes -o opdemand -r deis -n vX.Y.Z``
26+
- Recreate CHANGELOG.md in the root of the project using the `changelog script`_
27+
* ``./contrib/util/generate-changelog.sh v0.7.0 v0.8.0 | cat - CHANGELOG.md > tmp && mv tmp CHANGELOG.md``
2828
* proofread the new CHANGELOG.md to ensure it was generated correctly
2929
* ``git add CHANGELOG.md && git commit -m "Updated CHANGELOG.md."``
3030
- Merge git master into release branch locally
@@ -83,7 +83,7 @@ Documentation
8383

8484
.. _`deis milestone`: https://github.com/deis/deis/issues/milestones
8585
.. _`deis open issues`: https://github.com/deis/deis/issues?state=open
86-
.. _`github-changes`: https://lalitkapoor.github.io/github-changes/
86+
.. _`changelog script`: https://github.com/deis/deis/blob/master/contrib/util/generate-changelog.sh
8787
.. _`release notes`: https://github.com/deis/deis/releases
8888
.. _`aws-eng S3 bucket`: https://s3-us-west-2.amazonaws.com/opdemand/
8989
.. _`Deis Pypi`: https://pypi.python.org/pypi/deis/

0 commit comments

Comments
 (0)