diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml new file mode 100644 index 00000000..e2f07778 --- /dev/null +++ b/.github/workflows/semantic-pr-title.yml @@ -0,0 +1,33 @@ +name: Ensure Conventional Commits-like PR titles + +on: + pull_request_target: + types: [opened, edited, synchronize] + +permissions: + pull-requests: read + +jobs: + semantic-pull-request: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + # add `improv` to the list of allowed types + with: + types: | + improv + fix + feat + refactor + build + ci + style + test + chore + perf + docs + break + revert + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}