[PR #3727] github action: truncate PR titles to 256 chars to avoid GH api errors #10740

Closed
opened 2026-02-16 18:15:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3727

State: closed
Merged: Yes


The fix has been implemented. The createPR function now truncates the title to 256 characters maximum, adding "..." if truncation occurs. This will prevent the GitHub API validation error when PR titles exceed the limit.

Closes #3723

New%20session%20-%202025-11-02T01%3A05%3A49.185Z
opencode session  |  github run

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3727 **State:** closed **Merged:** Yes --- The fix has been implemented. The `createPR` function now truncates the title to 256 characters maximum, adding "..." if truncation occurs. This will prevent the GitHub API validation error when PR titles exceed the limit. Closes #3723 <a href="https://opencode.ai/s/vHSuy3V1"><img width="200" alt="New%20session%20-%202025-11-02T01%3A05%3A49.185Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTExLTAyVDAxOjA1OjQ5LjE4NVo=.png?model=opencode/glm-4.6&version=1.0.10&id=vHSuy3V1" /></a> [opencode session](https://opencode.ai/s/vHSuy3V1)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19005216307)
yindo added the pull-request label 2026-02-16 18:15:29 -05:00
yindo closed this issue 2026-02-16 18:15:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10740