Skip to content

Commit 7582054

Browse files
committed
fix(commitlint): change notice messages to debug
1 parent 053d319 commit 7582054

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

commitlint/action.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747
if [[ -z "$FROM" ]]; then
4848
FROM="${{ github.event.pull_request.base.ref }}"
4949
if [[ -n "$FROM" ]]; then
50-
echo "::notice::Parsing base ref '$FROM'"
50+
echo "::debug::Parsing base ref '$FROM'"
5151
# If we do have the base ref, it can be a branch name, so we want to
5252
# parse it. This will be a pass through for a SHA
5353
# via the event context, and we should try to find the default
@@ -65,7 +65,7 @@ runs:
6565
if [[ -z "$FROM" ]]; then
6666
# This finds the default branch name from the remote information, e.g. "main", and then parses it to a SHA
6767
FROM="$(git show-ref --hash "$(git remote show $(git remote -v | grep push | awk '{print $2}') | grep 'HEAD branch' | awk '{print $3}')" | tail -n1)"
68-
echo "::notice::Could not find base ref, trying to use default branch"
68+
echo "::debug::Could not find base ref, trying to use default branch"
6969
if ! git merge-base --is-ancestor "$FROM" HEAD; then
7070
echo "::warning::Default branch is not an ancestor of HEAD"
7171
FROM=""
@@ -81,20 +81,20 @@ runs:
8181
if ! git merge-base --is-ancestor "$FROM" HEAD; then
8282
echo "::warning::Before commit $FROM is not an ancestor of HEAD"
8383
else
84-
echo "::notice::Checking commits since $FROM (usually the latest commit)."
84+
echo "::debug::Checking commits since $FROM (usually the latest commit)."
8585
fi
8686
fi
8787
# Default to looking at the last 20 commits otherwise.
8888
if [[ -z "$FROM" ]]; then
8989
FROM="HEAD~20"
9090
echo "::warning::Could not find commit range for commitlint"
91-
echo "::notice::Checking 20 most recent commit messages."
91+
echo "::debug::Checking 20 most recent commit messages."
9292
fi
9393
CONFIG_FILE="${{ inputs.config-file }}"
9494
if [[ -n "$CONFIG_FILE" ]]; then
9595
CONFIG_FILE="--config $CONFIG_FILE"
9696
fi
97-
echo "::notice::Running commitlint"
97+
echo "::debug::Running commitlint"
9898
commitlint \
9999
$CONFIG_FILE \
100100
--verbose \

0 commit comments

Comments
 (0)