绕过检查:在收集阶段打印 PR 信息

This commit is contained in:
Wenxuan Zhao 2018-10-23 21:52:07 -07:00
parent d77d2bc64e
commit 3851648237
No known key found for this signature in database
GPG Key ID: 0B45B13F10587A57
3 changed files with 4 additions and 6 deletions

View File

@ -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"

View File

@ -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 "[收集] 已标记为绕过检查项"
}

View File

@ -1,4 +0,0 @@
#!/bin/bash
# 打印 PR 信息
echo ""