Skip to content
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

[Feature]: Implement automated Go linting and semantic PR validation with GitHub Actions #350

Open
1 of 2 tasks
amitamrutiya opened this issue Feb 18, 2024 · 0 comments
Open
1 of 2 tasks

Comments

@amitamrutiya
Copy link
Contributor

amitamrutiya commented Feb 18, 2024

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.

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

No branches or pull requests

1 participant