From fde9ef5214dcc40afbf480e9cce4a3517544ee18 Mon Sep 17 00:00:00 2001 From: Tobias Hieta Date: Thu, 2 Jun 2022 08:20:21 +0200 Subject: [PATCH] [NFC][workflow] Fix issue where the workflow would say all PR's already exists --- llvm/utils/git/github-automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py index e094fe8..a868429 100755 --- a/llvm/utils/git/github-automation.py +++ b/llvm/utils/git/github-automation.py @@ -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: """ -- 2.7.4