PR to issue full sync#470
Merged
Bala-Sakabattula merged 7 commits intoMay 22, 2026
Merged
Conversation
d6ced0f to
44ff04a
Compare
Collaborator
Author
|
@webbnh I added test cases for transition flow with three cases scenarios as well for maybe_convert_markdown |
webbnh
previously approved these changes
May 20, 2026
Collaborator
webbnh
left a comment
There was a problem hiding this comment.
It looks good, but, unfortunately, you've got merge conflicts to resolve. 😬
66e6e57 to
293493e
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.
Summary
Extends the existing Sync2Jira integration to support full synchronization between Pull Requests and Jira Issues by reusing the existing Issue update pipeline, eliminating code duplication and ensuring consistent behavior across both sync types using Delegation pattern.
Problem
Previously, downstream_pr.py had its own minimal update_jira_issue that only handled three operations: PR link comments, merge_transition, and link_transition. All other update capabilities available to Issues (comments, description, title, assignee, tags, GitHub project fields, on_close labels) were not available for PRs.
Solution
Unified update pipeline via updates_key parameter
The core change introduces an updates_key parameter (defaulting to "issue_updates") to the shared update functions in downstream_issue.py, allowing the same code path to serve both Issues ("issue_updates") and PRs ("pr_updates"):
PR-specific operations remain separate
Functions with no Issue equivalent stay in downstream_pr.py:
format_comment / issue_link_exists / comment_exists — PR link announcement
_update_pr_transitions — merge_transition (PR merged) and link_transition (PR first linked)
PR update_jira_issue now delegates to the shared pipeline:
Files changed
Backward compatibility