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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
owner Repo owner. Supports {{ }}. | string | Yes | — | — | octocat |
repo Name of the repo to act on, from github.list_repos. | string | Yes | — | — | hello-world |
title Name the new pull request gets in GitHub; not an id. | string | Yes | — | — | — |
head Source branch (owner:branch for a fork). | string | Yes | — | — | feature-branch |
base Target branch. | string | Yes | — | — | main |
body PR description. | string | No | — | — | — |
draft Open as a draft PR. | boolean | No | — | — | — |
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
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
number | string | — |
html_url | string | — |
{
"html_url": "",
"number": "",
"ok": false
}Solutions with GitHub
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.