(
operations: ChangeFileOperation[],
options: PersistOptions,
branch: string,
)
| 1003 | } |
| 1004 | |
| 1005 | async changeFilesOnBranch( |
| 1006 | operations: ChangeFileOperation[], |
| 1007 | options: PersistOptions, |
| 1008 | branch: string, |
| 1009 | ) { |
| 1010 | return (await this.request(`${this.repoURL}/contents`, { |
| 1011 | method: 'POST', |
| 1012 | body: JSON.stringify({ |
| 1013 | branch, |
| 1014 | files: operations, |
| 1015 | message: options.commitMessage, |
| 1016 | }), |
| 1017 | })) as FilesResponse; |
| 1018 | } |
| 1019 | |
| 1020 | // Open Authoring (Fork) Support |
| 1021 | async forkExists(): Promise<boolean> { |
no test coverage detected