Description
Schema Inaccuracy
Looking at https://docs.github.com/en/rest/reference/teams#check-team-permissions-for-a-repository, I believe some of the fields we include in the Alternative response with repository permissions
section are incorrect. Specifically, the following fields are not actually returned by the end point:
template_repository
(even if the repository was created from a template)allow_rebase_merge
allow_squash_merge
allow_auto_merge
delete_branch_on_merge
allow_merge_commit
temp_clone_token
I have not reviewed if there are other fields here that also should not be included in the example, nor if there's documentation for other endpoints that also incorrectly includes these fields.
Expected
None of the fields ☝️ shown in the example
Reproduction Steps
GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
where a team has been granted access to a repository repo
, which belongs to the organization org
(also referenced as owner
☝️)
In the code, this end point uses the simple_repository_hash
methods to include the repository info in the response. The API can return template repository info in a repository response, but it's generated in the code by the full_repository_hash
method. Similarly, the merge options are only included if we pass in the show_merge_settings
flag, and temp_clone_token
only with the generate_temp_clone_token
flag - neither is used in this case.
Activity