mirror of
https://github.com/Snigdha-OS/snigdhaos-kernel-switcher.git
synced 2025-09-20 21:04:55 +02:00
👷 ci(add): valid conventional commit
Signed-off-by: Abhiraj Roy <157954129+iconized@users.noreply.github.com>
This commit is contained in:
33
.github/workflows/commitizen.yml
vendored
Normal file
33
.github/workflows/commitizen.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: EZCommits Check on Push and Pull
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commitizen_check:
|
||||||
|
name: Check EZCommits Commit on Push
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "14"
|
||||||
|
|
||||||
|
- name: Install Commitizen
|
||||||
|
run: npm install -g commitizen
|
||||||
|
|
||||||
|
- name: Verify Commitizen Commit
|
||||||
|
run: |
|
||||||
|
if git log --format='%s' ${{ github.event.before }}..${{ github.sha }} | grep -v '^(feat|fix|docs|style|refactor|perf|test|chore|wip|ci)(\(.+\))?: .+'; then
|
||||||
|
echo "Invalid commit message found. Please use Commitizen convention."
|
||||||
|
exit 1
|
||||||
|
fi
|
Reference in New Issue
Block a user