gitlink-cli/skills/gitlink-stale/references/grading.md

35 lines
1.0 KiB
Markdown
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.

# 陈旧度分级与时间估算规则
## 分级阈值
按"最近更新距今天数"分四级:
| 等级 | 停滞天数 | emoji | 处理建议 |
|:----:|:--------:|:-----:|----------|
| 活跃 | ≤ 14 | 🟢 | 无需处理 |
| 留意 | 15 45 | 🟡 | 关注进展 |
| 陈旧 | 46 120 | 🟠 | 跟进或补充信息 |
| 僵尸 | > 120 | 🔴 | 评估关闭 |
| 未知 | 无法解析时间 | ⚪ | 人工核对 |
阈值集中在 `scripts/stale.py``grade()` 函数,可按项目节奏调整。
## 时间估算规则
停滞天数来自 `updated_at`/`created_at` 的相对时间字符串:
| 文本 | 换算 |
|------|------|
| 刚刚 / N 秒前 / N 分钟前 / N 小时前 | 0 天 |
| N 天前 | N |
| N 周前 | N × 7 |
| N 个月前 / N月前 | N × 30 |
| N 年前 | N × 365 |
无法解析时记为"未知",不计入清理建议。
## 清理清单
「陈旧」+「僵尸」项进入清理建议清单,按停滞天数降序,最多展示 30 条。
报告同时给出分等级的处理建议与关闭命令示例。