(pages)
| 497 | |
| 498 | |
| 499 | def find_to_update(pages): |
| 500 | out = [] |
| 501 | for p in pages: |
| 502 | # deprecated 页面带 #to-be-updated 也无意义 |
| 503 | if p.status == "deprecated": |
| 504 | continue |
| 505 | # 跳过反引号包裹的字面提及——周报、运维文档讨论这个标签时不应触发 |
| 506 | if TO_BE_UPDATED_RE.search(mask_code_spans(p.raw_content)): |
| 507 | out.append({ |
| 508 | "path": p.path, |
| 509 | "title": p.title, |
| 510 | "type": p.type, |
| 511 | "last_modified": p.last_modified, |
| 512 | }) |
| 513 | return out |
| 514 | |
| 515 | |
| 516 | # ============================================================ |
no test coverage detected