MCPcopy Index your code
hub / github.com/peter-evans/create-pull-request / pushSignedCommits

Method pushSignedCommits

src/github-helper.ts:293–317  ·  view source on GitHub ↗
(
    git: GitCommandManager,
    branchCommits: Commit[],
    baseCommit: Commit,
    repoPath: string,
    branchRepository: string,
    branch: string
  )

Source from the content-addressed store, hash-verified

291 }
292
293 async pushSignedCommits(
294 git: GitCommandManager,
295 branchCommits: Commit[],
296 baseCommit: Commit,
297 repoPath: string,
298 branchRepository: string,
299 branch: string
300 ): Promise<CommitResponse> {
301 let headCommit: CommitResponse = {
302 sha: baseCommit.sha,
303 tree: baseCommit.tree,
304 verified: false
305 }
306 for (const commit of branchCommits) {
307 headCommit = await this.createCommit(
308 git,
309 commit,
310 headCommit,
311 repoPath,
312 branchRepository
313 )
314 }
315 await this.createOrUpdateRef(branchRepository, branch, headCommit.sha)
316 return headCommit
317 }
318
319 private async createCommit(
320 git: GitCommandManager,

Callers 1

createPullRequestFunction · 0.95

Calls 2

createCommitMethod · 0.95
createOrUpdateRefMethod · 0.95

Tested by

no test coverage detected