forked from OSchip/llvm-project
[NFC][workflow] Fix issue where the workflow would say all PR's already exists
This commit is contained in:
parent
11d8bc98d1
commit
fde9ef5214
|
@ -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:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue