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