refactor: Tweak labels prompt (#10523) (#10757)

This commit is contained in:
骆艺轩
2025-09-06 09:17:44 +08:00
committed by GitHub
parent c9cf351697
commit ecfbae2285
4 changed files with 8 additions and 6 deletions

View File

@@ -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 repositorys existing labels. Do not invent new ones. If the repositorys 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 repositorys existing labels. Do not invent new ones. If the repositorys labels are not known, fetch them first.'
),
] = None,
) -> str:
"""Open a MR in GitLab"""