Count the terminal newline in the release-note size guard [skip ci]

The generator emits one newline after the captured body. Tighten both
comparisons so the complete output, including that byte, fits GitHub's
125000-character limit. No runtime or client inputs change.

Verified manual local renders:125000characters succeeds;125001 refuses
with no stdout. Actual0.10.2 output remains byte-identical at15414chars.
Bashsyntax, ShellCheck and the existing generator suite pass. Release
preflight versions/OHOS/feature-notes/contributor-credit all pass.1ac
validation was deliberately superseded before this source edit, with no
source drift or hosted failure claimed. No new tests/comments/publication.

Refs: CW-7462
This commit is contained in:
CodeWhale Bot committed 2026-10-23 23:42:57 -07:00
1 parent 1ac79e65ec
commit 7c9e060837
1 file changed
+2 -2
+2 -2
View File
@@ -185,11 +185,11 @@ EOF
}
body="$(render_body)"
if (( ${#body} > 125000 )); then
if (( ${#body} >= 125000 )); then
details="The full notes exceed GitHub's release-description limit. Read the [complete changelog for ${tag}](https://github.com/codewhale-hq/CodeWhale/blob/${tag}/CHANGELOG.md)."
body="$(render_body)"
fi
if (( ${#body} > 125000 )); then
if (( ${#body} >= 125000 )); then
echo "Release summary, installation instructions and contributor credits exceed GitHub's 125000-character limit." >&2
exit 1
fi