- Notifications
You must be signed in to change notification settings - Fork0
List all PRs in all repositories belonging to an individual user/organization
License
PythonCoderAS/github-list-all-prs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
⚠️ Deprecated⚠️ Superseded by
gh-all-repos list-pr.
List all PRs in all repositories belonging to an individual user/organization.
npm install -g github-list-all-prsGITHUB_TOKEN="<your-github-token>" github-list-all-prs user<user># Alternatively: GITHUB_TOKEN="<your-github-token>" github-list-all-prs organization <org>
Tokens need to be GitHub private access tokens with therepo scopes. If you do not want to list PRs for any privaterepos, then thepublic_repo scope suffices. It is also possible to omit the token altogether, but it is highlyrecommended to use a token because unauthenticated API requests have a very low rate-limit.
Tokens can either be given via the--token argument or via theGITHUB_TOKEN environment variable. Alternatively,a.env file withGITHUB_TOKEN=<token> can also be created; seedotenv for moreinformation.
There is one command for listing PRs for all repos of users and one command for listing PRs for all repos oforganizations. A user cannot be supplied to the organization command or vice versa, otherwise an NotFoundError willoccur.
User mode contains an additional configuration option,--collaborator that works when the supplied user is the sameuser that created the token the client is using. Specifying this option will cause the client to list PRs for all reposof all repositories that the user is a collaborator on.
The client can show PRs in these states:
--open: List all open PRs. This is the default operation.--closed: List all closed PRs.--all: List all PRs.
The states can be specified as a command line flag. Only one state may be specified at a time.
The client can show PRs that have been authored by a specific user. Use the--author=<username> option to specify theusername of the PR author to filter by.
The client can show PRs that have been labelled with a specific label. Use the--label=<label> option to specify thelabel to filter by.
Private repositories are included by default. In order to exclude them from the PR list, the--no-private optioncan be supplied.
The number of PRs shown per repository can be limited using the--repo-limit=<limit> option. A limit of 0 is seen asno limit.
The number of PRs shown in total can be limited using the--global-limit=<limit> option. A limit of 0 is seen as nolimit.
About
List all PRs in all repositories belonging to an individual user/organization
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.