MCPcopy Index your code
hub / github.com/wei/pull / hardResetCommit

Method hardResetCommit

src/processor/pull.ts:475–488  ·  view source on GitHub ↗
(
    baseRef: string | undefined,
    sha: string,
  )

Source from the content-addressed store, hash-verified

473 }
474
475 private async hardResetCommit(
476 baseRef: string | undefined,
477 sha: string,
478 ): Promise<void> {
479 if (!baseRef || !sha) return;
480
481 await this.github.git.updateRef({
482 owner: this.owner,
483 repo: this.repo,
484 ref: `heads/${baseRef}`,
485 sha,
486 force: true,
487 });
488 }
489}

Callers 1

processMergeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected