Skip to content

Commit

Permalink
build: fix commit linter on unrebased PRs
Browse files Browse the repository at this point in the history
The commit linter was checking out the PR HEAD commit instead of
merge/rebase commit, causing it to fail for any PRs that were not
rebased on our default branch. Removing `ref` should fix the issue.

PR-URL: #39121
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
mmarchini authored and targos committed Sep 4, 2021
1 parent c93d5e0 commit 2d50217
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/commit-lint.yml
Expand Up @@ -8,7 +8,6 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
# Last 100 commits should be enough for a PR
fetch-depth: 100
- name: Use Node.js 12
Expand Down

0 comments on commit 2d50217

Please sign in to comment.