comment format payload limit fixes#454
Merged
Bala-Sakabattula merged 4 commits intoApr 23, 2026
Merged
Conversation
Review Summary by QodoImplement Jira comment body truncation with GitHub issue links
WalkthroughsDescription• Add Jira comment body truncation to enforce 32767 character limit • Implement _truncate_jira_comment_body() function with warning notices • Include upstream GitHub issue link in truncation notices when available • Update comment matching and formatting to use truncation function • Add comprehensive unit tests for truncation logic Diagramflowchart LR
A["Comment formatting"] -->|exceeds 32767 chars| B["_truncate_jira_comment_body()"]
B -->|prepend warning| C["Truncated comment"]
B -->|append notice| C
D["Upstream issue URL"] -->|optional link| C
C -->|safe for Jira| E["Add to Jira"]
File Changes1. sync2jira/downstream_issue.py
|
Code Review by Qodo
|
d46e854 to
33fce4b
Compare
webbnh
reviewed
Apr 15, 2026
webbnh
left a comment
Collaborator
There was a problem hiding this comment.
This is a great first pass, but there are a few things that you should attend to.
- I assume that the PR description body is subject to the same constraints as the comments, so I think we should be prepared to truncate that, too.
- Handling a crazy-long URL is an excellent piece of defensive coding, but I think we can be more strategic and graceful in how to do it.
- I think we should leave some "head room" in (or outside) the budget for add-ons that we're not anticipating (I called out a couple of them) so that we don't fail on edge cases.
- And, I think we have a couple more things that the unit tests should assert.
33fce4b to
cb9fd9d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changed the code if the comment payload limit exceeds 32767 characters than truncating the comment payload and adding the link of github issue url at the end.