Derive PR lifecycle for Jira from webhook action (flat topics)#444
Merged
Bala-Sakabattula merged 5 commits intorelease-engineering:mainfrom Mar 30, 2026
Merged
Conversation
Review Summary by QodoDerive PR lifecycle from webhook action for flat topics
WalkthroughsDescription• Derive PR lifecycle from webhook action instead of topic suffix • Support flat topic format (github.pull_request) with action parameter • Distinguish merged vs closed PRs using pr["merged"] field • Normalize unknown actions to "open" state for robustness Diagramflowchart LR
webhook["Webhook payload<br/>with action field"]
action["action parameter<br/>opened/closed/reopened/edited"]
merged["pr.merged field<br/>for closed PRs"]
suffix["Determine suffix<br/>open/merged/closed/reopened"]
pr_obj["PR intermediary<br/>object created"]
webhook -- "extract" --> action
webhook -- "extract" --> merged
action -- "map to suffix" --> suffix
merged -- "distinguish closed" --> suffix
suffix --> pr_obj
File Changes1. sync2jira/intermediary.py
|
Code Review by Qodo
1. Old PR topics mis-mapped
|
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.
Fedora Messaging / webhook-2fm now uses a flat PR topic (github.pull_request) where the topic suffix no longer encodes closed / reopened. This change aligns PR.from_github with the GitHub payload: lifecycle is taken from body["action"], and for closed from pull_request["merged"] (merged vs closed without merge).