We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfbcd26 commit 01b0b61Copy full SHA for 01b0b61
generate_changelog.sh
@@ -255,6 +255,8 @@ if [[ -z "${1}" ]] ; then
255
exit 0 ;
256
fi ;
257
GIT_RANGE="${1}"
258
+# validate git range
259
+printf "%s\n" "$GIT_RANGE" | grep -qE -e "^[a-zA-Z0-9][-a-zA-Z0-9_\+\./]*\.\.\.[a-zA-Z0-9][-a-zA-Z0-9_\+\./]*$" || { printf "%s\n" "Error: Invalid git range format" >&2 ; exit 64 ; } ;
260
261
# cache the git full log
262
CHANGELOG_BUFFER="${TMPDIR:-/tmp}/.changelog_buffer.txt"
0 commit comments