mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-03 15:03:27 +00:00
chore: Open PRs as draft by default (#975)
This commit is contained in:
parent
ad4452032f
commit
ff7c52e649
1 changed files with 2 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ async def create_github_pr(
|
||||||
base_branch: str,
|
base_branch: str,
|
||||||
body: str,
|
body: str,
|
||||||
) -> tuple[str | None, int | None, bool]:
|
) -> tuple[str | None, int | None, bool]:
|
||||||
"""Create a GitHub pull request via the API.
|
"""Create a draft GitHub pull request via the API.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
repo_owner: Repository owner (e.g., "langchain-ai")
|
repo_owner: Repository owner (e.g., "langchain-ai")
|
||||||
|
|
@ -153,6 +153,7 @@ async def create_github_pr(
|
||||||
"head": head_branch,
|
"head": head_branch,
|
||||||
"base": base_branch,
|
"base": base_branch,
|
||||||
"body": body,
|
"body": body,
|
||||||
|
"draft": True,
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue