ralph-hero-mcp-server 2.5.181 → 2.5.183
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.
|
@@ -151,14 +151,22 @@ async function buildUnblockSignalMap(client, items, now) {
|
|
|
151
151
|
/**
|
|
152
152
|
* Derive the unique `owner/repo` set from the project items so the PR search
|
|
153
153
|
* mirrors the project's repo scope. Items lacking a `repository` field (e.g.
|
|
154
|
-
* draft items) are skipped.
|
|
155
|
-
*
|
|
154
|
+
* draft items) are skipped. Closed items (GitHub `closedAt` set, or workflow
|
|
155
|
+
* state Done/Canceled) also do NOT expand the radius — a stale closed
|
|
156
|
+
* cross-repo item on the board would otherwise pull every open PR from that
|
|
157
|
+
* foreign repo into `next_actions` (see GH-1399). Returns deterministic order
|
|
158
|
+
* (sorted) so the downstream search query is stable.
|
|
156
159
|
*/
|
|
157
160
|
function uniqueRepos(items) {
|
|
158
161
|
const seen = new Set();
|
|
159
162
|
for (const item of items) {
|
|
160
|
-
if (item.repository)
|
|
161
|
-
|
|
163
|
+
if (!item.repository)
|
|
164
|
+
continue;
|
|
165
|
+
if (item.closedAt !== null)
|
|
166
|
+
continue;
|
|
167
|
+
if (item.workflowState === "Done" || item.workflowState === "Canceled")
|
|
168
|
+
continue;
|
|
169
|
+
seen.add(item.repository);
|
|
162
170
|
}
|
|
163
171
|
return Array.from(seen).sort();
|
|
164
172
|
}
|