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

Method getDifferences

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected