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 d829476
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr_commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
pull_request:
branches: [ "main" ]
types: [opened, synchronize]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/[email protected]

- name: Get Dependencies
run: dart pub get

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

0 comments on commit d829476

Please sign in to comment.