1 parent 6be4dd9 commit 1f08e11Copy full SHA for 1f08e11
1 file changed
.github/workflows/release.yml
@@ -211,10 +211,17 @@ jobs:
211
other = []
212
213
for record in raw.split("\x1e"):
214
- record = record.strip()
+ # Do not use strip() here: Python treats ASCII unit separator
215
+ # (\x1f) as whitespace, so commits with an empty body would lose
216
+ # the trailing field separator and fail to unpack.
217
+ record = record.strip("\r\n")
218
if not record:
219
continue
- sha, subject, body = record.split("\x1f", 2)
220
+ parts = record.split("\x1f", 2)
221
+ if len(parts) < 2:
222
+ continue
223
+ sha, subject = parts[:2]
224
+ body = parts[2] if len(parts) > 2 else ""
225
if bump_re.match(subject):
226
227
0 commit comments