Skip to content

Commit 999d8ee

Browse files
Fix PR creation commit message extraction
Signed-off-by: Shreeya Patel <[email protected]>
1 parent 5118a53 commit 999d8ee

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/kernel-build-and-test-x86_64.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,18 @@ jobs:
402402
- name: Checkout kernel source
403403
uses: actions/checkout@v4
404404
with:
405-
fetch-depth: 50 # Shallow clone: enough for commit messages and logs
405+
fetch-depth: 100 # Fetch more history for commit counting
406406
token: ${{ secrets.GITHUB_TOKEN }}
407407

408+
- name: Fetch base branch for commit comparison
409+
run: |
410+
BASE_BRANCH="${{ needs.compare-results.outputs.base_branch }}"
411+
if [ -n "$BASE_BRANCH" ]; then
412+
# Fetch just the base branch tip (shallow)
413+
git fetch --depth=1 origin "$BASE_BRANCH:refs/remotes/origin/$BASE_BRANCH" || true
414+
echo "Fetched base branch: $BASE_BRANCH"
415+
fi
416+
408417
- name: Download kernel compilation logs
409418
uses: actions/download-artifact@v4
410419
with:

0 commit comments

Comments
 (0)