mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
@@ -91,7 +91,10 @@ async def create_pr(
|
||||
body: Annotated[str | None, Field(description='PR body')],
|
||||
draft: Annotated[bool, Field(description='Whether PR opened is a draft')] = True,
|
||||
labels: Annotated[
|
||||
list[str] | None, Field(description='Labels to apply to the PR')
|
||||
list[str] | None,
|
||||
Field(
|
||||
description='Optional labels to apply to the PR. If labels are provided, they must be selected from the repository’s existing labels. Do not invent new ones. If the repository’s labels are not known, fetch them first.'
|
||||
),
|
||||
] = None,
|
||||
) -> str:
|
||||
"""Open a PR in GitHub"""
|
||||
@@ -161,7 +164,10 @@ async def create_mr(
|
||||
],
|
||||
description: Annotated[str | None, Field(description='MR description')],
|
||||
labels: Annotated[
|
||||
list[str] | None, Field(description='Labels to apply to the MR')
|
||||
list[str] | None,
|
||||
Field(
|
||||
description='Optional labels to apply to the MR. If labels are provided, they must be selected from the repository’s existing labels. Do not invent new ones. If the repository’s labels are not known, fetch them first.'
|
||||
),
|
||||
] = None,
|
||||
) -> str:
|
||||
"""Open a MR in GitLab"""
|
||||
|
||||
Reference in New Issue
Block a user