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 063bc11 commit fef7f53Copy full SHA for fef7f53
.ci/release-parser.sh renamed to .ci/release-notes.sh
@@ -18,8 +18,8 @@ set -o pipefail
18
# How to use:
19
# release-notes.sh CHANGELOG.md
20
21
-startline=$(cat "$1" | grep -nE "^### " | head -n 1 | cut -d ":" -f 1)
22
-finishline=$(($(cat "$1" | grep -nE "^## \[\d" | head -n 2 | tail -n 1 | cut -d ":" -f 1) - 1))
+startline=$(cat "$1" | grep -nE '^### ' | head -n 1 | cut -d ":" -f 1)
+finishline=$(($(cat "$1" | grep -nE '^## \[[0-9]+' | head -n 2 | tail -n 1 | cut -d ":" -f 1) - 1))
23
changelog=$(sed -n "${startline},${finishline}p" "$1");
24
25
0 commit comments