Skip to content

Commit

Permalink
Limit hook to the prepare-commit-msg stage
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber committed Jan 1, 2020
1 parent d311333 commit 61abd8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
description: Automatically transform your Git commit messages into Jira smart commits
entry: auto-smart-commit.py
language: script
stages: [prepare-commit-msg]
always_run: true
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,12 @@ See [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/

## Installation

### Installation with pre-commit

Add the following to your `.pre-commit-config.yaml` file:

```yaml
repos:
- repo: https://github.com/radix-ai/auto-smart-commit
rev: v1.0.0
rev: v1.0.1
hooks:
- id: auto-smart-commit
```
### Manual installation
Copy `auto-smart-commit.py` to a `githooks` directory in your repository, then run the following command from the root of your repository:

```bash
git config --local core.hooksPath githooks
```

0 comments on commit 61abd8f

Please sign in to comment.