aboutsummaryrefslogtreecommitdiffstats
path: root/auto-changelog.sh
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-11-09 00:23:48 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-11-16 02:12:11 +0800
commit4d2d8239ce106bc64b18b134ade626f590b9844a (patch)
tree2721b2842b1ab2b7bf26c830c2782d5ec556387e /auto-changelog.sh
parent6dce32fc1ee32cbff4cd272629a7fa2dd7dfd47c (diff)
downloadtangerine-wallet-browser-4d2d8239ce106bc64b18b134ade626f590b9844a.tar
tangerine-wallet-browser-4d2d8239ce106bc64b18b134ade626f590b9844a.tar.gz
tangerine-wallet-browser-4d2d8239ce106bc64b18b134ade626f590b9844a.tar.bz2
tangerine-wallet-browser-4d2d8239ce106bc64b18b134ade626f590b9844a.tar.lz
tangerine-wallet-browser-4d2d8239ce106bc64b18b134ade626f590b9844a.tar.xz
tangerine-wallet-browser-4d2d8239ce106bc64b18b134ade626f590b9844a.tar.zst
tangerine-wallet-browser-4d2d8239ce106bc64b18b134ade626f590b9844a.zip
delete use of grep
Diffstat (limited to 'auto-changelog.sh')
-rwxr-xr-xauto-changelog.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto-changelog.sh b/auto-changelog.sh
index 3e974c8bc..157290750 100755
--- a/auto-changelog.sh
+++ b/auto-changelog.sh
@@ -4,7 +4,7 @@ URL="https://github.com/MetaMask/metamask-extension/pull/"
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
SUBJECT="$(echo $line | sed -E 's/(.*):{2}(.*)/\1/')"
- PR=$(echo $line | grep -Po '#\d+' | sed "s/#//")
+ PR=$(echo $SUBJECT | sed 's/^.*(#\([^&]*\)).*/\1/' | sed 's/^.*#\([^&]*\) from.*/\1/')
if [ -z "$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')" ]; then
MESSAGE=$(echo $SUBJECT | sed "s/(#$PR)//g"); else
MESSAGE=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')