[Feature]: Implement automated Go linting and semantic PR validation with GitHub Actions
Opened this issue · 0 comments
amitamrutiya commented
Checklist
- I've searched for similar issues and couldn't find anything matching
- I've discussed this feature request in the K8sGPT Slack and got positive feedback
Is this feature request related to a problem?
None
Problem Description
- Manual verification of code style and adherence to semantic commit messages can be time-consuming and error-prone.
- Inconsistent style and non-semantic commit messages impact project maintainability and readability.
Solution Description
-
Introduce a GitHub Action workflow to automatically:
- Run golangci-lint on pull requests to enforce code style and detect potential issues.
- Validate PR titles and bodies against the conventional commit message format using amean/action-semantic-pull-request.
Benefits
- Enhanced code quality and consistency.
- Improved code maintainability and readability.
- Reduced manual effort in code reviews.
- Early detection and prevention of potential issues.
- Consistent application of style guidelines.
Potential Drawbacks
N/A
Additional Information
If this feature you want, I'm happy to continue working on its implementation. Please share any further details or preferences.