diff --git a/.github/workflows/validate-pr-title.yml b/.github/workflows/validate-pr-title.yml new file mode 100644 index 00000000..d868507e --- /dev/null +++ b/.github/workflows/validate-pr-title.yml @@ -0,0 +1,33 @@ +name: Validate PR Title + +on: + pull_request_target: + branches: [main] + types: [opened, edited, reopened, synchronize] + +permissions: + pull-requests: read + +jobs: + validate-pr-title: + name: Validate PR Title + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 + with: + types: | + build + chore + ci + docs + feat + fix + perf + refactor + release + revert + style + test + env: + GITHUB_TOKEN: ${{ github.token }}