Skip to content

Function: executeGithubCreateOrUpdatePrStep() ​

ts
function executeGithubCreateOrUpdatePrStep<TIn, TOut, THandle>(
   node, 
   input, 
   ctx
): Promise<TOut>;

Defined in: github/src/executors/github-pr-step-executor.ts:23

Stateless domain step executor for GithubCreateOrUpdatePrNode (github:create-or-update-pr).

Queries open pull requests for head: <owner>:<branch(input)> and idempotently updates the existing pull request or opens a new pull request on /repos/${node.repo}/pulls.

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
nodeGithubCreateOrUpdatePrNode<TIn, TOut, THandle>Passive pull-request step AST node.
inputTInStep input payload.
ctxStepExecutionContext<THandle>Active step execution context.

Returns ​

Promise<TOut>

Validated pull-request step output.

Throws ​

If input/output validation fails, token resolution fails, or repo slug is invalid.

Released under the MIT License.