Skip to content

Truncate GitHub issue titles to prevent ValueTooLong error#8416

Merged
iHiD merged 2 commits intomainfrom
fix/8370
Feb 8, 2026
Merged

Truncate GitHub issue titles to prevent ValueTooLong error#8416
iHiD merged 2 commits intomainfrom
fix/8370

Conversation

@iHiD
Copy link
Copy Markdown
Member

@iHiD iHiD commented Feb 8, 2026

Closes #8370

Summary

  • The github_issues.title column is VARCHAR(255) but GitHub issue titles can exceed that length, causing ActiveRecord::ValueTooLong errors in Github::Issue::CreateOrUpdate
  • Added title helper method that truncates to 255 characters before saving
  • Also updated /fix skill to use local worktrees/ directory instead of ../website-worktrees/ and added worktrees/ to .gitignore

Test plan

  • Added test verifying a 300-character title is truncated to 255
  • All 11 existing tests in create_or_update_test.rb continue to pass

🤖 Generated with Claude Code

iHiD and others added 2 commits February 8, 2026 20:22
The github_issues.title column is VARCHAR(255) but GitHub issue titles
can exceed that length, causing ActiveRecord::ValueTooLong errors.
Truncate to 255 characters before saving.

Also update /fix skill to use local worktrees/ directory and add it
to .gitignore.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@iHiD iHiD merged commit 2d1482b into main Feb 8, 2026
40 checks passed
@iHiD iHiD deleted the fix/8370 branch February 8, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ActiveRecord::ValueTooLong: Mysql2::Error: Data too long for column 'title' at row 1 (ActiveRecord::ValueTooLong)

1 participant