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

Add ListProjects tool#1113

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
JoannaaKL merged 5 commits intomainfromadd-projects
Sep 22, 2025
Merged

Add ListProjects tool#1113

JoannaaKL merged 5 commits intomainfromadd-projects
Sep 22, 2025

Conversation

JoannaaKL
Copy link
Contributor

@JoannaaKLJoannaaKL commentedSep 22, 2025
edited
Loading

First tool for projects V2.
Please note that part of this functionality is copy-paste of the relevant code in google/go-github that will be removed once we are able to merge pull requests there.
Implementsgoogle/go-github#3715

@CopilotCopilotAI review requested due to automatic review settingsSeptember 22, 2025 14:01
@JoannaaKLJoannaaKL requested a review froma team as acode ownerSeptember 22, 2025 14:01
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 implements the first tool for GitHub Projects V2 API, adding functionality to list projects for users and organizations. The implementation addresses the missing projects support as referenced in the GitHub issue.

  • Adds a newlist_projects tool that can list projects for users or organizations with pagination and query filtering
  • Creates comprehensive test coverage for the new functionality
  • Updates dependencies to support the new functionality

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
pkg/github/projects.goImplements the ListProjects function with API client integration and parameter handling
pkg/github/projects_test.goComprehensive test suite covering success cases, error scenarios, and parameter validation
pkg/github/tools.goRegisters the new projects toolset in the default toolset group
pkg/github/toolsnaps/list_projects.snapTool schema snapshot for testing
go.modUpdates mapstructure dependency from v2.3.0 to v2.4.0
third-party-licenses.*.mdUpdates license files to reflect the new mapstructure version

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

"github.com/google/go-github/v74/github"
"github.com/google/go-querystring/query"
"github.com/mark3labs/mcp-go/mcp"
"github.com/mark3labs/mcp-go/server"
Copy link
Preview

CopilotAISep 22, 2025

Choose a reason for hiding this comment

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

[nitpick] The code duplicates the addOptions function that already exists in the go-github library. Consider using github.addOptions from the go-github package instead of implementing a custom version to reduce code duplication.

Copilot uses AI. Check for mistakes.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yes genius, it exists in go-github but is not exported.

@JoannaaKLJoannaaKL changed the titleAdd projectsAdd ListProjects toolSep 22, 2025
@JoannaaKLJoannaaKL merged commit23630b3 intomainSep 22, 2025
16 checks passed
@JoannaaKLJoannaaKL deleted the add-projects branchSeptember 22, 2025 14:48
nickytonline pushed a commit to nickytonline/github-mcp-http that referenced this pull requestOct 4, 2025
* Bump go-viper/mapstructure* Update github.com/go-viper/mapstructure/v2 version in licenses* Add tool to list projects* Fix ordering
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@tommaso-morotommaso-morotommaso-moro 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
@JoannaaKL@tommaso-moro

[8]ページ先頭

©2009-2025 Movatter.jp