From a54907371b64a1e5fc3520b3f93758875db47963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=90=91=E5=A4=9C?= Date: Tue, 24 Sep 2024 14:55:07 +0800 Subject: [PATCH] ci(lint): add lint for pr title --- .github/workflows/lint-pr-title.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/lint-pr-title.yaml diff --git a/.github/workflows/lint-pr-title.yaml b/.github/workflows/lint-pr-title.yaml new file mode 100644 index 0000000..c47acd1 --- /dev/null +++ b/.github/workflows/lint-pr-title.yaml @@ -0,0 +1,27 @@ +name: Lint Pr Title + +on: [pull_request] + +jobs: + lint-pr-title: + name: Validating PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + fix + feat + docs + style + refactor + perf + test + build + ci + chore + revert + release + requireScope: false