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

Method getDefaultBranch

packages/decap-cms-backend-github/src/API.ts:1286–1290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1284 }
1285
1286 async getDefaultBranch() {
1287 const result: Endpoints['GET /repos/{owner}/{repo}/branches/{branch}']['response']['data'] =
1288 await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`);
1289 return result;
1290 }
1291
1292 async backupBranch(branchName: string) {
1293 try {

Callers 7

persistFilesMethod · 0.95
deleteFilesMethod · 0.95
editorialWorkflowGitMethod · 0.95
forceMergePRMethod · 0.95
hasWriteAccessMethod · 0.95
getHeadReferenceMethod · 0.95
authenticateMethod · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected