Skip to content

Commit

Permalink
fix: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Feb 5, 2024
1 parent 32a889f commit 7ddb357
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 90 deletions.
113 changes: 23 additions & 90 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ done-with-branch: |
* [`multi diff ORG`](#multi-diff-org)
* [`multi exec REPO`](#multi-exec-repo)
* [`multi list`](#multi-list)
* [`multi list org ORG`](#multi-list-org-org)
* [`multi open REPO`](#multi-open-repo)
* [`multi org issues ORG`](#multi-org-issues-org)
* [`multi org list ORGS`](#multi-org-list-orgs)
* [`multi org pulls ORG`](#multi-org-pulls-org)
* [`multi pulls`](#multi-pulls)
* [`multi refresh`](#multi-refresh)
* [`multi remove REPO`](#multi-remove-repo)
Expand Down Expand Up @@ -236,6 +234,26 @@ ALIASES
_See code: [src/commands/list.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v4.3.3/src/commands/list.ts)_
## `multi list org ORG`
Show all repositories in the org. Requires GH_TOKEN to be set in the environment.
```
USAGE
$ multi list org ORG

ARGUMENTS
ORG Github org

DESCRIPTION
Show all repositories in the org. Requires GH_TOKEN to be set in the environment.

EXAMPLES
$ multi list org my-github-org
```
_See code: [src/commands/list/org.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v4.3.3/src/commands/list/org.ts)_
## `multi open REPO`
Open a repository in github.
Expand Down Expand Up @@ -274,101 +292,16 @@ EXAMPLES
_See code: [src/commands/open.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v4.3.3/src/commands/open.ts)_
## `multi org issues ORG`
List all issues in the org. Requires GH_TOKEN to be set in the environment.
```
USAGE
$ multi org issues ORG -s <value> [-b created|repo|author|updated]

ARGUMENTS
ORG Github org

FLAGS
-b, --sort-by=<option> [default: repo] Sort by
<options: created|repo|author|updated>
-s, --since=<value> (required) Only show issues updated after this date

DESCRIPTION
List all issues in the org. Requires GH_TOKEN to be set in the environment.

EXAMPLES
$ multi org issues my-github-org --since 1/1/24

$ multi org issues my-github-org --since friday
```
_See code: [src/commands/org/issues.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v4.3.3/src/commands/org/issues.ts)_
## `multi org list ORGS`
Show all repositories in the org. Requires GH_TOKEN to be set in the environment.
```
USAGE
$ multi org list ORGS

ARGUMENTS
ORGS Github org

DESCRIPTION
Show all repositories in the org. Requires GH_TOKEN to be set in the environment.

ALIASES
$ multi list org

EXAMPLES
$ multi org list my-github-org
```
_See code: [src/commands/org/list.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v4.3.3/src/commands/org/list.ts)_
## `multi org pulls ORG`
List all pull requests in the org. Requires GH_TOKEN to be set in the environment.
```
USAGE
$ multi org pulls ORG [-i | -d] [-b created|repo|author] [-s <value>]

ARGUMENTS
ORG Github org

FLAGS
-b, --sort-by=<option> [default: repo] Sort by
<options: created|repo|author>
-d, --only-dependabot Only show dependabot
-i, --[no-]ignore-dependabot Ignore dependabot
-s, --since=<value> Only show pull requests created after this date

DESCRIPTION
List all pull requests in the org. Requires GH_TOKEN to be set in the environment.

EXAMPLES
$ multi org pulls my-github-org

$ multi org pulls my-github-org --ignore-dependabot

$ multi org pulls my-github-org --only-dependabot

$ multi org pulls my-github-org --since 1/1/24

$ multi org pulls my-github-org --since friday
```
_See code: [src/commands/org/pulls.ts](https://github.com/mdonnalley/multiple-repo-manager/blob/v4.3.3/src/commands/org/pulls.ts)_
## `multi pulls`
List all your pull requests for added repositories. Requires GH_TOKEN to be set in the environment.
List all pull requests for added repositories. Requires GH_TOKEN to be set in the environment.
```
USAGE
$ multi pulls

DESCRIPTION
List all your pull requests for added repositories. Requires GH_TOKEN to be set in the environment.
List all pull requests for added repositories. Requires GH_TOKEN to be set in the environment.

EXAMPLES
$ multi pulls
Expand Down
1 change: 1 addition & 0 deletions src/repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export class Repos extends ConfigFile<RepoIndex> {

const all = await Promise.all(
reposOfOrg.map(async (repo) => {
debug(`GET /repos/{owner}/{repo}/pulls`, {owner: org, repo: repo.name})
const response = await this.octokit.paginate('GET /repos/{owner}/{repo}/pulls', {
owner: org,
repo: repo.name,
Expand Down

0 comments on commit 7ddb357

Please sign in to comment.