@nanocollective/roster 0.1.0-beta.8 → 0.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@ writing a plan for {{human.name}} to approve.
|
|
|
73
73
|
yourself go here. Rewrite it, do not append, and cut anything the next run can find for itself.
|
|
74
74
|
**Then rewrite the body of #{{staff.status_issue}}**, which is for {{human.name}}, not for you:
|
|
75
75
|
where each priority stands, with the numbers; what is on them, oldest first, by issue number;
|
|
76
|
-
what you do next. Nothing they need to scroll past.
|
|
76
|
+
what you do next. Nothing they need to scroll past, and no notes to yourself.
|
|
77
77
|
3. **Reconcile the tracker.** Open issues for anything new needing {{human.name}}: the
|
|
78
78
|
`{{human.marker}}` label plus one of `decision`, `review` or `chore`, assigned to
|
|
79
79
|
`{{human.github}}`. Sweep **every** open issue on your tracker, whoever opened it: close what is
|
|
@@ -97,13 +97,15 @@ export function rollWeek({ repo, current, gh, now = Date.now() }) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// Every earlier week still open: last week's, and any week whose summary run did not finish.
|
|
100
|
+
// Last week's is added by hand when it was just rolled: the label filter lags a label added a
|
|
101
|
+
// moment ago, and on Pip's first roll the listing came back without it, so no summary was asked for.
|
|
100
102
|
const open = JSON.parse(
|
|
101
103
|
gh(["api", `repos/${repo}/issues?state=open&labels=${STATUS_LABEL}&per_page=20`]) || "[]",
|
|
102
104
|
);
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
const numbers = new Set(open.filter((i) => !i.pull_request).map((i) => i.number));
|
|
106
|
+
if (rolled && issue?.state === "open") numbers.add(current);
|
|
107
|
+
numbers.delete(next);
|
|
108
|
+
const previous = [...numbers].sort((a, b) => a - b);
|
|
107
109
|
return { current: next, rolled, previous };
|
|
108
110
|
}
|
|
109
111
|
|