Skip to content

Commit

Permalink
ci: Add conventional commit check on PRs (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
germainlefebvre4 authored Mar 19, 2024
1 parent b6cd2b4 commit 0e972de
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/conventional-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Conventionnal commit
on:
- pull_request

jobs:
cog_check_job:
runs-on: ubuntu-latest
name: Check compliance
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Conventional commit check
uses: cocogitto/cocogitto-action@v3
with:
check-latest-tag-only: true

8 changes: 8 additions & 0 deletions cog.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[commit_types]
feat = { changelog_title = "Features" }
fix = { changelog_title = "Bugfix" }
chore = { changelog_title = "Miscellaneous", omit_from_changelog = true }
refactor = { changelog_title = "Refactor" }
test = { changelog_title = "Tests", omit_from_changelog = true }
doc = { changelog_title = "Documentation", omit_from_changelog = true }
ci = { changelog_title = "CI", omit_from_changelog = true }

0 comments on commit 0e972de

Please sign in to comment.