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

Method isShaExistsInBranch

packages/decap-cms-backend-gitlab/src/API.ts:990–998  ·  view source on GitHub ↗
(branch: string, sha: string)

Source from the content-addressed store, hash-verified

988 }
989
990 async isShaExistsInBranch(branch: string, sha: string) {
991 const refs: GitLabCommitRef[] = await this.requestJSON({
992 url: `${this.repoURL}/repository/commits/${sha}/refs`,
993 params: {
994 type: 'branch',
995 },
996 });
997 return refs.some(r => r.name === branch);
998 }
999
1000 async deleteBranch(branch: string) {
1001 await this.request({

Callers

nothing calls this directly

Calls 1

someMethod · 0.80

Tested by

no test coverage detected