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

Method deleteRef

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

Source from the content-addressed store, hash-verified

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

Callers 3

abandonPullRequestMethod · 0.95
resetOriginRepoFunction · 0.45
resetForkedRepoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected