Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Created November 20, 2022 18:55
Show Gist options
  • Select an option

  • Save KyMidd/fea187cd3dc9be623cbfa896ef13d544 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/fea187cd3dc9be623cbfa896ef13d544 to your computer and use it in GitHub Desktop.
~ curl -s -X PATCH \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
https://api.github.com/repos/$GH_ORG/$GH_REPO \
-d '{"delete_branch_on_merge":true,"private":true}' | jq | grep -E 'allow_'
"allow_forking": false,
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_auto_merge": false,
"allow_update_branch": true,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment