-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Copilot/fix 3 #977
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
base: main
Are you sure you want to change the base?
Copilot/fix 3 #977
Conversation
Co-authored-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
Co-authored-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
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.
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>
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:
Testing Enhancements:
Supply Chain Security:
|
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.
Rev
|
Closes: