diff --git a/scripts/check.sh b/scripts/check.sh index 539f2426e7..ba5707fbf6 100644 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -4,7 +4,6 @@ set -e CHECK_DIR="$(dirname "$0")/check" # sh "${CHECK_DIR}/check.sh" # 需要依赖,暂时禁用 -sh "${CHECK_DIR}/info.sh" sh "${CHECK_DIR}/collect.sh" sh "${CHECK_DIR}/analyze.sh" sh "${CHECK_DIR}/identify.sh" diff --git a/scripts/check/collect.sh b/scripts/check/collect.sh index d58246b120..dc6293e280 100644 --- a/scripts/check/collect.sh +++ b/scripts/check/collect.sh @@ -19,8 +19,11 @@ MERGE_BASE='HEAD^' && MERGE_BASE="$(git merge-base "$TARGET_BRANCH" HEAD)" echo "[收集] 找到分叉节点:${MERGE_BASE}" +echo "[收集] 变更摘要:" +git --no-pager show --summary "${MERGE_BASE}..HEAD" + { - git log --oneline "${MERGE_BASE}..HEAD" | grep -Eq '绕过检查' && { + git --no-pager log --oneline "${MERGE_BASE}..HEAD" | grep -Eq '绕过检查' && { touch /tmp/bypass echo "[收集] 已标记为绕过检查项" } diff --git a/scripts/check/info.sh b/scripts/check/info.sh deleted file mode 100644 index 2e8159fe0c..0000000000 --- a/scripts/check/info.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# 打印 PR 信息 -echo ""