legacy_repos
Overview
Name | legacy_repos |
Type | Resource |
Id | github.teams.legacy_repos |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
name | string | |
description | string | |
forks_count | integer | |
statuses_url | string | |
has_wiki | boolean | |
is_template | boolean | |
disabled | boolean | |
compare_url | string | |
watchers | integer | |
git_commits_url | string | |
deployments_url | string | |
subscribers_count | integer | |
tags_url | string | |
blobs_url | string | |
size | integer | |
labels_url | string | |
code_of_conduct | object | Code Of Conduct |
contents_url | string | |
events_url | string | |
commits_url | string | |
has_pages | boolean | |
visibility | string | |
git_url | string | |
temp_clone_token | string | |
role_name | string | |
pushed_at | string | |
clone_url | string | |
updated_at | string | |
teams_url | string | |
html_url | string | |
branches_url | string | |
forks | integer | |
downloads_url | string | |
homepage | string | |
collaborators_url | string | |
trees_url | string | |
open_issues | integer | |
fork | boolean | |
created_at | string | |
mirror_url | string | |
releases_url | string | |
merges_url | string | |
watchers_count | integer | |
git_refs_url | string | |
stargazers_url | string | |
open_issues_count | integer | |
issue_comment_url | string | |
node_id | string | |
stargazers_count | integer | |
keys_url | string | |
issue_events_url | string | |
owner | object | Simple User |
license | object | |
url | string | |
has_issues | boolean | |
delete_branch_on_merge | boolean | |
topics | array | |
issues_url | string | |
language | string | |
full_name | string | |
permissions | object | |
forks_url | string | |
subscription_url | string | |
allow_forking | boolean | |
hooks_url | string | |
network_count | integer | |
pulls_url | string | |
svn_url | string | |
default_branch | string | |
comments_url | string | |
private | boolean | |
archive_url | string | |
subscribers_url | string | |
milestones_url | string | |
contributors_url | string | |
assignees_url | string | |
languages_url | string | |
has_projects | boolean | |
template_repository | object | A git repository |
notifications_url | string | |
has_downloads | boolean | |
archived | boolean | |
ssh_url | string | |
git_tags_url | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_repos_legacy | SELECT | team_id | Deprecation 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_legacy | DELETE | owner, repo, team_id | Deprecation 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. |
add_or_update_repo_permissions_legacy | EXEC | owner, repo, team_id | Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "Add or update team repository permissions" endpoint. To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity status if you attempt to add a repository to a team that is not owned by the organization.Note that, if you choose not to pass any parameters, you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see "HTTP verbs." |
check_permissions_for_repo_legacy | EXEC | owner, repo, team_id | Note: Repositories inherited through a parent team will also be checked. Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint. You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept header: |