From e9c0e19c83d1ec78804664956ab6e50f7a0bd2c3 Mon Sep 17 00:00:00 2001 From: potatso Date: Fri, 7 Jul 2023 13:53:20 +0800 Subject: [PATCH] feat: add Lint PR --- .github/semantic-pull-request.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/semantic-pull-request.yml diff --git a/.github/semantic-pull-request.yml b/.github/semantic-pull-request.yml new file mode 100644 index 0000000..5f20ad7 --- /dev/null +++ b/.github/semantic-pull-request.yml @@ -0,0 +1,30 @@ +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@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # Configure which types are allowed. + # Default: https://github.com/commitizen/conventional-commit-types + types: | + bugfix # bug fixes + change # backward incompatible changes + doc # documentation changes including code comments + editor # code editor related configurations + feature # implementing a new feature + optimize # performance optimizations + refactor # code refactoring and other code rearrangement + style # coding style changes + tests # test suite changes \ No newline at end of file