diff --git a/.github/workflows/title.yml b/.github/workflows/title.yml new file mode 100644 index 00000000..b13bbac2 --- /dev/null +++ b/.github/workflows/title.yml @@ -0,0 +1,34 @@ +name: "Lint PR title" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + BREAKING + deprecation + feat + fix + docs + refactor + perf + test + ci + chore + revert + requireScope: false