Skip to content

Commit ace68dc

Browse files
Copilotdigitarald
andcommitted
Add PULL_REQUEST_TEMPLATE.md guidance to create_pull_request tool description
Co-authored-by: digitarald <[email protected]>
1 parent c382326 commit ace68dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/github/__toolsnaps__/create_pull_request.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Open new pull request",
44
"readOnlyHint": false
55
},
6-
"description": "Create a new pull request in a GitHub repository.",
6+
"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.",
77
"inputSchema": {
88
"properties": {
99
"base": {

pkg/github/pullrequests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func GetPullRequest(getClient GetClientFn, t translations.TranslationHelperFunc)
8686
// CreatePullRequest creates a tool to create a new pull request.
8787
func CreatePullRequest(getClient GetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
8888
return mcp.NewTool("create_pull_request",
89-
mcp.WithDescription(t("TOOL_CREATE_PULL_REQUEST_DESCRIPTION", "Create a new pull request in a GitHub repository.")),
89+
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.")),
9090
mcp.WithToolAnnotation(mcp.ToolAnnotation{
9191
Title: t("TOOL_CREATE_PULL_REQUEST_USER_TITLE", "Open new pull request"),
9292
ReadOnlyHint: ToBoolPtr(false),

0 commit comments

Comments
 (0)