From 7c38cb2857345c420099a6ea0e55592e89100dd2 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Fri, 27 Aug 2021 08:57:31 -0600 Subject: [PATCH] fix: increase time between refreshes --- README.md | 20 ++++++++++---------- src/repos.ts | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 880ec296..01e28f9b 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ EXAMPLES $ multi add https://github.com/my-github-org/my-repo ``` -_See code: [src/commands/add.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/add.ts)_ +_See code: [src/commands/add.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/add.ts)_ ## `multi alias KEYVALUE` @@ -151,7 +151,7 @@ EXAMPLES $ multi alias build --interactive ``` -_See code: [src/commands/alias.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/alias.ts)_ +_See code: [src/commands/alias.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/alias.ts)_ ## `multi alias resolve ALIAS` @@ -183,7 +183,7 @@ DESCRIPTION cd into a github repository. ``` -_See code: [src/commands/cd.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/cd.ts)_ +_See code: [src/commands/cd.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/cd.ts)_ ## `multi exec REPO` @@ -216,7 +216,7 @@ EXAMPLES $ multi exec . open https://app.circleci.com/pipelines/github/{repo.fullName} ``` -_See code: [src/commands/exec.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/exec.ts)_ +_See code: [src/commands/exec.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/exec.ts)_ ## `multi list` @@ -233,7 +233,7 @@ ALIASES $ multi ls ``` -_See code: [src/commands/list.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/list.ts)_ +_See code: [src/commands/list.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/list.ts)_ ## `multi open REPO` @@ -253,7 +253,7 @@ ALIASES $ multi o ``` -_See code: [src/commands/open.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/open.ts)_ +_See code: [src/commands/open.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/open.ts)_ ## `multi remove REPO` @@ -273,7 +273,7 @@ ALIASES $ multi rm ``` -_See code: [src/commands/remove.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/remove.ts)_ +_See code: [src/commands/remove.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/remove.ts)_ ## `multi setup` @@ -290,7 +290,7 @@ DESCRIPTION Setup multi ``` -_See code: [src/commands/setup.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/setup.ts)_ +_See code: [src/commands/setup.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/setup.ts)_ ## `multi view REPO` @@ -310,7 +310,7 @@ ALIASES $ multi v ``` -_See code: [src/commands/view.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/view.ts)_ +_See code: [src/commands/view.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/view.ts)_ ## `multi where REPO` @@ -330,5 +330,5 @@ DESCRIPTION Print location of a github repository. ``` -_See code: [src/commands/where.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.0/src/commands/where.ts)_ +_See code: [src/commands/where.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v1.5.2/src/commands/where.ts)_ diff --git a/src/repos.ts b/src/repos.ts index 9c954c69..70a58036 100644 --- a/src/repos.ts +++ b/src/repos.ts @@ -48,7 +48,7 @@ export interface RepoIndex { } export class Repos extends ConfigFile { - public static REFRESH_TIME = Duration.hours(8); + public static REFRESH_TIME = Duration.weeks(1); public directory!: Directory; private octokit!: Octokit; @@ -127,7 +127,7 @@ export class Repos extends ConfigFile { if (originalRepos.includes(repo.fullName)) this.update(repo.fullName, repo); }); } catch { - cli.log(`${chalk.yellow('Warning')}: Failed to refresh ${org}`); + cli.debug(`${chalk.yellow('Warning')}: Failed to refresh ${org}`); } } await this.write();