Kate
1 year ago
committed by
GitHub
5 changed files with 54 additions and 0 deletions
@ -0,0 +1,22 @@
|
||||
name: Conventional commits |
||||
on: |
||||
pull_request: |
||||
|
||||
jobs: |
||||
conventional-commits: |
||||
name: Conventional commits |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: Checkout repository |
||||
uses: actions/checkout@v3 |
||||
with: |
||||
fetch-depth: 0 |
||||
ref: ${{ github.head_ref }} |
||||
|
||||
- name: Install dart |
||||
uses: dart-lang/setup-dart@v1 |
||||
- name: Install commitlint_cli |
||||
run: dart pub get |
||||
|
||||
- name: Lint conventional commits |
||||
run: dart run commitlint_cli --from="origin/${{ github.base_ref }}" --to="${{ github.head_ref }}" |
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env sh |
||||
. "$(dirname -- "$0")/_/husky.sh" |
||||
|
||||
# https://github.com/hyiso/commitlint/issues/6 |
||||
sed "s/^fixup! //" < "$1" | dart run commitlint_cli |
@ -0,0 +1,24 @@
|
||||
include: package:commitlint_cli/commitlint.yaml |
||||
|
||||
rules: |
||||
scope-empty: |
||||
- 2 |
||||
- never |
||||
scope-enum: |
||||
- 2 |
||||
- always |
||||
- - ci |
||||
- deps |
||||
- docs |
||||
- tool |
||||
- app |
||||
- dynamite |
||||
- dynamite_runtime |
||||
- file_icons |
||||
- neon |
||||
- neon_files |
||||
- neon_news |
||||
- neon_notes |
||||
- neon_notifications |
||||
- nextcloud |
||||
- sort_box |
Loading…
Reference in new issue