fix(backend-github): use workflow branch when listing files to move (#4019)

This commit is contained in:
Erez Rokah 2020-07-14 17:52:16 +03:00 committed by GitHub
parent e046a414f8
commit 8720a4233d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1000,7 +1000,7 @@ export default class API {
// rebase the branch before applying new changes
const rebasedHead = await this.rebaseBranch(branch);
const treeFiles = mediaFilesToRemove.concat(files);
const changeTree = await this.updateTree(rebasedHead.sha, treeFiles);
const changeTree = await this.updateTree(rebasedHead.sha, treeFiles, branch);
const commit = await this.commit(options.commitMessage, changeTree);
return this.patchBranch(branch, commit.sha, { force: true });