Add branch/type filters to transitions and dict-based fixVersion mapping#460
Merged
ralphbean merged 8 commits intoMay 20, 2026
Conversation
…rsion mapping, and tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…pe-filtered-transitions
Collaborator
|
/ok-to-test |
Contributor
Author
|
Thank you @webbnh, |
- Guard noisy log in update_transition when pr_updates is absent - Simplify base_branch extraction with dict reference instead of .get() - Split PR filter tests into separate units for _matches_transition_filters and update_transition - Add missing issue test scenarios: absent/empty issue_updates, none-match multiple entries, already-matching status, transition=True - Fix misleading "cumulative" comment in issue test docstring - Document branches, issue_types filters and dict-based fixVersion mapping Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace `closed_status is not True` with `isinstance(closed_status, str)` to safely skip any non-string value (True, False, None, etc.) - Show branches/issue_types as keys in the same dict in pr_updates docs - Add test scenario for transition: False Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
@webbnh ,Thanks for the detailed feedback! |
Collaborator
|
/ok-to-test |
…ormalize transition True - Consolidate merge_transition and issue_updates transition doc entries into single entries showing optional filters, per reviewer suggestion - Fix mapping array description wording - Normalize legacy transition: True to "Closed" (confirmed by Ralph) - Update test expectation for True normalization Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
Thanks for the review @webbnh , |
Collaborator
|
/ok-to-test |
…add malformed config warning Use CUSTOM_TRANSITION placeholder in pr_updates doc example for consistency, and log a warning when a non-string transition value is encountered in issue_updates config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
@webbnh , Any further changes needed? |
Collaborator
|
/ok-to-test |
Contributor
Author
|
Hi @ralphbean and @Zyzyx , |
Member
|
/ok-to-test |
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
branches(glob) andissue_typesfilters to PR transition configs, so transitions only fire for matching branches and Jira issue typesissue_typesfilter support to issue transition configsfixVersionmapping (in addition to existing string template format)base_branchfield to PR intermediary, extracted from GitHub PR payloadTest plan
_update_transitionwith issue_types filtering (7 scenarios)map_fixVersion(string template + dict lookup)Issue.from_github🤖 Generated with Claude Code