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

Updatelist_commits Filtering Descriptions#634

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 6 commits intomainfromlulu/tool-descriptions
Jul 7, 2025

Conversation

LuluBeatson
Copy link
Contributor

@LuluBeatsonLuluBeatson commentedJul 3, 2025
edited
Loading

Fixes problems withlist_commit: bad perPage and sha values

  1. (reverted)Updated paginationperPage argument description to include"If unset, defaults to 30". This affects a lot of tools and is why the toolsnaps and README diff is large.
  2. Updatedlist_commits' filtering argument (sha,author) descriptions to clarify how they are used

API docs about pagination:https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api

Summarise the last 2 commits

Summarize the last 2 commits inhttps://github.com/github/github-mcp-server/pull/634

✅ Agent correctly gets PR details then uses a the branchlulu/tool-descriptions in the SHA argument

imageimage
Get only the last 5 commits

Get only the last 5 commits in github/github-mcp-server

✅ Agent correctly uses theperPage argument

image

@LuluBeatsonLuluBeatson changed the titleUpdate Tool DescriptionsUpdate Pagination &list_commits DescriptionsJul 7, 2025
@LuluBeatsonLuluBeatson marked this pull request as ready for reviewJuly 7, 2025 09:46
@CopilotCopilotAI review requested due to automatic review settingsJuly 7, 2025 09:46
@LuluBeatsonLuluBeatson requested a review froma team as acode ownerJuly 7, 2025 09:46
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 updates pagination descriptions to include the default per-page value and clarifies filtering argument descriptions forlist_commits.

  • Adds “If unset, defaults to 30” to allperPage parameter descriptions.
  • Refinessha andauthor descriptions inlist_commits to explain their behavior.
  • Updates generated tool snapshots and the README to reflect these description changes.

Reviewed Changes

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

Show a summary per file
FileDescription
pkg/github/server.goAdded default behavior and docs link toperPage description
pkg/github/repositories.goImprovedsha andauthor descriptions inListCommits
pkg/github/toolsnaps/search_users.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/search_repositories.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/search_pull_requests.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/search_issues.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/search_code.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/list_tags.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/list_pull_requests.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/list_notifications.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/list_issues.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/list_commits.snapUpdatedperPage,sha, andauthor in snapshot
pkg/github/toolsnaps/list_branches.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/get_pull_request_files.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/get_issue_comments.snapUpdatedperPage default in snapshot
pkg/github/toolsnaps/get_file_contents.snapClarifiedsha description in snapshot
pkg/github/toolsnaps/get_commit.snapUpdatedperPage default in snapshot
README.mdAdded default-perPage note and clarifiedsha/author entries
Comments suppressed due to low confidence (1)

pkg/github/repositories.go:114

  • [nitpick] The phrase 'to list commits of' is awkward and 'up to that SHA' might be confusing. Consider rephrasing to: 'Commit SHA, branch, or tag name to list commits from. Defaults to the repository’s default branch if not provided. When a SHA is supplied, listing begins from that commit.'
mcp.Description("Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA."),

@LuluBeatsonLuluBeatson requested a review fromtonytrgJuly 7, 2025 10:55
@LuluBeatsonLuluBeatson changed the titleUpdate Pagination &list_commits DescriptionsUpdatelist_commits Filtering DescriptionsJul 7, 2025
Copy link
Contributor

@tonytrgtonytrg left a comment

Choose a reason for hiding this comment

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

👍

@LuluBeatsonLuluBeatson merged commit39d7fec intomainJul 7, 2025
16 checks passed
@LuluBeatsonLuluBeatson deleted the lulu/tool-descriptions branchJuly 7, 2025 11:59
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@tonytrgtonytrgtonytrg 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.

2 participants
@LuluBeatson@tonytrg

[8]ページ先頭

©2009-2025 Movatter.jp