Skip to content

Commit 414309c

Browse files
TheoBrigittewilliammartin
authored andcommitted
Remove non-existent get_line_number_in_pull_request_file tool reference
1 parent e9f748f commit 414309c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/github/pullrequests.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import (
77
"io"
88
"net/http"
99

10-
"github.com/github/github-mcp-server/pkg/translations"
1110
"github.com/go-viper/mapstructure/v2"
1211
"github.com/google/go-github/v69/github"
1312
"github.com/mark3labs/mcp-go/mcp"
1413
"github.com/mark3labs/mcp-go/server"
1514
"github.com/shurcooL/githubv4"
15+
16+
"github.com/github/github-mcp-server/pkg/translations"
1617
)
1718

1819
// GetPullRequest creates a tool to get details of a specific pull request.
@@ -1050,7 +1051,7 @@ func CreatePendingPullRequestReview(getGQLClient GetGQLClientFn, t translations.
10501051
// AddPullRequestReviewCommentToPendingReview creates a tool to add a comment to a pull request review.
10511052
func AddPullRequestReviewCommentToPendingReview(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
10521053
return mcp.NewTool("add_pull_request_review_comment_to_pending_review",
1053-
mcp.WithDescription(t("TOOL_ADD_PULL_REQUEST_REVIEW_COMMENT_TO_PENDING_REVIEW_DESCRIPTION", "Add a comment to the requester's latest pending pull request review, a pending review needs to already exist to call this (check with the user if not sure). If you are using the LINE subjectType, use the get_line_number_in_pull_request_file tool to get an exact line number before commenting.")),
1054+
mcp.WithDescription(t("TOOL_ADD_PULL_REQUEST_REVIEW_COMMENT_TO_PENDING_REVIEW_DESCRIPTION", "Add a comment to the requester's latest pending pull request review, a pending review needs to already exist to call this (check with the user if not sure).")),
10541055
mcp.WithToolAnnotation(mcp.ToolAnnotation{
10551056
Title: t("TOOL_ADD_PULL_REQUEST_REVIEW_COMMENT_TO_PENDING_REVIEW_USER_TITLE", "Add comment to the requester's latest pending pull request review"),
10561057
ReadOnlyHint: toBoolPtr(false),

0 commit comments

Comments
 (0)