Skip to content

Function: executeGitCommitAndPushStep() ​

ts
function executeGitCommitAndPushStep<TIn>(
   node, 
   input, 
   ctx
): Promise<void>;

Defined in: git/src/executors/git-commit-and-merge-steps.ts:25

Executes a GitCommitAndPushNode (git.commitAndPush) step against the active GitWorktreeHandle.

Acquires a concurrency slot from node.runner, flushes uncommitted edits, squashes over baseRef, rebases onto origin/${resolvedBaseBranch}, runs verifyWith, and pushes with --force-with-lease.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownStep input payload type.

Parameters ​

ParameterTypeDescription
nodeGitCommitAndPushNode<TIn>Passive commit-and-push step AST node.
inputTInStep input payload.
ctxStepExecutionContext<GitWorktreeHandle>Active step execution context.

Returns ​

Promise<void>

Resolves once the branch is pushed and rootHandle lineage is updated.

Released under the MIT License.