Skip to content

Add Pre-Push Hook Support #27

Description

@ductrl

Description

Add support for installing CommitGate as a Git pre-push hook in addition to the existing pre-commit hook.


Reason

Feedback from many users indicate that running review scan on every commit adds too much friction to the development workflow.

The pre-push option results in fewer scans, lower API usage, and less development interruption.


Proposed Changes

  • Extend hook installation to support both pre-commit and pre-push
  • Add configuration options:
    • hook_type: pre-commit / pre-push
  • Update install hook command to install the selected hook type
  • Ensure duplicate hooks are not added
  • Update setup instructions.

Acceptance Criteria

  • Users can configure CommitGate as a pre-push hook.
  • Hook installer handles existing hooks safely.
  • Documentation includes examples for both modes.

Priority

  • High

Related Files

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions