diff options
author | Esteban MIno <efmino@uc.cl> | 2018-11-09 05:47:18 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-11-16 02:12:11 +0800 |
commit | 82bbfb540bf0af52b35e4de62d0b2a2c2100582c (patch) | |
tree | e61a9c31e4150c7b968a27b53a472436eca0b586 /auto-changelog.sh | |
parent | e19084ece7359437fb211e869d5141b3a622b039 (diff) | |
download | tangerine-wallet-browser-82bbfb540bf0af52b35e4de62d0b2a2c2100582c.tar tangerine-wallet-browser-82bbfb540bf0af52b35e4de62d0b2a2c2100582c.tar.gz tangerine-wallet-browser-82bbfb540bf0af52b35e4de62d0b2a2c2100582c.tar.bz2 tangerine-wallet-browser-82bbfb540bf0af52b35e4de62d0b2a2c2100582c.tar.lz tangerine-wallet-browser-82bbfb540bf0af52b35e4de62d0b2a2c2100582c.tar.xz tangerine-wallet-browser-82bbfb540bf0af52b35e4de62d0b2a2c2100582c.tar.zst tangerine-wallet-browser-82bbfb540bf0af52b35e4de62d0b2a2c2100582c.zip |
fix url and remove -e fr macos
Diffstat (limited to 'auto-changelog.sh')
-rwxr-xr-x | auto-changelog.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/auto-changelog.sh b/auto-changelog.sh index b986c4757..b61141586 100755 --- a/auto-changelog.sh +++ b/auto-changelog.sh @@ -2,8 +2,7 @@ # update tags git fetch --tags # get origin -ORIGIN=$(git config --get remote.origin.url) -URL=$(echo $ORIGIN | sed -E 's/(.*).git{1}(.*)/\1/') +URL='https://github.com/MetaMask/metamask-extension' # get git logs from last tag until HEAD, pretty by 'subject::body' filtered by grep for PRs made with Github squash merge or Github regular merge LOG=$(git log $(git describe --tags $(git rev-list --tags --max-count=1))..HEAD --pretty="%s::%b" --reverse --grep="Merge pull request #" --grep="(#"); while read -r line; do @@ -17,7 +16,7 @@ while read -r line; do BODY=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/') fi # add entry to CHANGELOG - sed -i'' -e '/## Current Develop Branch/a\ + sed -i'' '/## Current Develop Branch/a\ - [#'"$PR"']('"$URL"'/pull/'"$PR"'): '"$BODY"''$'\n' CHANGELOG.md; done <<< "$LOG" echo 'CHANGELOG updated' |