@oss-autopilot/core 3.20.5 → 3.21.1
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/cli-registry.js +1 -1
- package/dist/cli.bundle.cjs +103 -103
- package/dist/commands/parse-list.js +7 -5
- package/dist/commands/scout-bridge.js +1 -0
- package/dist/commands/search.js +1 -1
- package/package.json +2 -2
|
@@ -5,16 +5,18 @@
|
|
|
5
5
|
import * as fs from 'node:fs';
|
|
6
6
|
import * as path from 'node:path';
|
|
7
7
|
import { errorMessage } from '../core/errors.js';
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Extract a GitHub issue URL from a markdown line.
|
|
10
|
+
*
|
|
11
|
+
* Guard 1: PR URLs (/pull/) are intentionally excluded. A pull-request URL is
|
|
12
|
+
* never a valid issue candidate — collecting them inflates `availableCount` and
|
|
13
|
+
* causes `vet-list` to spend API calls on URLs that cannot resolve as issues.
|
|
14
|
+
*/
|
|
9
15
|
function extractGitHubUrl(line) {
|
|
10
16
|
const match = line.match(/https:\/\/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
11
17
|
if (match) {
|
|
12
18
|
return { repo: match[1], number: parseInt(match[2], 10), url: match[0] };
|
|
13
19
|
}
|
|
14
|
-
const prMatch = line.match(/https:\/\/github\.com\/([^/]+\/[^/]+)\/pull\/(\d+)/);
|
|
15
|
-
if (prMatch) {
|
|
16
|
-
return { repo: prMatch[1], number: parseInt(prMatch[2], 10), url: prMatch[0] };
|
|
17
|
-
}
|
|
18
20
|
return null;
|
|
19
21
|
}
|
|
20
22
|
/** Extract issue title from a markdown line (text after URL or checkbox) */
|
|
@@ -105,6 +105,7 @@ export function buildScoutState(diagnostics) {
|
|
|
105
105
|
scope: config.scope,
|
|
106
106
|
excludeRepos: config.excludeRepos,
|
|
107
107
|
excludeOrgs: config.excludeOrgs ?? [],
|
|
108
|
+
preferredOrgs: config.preferredOrgs ?? [],
|
|
108
109
|
aiPolicyBlocklist: config.aiPolicyBlocklist,
|
|
109
110
|
projectCategories: config.projectCategories ?? [],
|
|
110
111
|
minStars: config.minStars,
|
package/dist/commands/search.js
CHANGED
|
@@ -52,7 +52,7 @@ export function parseSearchStrategies(raw) {
|
|
|
52
52
|
for (const token of tokens) {
|
|
53
53
|
const parsed = SearchStrategySchema.safeParse(token);
|
|
54
54
|
if (!parsed.success) {
|
|
55
|
-
throw new Error(`Unknown search strategy "${token}". Valid strategies: merged, starred, broad, maintained, all`);
|
|
55
|
+
throw new Error(`Unknown search strategy "${token}". Valid strategies: merged, orgs, starred, broad, maintained, all`);
|
|
56
56
|
}
|
|
57
57
|
strategies.push(parsed.data);
|
|
58
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.1",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@octokit/plugin-retry": "^8.1.1",
|
|
56
56
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
57
57
|
"@octokit/rest": "^22.0.1",
|
|
58
|
-
"@oss-scout/core": "^1.
|
|
58
|
+
"@oss-scout/core": "^1.6.0",
|
|
59
59
|
"commander": "^15.0.0",
|
|
60
60
|
"zod": "^4.4.3"
|
|
61
61
|
},
|