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

Method changeFiles

packages/decap-cms-backend-forgejo/src/API.ts:456–465  ·  view source on GitHub ↗
(operations: ChangeFileOperation[], options: PersistOptions)

Source from the content-addressed store, hash-verified

454 }
455
456 async changeFiles(operations: ChangeFileOperation[], options: PersistOptions) {
457 return (await this.request(`${this.repoURL}/contents`, {
458 method: 'POST',
459 body: JSON.stringify({
460 branch: this.branch,
461 files: operations,
462 message: options.commitMessage,
463 }),
464 })) as FilesResponse;
465 }
466
467 async getChangeFileOperations(files: (DataFile | AssetProxy)[], branch: string) {
468 const items: ChangeFileOperation[] = await Promise.all(

Callers 2

persistFilesMethod · 0.95
deleteFilesMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected