Show More
@@ -49,10 +49,11 b' def merge_pr(num,github_api=3):' | |||||
49 | if github_api == 2: |
|
49 | if github_api == 2: | |
50 | repo = pr['head']['repository']['url'] |
|
50 | repo = pr['head']['repository']['url'] | |
51 | owner = pr['head']['user']['name'] |
|
51 | owner = pr['head']['user']['name'] | |
52 |
elif github_api == |
|
52 | elif github_api == 3 : | |
53 | repo = pr['head']['repo']['clone_url'] |
|
53 | repo = pr['head']['repo']['clone_url'] | |
54 | owner = pr['head']['repo']['owner']['login'] |
|
54 | owner = pr['head']['repo']['owner']['login'] | |
55 |
|
55 | |||
|
56 | ||||
56 | branch = pr['head']['ref'] |
|
57 | branch = pr['head']['ref'] | |
57 | mergeable = merge_branch(repo=repo, |
|
58 | mergeable = merge_branch(repo=repo, | |
58 | branch=branch, |
|
59 | branch=branch, |
General Comments 0
You need to be logged in to leave comments.
Login now