Skip to content

Commit

Permalink
feat: replace commitlint with gitlint (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ateoi authored Jan 22, 2024
1 parent b29a432 commit a9ac5a5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 54 deletions.
26 changes: 0 additions & 26 deletions .commitlintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
on: [push, pull_request]
jobs:
gitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install gitlint
run: pip install gitlint
- name: Validate current commit (last commit) with gitlint
if: github.event_name == 'push'
run: gitlint
- name: Validate PR commits with gitlint
if: github.event_name == 'pull_request'
run: gitlint --commits ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }},${{ github.event.pull_request.head.sha }}
28 changes: 0 additions & 28 deletions .github/workflows/commitlint.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[general]
ignore=body-is-missing
contrib=contrib-title-conventional-commits

0 comments on commit a9ac5a5

Please sign in to comment.