{
  "slug": "argo-cd-pullrequest-resource-merge-action-4e3c395e0822",
  "title": "Argo CD PullRequest resource merge action",
  "tools": [
    "argocd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-02T08:13:58.000Z",
  "announced_at": "2026-02-02T08:13:58.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When the Argo CD application contains the target PullRequest resource in the `open` state, run its `merge` action to set its state to `merged`.",
    "examples": [
      "argocd app actions run <app-name> merge --kind PullRequest --group promoter.argoproj.io --namespace <resource-namespace> --resource-name <resource-name>"
    ],
    "gotchas": [
      "Version: v3.3.0",
      "<app-name> (required): Application name.",
      "merge (required): Action name; the PullRequest action is discovered as `merge`.",
      "--kind (required): Resource kind; use `PullRequest`.",
      "--group: Resource API group; use `promoter.argoproj.io`.",
      "--namespace: Filter by resource namespace.",
      "--resource-name: Filter by resource name.",
      "Prerequisite: The action is enabled for a PullRequest resource whose `spec.state` is `open`; the action sets `spec.state` to `merged`.",
      "Prerequisite: `argocd app actions run` requires `--kind`; the documented CLI syntax and flags were found in Argo CD v3.4 docs, not v3.3.0 docs."
    ]
  },
  "why_it_matters": "Merge a GitOps Promoter PullRequest resource from Argo CD.",
  "sources": [
    "https://github.com/argoproj/argo-cd/releases/tag/v3.3.0",
    "https://github.com/argoproj/argo-cd/pull/24823",
    "https://argo-cd.readthedocs.io/en/release-3.4/user-guide/commands/argocd_app_actions_run/",
    "https://github.com/argoproj/argo-cd/blob/v3.3.0/resource_customizations/promoter.argoproj.io/PullRequest/actions/discovery.lua"
  ],
  "rank": 0.94015,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-bf9094f35e522faa-3:gate",
    "evidence_hash": "ef816128e607c5aa9302fae9b909454ea8f407319bcb9e2f7cabb87a48bfb40c"
  },
  "review": {
    "draft_hash": "2e069493ac1233d76797e7797fa4f42796011827751deb8f6318503a2b7e614a",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.62 (>= 0.6 needed)."
  }
}
