Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dylanmtaylor/06c1b928a681d07bb649e0ccc9260e4d to your computer and use it in GitHub Desktop.

Select an option

Save dylanmtaylor/06c1b928a681d07bb649e0ccc9260e4d to your computer and use it in GitHub Desktop.
Disable issues and PRs on all repos
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