Roll up sub-issue statuses to the parent issue in sync-project-status

未关闭
#150 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@lowlydba 已经在做这个了。

开始于 2026年12月2日。

评估

这个 Issue 还没有评估数据。

描述

Parent issues on our project boards drift out of date because their Status is set by hand while the real progress happens in their sub-issues. A parent can sit in Backlog while its children are in progress, or stay open after every child is done. The sync-project-status action only mirrors Status between projects today. We'd like it to also derive each parent's Status from its sub-issues, so the boards reflect the work without manual upkeep.

Closing a parent whose children are all done relies on each project's built-in "Auto-close issue" workflow: the action sets the parent to Done and the workflow closes the issue. That workflow is enabled today on all four synced projects (Overture #84, places-surge #78, CloudDevOps #54, Road to GERS extensions #85), so this part should only need confirming, and enabling on any project added to the sync later. Reopening a closed parent is new for the action and needs the overture-project-manager app to have Issues write, which is managed in omf-github-terraform.

Proposed rules

For an issue that has sub-issues, the first matching rule sets its Status:

# Sub-issues Parent Status
1 All Done or closed Done (Auto-close issue then closes the parent)
2 Any In Progress In Progress
3 Any Blocked Blocked
4 Some Done, the rest Ready or Backlog In Progress
5 Any Ready Ready
6 Otherwise Backlog
  • The rollup is authoritative: a parent Status set by hand is overwritten on the next run.
  • A closed parent whose rollup is no longer Done is reopened and given the rolled-up Status.
  • Sub-issues closed as not planned are ignored, and a parent closed as not planned is never reopened or changed.
  • A sub-issue with no Status counts as Backlog if it is open and Done if it is closed.
  • A sub-issue in several projects uses the Status the existing cross-project sync settles on.
  • Nested parents are evaluated bottom-up so they settle in one run.
  • The result is written to every synced project that contains the parent.

One case is still open: what a parent should get when every one of its sub-issues was closed as not planned.

主要语言
没有语言数据
星标
2
派生
1
平均合并
7 小时 3 分钟
30 天内合并 PR
12

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。