From 02e755bd92fdc8aef822536a142fadd2f2d0ca64 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Tue, 21 May 2024 13:54:21 +0100 Subject: [PATCH] ci: add conventional commit validation for PR titles (#9634) --- .../workflows/pr-require-conventional-commit.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pr-require-conventional-commit.yml diff --git a/.github/workflows/pr-require-conventional-commit.yml b/.github/workflows/pr-require-conventional-commit.yml new file mode 100644 index 00000000000..9427de94eeb --- /dev/null +++ b/.github/workflows/pr-require-conventional-commit.yml @@ -0,0 +1,15 @@ +name: PR Conventional Commit Validation + +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +jobs: + validate-pr-title: + runs-on: ubuntu-latest + steps: + - name: PR Conventional Commit Validation + uses: ytanikin/PRConventionalCommits@1.1.0 + with: + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' + add_label: 'false'