repos
Overview
Name | repos |
Type | Resource |
Id | github.teams.repos |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
name | string | |
description | string | |
subscribers_url | string | |
git_url | string | |
branches_url | string | |
topics | array | |
has_downloads | boolean | |
keys_url | string | |
private | boolean | |
assignees_url | string | |
size | integer | |
notifications_url | string | |
forks | integer | |
network_count | integer | |
allow_forking | boolean | |
clone_url | string | |
contributors_url | string | |
deployments_url | string | |
watchers | integer | |
contents_url | string | |
languages_url | string | |
mirror_url | string | |
has_wiki | boolean | |
pushed_at | string | |
issue_comment_url | string | |
archived | boolean | |
stargazers_url | string | |
git_refs_url | string | |
node_id | string | |
collaborators_url | string | |
merges_url | string | |
has_projects | boolean | |
open_issues | integer | |
git_commits_url | string | |
is_template | boolean | |
owner | object | Simple User |
ssh_url | string | |
issue_events_url | string | |
temp_clone_token | string | |
updated_at | string | |
html_url | string | |
downloads_url | string | |
forks_count | integer | |
forks_url | string | |
compare_url | string | |
delete_branch_on_merge | boolean | |
teams_url | string | |
has_issues | boolean | |
watchers_count | integer | |
hooks_url | string | |
full_name | string | |
fork | boolean | |
code_of_conduct | object | Code Of Conduct |
visibility | string | |
template_repository | object | A git repository |
statuses_url | string | |
archive_url | string | |
permissions | object | |
pulls_url | string | |
disabled | boolean | |
milestones_url | string | |
labels_url | string | |
language | string | |
stargazers_count | integer | |
license | object | |
homepage | string | |
blobs_url | string | |
issues_url | string | |
default_branch | string | |
releases_url | string | |
trees_url | string | |
svn_url | string | |
url | string | |
has_pages | boolean | |
git_tags_url | string | |
role_name | string | |
created_at | string | |
subscribers_count | integer | |
events_url | string | |
commits_url | string | |
open_issues_count | integer | |
subscription_url | string | |
comments_url | string | |
tags_url | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_repos_in_org | SELECT | org, team_slug | Lists 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 . |
add_or_update_repo_permissions_in_org | INSERT | org, owner, repo, team_slug | 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."Note: You can also specify a team by org_id and team_id using the route PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo} .For more information about the permission levels, see "Repository permission levels for an organization". |
remove_repo_in_org | DELETE | org, owner, repo, team_slug | 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. 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} . |
check_permissions_for_repo_in_org | EXEC | org, owner, repo, team_slug | Checks whether a team has admin , push , maintain , triage , or pull permission for a repository. Repositories inherited through a parent team will also be checked.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 application/vnd.github.v3.repository+json accept header.If a team doesn't have permission for the repository, you will receive a 404 Not Found response status.Note: You can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo} . |