feat(jira): a status rule can continue the issue's pull request - #7380
Merged
Merged
Conversation
A column rule gains `continuePr`. When on, every run the rule starts first resolves the issue's open pull requests from its web links and pins the sandbox to the first one's branch, with the prompt leading "continue this pull request"; an issue with none still starts fresh. That is what the column a reviewer sends cards back to needs — without it every bounce opened a second pull request for the same change. Per rule and derived from the issue's state, not inferred from the direction of the move: a review column must never pin its run to the pull request it is about to judge, and a first entry has no pull request to continue anyway. An issue that spans repositories now continues too: the first open pull request is the pinned branch, the others are named in the prompt with their branches for the run to check out after cloning each repository. Before, several repositories meant no continuation at all.
decocms Bot
pushed a commit
that referenced
this pull request
Sep 18, 2026
PR: #7380 feat(jira): a status rule can continue the issue's pull request Bump type: minor - decocms (apps/api/package.json): 4.382.1 -> 4.383.0 - @decocms/native (apps/native/package.json): 4.382.1 -> 4.383.0 - @decocms/shared (packages/shared/package.json): 0.110.0 -> 0.111.0 Deploy-Scope: both
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.
What
The "continue the pull request the issue already carries" option existed only on the manual run. The column automation always started fresh, so a card a reviewer sent back to the implementing column got a second pull request for the same change.
A status rule now has a
continuePrflag, saved with the rule and shown as a checkbox on its card in Settings → Jira. When on, every run the rule starts:pullRequestsFromLinks, unchanged).So "is this a re-execute" is answered by the issue's state, not by the direction of the move. A first entry carries no pull request and starts fresh; a card bounced from review carries the reviewed one and continues it. The flag only says on which statuses to look. It stays off on a review status, or that run would be pinned to the pull request it is about to judge.
Issues that span repositories
Previously a reciprocal change with a pull request in each storefront resolved to nothing and re-implemented from scratch. Now the first open pull request is the pinned branch and the rest are
others: the prompt names each with its repository and head branch and tells the run togit fetchandgit checkoutit after cloning that repository, and to update none if it cannot update all. Both prompt builders (sandbox and Decopilot) get the same lead. The manualcontinuePrpath uses the same resolution, so it gains multi-repo continuation too.Changes
org_jira_column_automations.continue_pr boolean not null default false.JIRA_AUTOMATION_LIST/JIRA_AUTOMATION_UPSERT, web hook and tool contracts carry the flag. Contracts hand-edited, same reason as feat(jira): one run across several issues, with issue-scoped Jira tools #7371.openPrForIssuereturns the primary plusothersinstead of bailing on several repositories.triggerRunForTransitionresolves the pull request when the rule says so.Testing
bun run check,bun run lint(0 warnings),knipclean. Unit suites underapps/api/src/jira,apps/api/src/tools/jiraand the task-board prompt tests pass. Migration and storage integration tests need a local Postgres this environment does not have.Summary by cubic
Jira status rules can now continue the issue's existing pull request instead of opening a new one. Previously every rule-triggered run started fresh, so a card a reviewer sent back to the implementing column got a second pull request for the same change.
Adds a per-rule
continuePrflag, saved with the rule and shown as a checkbox in Settings → Jira. When enabled, the run resolves the issue's open pull requests from its web links and pins to the first open one; if none are open, it starts fresh as before. For issues spanning repositories, the first open pull request is the pinned branch and the others are named in the prompt with their branches. The flag is off by default, so existing rules keep their current behavior. Migration 220 addscontinue_prtoorg_jira_column_automations. Keep the flag off on review statuses, where the run would otherwise pin itself to the pull request it is meant to judge.Written for commit b2c4ee2. Summary will update on new commits.