Skip to main content

repos

Overview

Namerepos
TypeResource
Idgithub.teams.repos

Fields

NameDatatypeDescription
idinteger
namestring
descriptionstring
contributors_urlstring
code_of_conductobjectCode Of Conduct
sizeintegerThe size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.
open_issuesinteger
pulls_urlstring
assignees_urlstring
git_tags_urlstring
privateboolean
has_issuesboolean
git_urlstring
subscribers_countinteger
git_commits_urlstring
issues_urlstring
branches_urlstring
licenseobject
open_issues_countinteger
topicsarray
hooks_urlstring
stargazers_countinteger
languages_urlstring
forks_urlstring
urlstring
security_and_analysisobject
labels_urlstring
disabledboolean
milestones_urlstring
network_countinteger
role_namestring
node_idstring
forkboolean
trees_urlstring
releases_urlstring
default_branchstring
tags_urlstring
events_urlstring
temp_clone_tokenstring
notifications_urlstring
has_wikiboolean
mirror_urlstring
issue_comment_urlstring
merges_urlstring
watchersinteger
allow_forkingboolean
pushed_atstring
subscribers_urlstring
has_downloadsboolean
comments_urlstring
visibilitystring
web_commit_signoff_requiredboolean
forksinteger
homepagestring
permissionsobject
delete_branch_on_mergeboolean
ownerobjectA GitHub user.
archive_urlstring
full_namestring
updated_atstring
archivedboolean
clone_urlstring
teams_urlstring
statuses_urlstring
downloads_urlstring
contents_urlstring
ssh_urlstring
svn_urlstring
commits_urlstring
has_pagesboolean
blobs_urlstring
subscription_urlstring
has_projectsboolean
stargazers_urlstring
html_urlstring
created_atstring
has_discussionsboolean
collaborators_urlstring
deployments_urlstring
git_refs_urlstring
languagestring
keys_urlstring
issue_events_urlstring
watchers_countinteger
forks_countinteger
compare_urlstring
is_templateboolean

Methods

NameAccessible byRequired ParamsDescription
list_repos_in_orgSELECTorg, team_slugLists a team's repositories visible to the authenticated user.

Note: You can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos.
list_repos_legacySELECTteam_idDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List team repositories endpoint.
remove_repo_in_orgDELETEorg, owner, repo, team_slugIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team.

Note: You can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
remove_repo_legacyEXECowner, repo, team_idDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.

If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.