diff --git a/.github/workflows/pull-request-title.yml b/.github/workflows/pull-request-title.yml new file mode 100644 index 00000000000..52be047ac0d --- /dev/null +++ b/.github/workflows/pull-request-title.yml @@ -0,0 +1,17 @@ +name: check pull-request title +on: + pull_request: + types: + - edited + - opened + - reopened + - synchronize + +jobs: + check-pull-request-title: + runs-on: ubuntu-latest + steps: + - uses: fastify/action-pr-title@v0 + with: + regex: '/^(build|chore|ci|docs|feat|types|fix|perf|refactor|style|test)(?:\([^\):]*\))?!?:\s/' + github-token: ${{ github.token }}