From 6bc3af4c19e2ad63bd7ddc130d70c1867d3176cf Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Thu, 18 Jan 2024 02:18:32 +0900 Subject: [PATCH] ci: add validation of PR title Signed-off-by: Mogyuchi --- .github/workflows/lint-pr.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/lint-pr.yml diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml new file mode 100644 index 0000000..5d7adef --- /dev/null +++ b/.github/workflows/lint-pr.yml @@ -0,0 +1,35 @@ +name: Lint PR + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + validate: + name: Validate PR title + permissions: + pull-requests: read + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f # v5.4.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + perf + deps + revert + docs + style + chore + refactor + test + build + ci + disallowScopes: | + release