mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
绕过检查:在收集阶段打印 PR 信息
This commit is contained in:
parent
d77d2bc64e
commit
3851648237
@ -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"
|
||||
|
@ -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 "[收集] 已标记为绕过检查项"
|
||||
}
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 打印 PR 信息
|
||||
echo ""
|
Loading…
Reference in New Issue
Block a user