Commit Graph

305 Commits

Author SHA1 Message Date
Jake Shorty 919a10c187 Add tool for getting a single commit (includes stats, files) (#216)
* Add tool for getting a commit

* Split mock back out, use RepositoryCommit with Files/Stats
2025-04-11 08:09:19 +02:00
Sam Morrow 3ec8699deb chore: groundwork for multi-user to server 2025-04-10 01:59:03 +02:00
Andrew Georgiou 86fbc8504f Fix handling nil values for optional string array parameters, (#194)
* Fix handling nil values for optional string array parameters,

nil values should be equivalent to an empty string, currently we return an error but Claude passes nil for optional values.

* lint fixes
2025-04-09 18:25:59 +02:00
monotykamary 56c1fce434 feat: Add update_pull_request tool (#122)
* feat: add update_pull_request tool

* refactor: address feedback on optionalParamOK helper

* docs: add update_pull_request tool documentation

* refactor: update optionalParamsOK as exported member

* fix: rename to exported function
2025-04-09 08:11:10 +02:00
Sam Morrow 519ed9ebc7 chore: export remaining search + helpers 2025-04-08 09:43:52 +02:00
Sam Morrow 3dae8ab029 chore: export search funcs 2025-04-08 09:39:48 +02:00
Sam Morrow c1bdd6a0f0 chore: export repository funcs 2025-04-08 09:34:08 +02:00
Sam Morrow c85dd07e5e chore: export pr funcs 2025-04-08 09:33:37 +02:00
Sam Morrow f4770fa8a2 chore: export issues funcs 2025-04-08 09:32:36 +02:00
Sam Morrow 9a5fe115d8 chore: export code scanning funcs 2025-04-08 09:25:58 +02:00
Yuki Ito 973fb5d5c8 chore: Remove unnecessary trailing periods from descriptions (#170) 2025-04-08 07:23:11 +02:00
Sam Morrow 7ab5d968e0 chore: pass version through to server
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
License Check / license-check (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Docker / build (push) Has been cancelled
Unit Tests / build (macos-latest) (push) Has been cancelled
Lint / lint (push) Has been cancelled
2025-04-07 17:56:44 +02:00
Viktor Szépe ff1f16e829 Fix a typos in repository_resource.go 2025-04-07 17:00:33 +02:00
Dmytro Shteflyuk ff896d0f33 Removed duplicated createIssue tool definition 2025-04-07 16:54:40 +02:00
William Martin 0f9ef6e708 Add pagination helper 2025-04-07 16:48:56 +02:00
William Martin a72070069f Test issue search query params 2025-04-07 16:48:56 +02:00
Alexander Yastrebov 755b816b7c pkg/github: fix use of per page parameter
Page size tool parameter names were changed to `perPage` within #90
while GitHub API uses `per_page` parameter name.

This change fixes overlooked inconsistencies.

Follow up on #90
Follow up on #129
Fixes #136

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
2025-04-07 16:48:56 +02:00
Ohki Nozomu e4c2f58ddc Use github.Ptr instead of smithy-go/ptr (#147)
Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-07 16:29:30 +02:00
Ashwin Bhat 31471a4b4f Add line parameter support to create_pull_request_review tool (#118)
* Add line parameter support to create_pull_request_review tool

- Updated schema to make path and body the only required fields
- Added line parameter as alternative to position for inline comments
- Updated handler to accept either position or line based on GitHub API spec
- Added new test case that verifies line parameter works properly
- Updated error messages for better validation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Expand PR review API with multi-line comment support

- Added new parameters: line, side, start_line, start_side
- Added proper validation for multi-line comment parameters
- Improved validation logic to handle parameter combinations
- Added test cases for regular and multi-line comments
- Updated schema documentation for better tool discoverability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* gofmt

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-07 16:20:17 +02:00
Matt Metzger c77ea94c02 Add support for retrieving GitHub Issue Comments (#106)
* Add support for retrieving GitHub Issue Comments

Add new tool 'get_issue_comments' that allows fetching comments associated
with GitHub issues. This complements the existing issue retrieval functionality
and follows the same patterns as the pull request comments implementation.

The implementation includes:
- New getIssueComments function in pkg/github/issues.go
- Tool registration in server.go
- Comprehensive test coverage in issues_test.go

* Support pagination for get_issue_comments

---------

Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-07 16:11:00 +02:00
Javier Uruen Val 6b02799482 fix issue with pagination in search_repositories (#129) 2025-04-05 20:05:35 +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 6f7458ae3c Conform list tools
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 15:51:50 +02:00
Javier Uruen Val bdfb30ce4b assert query params (#97) 2025-04-04 14:51:53 +02:00
William Martin 95c7b0add6 Add missing milestone to create_issue (#88) 2025-04-04 14:47:20 +02:00
Javier Uruen Val ccaedb6f46 assert params and body (#96) 2025-04-04 14:32:00 +02:00
Javier Uruen Val ca1a8f96d4 assert request params and body (#95) 2025-04-04 13:57:35 +02:00
Javier Uruen Val e267a3c4a1 assert request params (#94) 2025-04-04 11:35:12 +02:00
William Martin 87d4407d1c Add boundaries to pagination
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
License Check / license-check (push) Has been cancelled
Unit Tests / build (macos-latest) (push) Has been cancelled
Docker / build (push) Has been cancelled
Lint / lint (push) Has been cancelled
2025-04-03 23:34:31 +02:00
William Martin 6b13742012 Enumerate strings in schema 2025-04-03 23:30:59 +02:00
William Martin d01e705332 Use arrays rather than comma separated lists 2025-04-03 23:10:00 +02:00
Ariel Deitcher b2503f37eb chore: repository resource tests (#69)
* refactor to make testing easier

* not needed in handler func

* small cleanup

* create repository_resource_test

* remove chatty comments

* comment cleanup, function rename and some more tests

* fix test for ubuntu runner

* remove it for now

* make required args explicit instead of panic

* more tests and cleanup

* chore: use raw repo resources (#70)

* use raw repo URIs for resources

* fetch repository content from raw urls

* ensure no error in test write

* Update pkg/github/repository_resource.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* use appropriate file name for text file test

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Sam Morrow <info@sam-morrow.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-02 23:33:34 +02:00
Javier Uruen Val 5f3926d535 add support for create_pull_request (#63)
Co-authored-by: Toby Padilla <toby@toby.sh>
2025-04-01 15:48:39 -06:00
Javier Uruen Val 92bceb5fa5 linter 2025-03-26 11:03:52 +01:00
Toby Padilla 5eb969e27b fix: add required fields for OpenAI API 2025-03-24 17:31:28 -06:00
Toby Padilla dd8eddff49 fix: mention "me" and "my" in get_me description 2025-03-24 17:26:46 -06: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
Javier Uruen Val af22499413 fix array schemas (#37) 2025-03-24 17:17:58 +01:00
Javier Uruen Val a26315fa15 add support for the push_files tool 2025-03-24 14:14:50 +01:00
Javier Uruen Val 7c772d2612 add support for the create_pull_request_review_tool (#33) 2025-03-24 13:50:49 +01:00
Javier Uruen Val faa236676f add support for the update_issue tool 2025-03-24 13:25:27 +01:00
Sam Morrow 3f7d5b0b8a feat: read-only flag 2025-03-20 18:49:46 +01:00
Sam Morrow dd46f8a837 add a framework for translations 2025-03-20 18:33:30 +01:00
Javier Uruen Val b3b3e02afd add support for list_issues (#26)
* add create_issue tool

* add support for list_issues
2025-03-20 18:20:34 +01:00
Javier Uruen Val 26e3c6c1ec add create_issue tool (#18) 2025-03-20 18:17:10 +01:00
Javier Uruen Val 031dd741a2 change some descriptions (#23)
* change some descriptions

* Update pkg/github/repositories.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-19 13:35:24 +01:00
Sam Morrow 1f43410b72 feature: repo resource 2025-03-18 18:47:22 +01:00
Javier Uruen Val 3dddc2abcd add initial tests 2025-03-17 13:26:14 +01:00
Sam Morrow 6c4bbf06ee chore: remove deprecated func 2025-03-14 17:46:09 +01:00