Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4f05b7c

Browse files
committedFeb 29, 2024·
Fix commit message lint for non-master branches
Fix checked commit range when PR base branch is not master.
1 parent 5df7184 commit 4f05b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎scripts/lint-commit-message.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [ "$#" -eq 1 ]; then
6666
fi
6767
lint_commit_message "$(sed -n '/# Please enter the commit message for your changes. Lines starting/q;p' "$1")"
6868
else
69-
for COMMIT in $(git rev-list --no-merges origin/master..); do
69+
for COMMIT in $(git rev-list --no-merges origin/${GITHUB_BASE_REF:-master}..); do
7070
lint_commit_message "$(git log --format="%B" -n 1 ${COMMIT})"
7171
done
7272
fi

0 commit comments

Comments
 (0)
Please sign in to comment.