[
  {
    "id": "r10k-deploy",
    "execute-command": "/usr/local/bin/r10k-wrapper.sh",
    "command-working-directory": "/etc/puppetlabs/code",
    "pass-arguments-to-command": [
      { "source": "string", "name": "deploy" },
      { "source": "string", "name": "environment" },
      { "source": "string", "name": "-pv" }
    ],
    "trigger-rule": {
      "and": [
        {
          "match": {
            "type": "value",
            "value": "production",
            "parameter": {
              "source": "jsonpath",
              "name": "$.object_attributes.target_branch"
            }
          }
        },
        {
          "match": {
            "type": "value",
            "value": "merge_request",
            "parameter": {
              "source": "jsonpath",
              "name": "$.object_kind"
            }
          }
        }
      ]
    }
  }
]
