Retry Merge Test

Retries merging an approved single-Test-Case automation pull request (retryMergeTestPR.js), re-attempting the merge and updating the Test Case ticket status.

Parameters

  • removeLabel — removes sm_retry_merge_test_triggered once the retry completes.
  • checkOpenPR — skips tickets without an open test-case PR.
  • testCaseMerge — test-case PR merge configuration overrides.
  • autoStartRework / autoStartReworkConfigFile — triggers pr_test_automation_rework when the test PR cannot be merged cleanly.
  • 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_test.md

Attributes

AttributeValue
JobTeammate
Configretry_merge_test.json
ContextIdretry_merge_test
outputTypenone
skipAIProcessingtrue

Prompt snapshot

Full prompt / instruction set: agents/snapshots/retry_merge_test.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_test.md

Custom params

  • removeLabel: "sm_test_merge_triggered"
  • testCaseMerge: true
  • 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)
  • trackerProvider (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

Generated from retry_merge_test.json in the agents repository and its human doc — edit either and the page follows. Last updated .