diff options
| author | Tobin South <tobin.south@gmail.com> | 2026-09-28 06:14:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-28 06:14:38 -0700 |
| commit | fbe07fb6ce7d51d8e86ca6efdf050059894cdb80 (patch) | |
| tree | c30a3af14604a746423761977219f5fe0d9e65dc /.github/scripts | |
| parent | fa59bc9037741ecfa131aa27938272605710d7b2 (diff) | |
Exempt command sources from scope guard source.url check (#6296)
* Exempt command sources from scope guard source.url check
Command sources have no repo URL to validate, so the guard no longer fails a non-member PR that adds one.
Remote-Dev: homespace
* Flag unvalidated command sources in scope guard output
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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/scripts/external-pr-scope.js b/.github/scripts/external-pr-scope.js index 705a18a3..cf31e441 100644 --- a/.github/scripts/external-pr-scope.js +++ b/.github/scripts/external-pr-scope.js @@ -69,7 +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; 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); @@ -79,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) { |
