Skip to content

Commit f2c24cc

Browse files
authored
Increase git fetch depth (llvm#70946)
We've gotten ~750 commits in the last 7 days. Upping the fetch depth to 2000 will make it more likely that PRs up to 2 weeks old will have enough fetch history to find a common parent. This _might_ address some of the failures we're seeing in the clang-format action where it cannot find a common base commit.
1 parent a273d17 commit f2c24cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-code-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
- name: Fetch LLVM sources
1111
uses: actions/checkout@v4
1212
with:
13-
fetch-depth: 2
13+
fetch-depth: 2 # Fetches only the last 2 commits
1414

1515
- name: Get changed files
1616
id: changed-files
1717
uses: tj-actions/changed-files@v39
1818
with:
1919
separator: ","
20-
fetch_depth: 100 # Fetches only the last 10 commits
20+
fetch_depth: 2000 # Fetches only the last 2000 commits
2121

2222
- name: "Listed files"
2323
run: |

0 commit comments

Comments
 (0)