Skip to content

Commit fdc95e8

Browse files
committed
fix: Add pre-commit hook for conventional commits
1 parent ffc8904 commit fdc95e8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.pre-commit-config.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
repos:
3+
- repo: https://github.com/compilerla/conventional-pre-commit
4+
rev: v3.0.0
5+
hooks:
6+
- id: conventional-pre-commit
7+
stages: [commit-msg]
8+
args: []

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ If this project is just what you needed and/or has been helpful to you, please c
4343
* [Release notes](#release-notes)
4444
* [Development](#development)
4545
* [Setup dependencies](#setup-dependencies)
46+
* [Install pre-commit hooks](#install-pre-commit-hooks)
4647
* [Get some test media](#get-some-test-media)
4748
* [Running](#running)
4849

@@ -109,6 +110,12 @@ This project uses [release-please](https://github.com/googleapis/release-please)
109110
$ make setup
110111
```
111112

113+
### Install pre-commit hooks
114+
115+
```console
116+
$ pre-commit install --hook-type commit-msg
117+
```
118+
112119
### Get some test media
113120

114121
I leave it up do you to put some images/videos in the `./dev/api/media` folder.

0 commit comments

Comments
 (0)