Retry Merge Github
Squash-merges an approved GitHub PR for the machine loop (the sm_github.json merge rule runs this config via localExecution): resolves the linked PR for the issue, verifies checks/mergeability, merges one PR per tick, cleans the trigger labels, and posts the closing comment.
Parameters
Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).
approvedLabel— issue label that marks an approved review verdict (defaultpr_approved).removeLabel— label removed from the issue after a successful merge (idempotency cleanup).reworkLabel— label added back when the merge is not yet possible so the rework leg can react.prNumber— explicit PR number override; when absent the PR is resolved from the branch prefix or the PR body.branchPrefix— PR head-branch prefix used to link PRs togh-<n>issues (defaultai/gh-).repository— targetowner/repo; defaults to the SM rule’s repository.mergeMethod— GitHub merge method (defaultsquash).
Human doc: agents/docs/agents/retry_merge_github.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | retry_merge_github.json |
| ContextId | retry_merge_github |
| outputType | none |
| skipAIProcessing | true |
Actions
postJSAction: retryMergeGithubPR.js
retryMergeGithubPR.js — GitHub-issues machine loop: merge leg.
- Source:
agents/js/retryMergeGithubPR.js - Parameters (customParams):
approvedLabelbranchPrefixprNumberremoveLabelreworkLabel
LLM step
- outputType:
none
Custom params
removeLabel:"sm_pr_merge_triggered"branchPrefix:"ai/gh-"approvedLabel:"pr_approved"reworkLabel:"agent:rework"prNumber(used by JS action)
Generated by js/agentDocGenerator.js