1
All checks were successful
API接口参数变更检测 / api-param-check (push) Successful in 16s

This commit is contained in:
2026-06-05 11:10:01 +08:00
parent 78761a7799
commit 283185a2dc
3 changed files with 34 additions and 6 deletions

View File

@@ -79,13 +79,14 @@ def build_markdown_notification(
method_changed_reports = [r for r in reports if r.is_method_changed]
renamed_reports = [r for r in reports if r.is_renamed_endpoint]
new_reports = [r for r in reports if r.is_new_endpoint]
# 参数变更报告:包含普通参数变更 + 路径变更时同时修改了参数的情况
# 参数变更报告:包含「URI/方法未变,仅参数变化」的报告
# 路径变更 + 参数变更、方法变更 + 参数变更 场景已在上层 comparator 中拆分为独立报告
changed_reports = [
r for r in reports
if not r.is_new_endpoint
and not r.is_removed_endpoint
and not r.is_renamed_endpoint
and not r.is_method_changed
# 注意:不再排除 is_renamed_endpoint允许「路径+参数」同时变更时发参数通知
]
removed_reports = [r for r in reports if r.is_removed_endpoint]