github.com/pvitto98/fabric@v2.1.1+incompatible/scripts/changelog.sh (about)

     1  #!/bin/sh
     2  #
     3  # Copyright IBM Corp. All Rights Reserved.
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  
     8  cat > CHANGELOG.new << EOF
     9  ## "${2}"
    10  
    11  $(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\/commit\/\1)/")
    12  
    13  EOF
    14  cat CHANGELOG.md >> CHANGELOG.new
    15  mv -f CHANGELOG.new CHANGELOG.md