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

Consolidating pull requestsget tools#1172

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
almaleksia merged 6 commits intomainfromalmaleksia/consolidate-pull-requests
Oct 7, 2025

Conversation

almaleksia
Copy link
Contributor

@almaleksiaalmaleksia commentedOct 2, 2025
edited
Loading

This PR consolidates tools
get_pull_request
get_pull_request_files
get_pull_request_status
get_pull_request_diff
get_pull_request_reviews
get_pull_request_review_comments

underpull_request_read withmethod argument:

get
get_files
get_status
get_diff
get_reviews
get_review_comments

Change has been evaluated on curated benchmarks and introduced no regressions to the current behavior accross all models.

@almaleksiaalmaleksia marked this pull request as ready for reviewOctober 6, 2025 12:34
@almaleksiaalmaleksia requested a review froma team as acode ownerOctober 6, 2025 12:34
@CopilotCopilotAI review requested due to automatic review settingsOctober 6, 2025 12:34
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 consolidates six separate pull request read tools (get_pull_request,get_pull_request_files,get_pull_request_status,get_pull_request_diff,get_pull_request_reviews,get_pull_request_review_comments) into a single unified tool calledpull_request_read that uses amethod parameter to determine which specific operation to perform.

Key changes:

  • Replaced multiple individual tools with a single consolidatedpull_request_read tool
  • Added method-based routing with six supported methods:get,get_files,get_status,get_diff,get_reviews,get_review_comments
  • Updated all test cases to use the new consolidated tool and include the requiredmethod parameter

Reviewed Changes

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

Show a summary per file
FileDescription
pkg/github/tools.goUpdated toolset registration to use singlePullRequestRead tool instead of six separate tools
pkg/github/pullrequests_test.goUpdated all test cases to use new tool name and include requiredmethod parameter
pkg/github/pullrequests.goConsolidated six separate tool functions into onePullRequestRead function with method-based routing
pkg/github/toolsnaps/pull_request_read.snapAdded snapshot for new consolidated tool
pkg/github/toolsnaps/get_*.snapRemoved snapshots for deprecated individual tools
README.mdUpdated documentation to reflect new consolidated tool structure

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

Copy link
Contributor

@LuluBeatsonLuluBeatson left a comment

Choose a reason for hiding this comment

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

Nice!

@almaleksiaalmaleksia merged commitd0d4b0e intomainOct 7, 2025
16 checks passed
@almaleksiaalmaleksia deleted the almaleksia/consolidate-pull-requests branchOctober 7, 2025 09:05
@tonytrgtonytrg mentioned this pull requestOct 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@LuluBeatsonLuluBeatsonLuluBeatson 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
@almaleksia@LuluBeatson

[8]ページ先頭

©2009-2025 Movatter.jp