diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 00000000..8c7d0d6b --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,19 @@ +name: "Validation" +on: + pull_request: + types: + - "opened" + - "edited" + - "reopened" +jobs: + check-commit-message: + name: "PR Title" + 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 of "Feat:|Chore:|Fix:" in PR title prefix.' + excludeDescription: true