openvibers/openvibe.shared Commits

Shared: pin-bump clones with gh, so private repositories are covered (#26)

OP OpenVibers committed 7 Oct 2026 · b01ed2c45c · 1 file, +2 −1

Changes

ddiff --git a/scripts/pin-bump.js b/scripts/pin-bump.js
iindex e7359f9..ce5418b 100644
---- a/scripts/pin-bump.js
++++ b/scripts/pin-bump.js
@@@ -110,7 +110,8 @@ function main() {
if (repo === LIBS[library]) continue;
const dir = path.join(work, repo);
try {
-- run('git', ['clone', '-q', '--depth', '1', `https://github.com/${ORG}/${repo}.git`, dir]);
++ // gh clones with the same authentication it opens the PRs with, so private repositories work too.
++ run('gh', ['repo', 'clone', `${ORG}/${repo}`, dir, '--', '-q', '--depth', '1']);
const stale = stalePins(dir, library, tag);
if (!stale.length) { summary.push(`${repo}: current`); continue; }
if (opts.apply) {