(operations: ChangeFileOperation[], options: PersistOptions)
| 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( |
no test coverage detected