Skip to content

ci: add commitlint, Husky, and release-please (rebased from #2339) #2406

@louisgv

Description

@louisgv

Summary

PR #2339 introduced automated version management and commit message validation but has become stale with merge conflicts. This issue tracks reimplementing the work on top of current main.

Original Changes

  • commitlint for conventional commit message validation
  • Husky git hooks for pre-commit checks
  • release-please for automated version bumping and changelog generation
  • Workflow changes to trigger CLI releases on GitHub release events

Security Review Status

All security concerns from #2339 have been resolved:

  • Command injection risks properly mitigated using printf '%s\n' with file redirection
  • GitHub App tokens properly scoped
  • Shell variables properly quoted
  • No credential leaks or unsafe code execution

Implementation Notes

  1. Create worktree from current main
  2. Cherry-pick changes from ci: add commitlint, Husky, and release-please #2339 or reimplement fresh
  3. Resolve merge conflicts
  4. Run full test suite and lint checks
  5. Create new PR

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    safe-to-workSecurity triage: safe for automated processing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions