Skip to content

Commit

Permalink
fix: handle forks
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 27, 2025
1 parent 7bd2810 commit 04a8ff6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth:
ref: ${{ github.event.pull_request.head.ref }} # Checkout the branch of the PR.
repository: ${{ github.event.pull_request.head.repo.full_name }} # Handles forks.

- name: Setup Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 04a8ff6

Please sign in to comment.