Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Schema Inaccuracy] "Create an organization repository" team_id parameter is not useful and missing information #3689

Open
tonglil opened this issue Jun 21, 2024 · 0 comments

Comments

@tonglil
Copy link

tonglil commented Jun 21, 2024

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.

  1. This information is not documented
  2. 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.
  3. 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants