Merge Trigger
Sweeps issues labeled pr_approved (plus labeled orphan PRs) and squash-merges each linked open pull request when its merge state is clean — the canonical approval-to-merge bot, run as a pure JSRunner job without an AI CLI step.
Parameters
Configured via jobParams in the agent JSON or the project .dmtools/config.js.
repo— target repository asowner/name(falls back to theGH_REPOglobal).label— approval label to sweep (defaultpr_approved).mapPrLabels— whentrue, labeled PRs map back to their linked issues; a labeled PR whose issue is closed or absent merges directly (orphan-carrier path).ghBranchPattern— whentrue, also link an issue to its PR via branch names likegh-0*NNon the issue→PR scan.removePrLabel— whentrue, also remove the approval label from the merged PR.ciRunUrl— CI run URL stamped into the merge comments.
Human doc: agents/docs/agents/merge_trigger.md
Attributes
| Attribute | Value |
|---|---|
| Job | JSRunner |
| Config | merge_trigger.json |
| ContextId | — |
| outputType | — |
| skipAIProcessing | false |
Actions
LLM step
- outputType:
none
Generated by js/agentDocGenerator.js