From f5e916db3125d432fea33fa3b730b53e0bbf8c88 Mon Sep 17 00:00:00 2001 From: Purvi Kanal Date: Mon, 28 Nov 2022 13:40:04 -0500 Subject: [PATCH] ci: validate PR title --- .github/workflows/validate-pr-title.yml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/validate-pr-title.yml diff --git a/.github/workflows/validate-pr-title.yml b/.github/workflows/validate-pr-title.yml new file mode 100644 index 0000000..65fc7bc --- /dev/null +++ b/.github/workflows/validate-pr-title.yml @@ -0,0 +1,31 @@ +name: "Validate PR Title" + +on: + pull_request: + types: + - opened + - edited + - synchronize + +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: + # Have to specify all types because `maint` and `rel` aren't defaults + types: | + maint + rel + fix + feat + chore + ci + docs + style + refactor + perf + test