Skip to content

Commit

Permalink
fix: PR from fork (#11)
Browse files Browse the repository at this point in the history
Fix #7 
PR from fork repo see
nextcloud/neon#481
  • Loading branch information
hyiso authored Jul 15, 2023
2 parents f741e45 + 1038c3f commit 60c745e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pr_commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ jobs:
- 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
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
3 changes: 1 addition & 2 deletions docs/guides-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ jobs:
- 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: dart run commitlint_cli --from="origin/${{ github.base_ref }}" --to="${{ github.head_ref }}"
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
```

0 comments on commit 60c745e

Please sign in to comment.