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

Method deleteRef

packages/decap-cms-backend-azure/src/API.ts:411–425  ·  view source on GitHub ↗
(ref: AzureRef)

Source from the content-addressed store, hash-verified

409 }
410
411 async deleteRef(ref: AzureRef): Promise<void> {
412 const deleteBranchPayload = [
413 {
414 name: ref.name,
415 oldObjectId: ref.objectId,
416 newObjectId: '0000000000000000000000000000000000000000',
417 },
418 ];
419
420 await this.requestJSON({
421 method: 'POST',
422 url: `${this.endpointUrl}/refs`,
423 body: JSON.stringify(deleteBranchPayload),
424 });
425 }
426
427 async uploadAndCommit(
428 items: AzureCommitItem[],

Callers 3

abandonPullRequestMethod · 0.95
resetOriginRepoFunction · 0.45
resetForkedRepoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected