Skip to content

Conversation

JoannaaKL
Copy link
Contributor

@JoannaaKL JoannaaKL commented Sep 22, 2025

This pr:

  1. Removes (for now) pagination for list_projects tool
  2. Adds tools:
  • get_project tool for user and org
  • list_project_fields tool for user and org

Implements #44

Implements new projects V2 API. FYI implementation of project tools will use google/go-github when they implement the new API.
Pagination will be added in the next step.

@JoannaaKL JoannaaKL marked this pull request as ready for review September 22, 2025 16:02
@JoannaaKL JoannaaKL requested a review from a team as a code owner September 22, 2025 16:02
@Copilot Copilot AI review requested due to automatic review settings September 22, 2025 16:02
Copy link
Contributor

@Copilot Copilot AI 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 adds a new get_project tool to retrieve a specific project by number and removes pagination parameters from the existing list_projects tool.

  • Implements GetProject function to fetch a single project by number for users or organizations
  • Removes before and after pagination parameters from ListProjects tool
  • Updates documentation and tests to reflect these changes

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/github/tools.go Registers the new GetProject tool in the projects toolset
pkg/github/projects.go Implements GetProject function and removes pagination from ListProjects
pkg/github/projects_test.go Adds comprehensive tests for GetProject and updates ListProjects tests
pkg/github/toolsnaps/list_projects.snap Updates tool snapshot without pagination parameters
pkg/github/toolsnaps/get_project.snap New tool snapshot for GetProject
README.md Updates documentation to include GetProject and remove pagination from ListProjects

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

@JoannaaKL JoannaaKL changed the title Add get_project tool Add tools for Projects V2 Sep 25, 2025
@JoannaaKL JoannaaKL requested a review from tonytrg September 25, 2025 19:12
"readOnlyHint": true
},
"description": "List Projects for a user or organization",
"description": "List Projects for an user or org",
Copy link
Contributor

@MattBabbage MattBabbage Sep 26, 2025

Choose a reason for hiding this comment

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

it would be 'a user or organisation' 🫢

Copy link
Contributor

@MattBabbage MattBabbage left a comment

Choose a reason for hiding this comment

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

LGTM!

@JoannaaKL JoannaaKL merged commit abf7c47 into main Sep 26, 2025
16 checks passed
@JoannaaKL JoannaaKL deleted the add-get-project-tool branch September 26, 2025 09:36
nickytonline pushed a commit to nickytonline/github-mcp-http that referenced this pull request Oct 4, 2025
* Add get_project tool

* Remove pagination for now

* Fix url formatting

* Minor tweaks

* Add list project fields tool

* Wording
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants