chore: add cc-cli support for conventional commits
This commit is contained in:
parent
1dc9c38165
commit
4e27cd0719
4 changed files with 16 additions and 0 deletions
4
.git-hooks/prepare-commit-msg
Executable file
4
.git-hooks/prepare-commit-msg
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# cc-cli as a commit hook
|
||||||
|
exec < /dev/tty
|
||||||
|
cargo bin cc-cli "$@"
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,6 +4,9 @@
|
||||||
debug/
|
debug/
|
||||||
target/
|
target/
|
||||||
|
|
||||||
|
# cargo-bin-run cache
|
||||||
|
.bin
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
|
|
@ -6,3 +6,9 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
cc-cli = "0.1.5"
|
||||||
|
|
||||||
|
[package.metadata.bin]
|
||||||
|
cc-cli = { version = "0.1" }
|
||||||
|
|
3
justfile
Normal file
3
justfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
install-hooks:
|
||||||
|
@echo "Installing git hooks"
|
||||||
|
git config core.hooksPath .git-hooks
|
Loading…
Reference in a new issue