Skip to content

Commit 61abd8f

Browse files
committed
Limit hook to the prepare-commit-msg stage
1 parent d311333 commit 61abd8f

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
description: Automatically transform your Git commit messages into Jira smart commits
44
entry: auto-smart-commit.py
55
language: script
6+
stages: [prepare-commit-msg]
67
always_run: true

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,12 @@ See [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/
2323

2424
## Installation
2525

26-
### Installation with pre-commit
27-
2826
Add the following to your `.pre-commit-config.yaml` file:
2927

3028
```yaml
3129
repos:
3230
- repo: https://github.com/radix-ai/auto-smart-commit
33-
rev: v1.0.0
31+
rev: v1.0.1
3432
hooks:
3533
- id: auto-smart-commit
3634
```
37-
38-
### Manual installation
39-
40-
Copy `auto-smart-commit.py` to a `githooks` directory in your repository, then run the following command from the root of your repository:
41-
42-
```bash
43-
git config --local core.hooksPath githooks
44-
```

0 commit comments

Comments
 (0)