Skip to content

Conversation

JaclynCodes
Copy link

Closes:

JaclynCodes and others added 4 commits August 24, 2025 15:14
Co-authored-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
Co-authored-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
@JaclynCodes JaclynCodes marked this pull request as ready for review August 26, 2025 18:25
@JaclynCodes JaclynCodes requested a review from a team as a code owner August 26, 2025 18:25
@Copilot Copilot AI review requested due to automatic review settings August 26, 2025 18:25
Copy link
Contributor

@Copilot Copilot AI 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 validation logic to ensure issue titles are meaningful and substantial. It replaces basic parameter validation with enhanced title validation that checks for minimum length, alphanumeric content, and common placeholder patterns.

  • Introduces RequiredMeaningfulTitle function with comprehensive validation rules
  • Updates issue creation to use the new validation function
  • Adds comprehensive test coverage for various title validation scenarios

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/github/server.go Adds new RequiredMeaningfulTitle validation function with length, content, and placeholder checks
pkg/github/issues.go Updates issue creation to use meaningful title validation instead of basic parameter validation
pkg/github/server_test.go Adds comprehensive test suite for the new title validation function
pkg/github/issues_test.go Adds test cases for issue creation with invalid titles
README.md Updates documentation to describe the new title validation requirements
.github/workflows/generator-generic-ossf-slsa3-publish.yml Adds SLSA provenance generation workflow (unrelated to title validation)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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

This pull request introduces stricter validation for GitHub issue titles to ensure they are meaningful, not placeholders, and meet minimum requirements. It also adds comprehensive unit tests for the new validation logic and updates documentation to reflect these changes. Additionally, a new GitHub Actions workflow is added for generating SLSA provenance files for improved supply chain security.

Issue Title Validation Improvements:

  • Added a new function RequiredMeaningfulTitle in pkg/github/server.go that enforces issue titles to be at least 3 characters long, contain at least one letter or number, and not be common placeholders (e.g., "Title", "TODO", "test"). ([pkg/github/server.goR91-R148](https://github.com/github/github-mcp-server/pull/977/files#diff-b6e388e2a018b4bc415a18e7dd986e6b7730931af9d26c37ba4be38988e421edR91-R148))
  • Updated the issue creation logic in pkg/github/issues.go to use RequiredMeaningfulTitle instead of the previous generic required parameter check. ([pkg/github/issues.goL804-R804](https://github.com/github/github-mcp-server/pull/977/files#diff-eab3158a062b4de104a63ca60b07d2db607535afac21cc90b136af8496e6681aL804-R804))
  • Enhanced the API documentation in README.md to specify the new requirements for the title parameter when creating issues. ([README.mdL536-R536](https://github.com/github/github-mcp-server/pull/977/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L536-R536))

Testing Enhancements:

  • Added extensive unit tests for RequiredMeaningfulTitle in pkg/github/server_test.go, covering valid, invalid, and edge-case titles. ([pkg/github/server_test.goR563-R683](https://github.com/github/github-mcp-server/pull/977/files#diff-014ce2a5e97b449dbaacef3a9a5b1cb9bd0e7a863b095ef29117af2a1d3bdf85R563-R683))
  • Expanded integration tests in pkg/github/issues_test.go to verify error messages for invalid titles during issue creation. ([pkg/github/issues_test.goR684-R740](https://github.com/github/github-mcp-server/pull/977/files#diff-2e611e3b483afedad4fd22bdbefada38ac15d4d752b7d71e22b454e8e3800b5eR684-R740))

Supply Chain Security:

  • Introduced a new workflow file .github/workflows/generator-generic-ossf-slsa3-publish.yml to generate SLSA provenance files, supporting supply chain security best practices. ([.github/workflows/generator-generic-ossf-slsa3-publish.ymlR1-R66](https://github.com/github/github-mcp-server/pull/977/files#diff-98bd42f3b5e076be27172aad3387298cbca7505451064fb47b3a5c384bd0ca40R1-R66))

Copy link
Author

@JaclynCodes JaclynCodes left a comment

Choose a reason for hiding this comment

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

Rev

@JaclynCodes
Copy link
Author

Rev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants