From 0f789db1d5e1c4e5423ef9f51b1d96ccaca82612 2012-06-11 18:49:51 From: Matthias BUSSONNIER Date: 2012-06-11 18:49:51 Subject: [PATCH] fix 2->3 --- 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,