| title | How to list all repositories in your Github organization and close all their issues using the Github CLI |
|---|
How to list all repositories in your Github organization and close all their issues using the Github CLI
- List all repositories in the organization:
gh repo list serp-archive --json name --jq '.[].name'- For each repository, list all open issues and close them. You can run the following command for each repository manually:
gh issue list --repo <org>/<repo> --state open --json number --jq '.[].number' | xargs -I{} gh issue close {} --repo <org>/<repo>