Skip to content

[Feature] PR 七天无人工活动时提醒并升级到 Kanban #120

Description

@zengchuang-hw

Summary

当 open PR 连续 7 天没有人工 commit、comment 或 review 时,自动提醒该 PR 可能按仓库策略关闭,并将其升级到 Kanban 待处理队列,由 @yenuo26(王语)协调责任人处理。

Parent tracking issue: #116

Activity definition

最后人工活动时间定义为:

max(last non-bot commit, last non-bot comment, last non-bot review)

ReviewBot、GitHub Actions、Dependabot 等 bot 活动不重置计时。

Proposed behavior

  • 连续 7 天无人工活动时,在 PR 留一条去重提醒:
    • @ PR author/当前贡献者;
    • 说明当前无进展时长;
    • 说明若继续无更新,可能按仓库 policy 关闭;
    • 给出恢复活跃所需的最小动作,如 push、回复 blocker 或更新计划。
  • Kanban 标记 stale / needs-owner-action,并通知 @yenuo26 协调责任人。
  • 同一 inactivity window 只提醒一次。
  • 新的人工 commit/comment/review 到来后,自动清除 stale 状态并从新时间点重新计时。
  • 第一阶段只提醒和升级,不自动关闭 PR。

Acceptance criteria

  • 7 天阈值基于最后人工活动计算,机器人活动不会延后提醒。
  • 同一 inactivity window 只发布一次提醒,不因轮询或重启重复评论。
  • stale PR 出现在 Kanban 待处理队列,并通知 @yenuo26
  • 新人工活动能清除 stale 状态并重新计时。
  • closed、merged、draft-policy-exempt 或显式豁免的 PR 不触发。
  • 阈值和适用仓库可配置;首期仅启用 vllm-project/vllm-omni
  • 自动关闭不在本 issue 范围内。

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions