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 — clears sm_retry_merge_triggered after 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-N on the ticket, default 3) before the ticket is labeled needs-human and no further rework is chained.

Human doc: agents/docs/agents/retry_merge.md

Attributes

AttributeValue
JobTeammate
Configretry_merge.json
ContextIdretry_merge
outputTypenone
skipAIProcessingtrue

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):
    • branchCreateFnPath
    • checkOpenPR
    • dryRun

postJSAction: retryMergePR.js

retryMergePR.js

  • Source: agents/js/retryMergePR.js
  • Side effects:
    • post ticket comment (via tracker)
  • Parameters (customParams):
    • aiRepository
    • autoStartRework
    • autoStartReworkConfigFile
    • configPath
    • contentOutput
    • contentOutput.target
    • dryRun
    • localTeammate
    • maxAutoReworkRounds
    • projectKey
    • removeLabel
    • smFallback
    • testCaseMerge
    • trackerProvider

LLM step

  • outputType: none
  • Prompt snapshot: agents/snapshots/retry_merge.md

Custom params

  • removeLabel: "sm_pr_merge_triggered"
  • checkOpenPR: true
  • branchCreateFnPath (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