@computesdk/cli 2.5.2 → 2.5.3

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/index.js CHANGED
@@ -1433,6 +1433,22 @@ function registerActionsCommands(program2) {
1433
1433
  fail(e, opts);
1434
1434
  }
1435
1435
  });
1436
+ common(
1437
+ repos.command("sync").description("Re-read the GitHub App installation so repos granted after install show up (owner/admin key)")
1438
+ ).action(async (opts) => {
1439
+ try {
1440
+ const result = await (await client(opts)).post("/api/v1/actions/repos/sync", {});
1441
+ output(opts, result, (r) => {
1442
+ for (const a of r.accounts) {
1443
+ console.log(a.error === null ? `synced ${pc2.cyan(safeTerm(a.account))}` : `failed ${pc2.cyan(safeTerm(a.account))} ${pc2.red(safeTerm(a.error))}`);
1444
+ }
1445
+ console.log(pc2.dim(`${r.repos.length} repos visible`));
1446
+ });
1447
+ if (result.accounts.some((a) => a.error !== null)) process.exitCode = 1;
1448
+ } catch (e) {
1449
+ fail(e, opts);
1450
+ }
1451
+ });
1436
1452
  common(
1437
1453
  repos.command("enable").description("Enable a repo the org can already see (granted by a GitHub App install, or a connected remote)").argument("<repo>", "repository in owner/repo format").option("--repo-id <id>", "scope to one row when two installations grant the same name")
1438
1454
  ).action(async (repo, opts) => {