Skip to content

Security compliance #209

Security compliance

Security compliance #209

name: 'Commit Message Check'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
push:
branches:
- main
jobs:
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Check Commit Type
uses: gsactions/commit-message-checker@v1
with:
pattern: '^(Refs|Fixes) #YUPTOO-[0-9]+ - .+$'
error: 'Commit message should start with "Fixes #YUPTOO-<issue number> - "'