(
baseRef: string | undefined,
sha: string,
)
| 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 | } |