diff --git a/ci.py b/ci.py index 6b0fd59..a3d8db0 100644 --- a/ci.py +++ b/ci.py @@ -481,7 +481,7 @@ def open_pr(args): if push.returncode != 0: raise RuntimeError(f"git push failed:\n{push.stderr}") - pulls = gitea("GET", "/pulls?state=open") + pulls = gitea("GET", f"/pulls?state=open&base_branch={args.base}") existing = next((pr for pr in pulls if pr["head"]["ref"] == args.branch), None) if existing: print(f"PR #{existing['number']} already open, pushed update")