Skip to content

Commit 1038c3f

Browse files
authored
docs: update example configuration for Validate PR Commits Github Action
1 parent 539968f commit 1038c3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/guides-setup.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,12 @@ jobs:
101101
- uses: actions/checkout@v3
102102
with:
103103
fetch-depth: 0
104-
ref: ${{ github.head_ref }}
105104
106105
- uses: dart-lang/setup-dart@v1.3
107106
108107
- name: Get Dependencies
109108
run: dart pub get
110109
111110
- name: Validate PR Commits
112-
run: dart run commitlint_cli --from="origin/${{ github.base_ref }}" --to="${{ github.head_ref }}"
111+
run: VERBOSE=true dart run commitlint_cli --from=${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to=${{ github.event.pull_request.head.sha }} --config lib/commitlint.yaml
113112
```

0 commit comments

Comments
 (0)