Kaynağa Gözat

ci: check commit messages with commitlint (#17541)

version-14
Ankush Menat 2 yıl önce
committed by GitHub
ebeveyn
işleme
8ac7e32214
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
2 değiştirilmiş dosya ile 35 ekleme ve 0 silme
  1. +30
    -0
      .github/workflows/semantic-commits.yml
  2. +5
    -0
      package.json

+ 30
- 0
.github/workflows/semantic-commits.yml Dosyayı Görüntüle

@@ -0,0 +1,30 @@
name: Semantic Commits

on:
pull_request: {}

permissions:
contents: read

concurrency:
group: commitcheck-frappe-${{ github.event.number }}
cancel-in-progress: true

jobs:
commitlint:
name: Check Commit Titles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 14
check-latest: true

- name: Check commit titles
run: |
npm install @commitlint/cli @commitlint/config-conventional
npx commitlint --verbose --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}

+ 5
- 0
package.json Dosyayı Görüntüle

@@ -82,5 +82,10 @@
"snyk": true,
"nyc": {
"report-dir": ".cypress-coverage"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}

Yükleniyor…
İptal
Kaydet