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

Method getBranch

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

Source from the content-addressed store, hash-verified

1265 }
1266
1267 async getBranch(branch: string) {
1268 const result: Endpoints['GET /repos/{owner}/{repo}/branches/{branch}']['response']['data'] =
1269 await this.request(`${this.repoURL}/branches/${encodeURIComponent(branch)}`);
1270 return result;
1271 }
1272
1273 async getDefaultBranch() {
1274 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