ralph-hero-mcp-server 2.5.65 → 2.5.71
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/dist/lib/hygiene.js
CHANGED
|
@@ -35,6 +35,8 @@ function toHygieneItem(item, now) {
|
|
|
35
35
|
export function findArchiveCandidates(items, now, archiveDays) {
|
|
36
36
|
return items
|
|
37
37
|
.filter((item) => {
|
|
38
|
+
if (item.subIssueCount > 0)
|
|
39
|
+
return false;
|
|
38
40
|
const ws = item.workflowState;
|
|
39
41
|
if (!ws || !TERMINAL_STATES.includes(ws))
|
|
40
42
|
return false;
|
|
@@ -94,7 +94,10 @@ export function toDashboardItems(raw, projectNumber, projectTitle) {
|
|
|
94
94
|
estimate: getFieldValue(r, "Estimate"),
|
|
95
95
|
assignees: r.content.assignees?.nodes?.map((a) => a.login) ?? [],
|
|
96
96
|
subIssueCount: r.content.subIssues?.totalCount ?? 0,
|
|
97
|
-
blockedBy:
|
|
97
|
+
blockedBy: r.content.trackedIssues?.nodes?.map((n) => ({
|
|
98
|
+
number: n.number,
|
|
99
|
+
workflowState: n.state === "CLOSED" ? "Done" : null,
|
|
100
|
+
})) ?? [],
|
|
98
101
|
...(projectNumber !== undefined ? { projectNumber } : {}),
|
|
99
102
|
...(projectTitle !== undefined ? { projectTitle } : {}),
|
|
100
103
|
...(r.content.repository ? { repository: r.content.repository.nameWithOwner } : {}),
|
|
@@ -131,6 +134,7 @@ export const DASHBOARD_ITEMS_QUERY = `query($projectId: ID!, $cursor: String, $f
|
|
|
131
134
|
assignees(first: 5) { nodes { login } }
|
|
132
135
|
repository { nameWithOwner name }
|
|
133
136
|
subIssues { totalCount }
|
|
137
|
+
trackedIssues(first: 10) { nodes { number state } }
|
|
134
138
|
}
|
|
135
139
|
... on PullRequest {
|
|
136
140
|
__typename
|