Skip to content

Commit d5ecc6c

Browse files
committed
Look at more of changelog to find version number
The introduction in CHANGELOG.md has grown larger since towncrier was introduced, it is no longer good enough to look only at the first 10 lines to find the latest version.
1 parent eb5bb22 commit d5ecc6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ get_version() {
2929
}
3030

3131
get_version_from_changelog() {
32-
head -n10 CHANGELOG.md | awk '/^## \[[0-9]/ { print $2 }' | tr -d '[]'
32+
head -n15 CHANGELOG.md | awk '/^## \[[0-9]/ { print $2 }' | tr -d '[]'
3333
}
3434

3535
git_tag_exists() {

0 commit comments

Comments
 (0)