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 # update tags
git fetch --tags git fetch --tags
# get origin # get origin
ORIGIN=$(git config --get remote.origin.url) URL='https://github.com/MetaMask/metamask-extension'
URL=$(echo $ORIGIN | sed -E 's/(.*).git{1}(.*)/\1/')
# 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 # 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="(#"); 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 while read -r line; do
@ -17,7 +16,7 @@ while read -r line; do
BODY=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/') BODY=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')
fi fi
# add entry to CHANGELOG # 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; - [#'"$PR"']('"$URL"'/pull/'"$PR"'): '"$BODY"''$'\n' CHANGELOG.md;
done <<< "$LOG" done <<< "$LOG"
echo 'CHANGELOG updated' echo 'CHANGELOG updated'

Loading…
Cancel
Save