From 0b2a3b9a75ecc3333dbc70a430d9c46e7cdcf3c7 Mon Sep 17 00:00:00 2001 From: huaiyuan <1029848564@qq.com> Date: Fri, 6 Dec 2024 21:12:19 +0800 Subject: [PATCH] ci: add pr conventional-commit-validation --- .../pr-conventional-commit-validation.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/pr-conventional-commit-validation.yml diff --git a/.github/workflows/pr-conventional-commit-validation.yml b/.github/workflows/pr-conventional-commit-validation.yml new file mode 100644 index 0000000..9f3f63b --- /dev/null +++ b/.github/workflows/pr-conventional-commit-validation.yml @@ -0,0 +1,16 @@ +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 + if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' + with: + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert","style"]' + add_label: 'true' \ No newline at end of file