Skip to content

vinscant: Organize files in lib/ & res/. Boot & main loop cleanup. #50

vinscant: Organize files in lib/ & res/. Boot & main loop cleanup.

vinscant: Organize files in lib/ & res/. Boot & main loop cleanup. #50

name: commit message check

Check failure on line 1 in .github/workflows/commit_message_check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/commit_message_check.yml

Invalid workflow file

`pull-request` is not a valid event name
run-name: commit message check
on:
push:
branches:
- main
pull-request:
jobs:
check_commit_messages:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: check commit messages
run: |
git log --format="%s" origin/main..HEAD | while IFS= read -r message; do
if ! [[ $message =~ ^(vingo:|vinscant:|vinvoor:|zess:) ]]; then
echo $message
echo "Error: commit message should start with vingo:|vinscant:|vinvoor:|zess: depending on which subproject you are working on."
exit 1
fi
if ! [[ $message =~ ^.*:\ [a-z].* ]]; then
echo $message
echo "Error: first letter after project specifier should be lower case"
exit 1
fi
done