GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: limit format-cpp checkout history · nodejs/node@f0adca7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • linters.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/linters.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/linters.yml
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
steps:
5454
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5555
with:
56-
fetch-depth: 0
56+
# The first parent of the PR merge commit is the base branch commit.
57+
fetch-depth: 2
5758
persist-credentials: false
5859
- name: Use Node.js ${{ env.NODE_VERSION }}
5960
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
@@ -70,7 +71,7 @@ jobs:
7071
# because it is irrelevant. We already check if the formatter produced
7172
# a diff in the next line.
7273
# Refs: https://github.com/nodejs/node/pull/42764
73-
CLANG_FORMAT_START="$(git merge-base HEAD refs/remotes/origin/$GITHUB_BASE_REF)" \
74+
CLANG_FORMAT_START=HEAD^ \
7475
make format-cpp || true
7576
git --no-pager diff --exit-code && EXIT_CODE="$?" || EXIT_CODE="$?"
7677
if [ "$EXIT_CODE" != "0" ]

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.