diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000..a6f147f --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,36 @@ +name: PR title + +on: + pull_request: + types: + - opened + - edited + - reopened + - synchronize + branches: + - master + +jobs: + validate: + name: Validate Conventional Commits title + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@v6.1.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + perf + chore + docs + style + refactor + test + build + ci + revert + requireScope: false