You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: fix Discord changelog chunker dropping the last message
The chunker reserved footer space in LAST_BUDGET but never used it — every
chunk accumulated against MIDDLE_BUDGET (1900), then the footer was appended to
the final message, pushing it past Discord's 2000-char limit (HTTP 400). The
failure was also swallowed (only echoed), so the workflow still reported success.
- Reserve FOOTER_LEN in every chunk budget (alpha + stable blocks) so the final
message + footer always fits.
- Emit a ::error:: annotation and fail the step on any non-2xx response, with the
Discord response body and message length for diagnostics.
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+35-12Lines changed: 35 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -135,13 +135,14 @@ jobs:
135
135
136
136
FOOTER="*${CHANNEL_UPPER} builds are available on CurseForge by selecting \"${CHANNEL_UPPER}\" in the file dropdown, or from [GitHub Releases](<https://github.com/DanderBot/DandersFrames/releases>).*"
137
137
138
-
# Split body into chunks that fit Discord's 2000 char limit
139
-
# Reserve space for header/footer text in first/last messages
138
+
# Split body into chunks that fit Discord's 2000 char limit.
139
+
# The footer is appended to whichever message ends up last, and we
140
+
# don't know which that is until the loop finishes — so reserve footer
141
+
# room in EVERY chunk. The first message also carries the header.
0 commit comments