(
sha: string,
branchRepository: string
)
| 414 | } |
| 415 | |
| 416 | async getCommit( |
| 417 | sha: string, |
| 418 | branchRepository: string |
| 419 | ): Promise<CommitResponse> { |
| 420 | const repository = this.parseRepository(branchRepository) |
| 421 | const {data: remoteCommit} = await this.octokit.rest.git.getCommit({ |
| 422 | ...repository, |
| 423 | commit_sha: sha |
| 424 | }) |
| 425 | return { |
| 426 | sha: remoteCommit.sha, |
| 427 | tree: remoteCommit.tree.sha, |
| 428 | verified: remoteCommit.verification.verified |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | private async createOrUpdateRef( |
| 433 | branchRepository: string, |
no test coverage detected