Skip to content

Commit 80ac77c

Browse files
committed
testing: run: show only the last 10 commits if no PULL_BASE_SHA is available
1 parent 1653f03 commit 80ac77c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ ci_banner() {
4444
git show --quiet --oneline ${PULL_BASE_SHA:-}..${PULL_PULL_SHA:-} 2>/dev/null \
4545
|| echo "WARNING: Could not access git history (${PULL_BASE_SHA:-}..${PULL_PULL_SHA:-}) ..."
4646
else
47-
echo "WARNING: PULL_BASE_SHA=${PULL_BASE_SHA:-} and/or PULL_PULL_SHA=${PULL_PULL_SHA:-} not set. Showing the commits from main."
48-
git show --quiet --oneline main.. \
47+
echo "WARNING: PULL_BASE_SHA=${PULL_BASE_SHA:-} and/or PULL_PULL_SHA=${PULL_PULL_SHA:-} not set. Showing the last commits from main."
48+
git show --quiet --oneline main.. | head 10\
4949
|| echo "WARNING: Could not access git history (main..) ..."
5050
fi
5151
fi

0 commit comments

Comments
 (0)