[Schema Inaccuracy] Example response for /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
is incorrect
#621
Labels
/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
is incorrect
#621
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 organizationorg
(also referenced asowner
☝️)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 thefull_repository_hash
method. Similarly, the merge options are only included if we pass in theshow_merge_settings
flag, andtemp_clone_token
only with thegenerate_temp_clone_token
flag - neither is used in this case.The text was updated successfully, but these errors were encountered: