Skip to content

Commit 0e972de

Browse files
ci: Add conventional commit check on PRs (#291)
1 parent b6cd2b4 commit 0e972de

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Conventionnal commit
3+
on:
4+
- pull_request
5+
6+
jobs:
7+
cog_check_job:
8+
runs-on: ubuntu-latest
9+
name: Check compliance
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
ref: ${{ github.event.pull_request.head.sha }}
15+
16+
- name: Conventional commit check
17+
uses: cocogitto/cocogitto-action@v3
18+
with:
19+
check-latest-tag-only: true
20+

cog.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[commit_types]
2+
feat = { changelog_title = "Features" }
3+
fix = { changelog_title = "Bugfix" }
4+
chore = { changelog_title = "Miscellaneous", omit_from_changelog = true }
5+
refactor = { changelog_title = "Refactor" }
6+
test = { changelog_title = "Tests", omit_from_changelog = true }
7+
doc = { changelog_title = "Documentation", omit_from_changelog = true }
8+
ci = { changelog_title = "CI", omit_from_changelog = true }

0 commit comments

Comments
 (0)