(paths: string[], message: string)
| 1005 | } |
| 1006 | |
| 1007 | async deleteFiles(paths: string[], message: string) { |
| 1008 | if (this.useOpenAuthoring) { |
| 1009 | return Promise.reject('Cannot delete published entries as an Open Authoring user!'); |
| 1010 | } |
| 1011 | |
| 1012 | const branchData = await this.getDefaultBranch(); |
| 1013 | const files = paths.map(path => ({ path, sha: null })); |
| 1014 | const changeTree = await this.updateTree(branchData.commit.sha, files); |
| 1015 | const commit = await this.commit(message, changeTree); |
| 1016 | await this.patchBranch(this.branch, commit.sha); |
| 1017 | } |
| 1018 | |
| 1019 | async createBranchAndPullRequest(branchName: string, sha: string, commitMessage: string) { |
| 1020 | await this.createBranch(branchName, sha); |
nothing calls this directly
no test coverage detected