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 title field to discussion in get_discussion tool#803

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

Conversation

tommaso-moro
Copy link
Contributor

Closes#802

Overview

This PR adds the discussiontitle field to the query in theget_discussion tool. Without it, the model seems to hallucinate title information (see screenshot below), and in general this seems like an important field for this tool

Demos using this discussionhttps://github.com/facebook/react/discussions/34039

Before (model hallucination)
Screenshot 2025-08-01 at 16 16 09

After (retrieves title correctly)
Screenshot 2025-08-01 at 16 21 33

@tommaso-morotommaso-moro requested a review froma team as acode ownerAugust 1, 2025 15:34
@CopilotCopilotAI review requested due to automatic review settingsAugust 1, 2025 15:34
Copy link
Contributor

@CopilotCopilotAI 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 thetitle field to the GraphQL query in theget_discussion tool to prevent model hallucination when retrieving GitHub discussion information. The change ensures that discussion titles are properly fetched and included in the response rather than being fabricated by the model.

  • Addtitle field to the GraphQL query structure and response mapping
  • Update test cases to include title field validation
  • Ensure consistent retrieval of discussion metadata

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

FileDescription
pkg/github/discussions.goAdd title field to GraphQL query structure and response mapping
pkg/github/discussions_test.goUpdate test query string and test data to include title field validation

@tommaso-morotommaso-moro changed the titleadd title to get_discussion queryAdd title field to discussion in get_discussion toolAug 1, 2025
Copy link
Contributor

@mattdhollowaymattdholloway left a comment

Choose a reason for hiding this comment

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

lgtm! 🚀

@tommaso-morotommaso-moro merged commitff6e859 intogithub:mainAug 1, 2025
10 checks passed
nickytonline pushed a commit to nickytonline/github-mcp-http that referenced this pull requestOct 4, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@mattdhollowaymattdhollowaymattdholloway 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.

Add missing 'title' field to discussion payload in get_discussion tool
2 participants
@tommaso-moro@mattdholloway

[8]ページ先頭

©2009-2025 Movatter.jp