Add CHANGELOG.md with script to update it (#162)

Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
This commit is contained in:
Arnaud J Le Hors 2020-05-19 16:52:13 +02:00 committed by GitHub
parent 2e3683c419
commit a9968ea811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2675 additions and 0 deletions

2660
CHANGELOG.md Normal file

File diff suppressed because it is too large Load diff

15
scripts/changelog.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
cat > CHANGELOG.new << EOF
## "${2}"
$(git log "$1..HEAD" --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-samples\/commit\/\1)/")
EOF
cat CHANGELOG.md >> CHANGELOG.new
mv -f CHANGELOG.new CHANGELOG.md