diff --git a/.github/prlint.json b/.github/prlint.json deleted file mode 100644 index a7ea9b70..00000000 --- a/.github/prlint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "title": [ - { - "pattern": "^(feat|fix|docs|style|refactor|perf|test|chore):\\s", - "flags": ["i"], - "message": "PR title doesn't match conventional commit message specs. See https://conventionalcommits.org/" - } - ] -} diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml new file mode 100644 index 00000000..a6140a38 --- /dev/null +++ b/.github/workflows/semantic-pr.yml @@ -0,0 +1,21 @@ +name: Semantic Pull Request + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: semantic-pull-request + uses: amannn/action-semantic-pull-request@v1.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}