GitHub

Read and update issues, pull requests and comments in GitHub repositories, and push branches to them.

17 implemented operations

connector.yaml
issue.readRead one issue or pull request as an issue.repo.read
github issue.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
numberPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "number"
  ],
  "properties": {
    "number": {
      "type": [
        "integer",
        "string"
      ],
      "minimum": 1,
      "pattern": "^[1-9][0-9]{0,9}$"
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields issue

Operation digest sha256:89d63012fc1c4609b42814cf047bfc464840db08a486d7341d9b67e28effed80Implementation sha256:64d3faa95f6fcbb19fc1d04f0f04b174e0b906efc243744e813fa25dcb81186e

branch.pushPush an exact local commit to a branch of the repository, never forcing it.repo.write
github branch.pushwrite#
  • LocalReadyA trusted host process runs it.
  • HostedNot availableThe hosted placement does not offer this operation.
Runx scope
repo.write
Target
{"$argument":"/repository"}
Credentials
Any of token
Repeats
inherent: The operation sets a state, so sending it again changes nothing.
Local implementation
Trusted host process: tool git.push
Inputs
Field and constraintsType / valuesRequired
branchPattern: ^[A-Za-z0-9._/-]{1,200}$stringYes
commitPattern: ^[0-9a-f]{40}([0-9a-f]{24})?$stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "branch",
    "commit"
  ],
  "properties": {
    "branch": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._/-]{1,200}$"
    },
    "commit": {
      "type": "string",
      "pattern": "^[0-9a-f]{40}([0-9a-f]{24})?$"
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields branchcommit

Operation digest sha256:37df8011852bd1c06681859197a52cae7a31be6f025e62f1ec7a7c459ea21c4eImplementation sha256:10d1e9afc79d861d1b1bf35cdcc69befc2c348cd8ade62fd754c48030b9488ae

checks.listRead one bounded page of latest check runs for an exact commit SHA; check runs do not include legacy commit statuses.repo.read
github checks.listread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedNot availableThe hosted placement does not offer this operation.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
pageMinimum 1Maximum 10000integerYes
commitPattern: ^[0-9a-f]{40}$stringYes
per_pageMinimum 1Maximum 100integerYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$Max. 201 charactersstringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "commit",
    "per_page",
    "page"
  ],
  "properties": {
    "page": {
      "type": "integer",
      "maximum": 10000,
      "minimum": 1
    },
    "commit": {
      "type": "string",
      "pattern": "^[0-9a-f]{40}$"
    },
    "per_page": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$",
      "maxLength": 201
    }
  },
  "additionalProperties": false
}

Result fields checks

Operation digest sha256:703f6ec2652d78c065e54c9eaea40eeb9ef428c78dd5870eb647460bbe426ecbImplementation sha256:1f5871efd0c1fe530d3d29cfe2c5168f84a70b282686be64bb8a279f568840dc

issues.listList one page of a repository's issues; GitHub includes pull requests, which carry a pull_request field.repo.read
github issues.listread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
pageMinimum 1Maximum 100000integerNo
sinceFormat: date-timeMax. 64 charactersstringNo
state"open" · "closed" · "all"No
labelsMax. 1000 charactersstringNo
per_pageMinimum 1Maximum 100integerNo
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository"
  ],
  "properties": {
    "page": {
      "type": "integer",
      "maximum": 100000,
      "minimum": 1
    },
    "since": {
      "type": "string",
      "format": "date-time",
      "maxLength": 64
    },
    "state": {
      "enum": [
        "open",
        "closed",
        "all"
      ]
    },
    "labels": {
      "type": "string",
      "maxLength": 1000
    },
    "per_page": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields issues

Operation digest sha256:c47fdb022e02730796cdb9b367899223874b53092a8251b682f7a12cd5de94dbImplementation sha256:46959afa156baf0480ec069d1e7759fe21ca85224a3af56d314a277165dcc9c5

issues.readRead issues by number.repo.read
github issues.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
numbers1–100 itemsUnique itemsarray of integer | stringYes
numbers[]Pattern: ^[1-9][0-9]{0,9}$Minimum 1integer | string
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "numbers"
  ],
  "properties": {
    "numbers": {
      "type": "array",
      "items": {
        "type": [
          "integer",
          "string"
        ],
        "minimum": 1,
        "pattern": "^[1-9][0-9]{0,9}$"
      },
      "maxItems": 100,
      "minItems": 1,
      "uniqueItems": true
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields issues

Operation digest sha256:3320d76783c044902cd58f7089d067a9a9c83d594dd2235672364e3e14d23144Implementation sha256:c20785bab15a01fcb7cebfe71fe1eed245677fc2aa501d712819e7839cd2c5fe

comment.readRead one issue or pull request comment.repo.read
github comment.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
comment_idPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "comment_id"
  ],
  "properties": {
    "comment_id": {
      "type": [
        "integer",
        "string"
      ],
      "minimum": 1,
      "pattern": "^[1-9][0-9]{0,9}$"
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields comment

Operation digest sha256:8b5e30d3be9238cfbedae2415d00395c5b0aa355de4487ebf8f04c11c9788953Implementation sha256:0e5daea0078025122bf72a903e8a68e95eafb4f9ea192b1fbaf51df0953bfd01

comments.listList one page of the comments on an issue or pull request.repo.read
github comments.listread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
numberPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
per_pageMinimum 1Maximum 100integerNo
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "number"
  ],
  "properties": {
    "number": {
      "type": [
        "integer",
        "string"
      ],
      "minimum": 1,
      "pattern": "^[1-9][0-9]{0,9}$"
    },
    "per_page": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields comments

Operation digest sha256:c562c807d93ae7059d23ceedd31b4892123bf85a4e1431d4560c7eb9b2ee0614Implementation sha256:f8319cdb57ffacc04c2a8966e9ff363d0b02a97fcc79658817e6b4f2abdff280

issues.createOpen issues in a repository, one issue per item.repo.write
github issues.createcreate#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.write
Target
{"$argument":"/repository"}
Credentials
Any of token
Leaves
A thread reference for each item.
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
issues1–20 itemsarray of objectYes
issues[]Only listed fields acceptedobject
issues[].bodyMax. 65536 charactersstringNo
issues[].titleMin. 1 characterMax. 256 charactersstringYes
issues[].labelsAt most 100 itemsarray of stringNo
issues[].assigneesAt most 10 itemsarray of stringNo
issues[].milestoneMinimum 1integerNo
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "issues"
  ],
  "properties": {
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "title"
        ],
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 65536
          },
          "title": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 100
          },
          "assignees": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 10
          },
          "milestone": {
            "type": "integer",
            "minimum": 1
          }
        },
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields issues

Operation digest sha256:043bfb2e57e6619afbc0ab266f564c8a401059823f3739212167404bb8179668Implementation sha256:7382e15dae3c01e5af567897b3ed38a67bfe11496402e7dcf8565bb75b10c632

issues.updateUpdate issues, each with its own patch of title, body, state, labels, assignees or milestone.repo.write
github issues.updatewrite#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.write
Target
{"$argument":"/repository"}
Credentials
Any of token
Repeats
inherent: The operation sets a state, so sending it again changes nothing.
Leaves
A thread reference for each item.
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
updates1–20 itemsarray of objectYes
updates[]Only listed fields acceptedobject
updates[].patchAt least 1 fieldOnly listed fields acceptedobjectYes
updates[].patch.bodyMax. 65536 charactersstring | nullNo
updates[].patch.state"open" · "closed"No
updates[].patch.titleMin. 1 characterMax. 256 charactersstringNo
updates[].patch.labelsAt most 100 itemsarray of stringNo
updates[].patch.assigneesAt most 10 itemsarray of stringNo
updates[].patch.milestoneinteger | nullNo
updates[].patch.state_reason"completed" · "not_planned" · "reopened"No
updates[].numberPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "updates"
  ],
  "properties": {
    "updates": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "number",
          "patch"
        ],
        "properties": {
          "patch": {
            "type": "object",
            "properties": {
              "body": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 65536
              },
              "state": {
                "enum": [
                  "open",
                  "closed"
                ]
              },
              "title": {
                "type": "string",
                "maxLength": 256,
                "minLength": 1
              },
              "labels": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 100
              },
              "assignees": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 10
              },
              "milestone": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "state_reason": {
                "enum": [
                  "completed",
                  "not_planned",
                  "reopened"
                ]
              }
            },
            "minProperties": 1,
            "additionalProperties": false
          },
          "number": {
            "type": [
              "integer",
              "string"
            ],
            "minimum": 1,
            "pattern": "^[1-9][0-9]{0,9}$"
          }
        },
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields updates

Operation digest sha256:cbe1f831b2d9c19218b4b81ec2636adbf32d0f7b09954240586cc3dadac246cfImplementation sha256:4eb5b59f2168edd5017f9701171b7a9c63860a8a13efc1d75cbe4f26f3d4b868

comments.createComment on issues or pull requests, one comment per item.issue.comment
github comments.createcomment#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
issue.comment
Target
{"$argument":"/repository"}
Credentials
Any of token
Leaves
A comment reference for each item.
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
comments1–20 itemsarray of objectYes
comments[]Only listed fields acceptedobject
comments[].bodyMin. 1 characterMax. 65536 charactersstringYes
comments[].numberPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "comments"
  ],
  "properties": {
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "number",
          "body"
        ],
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 65536,
            "minLength": 1
          },
          "number": {
            "type": [
              "integer",
              "string"
            ],
            "minimum": 1,
            "pattern": "^[1-9][0-9]{0,9}$"
          }
        },
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields comments

Operation digest sha256:c884f1092cf51f2153225b9ebf38d6a5cebec2789802a41d8170dbe81dab1a78Implementation sha256:777ce0af09956176317637d926c921c8cb30906a45838af6d183be4e26a95752

comments.updateEdit comments, one new body per item.issue.comment
github comments.updatewrite#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
issue.comment
Target
{"$argument":"/repository"}
Credentials
Any of token
Repeats
inherent: The operation sets a state, so sending it again changes nothing.
Leaves
A comment reference for each item.
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
comments1–20 itemsarray of objectYes
comments[]Only listed fields acceptedobject
comments[].bodyMin. 1 characterMax. 65536 charactersstringYes
comments[].comment_idPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "comments"
  ],
  "properties": {
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "comment_id",
          "body"
        ],
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 65536,
            "minLength": 1
          },
          "comment_id": {
            "type": [
              "integer",
              "string"
            ],
            "minimum": 1,
            "pattern": "^[1-9][0-9]{0,9}$"
          }
        },
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields comments

Operation digest sha256:7436937f475f7a6f7eaccb12c109acb0dd0baad22c621d4afdb1bce3d52ce815Implementation sha256:69ae25b7dabe7fb3514df45b71004b491d30d97b7abd9d0cebea0823cb2ad4ba

commits.compareRead the three-dot comparison of exact base and head commits; files are returned only on the first page and capped by GitHub at 300.repo.read
github commits.compareread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedNot availableThe hosted placement does not offer this operation.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
basePattern: ^[0-9a-f]{40}$stringYes
headPattern: ^[0-9a-f]{40}$stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$Max. 201 charactersstringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "base",
    "head"
  ],
  "properties": {
    "base": {
      "type": "string",
      "pattern": "^[0-9a-f]{40}$"
    },
    "head": {
      "type": "string",
      "pattern": "^[0-9a-f]{40}$"
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$",
      "maxLength": 201
    }
  },
  "additionalProperties": false
}

Result fields comparison

Operation digest sha256:899af5f67455c56237ea9f60f5daea4cde92f09fb1f012b864689fdd6868b610Implementation sha256:80d5d1258266466c92becc781f2a5d4a34545f429e060d2384bd6ebd508ee1ec

pullrequest.openOpen a pull request from a pushed branch.pr.write
github pullrequest.openwrite#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
pr.write
Target
{"$argument":"/repository"}
Credentials
Any of token
Leaves
A change_request reference.
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
baseMin. 1 characterMax. 255 charactersstringYes
bodyMin. 1 characterMax. 65536 charactersstringYes
headMin. 1 characterMax. 255 charactersstringYes
draftbooleanYes
titleMin. 1 characterMax. 256 charactersstringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "title",
    "body",
    "head",
    "base",
    "draft"
  ],
  "properties": {
    "base": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1
    },
    "body": {
      "type": "string",
      "maxLength": 65536,
      "minLength": 1
    },
    "head": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1
    },
    "draft": {
      "type": "boolean"
    },
    "title": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields pull

Operation digest sha256:62866f7f16a6480e553e70fc47cf66758f3c14da0172661908a449cc5008aad6Implementation sha256:f95b73780b8662fd3520ace33d55c208f6dc7ae43bdd54843f1ef1c301d1b81f

pullrequest.readRead one pull request.repo.read
github pullrequest.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
numberPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "number"
  ],
  "properties": {
    "number": {
      "type": [
        "integer",
        "string"
      ],
      "minimum": 1,
      "pattern": "^[1-9][0-9]{0,9}$"
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields pull

Operation digest sha256:2c9c4084a383860999d5344820000ac5660731928676fd3b2131b44099822f05Implementation sha256:1f2719886be1c4587fa5b3fa701f2fdc6f1ccb003a26e718838e5a80f02e3394

pullrequests.listList one page of a repository's pull requests.repo.read
github pullrequests.listread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
baseMax. 255 charactersstringNo
headMax. 300 charactersstringNo
pageMinimum 1Maximum 100000integerNo
sort"created" · "updated" · "popularity" · "long-running"No
state"open" · "closed" · "all"No
per_pageMinimum 1Maximum 100integerNo
direction"asc" · "desc"No
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository"
  ],
  "properties": {
    "base": {
      "type": "string",
      "maxLength": 255
    },
    "head": {
      "type": "string",
      "maxLength": 300
    },
    "page": {
      "type": "integer",
      "maximum": 100000,
      "minimum": 1
    },
    "sort": {
      "enum": [
        "created",
        "updated",
        "popularity",
        "long-running"
      ]
    },
    "state": {
      "enum": [
        "open",
        "closed",
        "all"
      ]
    },
    "per_page": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1
    },
    "direction": {
      "enum": [
        "asc",
        "desc"
      ]
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields pulls

Operation digest sha256:46f7a0c296b33cfd7e22e1e99211673116762d01252bdaf8258cd5b4aca70364Implementation sha256:7b1c87df8f4fd533fe2cce292b5727411d930967a9cbda04fa957c334f525f2c

pullrequests.readRead pull requests by number.repo.read
github pullrequests.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.read
Target
{"$argument":"/repository"}
Credentials
Any of token
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
numbers1–100 itemsUnique itemsarray of integer | stringYes
numbers[]Pattern: ^[1-9][0-9]{0,9}$Minimum 1integer | string
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "numbers"
  ],
  "properties": {
    "numbers": {
      "type": "array",
      "items": {
        "type": [
          "integer",
          "string"
        ],
        "minimum": 1,
        "pattern": "^[1-9][0-9]{0,9}$"
      },
      "maxItems": 100,
      "minItems": 1,
      "uniqueItems": true
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields pulls

Operation digest sha256:adf4fe2d9dc2e56f4661e5c7fc81f085f38ade955eaebae3e0cabcf8ee900b8eImplementation sha256:21eb5910b5adbfa3467acd7f202194f3a5a38ed07c05aa731da754c8aaf4b49c

pullrequests.updateUpdate pull requests, each with its own patch of title, body, state, base or maintainer_can_modify.repo.write
github pullrequests.updatewrite#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
repo.write
Target
{"$argument":"/repository"}
Credentials
Any of token
Repeats
inherent: The operation sets a state, so sending it again changes nothing.
Leaves
A change_request reference for each item.
Provider permissions
repo
Local implementation
Declared HTTP requests: api.github.com
Inputs
Field and constraintsType / valuesRequired
updates1–20 itemsarray of objectYes
updates[]Only listed fields acceptedobject
updates[].patchAt least 1 fieldOnly listed fields acceptedobjectYes
updates[].patch.baseMin. 1 characterMax. 255 charactersstringNo
updates[].patch.bodyMax. 65536 charactersstring | nullNo
updates[].patch.state"open" · "closed"No
updates[].patch.titleMin. 1 characterMax. 256 charactersstringNo
updates[].patch.maintainer_can_modifybooleanNo
updates[].numberPattern: ^[1-9][0-9]{0,9}$Minimum 1integer | stringYes
repositoryPattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "repository",
    "updates"
  ],
  "properties": {
    "updates": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "number",
          "patch"
        ],
        "properties": {
          "patch": {
            "type": "object",
            "properties": {
              "base": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              "body": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 65536
              },
              "state": {
                "enum": [
                  "open",
                  "closed"
                ]
              },
              "title": {
                "type": "string",
                "maxLength": 256,
                "minLength": 1
              },
              "maintainer_can_modify": {
                "type": "boolean"
              }
            },
            "minProperties": 1,
            "additionalProperties": false
          },
          "number": {
            "type": [
              "integer",
              "string"
            ],
            "minimum": 1,
            "pattern": "^[1-9][0-9]{0,9}$"
          }
        },
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    },
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    }
  },
  "additionalProperties": false
}

Result fields updates

Operation digest sha256:69a24601fb140bd4d00766d858b940d8f17805f2344ebf703241e21e247fafefImplementation sha256:70c42162b347711f58141b40e362d762739769c51fe599e7d30414951ae7956d

Not implemented

These operations are declared in the manifest but have no implementation on any placement, so they cannot run yet. A request counts toward building one.

pullrequest.mergeMerge a pull request.pr.merge
github pullrequest.mergemerge#
  • LocalNot availableThe local placement has no implementation for this operation.Each call needs approval evidence or standing approval.
  • HostedNot availableThe hosted placement does not offer this operation.Each call needs approval evidence or standing approval.
Runx scope
pr.merge
Target
{"$argument":"/repository"}

The manifest declares no input schema for this operation.

The manifest names no result fields.

Operation digest sha256:ff0e0e0084ab62648af2843474ce1e62e00655623a1673d9069500fe2f410b02

Authentication

Commands here are for runx 0.11.1.

GitHub accepts a local CLI session, a stored credential or a hosted grant.

gh session
Uses the account returned by gh auth token --hostname github.com, in place of the token credential. The token is read each run and never stored. Local placement only.
runx connector use github --session
Stored credential token
A api_key with one field: token (GitHub token). Sent only to api.github.com, github.com. Supply it through standard input in the project where the skill runs; Runx stores the profile and selects it for this connector.
runx connector use github --credential token
Hosted grant
OAuth brokered by Runx Connect. The provider credential stays in the hosted service.
runx connector use github --hosted

Authentication methods describe what the provider requires. They do not imply Runx supports every way the provider authenticates, and they do not grant access to your account.

Permissions

Each operation requires every Runx scope it declares. The account or key behind an instance must also reach the target on GitHub’s side; setting one up adds no GitHub permissions.

GitHub OAuth permissions

What the hosted placement asks GitHub for, per operation. These are GitHub’s permissions, distinct from Runx scopes.

Approval

These operations need approval evidence on every call, which a grant alone never replaces: pullrequest.merge.

A stored credential may do everything its scopes allow. Add --scope to runx connector use --credential to narrow it.

Skills that use GitHub