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

Method changeFiles

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

Source from the content-addressed store, hash-verified

381 }
382
383 async changeFiles(operations: ChangeFileOperation[], options: PersistOptions) {
384 return (await this.request(`${this.repoURL}/contents`, {
385 method: 'POST',
386 body: JSON.stringify({
387 branch: this.branch,
388 files: operations,
389 message: options.commitMessage,
390 }),
391 })) as FilesResponse;
392 }
393
394 async getChangeFileOperations(files: { path: string; newPath?: string }[], branch: string) {
395 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