aboutsummaryrefslogtreecommitdiffstats
path: root/auto-changelog.sh
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-11-09 00:56:22 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-11-16 02:12:11 +0800
commit40586b91b30805ea60bc0e1d702bf284f2cf6c0d (patch)
treeeefcc5ab3d080fe6d6daa87d7c0232f48cb91a8e /auto-changelog.sh
parent16f928c7715eefd3e2610b7ffd69e201128c306b (diff)
downloadtangerine-wallet-browser-40586b91b30805ea60bc0e1d702bf284f2cf6c0d.tar
tangerine-wallet-browser-40586b91b30805ea60bc0e1d702bf284f2cf6c0d.tar.gz
tangerine-wallet-browser-40586b91b30805ea60bc0e1d702bf284f2cf6c0d.tar.bz2
tangerine-wallet-browser-40586b91b30805ea60bc0e1d702bf284f2cf6c0d.tar.lz
tangerine-wallet-browser-40586b91b30805ea60bc0e1d702bf284f2cf6c0d.tar.xz
tangerine-wallet-browser-40586b91b30805ea60bc0e1d702bf284f2cf6c0d.tar.zst
tangerine-wallet-browser-40586b91b30805ea60bc0e1d702bf284f2cf6c0d.zip
fix typos
Diffstat (limited to 'auto-changelog.sh')
-rwxr-xr-xauto-changelog.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto-changelog.sh b/auto-changelog.sh
index 722207880..2ce328247 100755
--- a/auto-changelog.sh
+++ b/auto-changelog.sh
@@ -4,14 +4,14 @@ git fetch --tags
# get origin
ORIGIN=$(git config --get remote.origin.url)
URL=$(echo $ORIGIN | sed -E 's/(.*).git{1}(.*)/\1/')
-# get git logs from last tag until HEAD, pretty by 'subject::body' filteres by grep for PR 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="(#");
while read -r line; do
# get git log subject
SUBJECT="$(echo $line | sed -E 's/(.*):{2}(.*)/\1/')"
# get git log PR id, PR made with Github squash merge or Github regular merge
PR=$(echo $SUBJECT | sed 's/^.*(#\([^&]*\)).*/\1/' | sed 's/^.*#\([^&]*\) from.*/\1/')
- # if PR made with Github squah merge, subject is the body
+ # if PR made with Github squash merge, subject is the body
if [ -z "$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')" ]; then
BODY=$(echo $SUBJECT | sed "s/(#$PR)//g"); else
BODY=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')