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

Method getBranch

packages/decap-cms-backend-gitlab/src/API.ts:577–582  ·  view source on GitHub ↗
(branchName: string)

Source from the content-addressed store, hash-verified

575 fromBase64 = (str: string) => Base64.decode(str);
576
577 async getBranch(branchName: string) {
578 const branch: GitLabBranch = await this.requestJSON(
579 `${this.repoURL}/repository/branches/${encodeURIComponent(branchName)}`,
580 );
581 return branch;
582 }
583
584 async uploadAndCommit(
585 items: CommitItem[],

Callers 2

uploadAndCommitMethod · 0.95
getDefaultBranchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected