mirror of https://github.com/openclaw/openclaw.git
scripts: preserve changelog subsection detection
This commit is contained in:
parent
2412357bb7
commit
bf6d3176fc
|
|
@ -226,14 +226,12 @@ END {
|
|||
release_line = 0
|
||||
section_line = 0
|
||||
for (i = entry_line; i >= 1; i--) {
|
||||
if (release_line == 0 && changelog[i] ~ /^## /) {
|
||||
release_line = i
|
||||
}
|
||||
if (changelog[i] ~ /^### /) {
|
||||
if (section_line == 0 && changelog[i] ~ /^### /) {
|
||||
section_line = i
|
||||
break
|
||||
continue
|
||||
}
|
||||
if (changelog[i] ~ /^## /) {
|
||||
release_line = i
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue