Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: shorten long tool name for adding pr review comments#697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
LuluBeatson merged 5 commits intomainfromlulu/fix-long-name
Jul 18, 2025

Conversation

LuluBeatson
Copy link
Contributor

@LuluBeatsonLuluBeatson commentedJul 18, 2025
edited
Loading

Shorten tool name toadd_comment_to_pending_review

Reasoning:
Cursor has a limit of 60 characters for server name + tool name. Tools exceeding this don't show up.

  • Previous name:add_pull_request_review_comment_to_pending_review (length 49 characters)
  • New name:add_comment_to_pending_review (length 29 characters)

Closes:#582

@LuluBeatsonLuluBeatson marked this pull request as ready for reviewJuly 18, 2025 09:19
@CopilotCopilotAI review requested due to automatic review settingsJuly 18, 2025 09:19
@LuluBeatsonLuluBeatson requested a review froma team as acode ownerJuly 18, 2025 09:19
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR shortens the tool name fromadd_pull_request_review_comment_to_pending_review toadd_comment_to_pending_review to resolve a character limit issue in Cursor where tools with names exceeding 60 characters don't appear.

  • Function name changed fromAddPullRequestReviewCommentToPendingReview toAddCommentToPendingReview
  • Tool name shortened from 49 to 29 characters while maintaining clarity
  • Updated all references across tests, documentation, and end-to-end tests

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
pkg/github/tools.goUpdated function call to use new shortened tool name
pkg/github/pullrequests_test.goUpdated test assertions and function calls to match new naming
pkg/github/pullrequests.goRenamed function and updated tool name, description, and translation keys
pkg/github/toolsnaps/add_comment_to_pending_review.snapUpdated snapshot with new tool name and descriptions
e2e/e2e_test.goUpdated end-to-end test calls to use new tool name
README.mdUpdated documentation to reflect new tool name and description

Copy link
Collaborator

@williammartinwilliammartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Passes e2e test:

➜  github-mcp-server git:(lulu/fix-long-name) ✗ GOMAXPROCS=1 GITHUB_MCP_SERVER_E2E_HOST=https://github.com GITHUB_MCP_SERVER_E2E_TOKEN=$(gh auth token) go test -v -count=1 --tags e2e -run 'TestPullRequestReviewCommentSubmit' ./e2e=== RUN   TestPullRequestReviewCommentSubmit=== PAUSE TestPullRequestReviewCommentSubmit=== CONT  TestPullRequestReviewCommentSubmit    e2e_test.go:79: Building Docker image for e2e tests...    e2e_test.go:162: Starting Stdio MCP client...    e2e_test.go:1216: Getting current user...    e2e_test.go:1245: Creating repository williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1269: Creating branch in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1286: Creating commit with new file in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1315: Creating pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1330: Creating pending review for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1351: Adding file review comment to pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1371: Adding single line review comment to pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1393: Adding multi line review comment to pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1409: Submitting review for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1423: Getting reviews for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...    e2e_test.go:1254: Deleting repository williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1752830892961...--- PASS: TestPullRequestReviewCommentSubmit (19.09s)PASSok      github.com/github/github-mcp-server/e2e 19.339s

LuluBeatson reacted with heart emoji
@LuluBeatsonLuluBeatson merged commitb5e3348 intomainJul 18, 2025
16 checks passed
@LuluBeatsonLuluBeatson deleted the lulu/fix-long-name branchJuly 18, 2025 09:57
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@williammartinwilliammartinwilliammartin approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

add_pull_request_review_comment_to_pending_review not found in toolset
2 participants
@LuluBeatson@williammartin

[8]ページ先頭

©2009-2025 Movatter.jp