(
operations: ChangeFileOperation[],
options: PersistOptions,
branch: string,
)
| 1010 | } |
| 1011 | |
| 1012 | async changeFilesOnBranch( |
| 1013 | operations: ChangeFileOperation[], |
| 1014 | options: PersistOptions, |
| 1015 | branch: string, |
| 1016 | ) { |
| 1017 | return (await this.request(`${this.repoURL}/contents`, { |
| 1018 | method: 'POST', |
| 1019 | body: JSON.stringify({ |
| 1020 | branch, |
| 1021 | files: operations, |
| 1022 | message: options.commitMessage, |
| 1023 | }), |
| 1024 | })) as FilesResponse; |
| 1025 | } |
| 1026 | |
| 1027 | // Open Authoring (Fork) Support |
| 1028 | isForkOfOrigin(repo: ForgejoRepository) { |
no test coverage detected