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

Method getDefaultBranch

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

Source from the content-addressed store, hash-verified

1271 }
1272
1273 async getDefaultBranch() {
1274 const result: Endpoints['GET /repos/{owner}/{repo}/branches/{branch}']['response']['data'] =
1275 await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`);
1276 return result;
1277 }
1278
1279 async backupBranch(branchName: string) {
1280 try {

Callers 6

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

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected