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

Method getDifferences

packages/decap-cms-backend-azure/src/API.ts:671–685  ·  view source on GitHub ↗
(to: string)

Source from the content-addressed store, hash-verified

669 }
670
671 async getDifferences(to: string) {
672 const result = await this.requestJSON<AzureGitCommitDiffs>({
673 url: `${this.endpointUrl}/diffs/commits`,
674 params: {
675 baseVersion: this.branch,
676 targetVersion: this.refToBranch(to),
677 },
678 });
679
680 return result.changes.filter(
681 d =>
682 d.item.gitObjectType === AzureObjectType.BLOB &&
683 Object.values(AzureCommitChangeType).includes(d.changeType),
684 );
685 }
686
687 async editorialWorkflowGit(
688 files: (DataFile | AssetProxy)[],

Callers 1

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected