From cc2587a77a6d93294a1ed558038c0971ad003f11 Mon Sep 17 00:00:00 2001 From: phenix3443 Date: Wed, 20 Mar 2024 15:33:40 +0800 Subject: [PATCH] feat: add pr lint --- .github/workflows/lint-pr.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 000000000..3192e0b95 --- /dev/null +++ b/.github/workflows/lint-pr.yml @@ -0,0 +1,25 @@ +name: Lint PR + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + scopes: | + ci + DeFi + NFT + DAO + CRYPTO + requireScope: true