#!/usr/bin/env bash set -euo pipefail BACKLOG_PATH="${1:?backlog path required}" python3 - <<'PY' "$BACKLOG_PATH" from pathlib import Path import sys text = Path(sys.argv[1]).read_text(encoding='utf-8') lines = text.splitlines() inside = False rows = [] for line in lines: if line.startswith('## 当前未修复问题速查表'): inside = True continue if inside and line.startswith('---'): break if inside and line.startswith('|') and not line.startswith('| #') and not line.startswith('|---'): rows.append(line) resolved = [row for row in rows if '✅ 已修复' in row or '✅ 已完成' in row or '✅ 已恢复' in row] print(f'BACKLOG_CURRENT_TABLE rows={len(rows)} resolved_rows={len(resolved)}') if resolved: print('resolved rows still present in current table', file=sys.stderr) raise SystemExit(1) PY