Skip to content

Commit 60c745e

Browse files
authored
fix: PR from fork (#11)
Fix #7 PR from fork repo see nextcloud/neon#481
2 parents f741e45 + 1038c3f commit 60c745e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/pr_commits.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
- uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 0
13-
ref: ${{ github.head_ref }}
1413

1514
- uses: dart-lang/setup-dart@v1.3
1615

1716
- name: Get Dependencies
1817
run: dart pub get
1918

2019
- name: Validate PR Commits
21-
run: VERBOSE=true dart run commitlint_cli --from="origin/${{ github.base_ref }}" --to="${{ github.head_ref }}" --config lib/commitlint.yaml
20+
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

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)