Bug 1356225 - Use merge for upstreaming wpt commits, a=testonly

MozReview-Commit-ID: 9NMEKlyrUrE
This commit is contained in:
James Graham
2017-04-04 17:04:36 +01:00
parent e509e1fe95
commit 93139c9362

View File

@@ -49,6 +49,7 @@ class GitHub(object):
if 200 <= resp.status_code < 300:
return resp.json()
else:
print method, path, resp.status_code, resp.json()
raise GitHubError(resp.status_code, resp.json())
def repo(self, owner, name):
@@ -139,7 +140,7 @@ class PullRequest(object):
"""Merge the Pull Request into its base branch.
"""
self.repo.gh.put(self.path("merge"),
{"merge_method": "rebase"},
{"merge_method": "merge"},
headers={"Accept": "application/vnd.github.polaris-preview+json"})