{
  "name": "open-github-pr",
  "title": "Open a GitHub pull request",
  "description": "Open a pull request on GitHub via the REST API (POST /repos/{owner}/{repo}/pulls), using a token read from a Kubernetes Secret. Inputs are the repo, head and base branches, and the PR title/body.",
  "category": "Git",
  "tags": [
    "curl",
    "git"
  ],
  "latestVersion": "1.0.1",
  "versions": [
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "head",
    "repo",
    "title",
    "base",
    "body",
    "token-secret-key",
    "token-secret-name"
  ],
  "images": [
    "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/open-github-pr.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/open-github-pr/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/open-github-pr/",
  "entrypoint": "open-pr",
  "parameterDetails": [
    {
      "name": "head",
      "title": "Head branch",
      "description": "The branch that contains the changes (source).",
      "type": "string",
      "required": true
    },
    {
      "name": "repo",
      "title": "Repository",
      "description": "Target repository as owner/name.",
      "type": "string",
      "required": true,
      "example": "octocat/hello-world"
    },
    {
      "name": "title",
      "title": "PR title",
      "type": "string",
      "required": true
    },
    {
      "name": "base",
      "title": "Base branch",
      "description": "The branch to merge into (target).",
      "type": "string",
      "required": false,
      "default": "main"
    },
    {
      "name": "body",
      "title": "PR body",
      "type": "string",
      "required": false,
      "default": ""
    },
    {
      "name": "token-secret-key",
      "title": "Token secret key",
      "type": "string",
      "required": false,
      "default": "token"
    },
    {
      "name": "token-secret-name",
      "title": "Token secret name",
      "description": "Kubernetes Secret holding a GitHub token with pull-request write scope.",
      "type": "string",
      "required": false,
      "default": "github-token"
    }
  ],
  "imageDetails": [
    {
      "ref": "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93",
      "repository": "curlimages/curl",
      "tag": "8.23.0",
      "digest": "sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.1",
      "date": "2026-08-02",
      "notes": "Move curlimages/curl from 8.11.1 to 8.21.0. Fixable CRITICAL/HIGH drops from 26 to 1.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/open-github-pr/1.0.1.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/open-github-pr/1.0.1/template.yaml"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/open-github-pr/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/open-github-pr",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
