Skip to content

Commit 5242a38

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: nodejs#42681 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
1 parent 24adba6 commit 5242a38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.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 master)" make format-cpp'
8282
echo
8383
echo 'to format the commits in your branch.'
8484
exit "$EXIT_CODE"

0 commit comments

Comments
 (0)