From 2d502176346aac5d03c87e206a4215bdca63b9ff Mon Sep 17 00:00:00 2001 From: Mary Marchini Date: Tue, 22 Jun 2021 11:50:34 -0700 Subject: [PATCH] build: fix commit linter on unrebased PRs 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: https://github.com/nodejs/node/pull/39121 Reviewed-By: Richard Lau Reviewed-By: Antoine du Hamel --- .github/workflows/commit-lint.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index 6673f2942da89f..9ea6337b51f181 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -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