Retry Merge
Retries merging an approved feature or bug-fix pull request that was blocked by a transient conflict or CI check, syncing the branch and completing the ticket transition on success.
Parameters
removeLabel— clearssm_retry_merge_triggeredafter the retry finishes.checkOpenPR— confirms the PR is still open before attempting the merge.testCaseMerge— merge options shared with test-case PR merge handlers.autoStartRework/autoStartReworkConfigFile— routes the PR to rework if merge conflicts or checks fail.maxAutoReworkRounds— maximum auto-started rework rounds (rework-round-Non the ticket, default3) before the ticket is labeledneeds-humanand no further rework is chained.
Human doc: agents/docs/agents/retry_merge.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | retry_merge.json |
| ContextId | retry_merge |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/retry_merge.md
Actions
preJSAction: checkWipLabel.js
Check WIP Label Pre-Action
- Source:
agents/js/checkWipLabel.js - Parameters (customParams):
branchCreateFnPathcheckOpenPRdryRun
postJSAction: retryMergePR.js
retryMergePR.js
- Source:
agents/js/retryMergePR.js - Side effects:
- post ticket comment (via tracker)
- Parameters (customParams):
aiRepositoryautoStartReworkautoStartReworkConfigFileconfigPathcontentOutputcontentOutput.targetdryRunlocalTeammatemaxAutoReworkRoundsprojectKeyremoveLabelsmFallbacktestCaseMergetrackerProvider
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/retry_merge.md
Custom params
removeLabel:"sm_pr_merge_triggered"checkOpenPR:truebranchCreateFnPath(used by JS action)dryRun(used by JS action)aiRepository(used by JS action)autoStartRework(used by JS action)autoStartReworkConfigFile(used by JS action)configPath(used by JS action)contentOutput(used by JS action)contentOutput.target(used by JS action)localTeammate(used by JS action)maxAutoReworkRounds(used by JS action)projectKey(used by JS action)smFallback(used by JS action)testCaseMerge(used by JS action)trackerProvider(used by JS action)
Generated by js/agentDocGenerator.js