The id passed in this field only sets the team with read access.
This information is not documented
This is not useful as one expects the team specified during repo creation would receive admin access, in particular as repos created by GitHub App installations because then the repo is created without any admin access to anyone.
It would be better if the parameter allowed specifying level of access.
Expected
At least document that the field only grants the team_id team read-only access.
Reproduction Steps
gh api \
--silent \
--method POST \
-H "Accept: application/vnd.github+json" \
"/orgs/$org/repos" \
-f name="some-repo" \
-F team_id="$team_id"
Schema Inaccuracy
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#create-an-organization-repository
The id passed in this field only sets the team with
read
access.admin
access, in particular as repos created by GitHub App installations because then the repo is created without anyadmin
access to anyone.Expected
At least document that the field only grants the
team_id
teamread
-only access.Reproduction Steps