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

Method getBranch

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

Source from the content-addressed store, hash-verified

1278 }
1279
1280 async getBranch(branch: string) {
1281 const result: Endpoints['GET /repos/{owner}/{repo}/branches/{branch}']['response']['data'] =
1282 await this.request(`${this.repoURL}/branches/${encodeURIComponent(branch)}`);
1283 return result;
1284 }
1285
1286 async getDefaultBranch() {
1287 const result: Endpoints['GET /repos/{owner}/{repo}/branches/{branch}']['response']['data'] =

Callers 10

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

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected