Skip to content

Commit e4e731c

Browse files
committed
chore(ci): Encourage conventional commits
This would help with writing changelogs
1 parent cf579ff commit e4e731c

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

Diff for: .github/workflows/committed.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Not run as part of pre-commit checks because they don't handle sending the correct commit
2+
# range to `committed`
3+
name: Lint Commits
4+
on: [pull_request]
5+
6+
permissions:
7+
contents: read
8+
9+
env:
10+
RUST_BACKTRACE: 1
11+
CARGO_TERM_COLOR: always
12+
CLICOLOR: 1
13+
14+
jobs:
15+
committed:
16+
name: Lint Commits
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Actions Repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Lint Commits
24+
uses: crate-ci/committed@master

Diff for: .pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ repos:
1919
hooks:
2020
- id: typos
2121
stages: [commit]
22+
- repo: https://github.com/crate-ci/committed
23+
rev: v1.0.20
24+
hooks:
25+
- id: committed
26+
stages: [commit-msg]

Diff for: committed.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
style="conventional"
2+
ignore_author_re="(dependabot|renovate)"
3+
merge_commit = false

0 commit comments

Comments
 (0)