fix url and remove -e fr macos

feature/default_network_editable
Esteban MIno 6 years ago committed by Dan Finlay
parent e19084ece7
commit 82bbfb540b
  1. 5
      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'

Loading…
Cancel
Save