Skip to content

Function: createGithubCreateOrUpdatePrBuilder() ​

ts
function createGithubCreateOrUpdatePrBuilder<TIn, TOut, THandle>(id, options): GithubCreateOrUpdatePrBuilder<TIn, TOut, THandle>;

Defined in: github/src/builders/create-github-create-or-update-pr-builder.ts:23

Creates an immutable fluent GithubCreateOrUpdatePrBuilder (github.createOrUpdatePr).

Initializes default z.unknown() boundary schemas when omitted and supports fluent .input(schema) and .output(schema) overrides prior to .toAST() compilation.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated step input payload type.
TOutunknownValidated step output payload type.
THandleunknownRuntime handle type of the enclosing isolation scope.

Parameters ​

ParameterTypeDescription
idstringUnique step node identifier.
optionsGithubCreateOrUpdatePrOptions<TIn, TOut>Repository, token, and PR field projections.

Returns ​

GithubCreateOrUpdatePrBuilder<TIn, TOut, THandle>

Immutable pull-request step builder.

Throws ​

If id is empty or options.repo is not a valid 'owner/repo' slug.

Released under the MIT License.