Skip to content

Commit 142395b

Browse files
Merge pull request #13 from christopherhein/chore/redo-changelog
Adding CHANGELOG in markdown
2 parents 4673797 + e1153ff commit 142395b

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

CHANGELOG.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
# CHANGELOG
22

33
<!-- START v0.0.1 -->
4-
<h2>v0.0.1</h2>
4+
## v0.0.1
55

6-
<li> <a href="http://github.com/christopherhein/go-version/commit/23afefc9d33c7fe374b828795a9a7667714a720c">view commit &bull;</a> Initial Commit</li>
7-
<li> <a href="http://github.com/christopherhein/go-version/commit/74881aa77393db20d6773ad61e79982142a95dc5">view commit &bull;</a> Adding a CONTRIBUTING guidelines</li>
8-
<li> <a href="http://github.com/christopherhein/go-version/commit/40cb0851e0ba63cb63844b1a30ce5087c0b5abba">view commit &bull;</a> Adding Support for Empty Values</li>
9-
<li> <a href="http://github.com/christopherhein/go-version/commit/812a3b5e32acb9effed36765ee30f96295003288">view commit &bull;</a> Adding tests and using new gopath domain</li>
6+
* [view commit](http://github.com/christopherhein/go-version/commit/23afefc9d33c7fe374b828795a9a7667714a720c) Initial Commit
7+
* [view commit](http://github.com/christopherhein/go-version/commit/74881aa77393db20d6773ad61e79982142a95dc5) Adding a CONTRIBUTING guidelines
8+
* [view commit](http://github.com/christopherhein/go-version/commit/40cb0851e0ba63cb63844b1a30ce5087c0b5abba) Adding Support for Empty Values
9+
* [view commit](http://github.com/christopherhein/go-version/commit/812a3b5e32acb9effed36765ee30f96295003288) Adding tests and using new gopath domain
1010
<!-- END v0.0.1 -->
1111

1212
<!-- START v0.0.2 -->
13-
<h2>v0.0.2</h2>
13+
## v0.0.2
1414

15-
<li> <a href="http://github.com/christopherhein/go-version/commit/081d4af106f494175ca14564c74c1e69bb52cf57">view commit &bull;</a> adding import path comment</li>
16-
<li> <a href="http://github.com/christopherhein/go-version/commit/621eb71f28ce57ed6b96a8fd3263c660b7a67d08">view commit &bull;</a> adding version subcommand func</li>
17-
<li> <a href="http://github.com/christopherhein/go-version/commit/be514ca4251048d7b23c3adb65d8e52adae8048f">view commit &bull;</a> adding example</li>
18-
<li> <a href="http://github.com/christopherhein/go-version/commit/c4749b3a224b57c63e74cef8985c913f6815c32f">view commit &bull;</a> adding updated readme</li>
19-
<li> <a href="http://github.com/christopherhein/go-version/commit/d6bf711fd8d1d8781063cb4675c01a55047f0e50">view commit &bull;</a> adding go.* and new ignored files</li>
20-
<li> <a href="http://github.com/christopherhein/go-version/commit/26135532bf16d68bb4a847c85a75bfad056261a6">view commit &bull;</a> adding travis configs</li>
21-
<li> <a href="http://github.com/christopherhein/go-version/commit/29fcf12885ec860b1b4882fb8c1bb367229adcc6">view commit &bull;</a> rename travis conf</li>
22-
<li> <a href="http://github.com/christopherhein/go-version/commit/228057b8af6028387af98e5f5b249e680e1874d7">view commit &bull;</a> adding build tag</li>
23-
<li> <a href="http://github.com/christopherhein/go-version/commit/7f7626f2dbe830824a0bc4a58bef9feb91e5afdf">view commit &bull;</a> adding tests for the cobra function</li>
24-
<li> <a href="http://github.com/christopherhein/go-version/commit/2fb52ece41075900f7a5bd3ac7a245900669a8fc">view commit &bull;</a> adding go.mod and go.sum</li>
15+
* [view commit](http://github.com/christopherhein/go-version/commit/081d4af106f494175ca14564c74c1e69bb52cf57) adding import path comment
16+
* [view commit](http://github.com/christopherhein/go-version/commit/621eb71f28ce57ed6b96a8fd3263c660b7a67d08) adding version subcommand func
17+
* [view commit](http://github.com/christopherhein/go-version/commit/be514ca4251048d7b23c3adb65d8e52adae8048f) adding example
18+
* [view commit](http://github.com/christopherhein/go-version/commit/c4749b3a224b57c63e74cef8985c913f6815c32f) adding updated readme
19+
* [view commit](http://github.com/christopherhein/go-version/commit/d6bf711fd8d1d8781063cb4675c01a55047f0e50) adding go.* and new ignored files
20+
* [view commit](http://github.com/christopherhein/go-version/commit/26135532bf16d68bb4a847c85a75bfad056261a6) adding travis configs
21+
* [view commit](http://github.com/christopherhein/go-version/commit/29fcf12885ec860b1b4882fb8c1bb367229adcc6) rename travis conf
22+
* [view commit](http://github.com/christopherhein/go-version/commit/228057b8af6028387af98e5f5b249e680e1874d7) adding build tag
23+
* [view commit](http://github.com/christopherhein/go-version/commit/7f7626f2dbe830824a0bc4a58bef9feb91e5afdf) adding tests for the cobra function
24+
* [view commit](http://github.com/christopherhein/go-version/commit/2fb52ece41075900f7a5bd3ac7a245900669a8fc) adding go.mod and go.sum
25+
* [view commit](http://github.com/christopherhein/go-version/commit/31b60dc048cf1d44580a415bd5df7c3e2235ef53) adding tagging utils
2526
<!-- END v0.0.2 -->
2627

hack/generate-changelog.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ PREV_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
44
NEW_HASH=$(git rev-parse --verify HEAD)
55
NEXT_TAG=$(cat VERSION)
66

7-
OUTPUT=$(git log ${PREV_VERSION}..${NEW_HASH} --no-merges --pretty=format:'<li> <a href="http://github.com/christopherhein/go-version/commit/%H">view commit &bull;</a> %s</li> ' --reverse)
7+
OUTPUT=$(git log ${PREV_VERSION}..${NEW_HASH} --no-merges --pretty=format:'* [view commit](http://github.com/christopherhein/go-version/commit/%H) %s' --reverse)
88

9-
echo "<!-- START ${NEXT_TAG} -->" >> "CHANGELOG.md"
10-
echo "<h2>${NEXT_TAG}</h2>" >> "CHANGELOG.md"
9+
echo "<!-- START ${NEXT_TAG} -->" >> "CHANGELOG.md"
10+
echo "## ${NEXT_TAG}" >> "CHANGELOG.md"
1111
echo "" >> "CHANGELOG.md"
1212
echo "${OUTPUT}" >> "CHANGELOG.md"
1313
echo "<!-- END ${NEXT_TAG} -->" >> "CHANGELOG.md"

0 commit comments

Comments
 (0)