You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
683 B
21 lines
683 B
name: Conventional commits |
|
on: |
|
pull_request: |
|
|
|
jobs: |
|
conventional-commits: |
|
name: Conventional commits |
|
runs-on: ubuntu-22.04 |
|
steps: |
|
- name: Checkout repository |
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
|
with: |
|
fetch-depth: 0 |
|
|
|
- name: Install dart |
|
uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f # v1 |
|
- name: Install commitlint_cli |
|
run: dart pub get |
|
|
|
- name: Lint conventional commits |
|
run: dart run commitlint_cli --from=${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to=${{ github.event.pull_request.head.sha }}
|
|
|