Skip to content

Commit d55e95a

Browse files
committed
build: improve the format-cpp error message
Since we run the formatter only on PRs that are targeting the master branch, let's specify that. Refs: #42681 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
1 parent 24adba6 commit d55e95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
echo
7979
echo 'ERROR: Please run:'
8080
echo
81-
echo ' CLANG_FORMAT_START="$(git merge-base HEAD <target-branch-name>)" make format-cpp'
81+
echo " CLANG_FORMAT_START="$\(git merge-base HEAD ${GITHUB_BASE_REF}\)" make format-cpp"
8282
echo
8383
echo 'to format the commits in your branch.'
8484
exit "$EXIT_CODE"

0 commit comments

Comments
 (0)