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 Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Validated step input payload type. |
TOut | unknown | Validated step output payload type. |
THandle | unknown | Runtime handle type of the enclosing isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
node | GithubCreateOrUpdatePrNode<TIn, TOut, THandle> | Passive pull-request step AST node. |
input | TIn | Step input payload. |
ctx | StepExecutionContext<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.