fix: rebase open authoring branches (#2975)

* fix: create open authoring branches from default origin branch

* refactor: pass repoURL to getBranch

* fix(backend-github): rebase open authoring branch,support multiple files
This commit is contained in:
Erez Rokah
2019-12-20 19:33:43 +02:00
committed by Shawn Erquhart
parent e2d778754d
commit 8c175f6132
66 changed files with 14232 additions and 15037 deletions

View File

@ -12,7 +12,7 @@ export default class API extends GithubAPI {
}
hasWriteAccess() {
return this.getBranch()
return this.getDefaultBranch()
.then(() => true)
.catch(error => {
if (error.status === 401) {