Skip to main content

repos

Overview

Namerepos
TypeResource
Idgithub.teams.repos

Fields

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

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.