Sam Morrow
72ff44f22b
Fix test failures for cursor-based pagination
...
- Updated all tests to handle new paginated response format with items, moreData, and cursor fields
- Updated CreatePaginatedSearchResponse to handle 'issues' field for SearchIssues
- Fixed SearchIssues and SearchPullRequests tests to unmarshal paginated responses correctly
- Updated per_page expectations from 30/10 to 11 (CursorFetchSize) in all test mocks
- Fixed ListIssues test to check for GraphQL 'after' cursor instead of REST 'cursor'
- All tests now passing
2025-11-05 12:10:52 +01:00
Jonathan
6f5040734a
Updates github-mcp-server to go-github/v76 ( #1289 )
...
* updates github-mcp-server to go-github/v76
* updates license files
* refactors ListProjects to make use of
google/go-github ProjectsService
* refactors GetProject to make use of google/go-github ProjectsService
* declaring commit without a pointer
* cleanup additional commit pointer
---------
Co-authored-by: Tommaso Moro <37270480+tommaso-moro@users.noreply.github.com >
2025-10-27 13:53:53 +01:00
Tommaso Moro
521d5e9258
Bump go-github to v74 ( #826 )
...
* update all imports to use v74
* go mod tidy
* update third party licenses
* rename
* autogen licenses
2025-08-06 22:11:50 +01:00
Matt Holloway
7ccc6b6493
Add pagination support to GraphQL-based tools ( #683 )
...
* initial pagination for `ListDiscussions`
* redo category id var cast
* add GraphQL pagination support for discussion comments and categories
* remove pageinfo returns
* fix out ref for linter
* update docs
* move to unified pagination for consensus on params
* update docs
* refactor pagination handling
* update docs
* linter fix
* conv rest to gql params for safe lint
* add nolint
* add error handling for perPage value in ToGraphQLParams
* refactor pagination error handling
* unified params for rest andn graphql and rennamed to be uniform for golang
* add 'after' for pagination
* update docs
* Update pkg/github/discussions.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update pkg/github/discussions.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update pkg/github/discussions_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* update default page size const
* reduce default pagination size from 100 to 30 in discussion tests
* update pagination for reverse and total
* update pagination to remove from discussions
* updated README
* improve the `ToGraphQLParams` function
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-21 16:31:29 +01:00
Martin Høst Normark
be91795fd3
Bump go-github to v73.0.0 ( #597 )
...
* Bump go-github to v73.0.0
* Clean up go.mod and update licenses
* Updated remaining imports to use github package v73 instead of v72
---------
Co-authored-by: Tommaso Moro <37270480+tommaso-moro@users.noreply.github.com >
Co-authored-by: tommaso-moro <tommaso-moro@github.com >
2025-07-15 15:21:24 +01:00
Sam Morrow
3e32f75cf4
fix: use better raw file handling and return resources
2025-06-12 14:54:23 +02:00
Lulu
cbcf29f6d1
Export ToBoolPtr and RequiredParam ( #495 )
...
* ToBoolPtr, RequiredParam
* lint: type assertion in RequiredParam
* cap docstring
2025-06-09 15:11:38 +02:00
Pranav RK
c7a872b9a1
Bump go-github to v72.0.0
2025-06-02 10:55:04 +02:00
William Martin
023f59d5cc
Use typed tool handler for get_me tool
2025-05-28 15:56:54 +02:00
William Martin
eca853b28a
Split PR review creation, commenting, submission and deletion
2025-05-19 17:50:36 +02:00
Sam Morrow
ff3036d596
feat: partition tools by product/feature
2025-04-15 01:11:53 +02:00
Sam Morrow
3ec8699deb
chore: groundwork for multi-user to server
2025-04-10 01:59:03 +02:00
Sam Morrow
519ed9ebc7
chore: export remaining search + helpers
2025-04-08 09:43:52 +02:00
William Martin
0f9ef6e708
Add pagination helper
2025-04-07 16:48:56 +02:00
William Martin
6e132eb067
Add optional string array param
License Check / license-check (push) Has been cancelled
Docker / build (push) Has been cancelled
Unit Tests / build (macos-latest) (push) Has been cancelled
Unit Tests / build (ubuntu-latest) (push) Has been cancelled
Unit Tests / build (windows-latest) (push) Has been cancelled
GoReleaser Release / release (push) Has been cancelled
Lint / lint (push) Has been cancelled
2025-04-04 17:30:10 +02:00
William Martin
d01e705332
Use arrays rather than comma separated lists
2025-04-03 23:10:00 +02:00
Javier Uruen Val
92bceb5fa5
linter
2025-03-26 11:03:52 +01:00
Javier Uruen Val
bc3bc766c8
use generic for helper functions
2025-03-24 17:28:21 +01:00
Javier Uruen Val
d24038cbd2
validate tools params
2025-03-24 17:28:21 +01:00
Sam Morrow
dd46f8a837
add a framework for translations
2025-03-20 18:33:30 +01:00
Javier Uruen Val
26e3c6c1ec
add create_issue tool ( #18 )
2025-03-20 18:17:10 +01:00
Javier Uruen Val
3dddc2abcd
add initial tests
2025-03-17 13:26:14 +01:00