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

feat: implement get_repository_discussions tool with GraphQL support#261

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

Draft
sridharavinash wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromdiscussions-tooling

Conversation

sridharavinash
Copy link
Contributor

@sridharavinashsridharavinash commentedApr 13, 2025
edited
Loading

New Feature: Fetch GitHub Discussions

  • pkg/github/discussions.go: Added a new tool to fetch discussions from a specific GitHub repository using the GraphQL API. This includes defining structures forComment andDiscussion, and implementing theGetRepositoryDiscussions function.

Server Setup Updates

  • cmd/github-mcp-server/main.go: Updated the server setup to create and use a GraphQL client alongside the REST API client. This includes changes to therunStdioServer function to handle OAuth2 token creation and GraphQL client initialization.[1][2][3]

Dependency Modifications

  • go.mod: Added dependencies forgithubv4 andoauth2 to support the newGraphQL functionality.[1][2]

Additional Changes

Open questions

Debating if the client should be an interface rather than passing it in another function to theserver .

greggroth reacted with heart emoji
Locked bool `json:"locked"`
UpvoteCount int `json:"upvoteCount"`
CommentCount int `json:"commentCount"`
Comments []Comment `json:"comments,omitempty"`

Choose a reason for hiding this comment

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

Really glad we would be able to also have access to the comments

sridharavinash reacted with heart emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rociomontesrociomontesrociomontes left review comments

Copilot code reviewCopilotAwaiting requested review from CopilotCopilot will automatically review once the pull request is marked ready for review

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@sridharavinash@rociomontes@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp