@yemi33/minions 0.1.40 → 0.1.41
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/CHANGELOG.md +5 -0
- package/engine/queries.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/queries.js
CHANGED
|
@@ -266,6 +266,17 @@ function getPullRequests(config) {
|
|
|
266
266
|
allPrs.push(pr);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
+
// Also read central pull-requests.json (for manually linked PRs without a project)
|
|
270
|
+
const centralPath = path.join(MINIONS_DIR, 'pull-requests.json');
|
|
271
|
+
const centralPrs = safeJson(centralPath);
|
|
272
|
+
if (centralPrs) {
|
|
273
|
+
for (const pr of centralPrs) {
|
|
274
|
+
if (!allPrs.some(p => p.id === pr.id)) {
|
|
275
|
+
pr._project = 'central';
|
|
276
|
+
allPrs.push(pr);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
269
280
|
allPrs.sort((a, b) => (b.created || '').localeCompare(a.created || ''));
|
|
270
281
|
return allPrs;
|
|
271
282
|
}
|
package/package.json
CHANGED