mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
Fix bug when updating a pull request
This commit is contained in:
parent
3c86e9a421
commit
006313b45a
5 changed files with 12 additions and 12 deletions
|
@ -120,7 +120,7 @@ def process_event(github_token, github_repository, repo, branch, base):
|
|||
pull_request = github_repo.get_pulls(
|
||||
state='open',
|
||||
base=base,
|
||||
head=branch)[1]
|
||||
head=branch)[0]
|
||||
print("Updated pull request #%d (%s => %s)" %
|
||||
(pull_request.number, branch, base))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue