diff --git a/.github/workflows/pr-commit-message-check.yml b/.github/workflows/pr-commit-message-check.yml new file mode 100644 index 00000000..3717dab5 --- /dev/null +++ b/.github/workflows/pr-commit-message-check.yml @@ -0,0 +1,19 @@ +name: 'Commit Message Check' +on: + pull_request: + types: + - "opened" + - "edited" + - "reopened" +jobs: + check-commit-message: + name: Check Commit Message + runs-on: ubuntu-20.04 + timeout-minutes: 1 + steps: + - name: Check Title + uses: gsactions/commit-message-checker@v1 + with: + pattern: '^.*(Feat|Chore|Fix):.*$' + error: 'You need at least one "Feat:|Chore:|Fix:" title.' + excludeDescription: true