Skip to content
name: Check commit messages
on:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
pull_request:
jobs:
length:
name: Check that length of commit messages are <72 characters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check commit length
run: |
echo $GITHUB_SHA
echo $GITHUB_REF
git log $GITHUB_SHA..$GITHUB_REF
git log $GITHUB_REF..$GITHUB_SHA