(paths: string[], message: string)
| 448 | } |
| 449 | |
| 450 | async deleteFiles(paths: string[], message: string) { |
| 451 | const operations: ChangeFileOperation[] = await Promise.all( |
| 452 | paths.map(async path => { |
| 453 | const sha = await this.getFileSha(path); |
| 454 | |
| 455 | return { |
| 456 | operation: FileOperation.DELETE, |
| 457 | path, |
| 458 | sha, |
| 459 | } as ChangeFileOperation; |
| 460 | }), |
| 461 | ); |
| 462 | this.changeFiles(operations, { commitMessage: message }); |
| 463 | } |
| 464 | |
| 465 | toBase64(str: string) { |
| 466 | return Promise.resolve(Base64.encode(str)); |
no test coverage detected