ci: remove commit linter in favor of PR title linter

This commit is contained in:
Folke Lemaitre 2024-06-05 18:24:52 +02:00
parent 73c767c2f3
commit 1d42e45fd2
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 41 additions and 6 deletions

View file

@ -4,12 +4,6 @@ on:
pull_request:
jobs:
commit_msg:
name: Conventional Commit Messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webiny/action-conventional-commits@v1.3.0
stylua:
name: Stylua Formatting
runs-on: ubuntu-latest

41
.github/workflows/pr.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: "Lint PR"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions:
pull-requests: read
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:
requireScope: true
subjectPattern: ^(?![A-Z]).+$
scopes: |
.+
types: |
build
chore
ci
docs
feat
fix
merge
perf
refactor
revert
style
test
wip
ignoreLabels: |
autorelease: pending