Skip to content

Commit 473fa1e

Browse files
Review fixes 1
Signed-off-by: Shreeya Patel <spatel@ciq.com>
1 parent 610fcbb commit 473fa1e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ jobs:
236236
BRANCH_NAME="${{ github.ref_name }}"
237237
238238
# Define whitelist of valid base branches
239+
# TODO: Use a centralized place to get the base branches
239240
VALID_BASES="ciqlts9_2 ciqlts9_4 ciqlts8_6"
240241
241242
echo "Current branch: $BRANCH_NAME"
@@ -286,7 +287,7 @@ jobs:
286287
287288
- name: Download baseline kselftest logs from base branch
288289
if: steps.base_branch.outputs.base_branch != ''
289-
uses: dawidd6/action-download-artifact@v3
290+
uses: dawidd6/action-download-artifact@v11
290291
with:
291292
workflow: kernel-build-and-test-x86_64.yml
292293
name: kselftest-logs-x86_64
@@ -471,17 +472,16 @@ jobs:
471472
git log -1 --pretty=%s > /tmp/commit_subject.txt
472473
COMMIT_SUBJECT=$(cat /tmp/commit_subject.txt)
473474
echo "commit_subject=$COMMIT_SUBJECT" >> $GITHUB_OUTPUT
474-
475-
# Save full commit message to file
476-
git log -1 --pretty=%B > /tmp/commit_message.txt
477475
else
478476
# Multiple commits: create summary
479477
echo "commit_subject=Multiple patches tested ($COMMIT_COUNT commits)" >> $GITHUB_OUTPUT
480-
481-
# Get all commit messages and save to file
482-
git log origin/$BASE_BRANCH..HEAD --pretty=format:"### %s%n%n%b%n---" > /tmp/commit_message.txt
483478
fi
484479
480+
# Get all commit messages and save to file (in reverse order)
481+
for commit in $(git log origin/$BASE_BRANCH..HEAD --format=%h | tac); do
482+
git log -1 $commit --format=%B | awk 'BEGIN{print "```"} /^$/{empty++} empty==2{exit} {print} END{print "```"}' >> /tmp/commit_message.txt
483+
done
484+
485485
- name: Create Pull Request
486486
env:
487487
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)