From ff7c52e6494c7ffec8b116ef958c58e9687b97af Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Tue, 24 Feb 2026 07:56:31 -0800 Subject: [PATCH] chore: Open PRs as draft by default (#975) --- apps/agent/agent/utils/github.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/agent/agent/utils/github.py b/apps/agent/agent/utils/github.py index b09c6325..3fe2dd37 100644 --- a/apps/agent/agent/utils/github.py +++ b/apps/agent/agent/utils/github.py @@ -134,7 +134,7 @@ async def create_github_pr( base_branch: str, body: str, ) -> tuple[str | None, int | None, bool]: - """Create a GitHub pull request via the API. + """Create a draft GitHub pull request via the API. Args: repo_owner: Repository owner (e.g., "langchain-ai") @@ -153,6 +153,7 @@ async def create_github_pr( "head": head_branch, "base": base_branch, "body": body, + "draft": True, } logger.info(