Skip to content

Commit

Permalink
feat: enforce conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed Nov 11, 2024
1 parent 714720f commit 8c43c1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ repos:
hooks:
- id: pretty-format-java
args: [--autofix]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--verbose]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ This repository uses [`pre-commit`](https://pre-commit.com) for automatic lintin
pre-commit install
```

Conventional commits are enforced, but require an additional command to register the hook.

```shell
pre-commit install --hook-type commit-msg
```

### Code Style and Formatting

Due to the high amount of languages in this repository, we provide [a simple shell script](./format.sh) which formats most (if not all) files in this project. Please make sure your contributions conform to these formatters at all times.
Expand Down

0 comments on commit 8c43c1e

Please sign in to comment.