Skip to content

Commit

Permalink
chore: add Github Action to validate PR commits
Browse files Browse the repository at this point in the history
  • Loading branch information
hyiso committed Jul 15, 2023
1 parent 40105b0 commit a687a22
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr_commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
pull_request:
branches: [ "main" ]
types: [opened, synchronize]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}

- uses: dart-lang/[email protected]

- name: Get Dependencies
run: dart pub get

- name: Validate PR Commits
run: VERBOSE=true dart run commitlint_cli --from="origin/${{ github.base_ref }}" --to="${{ github.head_ref }}" --config lib/commitlint.yaml

0 comments on commit a687a22

Please sign in to comment.