chore: close overview counts and review reliability workplans
This commit is contained in:
parent
b14844351c
commit
99a66765f3
6 changed files with 351 additions and 9 deletions
|
|
@ -31,8 +31,8 @@ export function isOpenWorkstream(status) {
|
|||
return OPEN_WORKSTREAM_STATUSES.includes(normalizeWorkstreamStatus(status));
|
||||
}
|
||||
|
||||
export function isStalledWorkstream(w, staleDays = 7) {
|
||||
const staleAt = new Date(Date.now() - staleDays * 24 * 60 * 60 * 1000);
|
||||
export function isStalledWorkstream(w) {
|
||||
const staleAt = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
||||
const openTasks = (w.todo ?? 0) + (w.progress ?? 0) + (w.wait ?? 0);
|
||||
return ["active", "blocked"].includes(normalizeWorkstreamStatus(w.status))
|
||||
&& new Date(w.updated_at) < staleAt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue