Github API - Test Config

GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
orgs
repos
teams

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}.
Check team permissions for a repository

Arguments
key org

org [scalar]

The organization name. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key team-slug

team-slug [scalar]

The slug of the team name.

API:
Github Open API
(version: 1.1.4)

key owner

owner [scalar]

The account owner of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key repo

repo [scalar]

The name of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json team-repository

team-repository [object]

A team's access to a repository.

Attributes
allow_auto_merge boolean

Whether to allow Auto-merge to be used on pull requests.

allow_forking boolean

Whether to allow forking this repo

allow_merge_commit boolean

Whether to allow merge commits for pull requests.

allow_rebase_merge boolean

Whether to allow rebase merges for pull requests.

allow_squash_merge boolean

Whether to allow squash merges for pull requests.

archive_url string

archived boolean

Whether the repository is archived.

assignees_url string

blobs_url string

branches_url string

clone_url string

collaborators_url string

comments_url string

commits_url string

compare_url string

contents_url string

contributors_url string

created_at string

default_branch string

The default branch of the repository.

delete_branch_on_merge boolean

Whether to delete head branches when pull requests are merged

deployments_url string

description string

disabled boolean

Returns whether or not this repository disabled.

downloads_url string

events_url string

fork boolean

forks integer

forks_count integer

forks_url string

full_name string

git_commits_url string

git_refs_url string

git_tags_url string

git_url string

has_downloads boolean

Whether downloads are enabled.

has_issues boolean

Whether issues are enabled.

has_pages boolean

has_projects boolean

Whether projects are enabled.

has_wiki boolean

Whether the wiki is enabled.

homepage string

hooks_url string

html_url string

id integer

Unique identifier of the repository

is_template boolean

Whether this repository acts as a template that can be used to generate new repositories.

issue_comment_url string

issue_events_url string

issues_url string

keys_url string

labels_url string

language string

languages_url string

master_branch string

merges_url string

milestones_url string

mirror_url string

name string

The name of the repository.

network_count integer

node_id string

notifications_url string

open_issues integer

open_issues_count integer

permissions 2121

private boolean

Whether the repository is private or public.

pulls_url string

pushed_at string

releases_url string

role_name string

size integer

ssh_url string

stargazers_count integer

stargazers_url string

statuses_url string

subscribers_count integer

subscribers_url string

subscription_url string

svn_url string

tags_url string

teams_url string

temp_clone_token string

template_repository nullable-repository

topics string []

trees_url string

updated_at string

url string

visibility string

The repository visibility: public, private, or internal.

watchers integer

watchers_count integer

web_commit_signoff_required boolean

Whether to require contributors to sign off on web-based commits

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)