
GitHub Pull Requests Create
CertifiedCreate a pull request
GitHub Pull Requests Create
Create a pull request
Creates a GitHub pull request from a head branch to a base branch. The authenticated token must be allowed to open pull requests in the target repository.
type: io.kestra.plugin.github.pulls.CreateExamples
Create a pull request in a repository.
id: github_pulls_create_flow
namespace: company.team
tasks:
- id: create_pull_request
type: io.kestra.plugin.github.pulls.Create
oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
repository: kestra-io/kestra
sourceBranch: develop
targetBranch: main
title: Merge develop to main
body: "Request to merge changes from develop into main"
Properties
appInstallationToken string
GitHub App installation token
Installation access token generated by a GitHub App. Use this for repository-scoped app access instead of a user token.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150body string
Pull request body
Markdown description for the pull request. This value is rendered before the request is sent
draft booleanstring
falseCreate as draft
If true, opens the pull request in draft state. Defaults to false.
endpoint string
GitHub API endpoint
GitHub or GitHub Enterprise API base URL such as https://api.github.com or https://ghe.acme.com/api/v3. Set this when targeting GitHub Enterprise or a non-default API endpoint.
jwtToken string
GitHub JWT token
GitHub App JWT used for app-level authentication. Use this when the task should authenticate as the app rather than a user.
login string
GitHub login
GitHub login used with oauthToken for authenticated requests. Leave unset when authenticating with jwtToken or appInstallationToken.
maintainerCanModify booleanstring
falseAllow maintainers to modify
If true, maintainers of the target repo can push to the source branch. Defaults to false.
oauthToken string
GitHub OAuth token
GitHub personal access token used for authenticated requests. Can be used alone or with login.
repository string
Target repository
Repository in owner/repo format where the pull request will be opened
reviewers array
Reviewers
GitHub usernames or team slugs to request as pull request reviewers. Prefix team slugs with team: (e.g. team: backend).
sourceBranch string
Source (head) branch
Required branch with changes. For cross-repo PRs, prefix with username: branch.
targetBranch string
Target (base) branch
Required branch to merge into; must exist in the target repository.
title string
Pull request title
Required short summary.
Outputs
issueUrl
Issue API URL
GitHub API URL for the pull request issue resource
java.net.URL
pullRequestUrl
Pull request URL
GitHub URL for the created pull request