diff options
| author | tobin <tobin@anthropic.com> | 2026-09-24 03:19:18 +0000 |
|---|---|---|
| committer | tobin <tobin@anthropic.com> | 2026-09-24 03:19:18 +0000 |
| commit | 346b20eb6e71675b7e447901db6c44d3a5068c1c (patch) | |
| tree | 1f929992c43ae2cf493c9abdaaa7b82d6bf2d9a8 /.github/scripts | |
| parent | 08885b13976f732f39bcf8f9e7d11df38e17589d (diff) | |
Flag unvalidated command sources in scope guard outputtobin/scope-guard-command-sources
Report command-source entries the guard skipped and stop the pass message from claiming every added entry came from a live repo.
Remote-Dev: homespace
Diffstat (limited to '.github/scripts')
| -rw-r--r-- | .github/scripts/external-pr-scope.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/scripts/external-pr-scope.js b/.github/scripts/external-pr-scope.js index 206b0c72..cf31e441 100644 --- a/.github/scripts/external-pr-scope.js +++ b/.github/scripts/external-pr-scope.js @@ -69,9 +69,10 @@ function analyze({ changedFiles, before, after, liveRepos }) { problems.push('makes no in-scope change (expected additions to marketplace.json)'); } + const unvalidated = []; for (const name of added) { - // Command sources have no repo URL to validate. - if (after[name] && after[name].source && after[name].source.source === 'command') continue; + // Command sources have no repo URL to validate; report them so a reviewer checks them by hand. + if (after[name] && after[name].source && after[name].source.source === 'command') { unvalidated.push(name); continue; } const u = after[name] && after[name].source && after[name].source.url; if (!u) { problems.push(`added "${name}" has no source.url to validate`); continue; } const r = normalizeRepo(u); @@ -81,7 +82,7 @@ function analyze({ changedFiles, before, after, liveRepos }) { } } - return { ok: problems.length === 0, problems, added, removed, modified, liveRepoCount: liveRepos.size }; + return { ok: problems.length === 0, problems, added, removed, modified, unvalidated, liveRepoCount: liveRepos.size }; } async function readPlugins(github, owner, repo, ref) { |
