mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-09 01:49:49 -10:00
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:
1 parent
1ac79e65ec
commit
7c9e060837
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user