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 support for retrieving GitHub Issue Comments#106

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
juruen merged 4 commits intogithub:mainfromalmostwhitehat:add-issue-comments-tool
Apr 7, 2025

Conversation

almostwhitehat
Copy link
Contributor

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

riiacat and djyarber reacted with heart emoji
Add new tool 'get_issue_comments' that allows fetching comments associatedwith GitHub issues. This complements the existing issue retrieval functionalityand 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
Copy link
Collaborator

@juruenjuruen left a comment

Choose a reason for hiding this comment

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

First of all, thank you so much for your contribution!

This is looking good, I just added a comment about adding proper pagination support.

Comment on lines 631 to 635
opts := &github.IssueListCommentsOptions{
ListOptions: github.ListOptions{
PerPage: 100,
},
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, let's add proper support for pagination. That is, let's make the tool takepage, andperPage. Take a look atlistCommits if you want to see an example.

To be consistent, use30 as the default page size.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

🤦 Great catch - I added pagination with a default perPage of 30, and added tests for it!

juruen reacted with heart emoji
Copy link
Collaborator

@juruenjuruen left a comment

Choose a reason for hiding this comment

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

This looks great, thank so much for your work here! 🚀

@juruenjuruen merged commitc77ea94 intogithub:mainApr 7, 2025
9 checks passed
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
* Add support for retrieving GitHub Issue CommentsAdd new tool 'get_issue_comments' that allows fetching comments associatedwith GitHub issues. This complements the existing issue retrieval functionalityand 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>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@juruenjuruenjuruen 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
@almostwhitehat@juruen

[8]ページ先頭

©2009-2025 Movatter.jp