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

Method getRepositoryParent

src/github-helper.ts:191–199  ·  view source on GitHub ↗
(headRepository: string)

Source from the content-addressed store, hash-verified

189 }
190
191 async getRepositoryParent(headRepository: string): Promise<string | null> {
192 const {data: headRepo} = await this.octokit.rest.repos.get({
193 ...this.parseRepository(headRepository)
194 })
195 if (!headRepo.parent) {
196 return null
197 }
198 return headRepo.parent.full_name
199 }
200
201 async createOrUpdatePullRequest(
202 inputs: Inputs,

Callers 1

createPullRequestFunction · 0.95

Calls 1

parseRepositoryMethod · 0.95

Tested by

no test coverage detected