We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37eeb93 commit a593423Copy full SHA for a593423
src/seer/automation/codebase/repo_client.py
@@ -682,7 +682,9 @@ def create_pr_from_branch(
682
description: str,
683
provided_base: str | None = None,
684
) -> PullRequest:
685
- if pulls := self.repo.get_pulls(state="open", head=f"{self.repo_owner}:{branch.ref}"):
+ pulls = self.repo.get_pulls(state="open", head=f"{self.repo_owner}:{branch.ref}")
686
+
687
+ if pulls.totalCount > 0:
688
logger.error(
689
f"Branch {branch.ref} already has an open PR.",
690
extra={
0 commit comments