Skip to content

Commit

Permalink
fix: increase time between refreshes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Aug 27, 2021
1 parent 263112f commit 7c38cb2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand All @@ -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`
Expand All @@ -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`
Expand All @@ -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`
Expand All @@ -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`
Expand All @@ -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`
Expand All @@ -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)_
<!-- commandsstop -->
4 changes: 2 additions & 2 deletions src/repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface RepoIndex {
}

export class Repos extends ConfigFile<RepoIndex> {
public static REFRESH_TIME = Duration.hours(8);
public static REFRESH_TIME = Duration.weeks(1);
public directory!: Directory;
private octokit!: Octokit;

Expand Down Expand Up @@ -127,7 +127,7 @@ export class Repos extends ConfigFile<RepoIndex> {
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();
Expand Down

0 comments on commit 7c38cb2

Please sign in to comment.