Improve changelog entries (#6157)

* add 'evergreen' Dependency updates entry

* turn issue numbers at the end of commit messages into links
This commit is contained in:
chris48s
2021-02-07 19:02:19 +00:00
committed by GitHub
parent 7f7b101971
commit 18dceec57c

View File

@@ -24,8 +24,10 @@ touch temp-changes.txt
echo "## $RELEASE_NAME"
echo ""
git log "$LAST_TAG"..HEAD --no-merges --oneline --pretty="format:- %s" --perl-regexp --author='^((?!dependabot).*)$'
echo $'\n'
echo $'\n- Dependency updates\n'
} >> temp-changes.txt
BASE_URL="https:\/\/github.com\/badges\/shields\/issues\/"
sed -r -i "s/\((\#)([0-9]+)\)$/\[\1\2\]\($BASE_URL\2\)/g" temp-changes.txt
# Write the changelog
sed -i "${INSERT_POINT} r temp-changes.txt" CHANGELOG.md