Created
March 23, 2026 02:30
-
-
Save dylanmtaylor/06c1b928a681d07bb649e0ccc9260e4d to your computer and use it in GitHub Desktop.
Disable issues and PRs on all repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gh repo list --fork --limit 1000 --json nameWithOwner -q '.[].nameWithOwner' | while read -r repo; do | |
| echo "Disabling issues + PRs on $repo" | |
| gh api -X PATCH "/repos/$repo" -F has_issues=false -F has_pull_requests=false --silent | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment