[NFC][workflow] Fix issue where the workflow would say all PR's already exists

This commit is contained in:
Tobias Hieta 2022-06-02 08:20:21 +02:00
parent 11d8bc98d1
commit fde9ef5214
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class ReleaseWorkflow:
def check_if_pull_request_exists(self, repo:github.Repository.Repository, head:str) -> bool:
pulls = repo.get_pulls(head=head)
return pulls != None
return pulls.totalCount != 0
def create_pull_request(self, owner:str, branch:str) -> bool:
"""