MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getBranch

Method getBranch

packages/decap-cms-backend-github/src/API.ts:1241–1245  ·  view source on GitHub ↗
(branch: string)

Source from the content-addressed store, hash-verified

1239 }
1240
1241 async getBranch(branch: string) {
1242 const result: Endpoints['GET /repos/{owner}/{repo}/branches/{branch}']['response']['data'] =
1243 await this.request(`${this.repoURL}/branches/${encodeURIComponent(branch)}`);
1244 return result;
1245 }
1246
1247 async getDefaultBranch() {
1248 const result: Endpoints['GET /repos/{owner}/{repo}/branches/{branch}']['response']['data'] =

Callers 8

migrateToVersion1Method · 0.95
backupBranchMethod · 0.95
createBranchMethod · 0.95
APIClass · 0.95
uploadFilesMethod · 0.95
seedGitHubRepoFunction · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected