Skip to content

Commit 27060e4

Browse files
committed
feat: Adding some initial checking for conventional commits.
1 parent 6f1057e commit 27060e4

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.gommit.toml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[config]
2+
exclude-merge-commits = true
3+
check-summary-length = true
4+
summary-length = 80
5+
6+
[matchers]
7+
all = "(?:build|ci|deps|docs|feat|fix|lint|perf|refactor|style|test)(?:\\([^\\)]*\\))?: (?:.+)"
8+
9+
[examples]
10+
a_simple_commit = """
11+
[build|ci|deps|docs|feat|fix|lint|perf|refactor|style|test](module): A commit message
12+
"""
13+
an_extended_commit = """
14+
[build|ci|deps|docs|feat|fix|lint|perf|refactor|style|test](module): A commit message
15+
16+
* first line
17+
* second line
18+
* and so on...
19+
"""

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ help:
5858
install-tools-go:
5959
@ $(ECHO) " "
6060
@ $(ECHO) "\033[1;33m=====> Installing Go packages...\033[0m"
61+
$(GO) install github.com/antham/gommit@latest
6162
$(GO) install github.com/bitfield/gotestdox/cmd/gotestdox@latest
6263
$(GO) install github.com/google/osv-scanner/cmd/osv-scanner@v1
6364
$(GO) install github.com/goph/licensei/cmd/licensei@latest

0 commit comments

Comments
 (0)