diff --git a/pkg/github/__toolsnaps__/create_pull_request.snap b/pkg/github/__toolsnaps__/create_pull_request.snap index 44142a79e..3f0ddf63d 100644 --- a/pkg/github/__toolsnaps__/create_pull_request.snap +++ b/pkg/github/__toolsnaps__/create_pull_request.snap @@ -3,7 +3,7 @@ "title": "Open new pull request", "readOnlyHint": false }, - "description": "Create a new pull request in a GitHub repository.", + "description": "Create a new pull request in a GitHub repository. If there is a PULL_REQUEST_TEMPLATE.md file in the repository, consider using it as a reference for the pull request description to follow repository conventions.", "inputSchema": { "properties": { "base": { diff --git a/pkg/github/pullrequests.go b/pkg/github/pullrequests.go index b2e4e9290..350cc0e11 100644 --- a/pkg/github/pullrequests.go +++ b/pkg/github/pullrequests.go @@ -86,7 +86,7 @@ func GetPullRequest(getClient GetClientFn, t translations.TranslationHelperFunc) // CreatePullRequest creates a tool to create a new pull request. func CreatePullRequest(getClient GetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) { return mcp.NewTool("create_pull_request", - mcp.WithDescription(t("TOOL_CREATE_PULL_REQUEST_DESCRIPTION", "Create a new pull request in a GitHub repository.")), + mcp.WithDescription(t("TOOL_CREATE_PULL_REQUEST_DESCRIPTION", "Create a new pull request in a GitHub repository. If there is a PULL_REQUEST_TEMPLATE.md file in the repository, consider using it as a reference for the pull request description to follow repository conventions.")), mcp.WithToolAnnotation(mcp.ToolAnnotation{ Title: t("TOOL_CREATE_PULL_REQUEST_USER_TITLE", "Open new pull request"), ReadOnlyHint: ToBoolPtr(false),