Skip to content

Commit 263b191

Browse files
committed
ci(issues): 新增状态标签「状态: 已确认」(问题确认,待修复)
与已计划/暂无计划同为豁免状态:维护者已接手,不参与「等对方回应」自动关闭。
1 parent 800635b commit 263b191

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/scripts/issue-status.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const STALE = '即将关闭';
1212
const STATUS_LABELS = [
1313
{ name: '状态: 待反馈', color: 'fbca04', description: '需要提交者补充信息或验证修复', waiting: true },
1414
{ name: '状态: 无法重现', color: 'fef2c0', description: '按现有描述无法复现,需要提交者补充环境信息', waiting: true },
15+
{ name: '状态: 已确认', color: '0e8a16', description: '问题已确认,待修复', exempt: true },
1516
{ name: '状态: 已计划', color: '1d76db', description: '会做:含开发中、已修复待发布与远期计划', exempt: true },
1617
{ name: '状态: 暂无计划', color: 'bfdadc', description: '方向认可,但近期不安排,保留开启留档', exempt: true },
1718
];

‎.github/scripts/issue-status.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test('提醒后维护者又补话,从新回复重新计时', () => {
5656
});
5757

5858
test('豁免状态不参与', () => {
59-
for (const l of ['状态: 已计划', '状态: 暂无计划']) {
59+
for (const l of ['状态: 已确认', '状态: 已计划', '状态: 暂无计划']) {
6060
assert.equal(decide(issue([l]), [byOwner(60)], NOW), 'none', l);
6161
}
6262
});

‎.github/workflows/issue-status.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Issue Status
22

33
# Issue 标签同步与「等对方回应」自动关闭,逻辑在 .github/scripts/issue-status.js:
44
# - 定时/手动运行时同步标签定义(类型标签从 GitHub 默认英文名原地改名为中文)
5-
# - 状态四选一(手动加新状态自动撤旧的);不挂状态即尚未处理
5+
# - 状态五选一(手动加新状态自动撤旧的);不挂状态即尚未处理
66
# - 维护者最后发言后 14 天对方无回应 → 打「即将关闭」并提醒;再过 7 天 → 以 not planned 关闭
7-
# - 已计划/暂无计划 豁免
7+
# - 已确认/已计划/暂无计划 豁免
88
# - 非维护者回复 → 撤「即将关闭」;提交者回复 → 撤待反馈/无法重现,被自动关闭的帖则重开
99
# - 想延期:手动撤「即将关闭」(本轮不再提醒),或补一句评论(重新计时),或加豁免状态
1010
# 首次启用先手动触发一次 dry_run:会同步标签,并在日志里列出将处理哪些 issue。

0 commit comments

Comments
 (0)