Skip to content

fix: sanitize cached PR titles before writing state.yml#5612

Open
leno23 wants to merge 1 commit into
jesseduffield:masterfrom
leno23:fix/cached-pr-title-yaml-5549
Open

fix: sanitize cached PR titles before writing state.yml#5612
leno23 wants to merge 1 commit into
jesseduffield:masterfrom
leno23:fix/cached-pr-title-yaml-5549

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Fixes #5549.

Cached GitHub pull request titles are trimmed before persisting to state.yml, preventing YAML parse failures when titles begin with newlines.

Test plan

  • go test ./pkg/config/ -run TestCachedPullRequestTitleYAMLRoundTrip -v

Made with Cursor

Fixes jesseduffield#5549.

Trim pull request titles when caching GitHub PR metadata so leading
newlines do not produce invalid YAML in state.yml on startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Cached PR title with leading newline can corrupt state.yml

1 participant