From f3fe3e63d5939a639cb0db1e2b7cac9e2c58c568 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Wed, 17 Jan 2024 15:20:11 +0900 Subject: [PATCH] ci: validate pr title --- .github/workflows/check-pr-title.yml | 29 ++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index e7549f780..945c96359 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -1,16 +1,33 @@ -name: Check PR title +name: Lint PR + on: pull_request_target: types: - opened - - reopened - edited - synchronize jobs: - lint: + validate: + name: Validate PR title + permissions: + pull-requests: read runs-on: ubuntu-latest steps: - - uses: aslafy-z/conventional-pr-title-action@a0b851005a0f82ac983a56ead5a8111c0d8e044a # v3.2.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: amannn/action-semantic-pull-request@v5 + with: + types: | + feat + fix + perf + deps + revert + docs + style + chore + refactor + test + build + ci + disallowScopes: | + release