MCPcopy
hub / github.com/peter-evans/create-pull-request / getCommit

Method getCommit

src/github-helper.ts:416–430  ·  view source on GitHub ↗
(
    sha: string,
    branchRepository: string
  )

Source from the content-addressed store, hash-verified

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,

Callers 4

createPullRequestFunction · 0.95
buildBranchCommitsFunction · 0.45
createOrUpdateBranchFunction · 0.45

Calls 1

parseRepositoryMethod · 0.95

Tested by

no test coverage detected