diff --git a/tools/git-mpr.py b/tools/git-mpr.py index e9c0d04..05c599f 100755 --- a/tools/git-mpr.py +++ b/tools/git-mpr.py @@ -49,10 +49,11 @@ def merge_pr(num,github_api=3): if github_api == 2: repo = pr['head']['repository']['url'] owner = pr['head']['user']['name'] - elif github_api == 2 : + elif github_api == 3 : repo = pr['head']['repo']['clone_url'] owner = pr['head']['repo']['owner']['login'] + branch = pr['head']['ref'] mergeable = merge_branch(repo=repo, branch=branch,