-
Notifications
You must be signed in to change notification settings - Fork 1
Add meaningful title validation for issue creation #4
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@JaclynCodes 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
JaclynCodes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
|
JaclynCodes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
This PR enhances the GitHub MCP Server's issue creation functionality by implementing comprehensive title validation to ensure issues have meaningful, substantive titles rather than placeholder text.
Problem
The existing validation only checked for empty titles, allowing users to create issues with placeholder text like "Title", "TODO", or meaningless content like "!!!" or "Hi". This led to low-quality issues that don't provide clear information about the problem or request.
Solution
Added a new
RequiredMeaningfulTitlevalidation function that enforces:Example
Changes
RequiredMeaningfulTitlefunction inpkg/github/server.goCreateIssueto use the enhanced validationThe validation provides helpful, specific error messages for each failure case, guiding users to create better titles.
Fixes github#3.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.