Commit 78b0a55d authored by Christopher Ferris's avatar Christopher Ferris
Browse files

FAB-3737 changelog generation



Create changelog with 0-v0.6 and v0.6-v1.0.0-alpha
add make changelog target
add scripts/changelog.sh script

Change-Id: I425faaff7b7fca856b0a12241c5f8627b3efefbb
Signed-off-by: default avatarChristopher Ferris <chrisfer@us.ibm.com>
parent 6beca68b
This diff is collapsed.
......@@ -42,6 +42,7 @@
PROJECT_NAME = hyperledger/fabric
BASE_VERSION = 1.0.0
PREV_VERSION = 1.0.0-alpha
IS_RELEASE = false
ifneq ($(IS_RELEASE),true)
......@@ -191,6 +192,9 @@ build/docker/bin/%: $(PROJECT_FILES)
build/bin:
mkdir -p $@
changelog:
./scripts/changelog.sh v$(PREV_VERSION) v$(BASE_VERSION)
build/docker/gotools/bin/protoc-gen-go: build/docker/gotools
build/docker/gotools: gotools/Makefile
......
#!/bin/sh
echo "## $2 $(date)" >> CHANGELOG.new
echo "" >> CHANGELOG.new
git log $1..$2 --oneline | grep -v Merge | sed -e "s/\[\(FAB-[0-9]*\)\]/\[\1\](https:\/\/jira.hyperledger.org\/browse\/\1\)/" -e "s/ \(FAB-[0-9]*\)/ \[\1\](https:\/\/jira.hyperledger.org\/browse\/\1\)/" -e "s/\([0-9|a-z]*\)/* \[\1\](https:\/\/github.com\/hyperledger\/fabric\/commit\/\1)/" >> CHANGELOG.new
echo "" >> CHANGELOG.new
cat CHANGELOG.md >> CHANGELOG.new
mv -f CHANGELOG.new CHANGELOG.md
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment