Create Pull Request

github.create_pull_request
ActionBusiness appsconnection required

Calls the GitHub API POST /repos/{owner}/{repo}/pulls.

Open a pull request in a GitHub repository.

Connection

Required
Yes — the node will not save without one
Auth type
Bearer token
Providers
GitHub
Secret shape
the GitHub access token
Resolved by
config.connection_id, else node.connection_id, else the tenant's sole GitHub connection

Configuration

7 fields, 5 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
owner
Repo owner. Supports {{ }}.
stringYes——octocat
repo
Name of the repo to act on, from github.list_repos.
stringYes——hello-world
title
Name the new pull request gets in GitHub; not an id.
stringYes———
head
Source branch (owner:branch for a fork).
stringYes——feature-branch
base
Target branch.
stringYes——main
body
PR description.
stringNo———
draft
Open as a draft PR.
booleanNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "base": "main",
  "head": "feature-branch",
  "owner": "octocat",
  "repo": "hello-world"
}

Output

One shape.

pull_request

FieldTypeExample
ok
boolean—
number
string—
html_url
string—
{
  "html_url": "",
  "number": "",
  "ok": false
}

See Create Pull Request run in a workflow.

In a technical demo we add the GitHub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.