From 809d2ae765378c6c25653f94b2a290b354ccd91f Mon Sep 17 00:00:00 2001 From: Alex Sepkowski <5620315+alsepkow@users.noreply.github.com> Date: Mon, 17 Mar 2025 18:30:34 -0700 Subject: [PATCH 1/3] Update clang-format-checker.yml --- .github/workflows/clang-format-checker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clang-format-checker.yml b/.github/workflows/clang-format-checker.yml index 7e39a5b0be..3a8d0ab6ee 100644 --- a/.github/workflows/clang-format-checker.yml +++ b/.github/workflows/clang-format-checker.yml @@ -15,14 +15,15 @@ jobs: - name: Fetch LLVM sources uses: actions/checkout@v4 with: - fetch-depth: 2 + repository: ${{ github.event.pull_request.head.repo.full_name }} + fetch-depth: 0 # Fetch all history - name: Get changed files id: changed-files uses: tj-actions/changed-files@v41 with: separator: "," - fetch_depth: 100 # Fetches only the last 10 commits + fetch_depth: 100 # Fetches only the last 100 commits - name: "Listed files" env: @@ -88,7 +89,8 @@ jobs: - name: Fetch LLVM sources uses: actions/checkout@v4 with: - fetch-depth: 2 + repository: ${{ github.event.pull_request.head.repo.full_name }} + fetch-depth: 0 # Fetch all history path: build/main_src - name: Setup Python env @@ -115,7 +117,7 @@ jobs: - name: Fetch LLVM sources for head uses: actions/checkout@v4 with: - fetch-depth: 2 + fetch-depth: 0 # Fetch all history ref: ${{ fromJSON(steps.get-pr.outputs.result).head.ref }} repository: ${{ fromJSON(steps.get-pr.outputs.result).head.repo.full_name }} From 8f75477b017e0e1ae6268992ac0dbbf09177dda8 Mon Sep 17 00:00:00 2001 From: Alex Sepkowski <5620315+alsepkow@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:17:59 -0700 Subject: [PATCH 2/3] Fetch last 100 commits for LLVM sources --- .github/workflows/clang-format-checker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-format-checker.yml b/.github/workflows/clang-format-checker.yml index ec94122df1..afda13c33b 100644 --- a/.github/workflows/clang-format-checker.yml +++ b/.github/workflows/clang-format-checker.yml @@ -23,7 +23,8 @@ jobs: uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1 with: separator: "," - skip_initial_fetch: true + # skip_initial_fetch: true + fetch_depth: 100 # Fetches only the last 100 commits - name: "Listed files" env: From dedd9230a16f08a261a1124a9c9581608f1b1a28 Mon Sep 17 00:00:00 2001 From: Alex Sepkowski <5620315+alsepkow@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:24:06 -0700 Subject: [PATCH 3/3] Revert chris's change to see --- .github/workflows/clang-format-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-format-checker.yml b/.github/workflows/clang-format-checker.yml index afda13c33b..d2e503d7de 100644 --- a/.github/workflows/clang-format-checker.yml +++ b/.github/workflows/clang-format-checker.yml @@ -20,7 +20,7 @@ jobs: - name: Get changed files id: changed-files - uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1 + uses: tj-actions/changed-files@v41 with: separator: "," # skip_initial_fetch: true