Files
knowledge-governance/.gitea/required-contexts.txt
T
姚章浩 9a178675f6 ci(workflow): 检出抽成脚本、预览先核对报告、提交范围以 Git 为准
检出:协议按 GITHUB_SERVER_URL 原样保留并断言不降级(https 不许变 http)、URL 不放凭据、把事件 before 也取下来。预览:发布前调 ci_report.verify(),有问题一个 publish 请求都不发(旧写法只读 overall+SHA,缺项报告会先发出去)。范围:push 用 before..after、新分支用 after --not --remotes,声明与范围不一致/空范围/浅克隆缺 before/列表提交不在检出里全部拒绝,手工运行只核 HEAD 并写明。合并必需 context 改由 .gitea/required-contexts.txt 声明,不再用观察到的状态。
2026-10-12 11:15:18 +08:00

10 lines
739 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 合并前必须在 PR 头提交上 success 的 status context(**明确策略**,一行一个,`#` 后是注释)。
#
# 这份文件是"要求哪些检查"的唯一来源:
# · scripts/adopt-existing.py 的 --merge-pr 只认它(或显式 --require-context),
# **不接受"体检时观察到哪些状态"** —— 那等于把"要求什么"交给当时碰巧报过的状态;
# · 文件为空 / 只有注释 ⇒ 视为没有策略 ⇒ 拒绝合并(空不等于"没有要求")。
#
# 目前本仓只有 .gitea/workflows/build.yml 一个作业,它的 status context 实测就是下面这条:
# run #15(push, main, 5f3a71ca)combined=success,context 'build / build (push)' = success
build / build (push)