Lists all jobs
Authorizations:
query Parameters
Responses
Response samples
- 200
{- "jobs": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "head_branch": "string",
- "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "labels": [
- "string"
], - "name": "string",
- "run_attempt": 0,
- "run_id": 0,
- "run_url": "string",
- "runner_id": 0,
- "runner_name": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "steps": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "name": "string",
- "number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "url": "string"
}
], - "total_count": 0
}Get all runners
Authorizations:
query Parameters
| disabled | boolean filter by disabled status (true or false) |
Responses
Response samples
- 200
{- "runners": [
- {
- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}
], - "total_count": 0
}Get a global runner
Authorizations:
path Parameters
| runner_id required | string id of the runner |
Responses
Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Update a global runner
Authorizations:
path Parameters
| runner_id required | string id of the runner |
Request Body schema: application/json
| disabled required | boolean |
Responses
Request samples
- Payload
{- "disabled": true
}Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Lists all runs
Authorizations:
query Parameters
| event | string workflow event name |
| branch | string workflow branch |
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| actor | string triggered by user |
| head_sha | string triggering sha of the workflow run |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "total_count": 0,
- "workflow_runs": [
- {
- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}
]
}List cron tasks
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "exec_times": 0,
- "name": "string",
- "next": "2019-08-24T14:15:22Z",
- "prev": "2019-08-24T14:15:22Z",
- "schedule": "string"
}
]List all emails
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "email": "user@example.com",
- "primary": true,
- "user_id": 0,
- "username": "string",
- "verified": true
}
]Search all emails
Authorizations:
query Parameters
| q | string keyword |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "email": "user@example.com",
- "primary": true,
- "user_id": 0,
- "username": "string",
- "verified": true
}
]List system's webhooks
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
| type | string Default: "system" Enum: "system" "default" "all" system, default or both kinds of webhooks |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Create a hook
Authorizations:
Request Body schema: application/jsonrequired
| active | boolean Default: false |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
| events | Array of strings List of events that will trigger this webhook |
| name | string Optional human-readable name for the webhook |
| type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string",
- "type": "dingtalk"
}Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Get a hook
Authorizations:
path Parameters
| id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Update a hook
Authorizations:
path Parameters
| id required | integer <int64> id of the hook to update |
Request Body schema: application/json
| active | boolean Whether the webhook is active and will be triggered |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
object Configuration settings for the webhook | |
| events | Array of strings List of events that trigger this webhook |
| name | string Optional human-readable name |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string"
}Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}List all organizations
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]List unadopted repositories
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
| pattern | string pattern of repositories to search for |
Responses
Response samples
- 200
[- "string"
]Search users according filter conditions
Authorizations:
query Parameters
| source_id | integer <int64> ID of the user's login source to search for |
| login_name | string identifier of the user, provided by the external authenticator |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
| sort | string sort users by attribute. Supported values are "name", "created", "updated" and "id". Default is "name" |
| order | string sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified. |
| q | string search term (username, full name, email) |
| visibility | string visibility filter. Supported values are "public", "limited" and "private". |
| is_active | boolean filter active users |
| is_admin | boolean filter admin users |
| is_restricted | boolean filter restricted users |
| is_2fa_enabled | boolean filter 2FA enabled users |
| is_prohibit_login | boolean filter login prohibited users |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Create a user
Authorizations:
Request Body schema: application/json
| created_at | string <date-time> For explicitly setting the user creation timestamp. Useful when users are migrated from other systems. When omitted, the user's creation timestamp will be set to "now". |
| email required | string <email> |
| full_name | string The full display name of the user |
| login_name | string Default: "empty" identifier of the user, provided by the external authenticator (if configured) |
| must_change_password | boolean Whether the user must change password on first login |
| password | string The plain text password for the user |
| restricted | boolean Whether the user has restricted access privileges |
| send_notify | boolean Whether to send welcome notification email to the user |
| source_id | integer <int64> The authentication source ID to associate with the user |
| username required | string username of the user |
| visibility | string User visibility level: public, limited, or private |
Responses
Request samples
- Payload
{- "created_at": "2019-08-24T14:15:22Z",
- "email": "user@example.com",
- "full_name": "string",
- "login_name": "empty",
- "must_change_password": true,
- "password": "string",
- "restricted": true,
- "send_notify": true,
- "source_id": 0,
- "username": "string",
- "visibility": "string"
}Response samples
- 201
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}Edit an existing user
Authorizations:
path Parameters
| username required | string username of the user whose data is to be edited |
Request Body schema: application/json
| active | boolean Whether the user account is active |
| admin | boolean Whether the user has administrator privileges |
| allow_create_organization | boolean Whether the user can create organizations |
| allow_git_hook | boolean Whether the user can use Git hooks |
| allow_import_local | boolean Whether the user can import local repositories |
| description | string The user's personal description or bio |
string <email> | |
| full_name | string The full display name of the user |
| location | string The user's location or address |
| login_name required | string Default: "empty" identifier of the user, provided by the external authenticator (if configured) |
| max_repo_creation | integer <int64> Maximum number of repositories the user can create |
| must_change_password | boolean Whether the user must change password on next login |
| password | string The plain text password for the user |
| prohibit_login | boolean Whether the user is prohibited from logging in |
| restricted | boolean Whether the user has restricted access privileges |
| source_id required | integer <int64> |
| visibility | string User visibility level: public, limited, or private |
| website | string The user's personal website URL |
Responses
Request samples
- Payload
{- "active": true,
- "admin": true,
- "allow_create_organization": true,
- "allow_git_hook": true,
- "allow_import_local": true,
- "description": "string",
- "email": "user@example.com",
- "full_name": "string",
- "location": "string",
- "login_name": "empty",
- "max_repo_creation": 0,
- "must_change_password": true,
- "password": "string",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "visibility": "string",
- "website": "string"
}Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}List a user's badges
Authorizations:
path Parameters
| username required | string username of the user whose badges are to be listed |
Responses
Response samples
- 200
[- {
- "description": "string",
- "id": 0,
- "image_url": "string",
- "slug": "string"
}
]Add a badge to a user
Authorizations:
path Parameters
| username required | string username of the user to whom a badge is to be added |
Request Body schema: application/json
| badge_slugs | Array of strings |
Responses
Request samples
- Payload
{- "badge_slugs": [
- "badge1",
- "badge2"
]
}Remove a badge from a user
Authorizations:
path Parameters
| username required | string username of the user whose badge is to be deleted |
Request Body schema: application/json
| badge_slugs | Array of strings |
Responses
Request samples
- Payload
{- "badge_slugs": [
- "badge1",
- "badge2"
]
}Add a public key on behalf of a user
Authorizations:
path Parameters
| username required | string username of the user who is to receive a public key |
Request Body schema: application/json
| key required | string unique An armored SSH key to add |
| read_only | boolean Describe if the key has only read access or read/write |
| title required | string unique Title of the key to add |
Responses
Request samples
- Payload
{- "key": "string",
- "read_only": true,
- "title": "string"
}Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Create an organization
Authorizations:
path Parameters
| username required | string username of the user who will own the created organization |
Request Body schema: application/jsonrequired
| description | string The description of the organization |
string The email address of the organization | |
| full_name | string The full display name of the organization |
| location | string The location of the organization |
| repo_admin_change_team_access | boolean Whether repository administrators can change team access |
| username required | string username of the organization |
| visibility | string Enum: "public" "limited" "private" possible values are |
| website | string The website URL of the organization |
Responses
Request samples
- Payload
{- "description": "string",
- "email": "string",
- "full_name": "string",
- "location": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "public",
- "website": "string"
}Response samples
- 201
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}Rename a user
Authorizations:
path Parameters
| username required | string current username of the user |
Request Body schema: application/jsonrequired
| new_username required | string unique New username for this user. This name cannot be in use yet by any other user. |
Responses
Request samples
- Payload
{- "new_username": "string"
}Create a repository on behalf of a user
Authorizations:
path Parameters
| username required | string username of the user who will own the created repository |
Request Body schema: application/jsonrequired
| auto_init | boolean Whether the repository should be auto-initialized? |
| default_branch | string DefaultBranch of the repository (used when initializes and in template) |
| description | string Description of the repository to create |
| gitignores | string Gitignores to use |
| issue_labels | string Label-Set to use |
| license | string License to use |
| name required | string unique Name of the repository to create |
| object_format_name | string Enum: "sha1" "sha256" ObjectFormatName of the underlying git repository, empty string for default (sha1) |
| private | boolean Whether the repository is private |
| readme | string Readme of the repository to create |
| template | boolean Whether the repository is template |
| trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "object_format_name": "sha1",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}Response samples
- 201
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Returns all labels in a template
Authorizations:
path Parameters
| name required | string name of the template |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "name": "string"
}
]Returns information about a license template
Authorizations:
path Parameters
| name required | string name of the license |
Responses
Response samples
- 200
{- "body": "string",
- "implementation": "string",
- "key": "string",
- "name": "string",
- "url": "string"
}Render a markdown document as HTML
Authorizations:
Request Body schema: application/json
| Context | string URL path for rendering issue, media and file links Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir} in: body |
| Mode | string Mode to render (markdown, comment, wiki, file) in: body |
| Text | string Text markdown to render in: body |
| Wiki | boolean Is it a wiki page? (use mode=wiki instead) Deprecated: true in: body |
Responses
Request samples
- Payload
{- "Context": "string",
- "Mode": "string",
- "Text": "string",
- "Wiki": true
}Response samples
- 200
"string"Render a markup document as HTML
Authorizations:
Request Body schema: application/json
| Context | string URL path for rendering issue, media and file links Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir} in: body |
| FilePath | string File path for detecting extension in file mode in: body |
| Mode | string Mode to render (markdown, comment, wiki, file) in: body |
| Text | string Text markup to render in: body |
| Wiki | boolean Is it a wiki page? (use mode=wiki instead) Deprecated: true in: body |
Responses
Request samples
- Payload
{- "Context": "string",
- "FilePath": "string",
- "Mode": "string",
- "Text": "string",
- "Wiki": true
}Response samples
- 200
"string"List users's notification threads
Authorizations:
query Parameters
| all | boolean If true, show notifications marked as read. Default value is false |
| status-types | Array of strings Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. |
| subject-type | Array of strings Items Enum: "issue" "pull" "commit" "repository" filter notifications by subject type |
| since | string <date-time> Only show notifications updated after the given time. This is a timestamp in RFC 3339 format |
| before | string <date-time> Only show notifications updated before the given time. This is a timestamp in RFC 3339 format |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "open",
- "title": "string",
- "type": "Issue",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]Mark notification threads as read, pinned or unread
Authorizations:
query Parameters
| last_read_at | string <date-time> Describes the last point that notifications were checked. Anything updated since this time will not be updated. |
| all | string If true, mark all notifications on this repo. Default value is false |
| status-types | Array of strings Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. |
| to-status | string Status to mark notifications as, Defaults to read. |
Responses
Response samples
- 205
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "open",
- "title": "string",
- "type": "Issue",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]Get notification thread by ID
Authorizations:
path Parameters
| id required | string id of notification thread |
Responses
Response samples
- 200
{- "id": 0,
- "pinned": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "open",
- "title": "string",
- "type": "Issue",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}Mark notification thread as read by ID
Authorizations:
path Parameters
| id required | string id of notification thread |
query Parameters
| to-status | string Default: "read" Status to mark notifications as |
Responses
Response samples
- 205
{- "id": 0,
- "pinned": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "open",
- "title": "string",
- "type": "Issue",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}List users's notification threads on a specific repo
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| all | boolean If true, show notifications marked as read. Default value is false |
| status-types | Array of strings Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned |
| subject-type | Array of strings Items Enum: "issue" "pull" "commit" "repository" filter notifications by subject type |
| since | string <date-time> Only show notifications updated after the given time. This is a timestamp in RFC 3339 format |
| before | string <date-time> Only show notifications updated before the given time. This is a timestamp in RFC 3339 format |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "open",
- "title": "string",
- "type": "Issue",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]Mark notification threads as read, pinned or unread on a specific repo
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| all | string If true, mark all notifications on this repo. Default value is false |
| status-types | Array of strings Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. |
| to-status | string Status to mark notifications as. Defaults to read. |
| last_read_at | string <date-time> Describes the last point that notifications were checked. Anything updated since this time will not be updated. |
Responses
Response samples
- 205
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "open",
- "title": "string",
- "type": "Issue",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]Create a repository in an organization Deprecated
Authorizations:
path Parameters
| org required | string name of organization |
Request Body schema: application/json
| auto_init | boolean Whether the repository should be auto-initialized? |
| default_branch | string DefaultBranch of the repository (used when initializes and in template) |
| description | string Description of the repository to create |
| gitignores | string Gitignores to use |
| issue_labels | string Label-Set to use |
| license | string License to use |
| name required | string unique Name of the repository to create |
| object_format_name | string Enum: "sha1" "sha256" ObjectFormatName of the underlying git repository, empty string for default (sha1) |
| private | boolean Whether the repository is private |
| readme | string Readme of the repository to create |
| template | boolean Whether the repository is template |
| trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "object_format_name": "sha1",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}Response samples
- 201
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Get list of organizations
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]Create an organization
Authorizations:
Request Body schema: application/jsonrequired
| description | string The description of the organization |
string The email address of the organization | |
| full_name | string The full display name of the organization |
| location | string The location of the organization |
| repo_admin_change_team_access | boolean Whether repository administrators can change team access |
| username required | string username of the organization |
| visibility | string Enum: "public" "limited" "private" possible values are |
| website | string The website URL of the organization |
Responses
Request samples
- Payload
{- "description": "string",
- "email": "string",
- "full_name": "string",
- "location": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "public",
- "website": "string"
}Response samples
- 201
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}Get an organization
Authorizations:
path Parameters
| org required | string name of the organization to get |
Responses
Response samples
- 200
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}Edit an organization
Authorizations:
path Parameters
| org required | string name of the organization to edit |
Request Body schema: application/jsonrequired
| description | string The description of the organization |
string The email address of the organization; use empty string to clear | |
| full_name | string The full display name of the organization |
| location | string The location of the organization |
| repo_admin_change_team_access | boolean Whether repository administrators can change team access |
| visibility | string Enum: "public" "limited" "private" possible values are |
| website | string The website URL of the organization |
Responses
Request samples
- Payload
{- "description": "string",
- "email": "string",
- "full_name": "string",
- "location": "string",
- "repo_admin_change_team_access": true,
- "visibility": "public",
- "website": "string"
}Response samples
- 200
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}Get org-level workflow jobs
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "jobs": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "head_branch": "string",
- "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "labels": [
- "string"
], - "name": "string",
- "run_attempt": 0,
- "run_id": 0,
- "run_url": "string",
- "runner_id": 0,
- "runner_name": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "steps": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "name": "string",
- "number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "url": "string"
}
], - "total_count": 0
}Get org-level runners
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| disabled | boolean filter by disabled status (true or false) |
Responses
Response samples
- 200
{- "runners": [
- {
- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}
], - "total_count": 0
}Get an org-level runner
Authorizations:
path Parameters
| org required | string name of the organization |
| runner_id required | string id of the runner |
Responses
Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Update an org-level runner
Authorizations:
path Parameters
| org required | string name of the organization |
| runner_id required | string id of the runner |
Request Body schema: application/json
| disabled required | boolean |
Responses
Request samples
- Payload
{- "disabled": true
}Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Get org-level workflow runs
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| event | string workflow event name |
| branch | string workflow branch |
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| actor | string triggered by user |
| head_sha | string triggering sha of the workflow run |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "total_count": 0,
- "workflow_runs": [
- {
- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}
]
}List an organization's actions secrets
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "name": "string"
}
]Create or Update a secret value in an organization
Authorizations:
path Parameters
| org required | string name of organization |
| secretname required | string name of the secret |
Request Body schema: application/json
| data required | string Data of the secret to update |
| description | string Description of the secret to update |
Responses
Request samples
- Payload
{- "data": "string",
- "description": "string"
}Get an org-level variables list
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}
]Get an org-level variable
Authorizations:
path Parameters
| org required | string name of the organization |
| variablename required | string name of the variable |
Responses
Response samples
- 200
{- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}Update an org-level variable
Authorizations:
path Parameters
| org required | string name of the organization |
| variablename required | string name of the variable |
Request Body schema: application/json
| description | string Description of the variable to update |
| name | string New name for the variable. If the field is empty, the variable name won't be updated. |
| value required | string Value of the variable to update |
Responses
Request samples
- Payload
{- "description": "string",
- "name": "string",
- "value": "string"
}Create an org-level variable
Authorizations:
path Parameters
| org required | string name of the organization |
| variablename required | string name of the variable |
Request Body schema: application/json
| description | string Description of the variable to create |
| value required | string Value of the variable to create |
Responses
Request samples
- Payload
{- "description": "string",
- "value": "string"
}Delete an org-level variable
Authorizations:
path Parameters
| org required | string name of the organization |
| variablename required | string name of the variable |
Responses
Response samples
- 200
{- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}List an organization's activity feeds
Authorizations:
path Parameters
| org required | string name of the org |
query Parameters
| date | string <date> the date of the activities to be found |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "create_repo",
- "ref_name": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]Update Avatar
Authorizations:
path Parameters
| org required | string name of the organization |
Request Body schema: application/json
| image | string image must be base64 encoded |
Responses
Request samples
- Payload
{- "image": "string"
}List users blocked by the organization
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]List an organization's webhooks
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Create a hook
Authorizations:
path Parameters
| org required | string name of the organization |
Request Body schema: application/jsonrequired
| active | boolean Default: false |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
| events | Array of strings List of events that will trigger this webhook |
| name | string Optional human-readable name for the webhook |
| type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string",
- "type": "dingtalk"
}Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Get a hook
Authorizations:
path Parameters
| org required | string name of the organization |
| id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Update a hook
Authorizations:
path Parameters
| org required | string name of the organization |
| id required | integer <int64> id of the hook to update |
Request Body schema: application/json
| active | boolean Whether the webhook is active and will be triggered |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
object Configuration settings for the webhook | |
| events | Array of strings List of events that trigger this webhook |
| name | string Optional human-readable name |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string"
}Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}List an organization's labels
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]Create a label for an organization
Authorizations:
path Parameters
| org required | string name of the organization |
Request Body schema: application/json
| color required | string |
| description | string Description provides additional context about the label's purpose |
| exclusive | boolean |
| is_archived | boolean |
| name required | string |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}Response samples
- 201
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}Get a single label
Authorizations:
path Parameters
| org required | string name of the organization |
| id required | integer <int64> id of the label to get |
Responses
Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}Update a label
Authorizations:
path Parameters
| org required | string name of the organization |
| id required | integer <int64> id of the label to edit |
Request Body schema: application/json
| color | string |
| description | string Description provides additional context about the label's purpose |
| exclusive | boolean |
| is_archived | boolean |
| name | string Name is the new display name for the label |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}List an organization's members
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]List an organization's public members
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Check if a user is a public member of an organization
Authorizations:
path Parameters
| org required | string name of the organization |
| username required | string username of the user to check for a public organization membership |
Responses
Rename an organization
Authorizations:
path Parameters
| org required | string existing org name |
Request Body schema: application/jsonrequired
| new_name required | string unique New username for this org. This name cannot be in use yet by any other user. |
Responses
Request samples
- Payload
{- "new_name": "string"
}List an organization's repos
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]Create a repository in an organization
Authorizations:
path Parameters
| org required | string name of organization |
Request Body schema: application/json
| auto_init | boolean Whether the repository should be auto-initialized? |
| default_branch | string DefaultBranch of the repository (used when initializes and in template) |
| description | string Description of the repository to create |
| gitignores | string Gitignores to use |
| issue_labels | string Label-Set to use |
| license | string License to use |
| name required | string unique Name of the repository to create |
| object_format_name | string Enum: "sha1" "sha256" ObjectFormatName of the underlying git repository, empty string for default (sha1) |
| private | boolean Whether the repository is private |
| readme | string Readme of the repository to create |
| template | boolean Whether the repository is template |
| trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "object_format_name": "sha1",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}Response samples
- 201
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}List an organization's teams
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]Create a team
Authorizations:
path Parameters
| org required | string name of the organization |
Request Body schema: application/json
| can_create_org_repo | boolean Whether the team can create repositories in the organization |
| description | string The description of the team |
| includes_all_repositories | boolean Whether the team has access to all repositories in the organization |
| name required | string |
| permission | string Enum: "read" "write" "admin" |
| units | Array of strings |
object |
Responses
Request samples
- Payload
{- "can_create_org_repo": true,
- "description": "string",
- "includes_all_repositories": true,
- "name": "string",
- "permission": "read",
- "units": [
- "repo.actions",
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.ext_wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": "{\"repo.actions\",\"repo.packages\",\"repo.code\":\"read\",\"repo.issues\":\"write\",\"repo.ext_issues\":\"none\",\"repo.wiki\":\"admin\",\"repo.pulls\":\"owner\",\"repo.releases\":\"none\",\"repo.projects\":\"none\",\"repo.ext_wiki\":\"none\"}"
}Response samples
- 201
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}Search for teams within an organization
Authorizations:
path Parameters
| org required | string name of the organization |
query Parameters
| q | string keywords to search |
| include_desc | boolean include search within team description (defaults to true) |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "data": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "ok": true
}Get a team
Authorizations:
path Parameters
| id required | integer <int64> id of the team to get |
Responses
Response samples
- 200
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}Edit a team
Authorizations:
path Parameters
| id required | integer id of the team to edit |
Request Body schema: application/json
| can_create_org_repo | boolean Whether the team can create repositories in the organization |
| description | string The description of the team |
| includes_all_repositories | boolean Whether the team has access to all repositories in the organization |
| name required | string |
| permission | string Enum: "read" "write" "admin" |
| units | Array of strings |
object |
Responses
Request samples
- Payload
{- "can_create_org_repo": true,
- "description": "string",
- "includes_all_repositories": true,
- "name": "string",
- "permission": "read",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}Response samples
- 200
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}List a team's activity feeds
Authorizations:
path Parameters
| id required | integer <int64> id of the team |
query Parameters
| date | string <date> the date of the activities to be found |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "create_repo",
- "ref_name": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]List a team's members
Authorizations:
path Parameters
| id required | integer <int64> id of the team |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]List a particular member of team
Authorizations:
path Parameters
| id required | integer <int64> id of the team |
| username required | string username of the user whose data is to be listed |
Responses
Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}List a team's repos
Authorizations:
path Parameters
| id required | integer <int64> id of the team |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]List a particular repo of team
Authorizations:
path Parameters
| id required | integer <int64> id of the team |
| org required | string organization that owns the repo to list |
| repo required | string name of the repo to list |
Responses
Response samples
- 200
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Remove a repository from a team
This does not delete the repository, it only removes the repository from the team.
Authorizations:
path Parameters
| id required | integer <int64> id of the team |
| org required | string organization that owns the repo to remove |
| repo required | string name of the repo to remove |
Responses
List the current user's organizations
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]List a user's organizations
Authorizations:
path Parameters
| username required | string username of the user whose organizations are to be listed |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]Get user permissions in organization
Authorizations:
path Parameters
| username required | string username of the user whose permissions are to be obtained |
| org required | string name of the organization |
Responses
Response samples
- 200
{- "can_create_repository": true,
- "can_read": true,
- "can_write": true,
- "is_admin": true,
- "is_owner": true
}Gets all packages of an owner
Authorizations:
path Parameters
| owner required | string owner of the packages |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
| type | string Enum: "alpine" "cargo" "chef" "composer" "conan" "conda" "container" "cran" "debian" "generic" "go" "helm" "maven" "npm" "nuget" "pub" "pypi" "rpm" "rubygems" "swift" "terraform" "vagrant" package type filter |
| q | string name filter |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "html_url": "string",
- "id": 0,
- "name": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "type": "string",
- "version": "string"
}
]Gets all versions of a package
Authorizations:
path Parameters
| owner required | string owner of the package |
| type required | string type of the package |
| name required | string name of the package |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "html_url": "string",
- "id": 0,
- "name": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "type": "string",
- "version": "string"
}
]Gets the latest version of a package
Authorizations:
path Parameters
| owner required | string owner of the package |
| type required | string type of the package |
| name required | string name of the package |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "html_url": "string",
- "id": 0,
- "name": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "type": "string",
- "version": "string"
}Link a package to a repository
Authorizations:
path Parameters
| owner required | string owner of the package |
| type required | string type of the package |
| name required | string name of the package |
| repo_name required | string name of the repository to link. |
Responses
Gets a package
Authorizations:
path Parameters
| owner required | string owner of the package |
| type required | string type of the package |
| name required | string name of the package |
| version required | string version of the package |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "html_url": "string",
- "id": 0,
- "name": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "type": "string",
- "version": "string"
}Delete a package version
Authorizations:
path Parameters
| owner required | string owner of the package |
| type required | string type of the package |
| name required | string name of the package |
| version required | string version of the package |
Responses
Gets all files of a package
Authorizations:
path Parameters
| owner required | string owner of the package |
| type required | string type of the package |
| name required | string name of the package |
| version required | string version of the package |
Responses
Response samples
- 200
[- {
- "id": 0,
- "md5": "string",
- "name": "string",
- "sha1": "string",
- "sha256": "string",
- "sha512": "string",
- "size": 0
}
]Search for issues across the repositories that the user has access to
Authorizations:
query Parameters
| state | string Default: "open" Enum: "open" "closed" "all" State of the issue |
| labels | string Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded. |
| milestones | string Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded. |
| q | string Search string |
| type | string Enum: "issues" "pulls" Filter by issue type |
| since | string <date-time> Only show issues updated after the given time (RFC 3339 format) |
| before | string <date-time> Only show issues updated before the given time (RFC 3339 format) |
| assigned | boolean Default: false Filter issues or pulls assigned to the authenticated user |
| created | boolean Default: false Filter issues or pulls created by the authenticated user |
| mentioned | boolean Default: false Filter issues or pulls mentioning the authenticated user |
| review_requested | boolean Default: false Filter pull requests where the authenticated user's review was requested |
| reviewed | boolean Default: false Filter pull requests reviewed by the authenticated user |
| owner | string Filter by repository owner |
| created_by | string Only show items which were created by the given user |
| team | string Filter by team (requires organization owner parameter) |
| page | integer >= 1 Default: 1 Page number of results to return (1-based) |
| limit | integer >= 0 Number of items per page |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]List a repository's issues
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| state | string Enum: "closed" "open" "all" whether issue is open or closed |
| labels | string comma separated list of label names. Fetch only issues that have any of this label names. Non existent labels are discarded. |
| q | string search string |
| type | string Enum: "issues" "pulls" filter by type (issues / pulls) if set |
| milestones | string comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded |
| since | string <date-time> Only show items updated after the given time. This is a timestamp in RFC 3339 format |
| before | string <date-time> Only show items updated before the given time. This is a timestamp in RFC 3339 format |
| created_by | string Only show items which were created by the given user |
| assigned_by | string Only show items for which the given user is assigned |
| mentioned_by | string Only show items in which the given user was mentioned |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| assignee | string deprecated |
| assignees | Array of strings |
| body | string |
| closed | boolean |
| due_date | string <date-time> |
| labels | Array of integers <int64> [ items <int64 > ] list of label ids |
| milestone | integer <int64> milestone id |
| ref | string |
| title required | string |
Responses
Request samples
- Payload
{- "assignee": "string",
- "assignees": [
- "string"
], - "body": "string",
- "closed": true,
- "due_date": "2019-08-24T14:15:22Z",
- "labels": [
- 0
], - "milestone": 0,
- "ref": "string",
- "title": "string"
}Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}List all comments in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| since | string <date-time> if provided, only comments updated since the provided time are returned. |
| before | string <date-time> if provided, only comments updated before the provided time are returned. |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Get a comment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Edit a comment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
| body required | string |
Responses
Request samples
- Payload
{- "body": "string"
}Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}List comment's attachments
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment |
Responses
Response samples
- 200
[- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
]Create a comment attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment |
query Parameters
| name | string name of the attachment |
Request Body schema: multipart/form-datarequired
| attachment required | string <binary> attachment to upload |
Responses
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Get a comment attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment |
| attachment_id required | integer <int64> id of the attachment to get |
Responses
Response samples
- 200
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Delete a comment attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment |
| attachment_id required | integer <int64> id of the attachment to delete |
Responses
Edit a comment attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment |
| attachment_id required | integer <int64> id of the attachment to edit |
Request Body schema: application/json
| name | string Name is the new filename for the attachment |
Responses
Request samples
- Payload
{- "name": "string"
}Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Get a list of reactions from a comment of an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment to edit |
Responses
Response samples
- 200
[- {
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Add a reaction to a comment of an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
| content | string The reaction content (e.g., emoji or reaction type) |
Responses
Request samples
- Payload
{- "content": "string"
}Response samples
- 200
- 201
{- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Remove a reaction from a comment of an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
| content | string The reaction content (e.g., emoji or reaction type) |
Responses
Request samples
- Payload
{- "content": "string"
}Get an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue to get |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
Pass content_version to enable optimistic locking on body edits.
If the version doesn't match the current value, the request fails with 409 Conflict.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue to edit |
Request Body schema: application/json
| assignee | string deprecated |
| assignees | Array of strings |
| body | string |
| content_version | integer <int64> The current version of the issue content to detect conflicts during editing |
| due_date | string <date-time> |
| milestone | integer <int64> |
| ref | string |
| state | string |
| title | string |
| unset_due_date | boolean |
Responses
Request samples
- Payload
{- "assignee": "string",
- "assignees": [
- "string"
], - "body": "string",
- "content_version": 0,
- "due_date": "2019-08-24T14:15:22Z",
- "milestone": 0,
- "ref": "string",
- "state": "string",
- "title": "string",
- "unset_due_date": true
}Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}List issue's attachments
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Responses
Response samples
- 200
[- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
]Create an issue attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
query Parameters
| name | string name of the attachment |
Request Body schema: multipart/form-datarequired
| attachment required | string <binary> attachment to upload |
Responses
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Get an issue attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
| attachment_id required | integer <int64> id of the attachment to get |
Responses
Response samples
- 200
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Delete an issue attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
| attachment_id required | integer <int64> id of the attachment to delete |
Responses
Edit an issue attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
| attachment_id required | integer <int64> id of the attachment to edit |
Request Body schema: application/json
| name | string Name is the new filename for the attachment |
Responses
Request samples
- Payload
{- "name": "string"
}Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}List issues that are blocked by this issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | string index of the issue |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Block the issue given in the body by the issue in path
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | string index of the issue |
Request Body schema: application/json
| index | integer <int64> |
| owner | string owner of the issue's repo |
| repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Unblock the issue given in the body by the issue in path
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | string index of the issue |
Request Body schema: application/json
| index | integer <int64> |
| owner | string owner of the issue's repo |
| repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}List all comments on an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
query Parameters
| since | string <date-time> if provided, only comments updated since the specified time are returned. |
| before | string <date-time> if provided, only comments updated before the provided time are returned. |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Add a comment to an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Request Body schema: application/json
| body required | string |
Responses
Request samples
- Payload
{- "body": "string"
}Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Delete a comment Deprecated
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer this parameter is ignored |
| id required | integer <int64> id of comment to delete |
Responses
Edit a comment Deprecated
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer this parameter is ignored |
| id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
| body required | string |
Responses
Request samples
- Payload
{- "body": "string"
}Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue to create or update a deadline on |
Request Body schema: application/json
| due_date required | string <date-time> |
Responses
Request samples
- Payload
{- "due_date": "2019-08-24T14:15:22Z"
}Response samples
- 201
{- "due_date": "2019-08-24T14:15:22Z"
}List an issue's dependencies, i.e all issues that block this issue.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | string index of the issue |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Make the issue in the url depend on the issue in the form.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | string index of the issue |
Request Body schema: application/json
| index | integer <int64> |
| owner | string owner of the issue's repo |
| repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Remove an issue dependency
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | string index of the issue |
Request Body schema: application/json
| index | integer <int64> |
| owner | string owner of the issue's repo |
| repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Get an issue's labels
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]Replace an issue's labels
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Request Body schema: application/json
| labels | Array of any Labels can be a list of integers representing label IDs or a list of strings representing label names |
Responses
Request samples
- Payload
{- "labels": [
- null
]
}Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]Add a label to an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Request Body schema: application/json
| labels | Array of any Labels can be a list of integers representing label IDs or a list of strings representing label names |
Responses
Request samples
- Payload
{- "labels": [
- null
]
}Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]Remove a label from an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
| id required | integer <int64> id of the label to remove |
Responses
Lock an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Request Body schema: application/json
| lock_reason | string |
Responses
Request samples
- Payload
{- "lock_reason": "string"
}Moves the Pin to the given Position
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of issue |
| position required | integer <int64> the new position |
Responses
Get a list reactions of an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Add a reaction to an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Request Body schema: application/json
| content | string The reaction content (e.g., emoji or reaction type) |
Responses
Request samples
- Payload
{- "content": "string"
}Response samples
- 200
- 201
{- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Remove a reaction from an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Request Body schema: application/json
| content | string The reaction content (e.g., emoji or reaction type) |
Responses
Request samples
- Payload
{- "content": "string"
}Delete an issue's existing stopwatch.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue to stop the stopwatch on |
Responses
Stop an issue's existing stopwatch.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue to stop the stopwatch on |
Responses
Get users who subscribed on an issue.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Check if user is subscribed to an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "ignored": true,
- "reason": null,
- "repository_url": "string",
- "subscribed": true,
- "url": "string"
}Subscribe user to issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
| user required | string username of the user to subscribe the issue to |
Responses
Unsubscribe user from issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
| user required | string username of the user to unsubscribe from an issue |
Responses
List all comments and events on an issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
query Parameters
| since | string <date-time> if provided, only comments updated since the specified time are returned. |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
| before | string <date-time> if provided, only comments updated before the provided time are returned. |
Responses
Response samples
- 200
[- {
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignee_team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dependent_issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "label": {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "new_ref": "string",
- "new_title": "string",
- "old_milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "old_project_id": 0,
- "old_ref": "string",
- "old_title": "string",
- "project_id": 0,
- "pull_request_url": "string",
- "ref_action": "string",
- "ref_comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "ref_commit_sha": "string",
- "ref_issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "removed_assignee": true,
- "resolve_doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "review_id": 0,
- "tracked_time": {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}, - "type": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]List an issue's tracked times
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
query Parameters
| user | string optional filter by user (available for issue managers) |
| since | string <date-time> Only show times updated after the given time. This is a timestamp in RFC 3339 format |
| before | string <date-time> Only show times updated before the given time. This is a timestamp in RFC 3339 format |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]Add tracked time to a issue
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
Request Body schema: application/json
| created | string <date-time> |
| time required | integer <int64> time in seconds |
| user_name | string username of the user who spent the time working on the issue (optional) |
Responses
Request samples
- Payload
{- "created": "2019-08-24T14:15:22Z",
- "time": 0,
- "user_name": "string"
}Response samples
- 200
{- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}Delete specific tracked time
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the issue |
| id required | integer <int64> id of time to delete |
Responses
Get all of a repository's labels
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]Create a label
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| color required | string |
| description | string Description provides additional context about the label's purpose |
| exclusive | boolean |
| is_archived | boolean |
| name required | string |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}Response samples
- 201
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}Get a single label
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the label to get |
Responses
Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}Update a label
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the label to edit |
Request Body schema: application/json
| color | string |
| description | string Description provides additional context about the label's purpose |
| exclusive | boolean |
| is_archived | boolean |
| name | string Name is the new display name for the label |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}Get all of a repository's opened milestones
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| state | string Milestone state, Recognized values are open, closed and all. Defaults to "open" |
| name | string filter by milestone name |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Create a milestone
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| description | string Description provides details about the milestone |
| due_on | string <date-time> |
| state | string Enum: "open" "closed" |
| title | string Title is the title of the new milestone |
Responses
Request samples
- Payload
{- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "state": "open",
- "title": "string"
}Response samples
- 201
{- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Get a milestone
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | string the milestone to get, identified by ID and if not available by name |
Responses
Response samples
- 200
{- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Update a milestone
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | string the milestone to edit, identified by ID and if not available by name |
Request Body schema: application/json
| description | string Description provides updated details about the milestone |
| due_on | string <date-time> Deadline is the updated due date for the milestone |
| state | string Enum: "open" "closed" State indicates the updated state of the milestone |
| title | string Title is the updated title of the milestone |
Responses
Request samples
- Payload
{- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "state": "open",
- "title": "string"
}Response samples
- 200
{- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Migrate a remote git repository
Authorizations:
Request Body schema: application/json
| auth_password | string |
| auth_token | string |
| auth_username | string |
| aws_access_key_id | string |
| aws_secret_access_key | string |
| clone_addr required | string |
| description | string |
| issues | boolean |
| labels | boolean |
| lfs | boolean |
| lfs_endpoint | string |
| milestones | boolean |
| mirror | boolean |
| mirror_interval | string |
| private | boolean |
| pull_requests | boolean |
| releases | boolean |
| repo_name required | string |
| repo_owner | string the organization's name or individual user's name who will own the migrated repository |
| service | string Enum: "git" "github" "gitea" "gitlab" "gogs" "onedev" "gitbucket" "codebase" "codecommit" |
| uid | integer <int64> deprecated (only for backwards compatibility, use repo_owner instead) |
| wiki | boolean |
Responses
Request samples
- Payload
{- "auth_password": "string",
- "auth_token": "string",
- "auth_username": "string",
- "aws_access_key_id": "string",
- "aws_secret_access_key": "string",
- "clone_addr": "string",
- "description": "string",
- "issues": true,
- "labels": true,
- "lfs": true,
- "lfs_endpoint": "string",
- "milestones": true,
- "mirror": true,
- "mirror_interval": "string",
- "private": true,
- "pull_requests": true,
- "releases": true,
- "repo_name": "string",
- "repo_owner": "string",
- "service": "git",
- "uid": 0,
- "wiki": true
}Response samples
- 201
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Search for repositories
Authorizations:
query Parameters
| q | string keyword |
| topic | boolean Limit search to repositories with keyword as topic |
| includeDesc | boolean include search of keyword within repository description |
| uid | integer <int64> search only for repos that the user with the given id owns or contributes to |
| priority_owner_id | integer <int64> repo owner to prioritize in the results |
| team_id | integer <int64> search only for repos that belong to the given team id |
| starredBy | integer <int64> search only for repos that the user with the given id has starred |
| private | boolean include private repositories this user has access to (defaults to true) |
| is_private | boolean show only pubic, private or all repositories (defaults to all) |
| template | boolean include template repositories this user has access to (defaults to true) |
| archived | boolean show only archived, non-archived or all repositories (defaults to all) |
| mode | string type of repository to search for. Supported values are "fork", "source", "mirror" and "collaborative" |
| exclusive | boolean if |
| sort | string sort repos by attribute. Supported values are "alpha", "created", "updated", "size", "git_size", "lfs_size", "stars", "forks" and "id". Default is "alpha" |
| order | string sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified. |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "data": [
- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
], - "ok": true
}Get a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Edit a repository's properties. Only fields that are set will be changed.
Authorizations:
path Parameters
| owner required | string owner of the repo to edit |
| repo required | string name of the repo to edit |
Request Body schema: application/json
Properties of a repo that you can edit
| allow_fast_forward_only_merge | boolean either |
| allow_manual_merge | boolean either |
| allow_merge_commits | boolean either |
| allow_rebase | boolean either |
| allow_rebase_explicit | boolean either |
| allow_rebase_update | boolean either |
| allow_squash_merge | boolean either |
| archived | boolean set to |
| autodetect_manual_merge | boolean either |
| default_allow_maintainer_edit | boolean set to |
| default_branch | string sets the default branch for this repository. |
| default_delete_branch_after_merge | boolean set to |
| default_merge_style | string set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only". |
| description | string a short description of the repository. |
| enable_prune | boolean enable prune - remove obsolete remote-tracking references when mirroring |
object (ExternalTracker) ExternalTracker represents settings for external tracker | |
object (ExternalWiki) ExternalWiki represents setting for external wiki | |
| has_actions | boolean either |
| has_code | boolean either |
| has_issues | boolean either |
| has_packages | boolean either |
| has_projects | boolean either |
| has_pull_requests | boolean either |
| has_releases | boolean either |
| has_wiki | boolean either |
| ignore_whitespace_conflicts | boolean either |
object (InternalTracker) InternalTracker represents settings for internal tracker | |
| mirror_interval | string set to a string like |
| name | string unique name of the repository |
| private | boolean either |
| projects_mode | string
|
| template | boolean either |
| website | string a URL with more information about the repository. |
Responses
Request samples
- Payload
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "autodetect_manual_merge": true,
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "enable_prune": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "ignore_whitespace_conflicts": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "mirror_interval": "string",
- "name": "string",
- "private": true,
- "projects_mode": "string",
- "template": true,
- "website": "string"
}Response samples
- 200
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Lists all artifacts for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
query Parameters
| name | string name of the artifact |
Responses
Response samples
- 200
{- "artifacts": [
- {
- "archive_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "expired": true,
- "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "size_in_bytes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "workflow_run": {
- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}
}
], - "total_count": 0
}Gets a specific artifact for a workflow run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| artifact_id required | string id of the artifact |
Responses
Response samples
- 200
{- "archive_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "expired": true,
- "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "size_in_bytes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "workflow_run": {
- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}
}Downloads a specific artifact for a workflow run redirects to blob url
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| artifact_id required | string id of the artifact |
Responses
Lists all jobs for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
query Parameters
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "jobs": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "head_branch": "string",
- "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "labels": [
- "string"
], - "name": "string",
- "run_attempt": 0,
- "run_id": 0,
- "run_url": "string",
- "runner_id": 0,
- "runner_name": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "steps": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "name": "string",
- "number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "url": "string"
}
], - "total_count": 0
}Gets a specific workflow job for a workflow run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| job_id required | string id of the job |
Responses
Response samples
- 200
{- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "head_branch": "string",
- "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "labels": [
- "string"
], - "name": "string",
- "run_attempt": 0,
- "run_id": 0,
- "run_url": "string",
- "runner_id": 0,
- "runner_name": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "steps": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "name": "string",
- "number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "url": "string"
}Get repo-level runners
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| disabled | boolean filter by disabled status (true or false) |
Responses
Response samples
- 200
{- "runners": [
- {
- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}
], - "total_count": 0
}Get a repo-level runner
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| runner_id required | string id of the runner |
Responses
Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Update a repo-level runner
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| runner_id required | string id of the runner |
Request Body schema: application/json
| disabled required | boolean |
Responses
Request samples
- Payload
{- "disabled": true
}Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Lists all runs for a repository run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
query Parameters
| event | string workflow event name |
| branch | string workflow branch |
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| actor | string triggered by user |
| head_sha | string triggering sha of the workflow run |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "total_count": 0,
- "workflow_runs": [
- {
- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}
]
}Gets a specific workflow run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| run required | integer id of the run |
Responses
Response samples
- 200
{- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}Lists all artifacts for a repository run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| run required | integer runid of the workflow run |
query Parameters
| name | string name of the artifact |
Responses
Response samples
- 200
{- "artifacts": [
- {
- "archive_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "expired": true,
- "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "size_in_bytes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "workflow_run": {
- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}
}
], - "total_count": 0
}Lists all jobs for a workflow run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| run required | integer runid of the workflow run |
query Parameters
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "jobs": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "head_branch": "string",
- "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "labels": [
- "string"
], - "name": "string",
- "run_attempt": 0,
- "run_id": 0,
- "run_url": "string",
- "runner_id": 0,
- "runner_name": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "steps": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "name": "string",
- "number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "url": "string"
}
], - "total_count": 0
}Reruns a specific workflow job in a run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| run required | integer id of the run |
| job_id required | integer id of the job |
Responses
Response samples
- 201
{- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "head_branch": "string",
- "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "labels": [
- "string"
], - "name": "string",
- "run_attempt": 0,
- "run_id": 0,
- "run_url": "string",
- "runner_id": 0,
- "runner_name": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "steps": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "name": "string",
- "number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "url": "string"
}Reruns an entire workflow run
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| run required | integer id of the run |
Responses
Response samples
- 201
{- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}List an repo's actions secrets
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "name": "string"
}
]Create or Update a secret value in a repository
Authorizations:
path Parameters
| owner required | string owner of the repository |
| repo required | string name of the repository |
| secretname required | string name of the secret |
Request Body schema: application/json
| data required | string Data of the secret to update |
| description | string Description of the secret to update |
Responses
Request samples
- Payload
{- "data": "string",
- "description": "string"
}List a repository's action tasks
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results, default maximum page size is 50 |
Responses
Response samples
- 200
{- "total_count": 0,
- "workflow_runs": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_sha": "string",
- "id": 0,
- "name": "string",
- "run_number": 0,
- "run_started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "workflow_id": "string"
}
]
}Get repo-level variables list
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}
]Get a repo-level variable
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| variablename required | string name of the variable |
Responses
Response samples
- 200
{- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}Update a repo-level variable
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| variablename required | string name of the variable |
Request Body schema: application/json
| description | string Description of the variable to update |
| name | string New name for the variable. If the field is empty, the variable name won't be updated. |
| value required | string Value of the variable to update |
Responses
Request samples
- Payload
{- "description": "string",
- "name": "string",
- "value": "string"
}Create a repo-level variable
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| variablename required | string name of the variable |
Request Body schema: application/json
| description | string Description of the variable to create |
| value required | string Value of the variable to create |
Responses
Request samples
- Payload
{- "description": "string",
- "value": "string"
}Delete a repo-level variable
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repository |
| variablename required | string name of the variable |
Responses
Response samples
- 200
{- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}List repository workflows
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "total_count": 0,
- "workflows": [
- {
- "badge_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": "string",
- "name": "string",
- "path": "string",
- "state": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]
}Get a workflow
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| workflow_id required | string id of the workflow |
Responses
Response samples
- 200
{- "badge_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": "string",
- "name": "string",
- "path": "string",
- "state": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}Create a workflow dispatch event
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| workflow_id required | string id of the workflow |
query Parameters
| return_run_details | boolean Whether the response should include the workflow run ID and URLs. |
Request Body schema: application/json
object | |
| ref required | string |
Responses
Request samples
- Payload
{- "inputs": {
- "property1": "string",
- "property2": "string"
}, - "ref": "refs/heads/main"
}Response samples
- 200
{- "html_url": "string",
- "run_url": "string",
- "workflow_run_id": 0
}List a repository's activity feeds
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| date | string <date> the date of the activities to be found |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "create_repo",
- "ref_name": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]Get an archive of a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| archive required | string the git reference for download with attached archive format (e.g. master.zip) |
query Parameters
| path | Array of strings subpath of the repository to download |
Responses
Return all users that have write access and can be assigned to issues
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Update avatar
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| image | string image must be base64 encoded |
Responses
Request samples
- Payload
{- "image": "string"
}List branch protections for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_admin_merge_override": true,
- "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_force_push": true,
- "enable_force_push_allowlist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "force_push_allowlist_deploy_keys": true,
- "force_push_allowlist_teams": [
- "string"
], - "force_push_allowlist_usernames": [
- "string"
], - "ignore_stale_approvals": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "priority": 0,
- "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Create a branch protections for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| approvals_whitelist_teams | Array of strings |
| approvals_whitelist_username | Array of strings |
| block_admin_merge_override | boolean |
| block_on_official_review_requests | boolean |
| block_on_outdated_branch | boolean |
| block_on_rejected_reviews | boolean |
| branch_name | string Deprecated: true |
| dismiss_stale_approvals | boolean |
| enable_approvals_whitelist | boolean |
| enable_force_push | boolean |
| enable_force_push_allowlist | boolean |
| enable_merge_whitelist | boolean |
| enable_push | boolean |
| enable_push_whitelist | boolean |
| enable_status_check | boolean |
| force_push_allowlist_deploy_keys | boolean |
| force_push_allowlist_teams | Array of strings |
| force_push_allowlist_usernames | Array of strings |
| ignore_stale_approvals | boolean |
| merge_whitelist_teams | Array of strings |
| merge_whitelist_usernames | Array of strings |
| priority | integer <int64> |
| protected_file_patterns | string |
| push_whitelist_deploy_keys | boolean |
| push_whitelist_teams | Array of strings |
| push_whitelist_usernames | Array of strings |
| require_signed_commits | boolean |
| required_approvals | integer <int64> |
| rule_name | string |
| status_check_contexts | Array of strings |
| unprotected_file_patterns | string |
Responses
Request samples
- Payload
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_admin_merge_override": true,
- "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_force_push": true,
- "enable_force_push_allowlist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "force_push_allowlist_deploy_keys": true,
- "force_push_allowlist_teams": [
- "string"
], - "force_push_allowlist_usernames": [
- "string"
], - "ignore_stale_approvals": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "priority": 0,
- "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string"
}Response samples
- 201
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_admin_merge_override": true,
- "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_force_push": true,
- "enable_force_push_allowlist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "force_push_allowlist_deploy_keys": true,
- "force_push_allowlist_teams": [
- "string"
], - "force_push_allowlist_usernames": [
- "string"
], - "ignore_stale_approvals": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "priority": 0,
- "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Update the priorities of branch protections for a repository.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| ids | Array of integers <int64> [ items <int64 > ] |
Responses
Request samples
- Payload
{- "ids": [
- 0
]
}Get a specific branch protection for the repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| name required | string name of protected branch |
Responses
Response samples
- 200
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_admin_merge_override": true,
- "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_force_push": true,
- "enable_force_push_allowlist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "force_push_allowlist_deploy_keys": true,
- "force_push_allowlist_teams": [
- "string"
], - "force_push_allowlist_usernames": [
- "string"
], - "ignore_stale_approvals": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "priority": 0,
- "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Edit a branch protections for a repository. Only fields that are set will be changed
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| name required | string name of protected branch |
Request Body schema: application/json
| approvals_whitelist_teams | Array of strings |
| approvals_whitelist_username | Array of strings |
| block_admin_merge_override | boolean |
| block_on_official_review_requests | boolean |
| block_on_outdated_branch | boolean |
| block_on_rejected_reviews | boolean |
| dismiss_stale_approvals | boolean |
| enable_approvals_whitelist | boolean |
| enable_force_push | boolean |
| enable_force_push_allowlist | boolean |
| enable_merge_whitelist | boolean |
| enable_push | boolean |
| enable_push_whitelist | boolean |
| enable_status_check | boolean |
| force_push_allowlist_deploy_keys | boolean |
| force_push_allowlist_teams | Array of strings |
| force_push_allowlist_usernames | Array of strings |
| ignore_stale_approvals | boolean |
| merge_whitelist_teams | Array of strings |
| merge_whitelist_usernames | Array of strings |
| priority | integer <int64> |
| protected_file_patterns | string |
| push_whitelist_deploy_keys | boolean |
| push_whitelist_teams | Array of strings |
| push_whitelist_usernames | Array of strings |
| require_signed_commits | boolean |
| required_approvals | integer <int64> |
| status_check_contexts | Array of strings |
| unprotected_file_patterns | string |
Responses
Request samples
- Payload
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_admin_merge_override": true,
- "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_force_push": true,
- "enable_force_push_allowlist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "force_push_allowlist_deploy_keys": true,
- "force_push_allowlist_teams": [
- "string"
], - "force_push_allowlist_usernames": [
- "string"
], - "ignore_stale_approvals": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "priority": 0,
- "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string"
}Response samples
- 200
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_admin_merge_override": true,
- "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_force_push": true,
- "enable_force_push_allowlist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "force_push_allowlist_deploy_keys": true,
- "force_push_allowlist_teams": [
- "string"
], - "force_push_allowlist_usernames": [
- "string"
], - "ignore_stale_approvals": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "priority": 0,
- "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}List a repository's branches
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "commit": {
- "added": [
- "string"
], - "author": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "committer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "id": "string",
- "message": "string",
- "modified": [
- "string"
], - "removed": [
- "string"
], - "timestamp": "2019-08-24T14:15:22Z",
- "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "effective_branch_protection_name": "string",
- "enable_status_check": true,
- "name": "string",
- "protected": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "user_can_merge": true,
- "user_can_push": true
}
]Create a branch
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| new_branch_name required | string unique Name of the branch to create |
| old_branch_name | string unique Deprecated: true Name of the old branch to create from |
| old_ref_name | string unique Name of the old branch/tag/commit to create from |
Responses
Request samples
- Payload
{- "new_branch_name": "string",
- "old_branch_name": "string",
- "old_ref_name": "string"
}Response samples
- 201
{- "commit": {
- "added": [
- "string"
], - "author": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "committer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "id": "string",
- "message": "string",
- "modified": [
- "string"
], - "removed": [
- "string"
], - "timestamp": "2019-08-24T14:15:22Z",
- "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "effective_branch_protection_name": "string",
- "enable_status_check": true,
- "name": "string",
- "protected": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "user_can_merge": true,
- "user_can_push": true
}Retrieve a specific branch from a repository, including its effective branch protection
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| branch required | string branch to get |
Responses
Response samples
- 200
{- "commit": {
- "added": [
- "string"
], - "author": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "committer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "id": "string",
- "message": "string",
- "modified": [
- "string"
], - "removed": [
- "string"
], - "timestamp": "2019-08-24T14:15:22Z",
- "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "effective_branch_protection_name": "string",
- "enable_status_check": true,
- "name": "string",
- "protected": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "user_can_merge": true,
- "user_can_push": true
}Update a branch reference to a new commit
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| branch required | string name of the branch |
Request Body schema: application/json
| force | boolean Force update even if the change is not a fast-forward |
| new_commit_id required | string New commit SHA (or any ref) the branch should point to |
| old_commit_id | string Expected old commit SHA of the branch; if provided it must match the current tip |
Responses
Request samples
- Payload
{- "force": true,
- "new_commit_id": "string",
- "old_commit_id": "string"
}Rename a branch
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| branch required | string name of the branch |
Request Body schema: application/json
| name required | string unique New branch name |
Responses
Request samples
- Payload
{- "name": "string"
}List a repository's collaborators
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Check if a user is a collaborator of a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| collaborator required | string username of the user to check for being a collaborator |
Responses
Add or Update a collaborator to a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| collaborator required | string username of the user to add or update as a collaborator |
Request Body schema: application/json
| permission | string Enum: "read" "write" "admin" |
Responses
Request samples
- Payload
{- "permission": "read"
}Get repository permissions for a user
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| collaborator required | string username of the collaborator whose permissions are to be obtained |
Responses
Response samples
- 200
{- "permission": "string",
- "role_name": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Get a list of all commits from a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| sha | string SHA or branch to start listing commits from (usually 'master') |
| path | string filepath of a file/dir |
| since | string <date-time> Only commits after this date will be returned (ISO 8601 format) |
| until | string <date-time> Only commits before this date will be returned (ISO 8601 format) |
| stat | boolean include diff stats for every commit (disable for speedup, default 'true') |
| verification | boolean include verification for every commit (disable for speedup, default 'true') |
| files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results (ignored if used with 'path') |
| not | string commits that match the given specifier will not be listed. |
Responses
Response samples
- 200
- 409
[- {
- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}
]Get a commit's combined status, by branch/tag/commit reference
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| ref required | string name of branch/tag/commit |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "commit_url": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "sha": "string",
- "state": "pending",
- "statuses": [
- {
- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "pending",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
], - "total_count": 0,
- "url": "string"
}Get a commit's statuses, by branch/tag/commit reference
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| ref required | string name of branch/tag/commit |
query Parameters
| sort | string Enum: "oldest" "recentupdate" "leastupdate" "leastindex" "highestindex" type of sort |
| state | string Enum: "pending" "success" "error" "failure" "warning" type of state |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "pending",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]Get the merged pull request of the commit
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string SHA of the commit to get |
Responses
Response samples
- 200
{- "additions": 0,
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "changed_files": 0,
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "deletions": 0,
- "diff_url": "string",
- "draft": true,
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "requested_reviewers_teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "review_comments": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Get commit comparison information
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| basehead required | string compare two branches or commits |
Responses
Response samples
- 200
{- "commits": [
- {
- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}
], - "total_commits": 0
}Gets the metadata of all the entries of the root dir.
This API follows GitHub's design, and it is not easy to use. Recommend users to use our "contents-ext" API instead.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| ref | string The name of the commit/branch/tag. Default to the repository’s default branch. |
Responses
Response samples
- 200
[- {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
]Modify multiple files in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
| branch | string branch (optional) is the base branch for the changes. If not supplied, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
required | Array of objects (ChangeFileOperation) list of file operations |
| force_push | boolean force_push (optional) will do a force-push if the new branch already exists |
| message | string message (optional) is the commit message of the changes. If not supplied, a default message will be used |
| new_branch | string new_branch (optional) will make a new branch from base branch for the changes. If not supplied, the changes will be committed to the base branch |
| signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "files": [
- {
- "content": "string",
- "from_path": "string",
- "operation": "create",
- "path": "string",
- "sha": "string"
}
], - "force_push": true,
- "message": "string",
- "new_branch": "string",
- "signoff": true
}Response samples
- 201
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "files": [
- {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
], - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}The extended "contents" API, to get file metadata and/or content, or list a directory.
It guarantees that only one of the response fields is set if the request succeeds. Users can pass "includes=file_content" or "includes=lfs_metadata" to retrieve more fields. "includes=file_content" only works for single file, if you need to retrieve file contents in batch, use "file-contents" API after listing the directory.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string path of the dir, file, symlink or submodule in the repo. Swagger requires path parameter to be "required", you can leave it empty or pass a single dot (".") to get the root directory. |
query Parameters
| ref | string the name of the commit/branch/tag, default to the repository’s default branch. |
| includes | string By default this API's response only contains file's metadata. Use comma-separated "includes" options to retrieve more fields. Option "file_content" will try to retrieve the file content, "lfs_metadata" will try to retrieve LFS metadata, "commit_metadata" will try to retrieve commit metadata, and "commit_message" will try to retrieve commit message. |
Responses
Response samples
- 200
{- "dir_contents": [
- {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
], - "file_contents": {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
}Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir.
This API follows GitHub's design, and it is not easy to use. Recommend users to use the "contents-ext" API instead.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string path of the dir, file, symlink or submodule in the repo |
query Parameters
| ref | string The name of the commit/branch/tag. Default to the repository’s default branch. |
Responses
Response samples
- 200
{- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}Update a file in a repository if SHA is set, or create the file if SHA is not set
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string path of the file to update |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
| branch | string branch (optional) is the base branch for the changes. If not supplied, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
| content required | string content must be base64 encoded |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
| force_push | boolean force_push (optional) will do a force-push if the new branch already exists |
| from_path | string from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL |
| message | string message (optional) is the commit message of the changes. If not supplied, a default message will be used |
| new_branch | string new_branch (optional) will make a new branch from base branch for the changes. If not supplied, the changes will be committed to the base branch |
| sha | string the blob ID (SHA) for the file that already exists to update, or leave it empty to create a new file |
| signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "content": "string",
- "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "force_push": true,
- "from_path": "string",
- "message": "string",
- "new_branch": "string",
- "sha": "string",
- "signoff": true
}Response samples
- 200
- 201
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}, - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}Create a file in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string path of the file to create |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
| branch | string branch (optional) is the base branch for the changes. If not supplied, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
| content required | string content must be base64 encoded |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
| force_push | boolean force_push (optional) will do a force-push if the new branch already exists |
| message | string message (optional) is the commit message of the changes. If not supplied, a default message will be used |
| new_branch | string new_branch (optional) will make a new branch from base branch for the changes. If not supplied, the changes will be committed to the base branch |
| signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "content": "string",
- "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "force_push": true,
- "message": "string",
- "new_branch": "string",
- "signoff": true
}Response samples
- 201
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}, - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}Delete a file in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string path of the file to delete |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
| branch | string branch (optional) is the base branch for the changes. If not supplied, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
| force_push | boolean force_push (optional) will do a force-push if the new branch already exists |
| message | string message (optional) is the commit message of the changes. If not supplied, a default message will be used |
| new_branch | string new_branch (optional) will make a new branch from base branch for the changes. If not supplied, the changes will be committed to the base branch |
| sha required | string the blob ID (SHA) for the file to delete |
| signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "force_push": true,
- "message": "string",
- "new_branch": "string",
- "sha": "string",
- "signoff": true
}Response samples
- 200
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": null,
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}Apply diff patch to repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
| branch | string branch (optional) is the base branch for the changes. If not supplied, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
| content required | string |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
| force_push | boolean force_push (optional) will do a force-push if the new branch already exists |
| message | string message (optional) is the commit message of the changes. If not supplied, a default message will be used |
| new_branch | string new_branch (optional) will make a new branch from base branch for the changes. If not supplied, the changes will be committed to the base branch |
| signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "content": "string",
- "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "force_push": true,
- "message": "string",
- "new_branch": "string",
- "signoff": true
}Response samples
- 200
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}, - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}Get the EditorConfig definitions of a file in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string filepath of file to get |
query Parameters
| ref | string The name of the commit/branch/tag. Default to the repository’s default branch. |
Responses
Get the metadata and contents of requested files
See the POST method. This GET method supports using JSON encoded request body in query parameter.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| ref | string The name of the commit/branch/tag. Default to the repository’s default branch. |
| body required | string The JSON encoded body (see the POST request): {"files": ["filename1", "filename2"]} |
Responses
Response samples
- 200
[- {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
]Get the metadata and contents of requested files
Uses automatic pagination based on default page size and max response size and returns the maximum allowed number of files. Files which could not be retrieved are null. Files which are too large are being returned with encoding == null, content == null and size > 0, they can be requested separately by using the download_url.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| ref | string The name of the commit/branch/tag. Default to the repository’s default branch. |
Request Body schema: application/jsonrequired
| files | Array of strings Files is the list of file paths to retrieve |
Responses
Request samples
- Payload
{- "files": [
- "string"
]
}Response samples
- 200
[- {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_author_date": "2019-08-24T14:15:22Z",
- "last_commit_message": "string",
- "last_commit_sha": "string",
- "last_committer_date": "2019-08-24T14:15:22Z",
- "lfs_oid": "string",
- "lfs_size": 0,
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
]List a repository's forks
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]Fork a repository
Authorizations:
path Parameters
| owner required | string owner of the repo to fork |
| repo required | string name of the repo to fork |
Request Body schema: application/json
| name | string name of the forked repository |
| organization | string organization name, if forking into an organization |
Responses
Request samples
- Payload
{- "name": "string",
- "organization": "string"
}Response samples
- 202
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Gets the blob of a repository.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string sha of the commit |
Responses
Response samples
- 200
{- "content": "string",
- "encoding": "string",
- "lfs_oid": "string",
- "lfs_size": 0,
- "sha": "string",
- "size": 0,
- "url": "string"
}Get a single commit from a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string a git ref or commit sha |
query Parameters
| stat | boolean include diff stats for every commit (disable for speedup, default 'true') |
| verification | boolean include verification for every commit (disable for speedup, default 'true') |
| files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
Responses
Response samples
- 200
{- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}Get a commit's diff or patch
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string SHA of the commit to get |
| diffType required | string Enum: "diff" "patch" whether the output is diff or patch |
Responses
Response samples
- 200
"string"Get a note corresponding to a single commit from a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string a git ref or commit sha |
query Parameters
| verification | boolean include verification for every commit (disable for speedup, default 'true') |
| files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
Responses
Response samples
- 200
{- "commit": {
- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}, - "message": "string"
}Get specified ref or filtered repository's refs
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "object": {
- "sha": "string",
- "type": "string",
- "url": "string"
}, - "ref": "string",
- "url": "string"
}
]Get specified ref or filtered repository's refs
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| ref required | string part or full name of the ref |
Responses
Response samples
- 200
[- {
- "object": {
- "sha": "string",
- "type": "string",
- "url": "string"
}, - "ref": "string",
- "url": "string"
}
]Gets the tag object of an annotated tag (not lightweight tags)
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. |
Responses
Response samples
- 200
{- "message": "string",
- "object": {
- "sha": "string",
- "type": "string",
- "url": "string"
}, - "sha": "string",
- "tag": "string",
- "tagger": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}Gets the tree of a repository.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string sha of the commit |
query Parameters
| recursive | boolean show all directories and files |
| page | integer page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page |
| per_page | integer number of items per page |
Responses
Response samples
- 200
{- "page": 0,
- "sha": "string",
- "total_count": 0,
- "tree": [
- {
- "mode": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "type": "string",
- "url": "string"
}
], - "truncated": true,
- "url": "string"
}List the hooks in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Create a hook
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| active | boolean Default: false |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
| events | Array of strings List of events that will trigger this webhook |
| name | string Optional human-readable name for the webhook |
| type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string",
- "type": "dingtalk"
}Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}List the Git hooks in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "content": "string",
- "is_active": true,
- "name": "string"
}
]Get a Git hook
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | string id of the hook to get |
Responses
Response samples
- 200
{- "content": "string",
- "is_active": true,
- "name": "string"
}Edit a Git hook in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | string id of the hook to get |
Request Body schema: application/json
| content | string Content is the new script content for the hook |
Responses
Request samples
- Payload
{- "content": "string"
}Response samples
- 200
{- "content": "string",
- "is_active": true,
- "name": "string"
}Get a hook
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Edit a hook in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> index of the hook |
Request Body schema: application/json
| active | boolean Whether the webhook is active and will be triggered |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
object Configuration settings for the webhook | |
| events | Array of strings List of events that trigger this webhook |
| name | string Optional human-readable name |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string"
}Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Test a push webhook
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the hook to test |
query Parameters
| ref | string The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. |
Responses
Returns the issue config for a repo
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "blank_issues_enabled": true,
- "contact_links": [
- {
- "about": "string",
- "name": "string",
- "url": "string"
}
]
}Returns the validation information for a issue config
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "message": "string",
- "valid": true
}Get available issue templates for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "about": "string",
- "assignees": [
- "string"
], - "body": [
- {
- "attributes": {
- "property1": null,
- "property2": null
}, - "id": "string",
- "type": "markdown",
- "validations": {
- "property1": null,
- "property2": null
}, - "visible": [
- "form"
]
}
], - "content": "string",
- "file_name": "string",
- "labels": [
- "string"
], - "name": "string",
- "ref": "string",
- "title": "string"
}
]List a repo's pinned issues
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]List a repository's keys
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| key_id | integer the key_id to search for |
| fingerprint | string fingerprint of the key |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_id": 0,
- "read_only": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "title": "string",
- "url": "string"
}
]Add a key to a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| key required | string unique An armored SSH key to add |
| read_only | boolean Describe if the key has only read access or read/write |
| title required | string unique Title of the key to add |
Responses
Request samples
- Payload
{- "key": "string",
- "read_only": true,
- "title": "string"
}Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_id": 0,
- "read_only": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "title": "string",
- "url": "string"
}Get a repository's key by id
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the key to get |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_id": 0,
- "read_only": true,
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "title": "string",
- "url": "string"
}Get languages and number of bytes of code written
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "property1": 0,
- "property2": 0
}Get a file or it's LFS object from a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string path of the file to get, it should be "{ref}/{filepath}". If there is no ref could be inferred, it will be treated as the default branch |
query Parameters
| ref | string The name of the commit/branch/tag. Default to the repository’s default branch |
Responses
Merge a branch from upstream
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| branch | string |
| ff_only | boolean |
Responses
Request samples
- Payload
{- "branch": "string",
- "ff_only": true
}Response samples
- 200
{- "merge_type": "string"
}Returns if new Issue Pins are allowed
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "issues": true,
- "pull_requests": true
}List a repo's pull requests
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string Name of the repo |
query Parameters
| base_branch | string Filter by target base branch of the pull request |
| state | string Default: "open" Enum: "open" "closed" "all" State of pull request |
| sort | string Enum: "oldest" "recentupdate" "recentclose" "leastupdate" "mostcomment" "leastcomment" "priority" Type of sort |
| milestone | integer <int64> ID of the milestone |
| labels | Array of integers <int64> [ items <int64 > ] Label IDs |
| poster | string Filter by pull request author |
| page | integer >= 1 Default: 1 Page number of results to return (1-based) |
| limit | integer >= 0 Page size of results |
Responses
Response samples
- 200
[- {
- "additions": 0,
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "changed_files": 0,
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "deletions": 0,
- "diff_url": "string",
- "draft": true,
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "requested_reviewers_teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "review_comments": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Create a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| allow_maintainer_edit | boolean Whether maintainers can edit the pull request |
| assignee | string The primary assignee username |
| assignees | Array of strings The list of assignee usernames |
| base | string The base branch for the pull request |
| body | string The description body of the pull request |
| due_date | string <date-time> |
| head | string The head branch for the pull request, it could be a branch name on the base repository or
a form like |
| labels | Array of integers <int64> [ items <int64 > ] The list of label IDs to assign to the pull request |
| milestone | integer <int64> The milestone ID to assign to the pull request |
| reviewers | Array of strings The list of reviewer usernames |
| team_reviewers | Array of strings The list of team reviewer names |
| title | string The title of the pull request |
Responses
Request samples
- Payload
{- "allow_maintainer_edit": true,
- "assignee": "string",
- "assignees": [
- "string"
], - "base": "string",
- "body": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "head": "string",
- "labels": [
- 0
], - "milestone": 0,
- "reviewers": [
- "string"
], - "team_reviewers": [
- "string"
], - "title": "string"
}Response samples
- 201
{- "additions": 0,
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "changed_files": 0,
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "deletions": 0,
- "diff_url": "string",
- "draft": true,
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "requested_reviewers_teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "review_comments": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}List a repo's pinned pull requests
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "additions": 0,
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "changed_files": 0,
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "deletions": 0,
- "diff_url": "string",
- "draft": true,
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "requested_reviewers_teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "review_comments": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Get a pull request by base and head
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| base required | string base of the pull request to get |
| head required | string head of the pull request to get |
Responses
Response samples
- 200
{- "additions": 0,
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "changed_files": 0,
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "deletions": 0,
- "diff_url": "string",
- "draft": true,
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "requested_reviewers_teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "review_comments": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Get a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to get |
Responses
Response samples
- 200
{- "additions": 0,
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "changed_files": 0,
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "deletions": 0,
- "diff_url": "string",
- "draft": true,
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "requested_reviewers_teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "review_comments": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to edit |
Request Body schema: application/json
| allow_maintainer_edit | boolean Whether to allow maintainer edits |
| assignee | string The new primary assignee username |
| assignees | Array of strings The new list of assignee usernames |
| base | string The new base branch for the pull request |
| body | string The new description body for the pull request |
| content_version | integer <int64> The current version of the pull request content to detect conflicts during editing |
| due_date | string <date-time> |
| labels | Array of integers <int64> [ items <int64 > ] The new list of label IDs for the pull request |
| milestone | integer <int64> The new milestone ID for the pull request |
| state | string The new state for the pull request |
| title | string The new title for the pull request |
| unset_due_date | boolean Whether to remove the current deadline |
Responses
Request samples
- Payload
{- "allow_maintainer_edit": true,
- "assignee": "string",
- "assignees": [
- "string"
], - "base": "string",
- "body": "string",
- "content_version": 0,
- "due_date": "2019-08-24T14:15:22Z",
- "labels": [
- 0
], - "milestone": 0,
- "state": "string",
- "title": "string",
- "unset_due_date": true
}Response samples
- 201
{- "additions": 0,
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "changed_files": 0,
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "deletions": 0,
- "diff_url": "string",
- "draft": true,
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "requested_reviewers_teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "review_comments": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Get a pull request diff or patch
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to get |
| diffType required | string Enum: "diff" "patch" whether the output is diff or patch |
query Parameters
| binary | boolean whether to include binary file changes. if true, the diff is applicable with |
Responses
Response samples
- 200
"string"Get commits for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to get |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
| verification | boolean include verification for every commit (disable for speedup, default 'true') |
| files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
Responses
Response samples
- 200
[- {
- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}
]Get changed files for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to get |
query Parameters
| skip-to | string skip to given file |
| whitespace | string Enum: "ignore-all" "ignore-change" "ignore-eol" "show-all" whitespace behavior |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "additions": 0,
- "changes": 0,
- "contents_url": "string",
- "deletions": 0,
- "filename": "string",
- "html_url": "string",
- "previous_filename": "string",
- "raw_url": "string",
- "status": "string"
}
]Merge a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to merge |
Request Body schema: application/json
| Do required | string Enum: "merge" "rebase" "rebase-merge" "squash" "fast-forward-only" "manually-merged" |
| MergeCommitID | string |
| MergeMessageField | string |
| MergeTitleField | string |
| delete_branch_after_merge | boolean |
| force_merge | boolean |
| head_commit_id | string |
| merge_when_checks_succeed | boolean |
Responses
Request samples
- Payload
{- "Do": "merge",
- "MergeCommitID": "string",
- "MergeMessageField": "string",
- "MergeTitleField": "string",
- "delete_branch_after_merge": true,
- "force_merge": true,
- "head_commit_id": "string",
- "merge_when_checks_succeed": true
}Cancel the scheduled auto merge for the given pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to merge |
Responses
create review requests for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
Request Body schema: application/jsonrequired
| reviewers | Array of strings |
| team_reviewers | Array of strings |
Responses
Request samples
- Payload
{- "reviewers": [
- "string"
], - "team_reviewers": [
- "string"
]
}Response samples
- 201
[- {
- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "APPROVED",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]cancel review requests for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
Request Body schema: application/jsonrequired
| reviewers | Array of strings |
| team_reviewers | Array of strings |
Responses
Request samples
- Payload
{- "reviewers": [
- "string"
], - "team_reviewers": [
- "string"
]
}List all reviews for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "APPROVED",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Create a review to an pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
Request Body schema: application/jsonrequired
| body | string |
Array of objects (CreatePullReviewComment) | |
| commit_id | string |
| event | string Enum: "APPROVED" "PENDING" "COMMENT" "REQUEST_CHANGES" "REQUEST_REVIEW" |
Responses
Request samples
- Payload
{- "body": "string",
- "comments": [
- {
- "body": "string",
- "new_position": 0,
- "old_position": 0,
- "path": "string"
}
], - "commit_id": "string",
- "event": "APPROVED"
}Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "APPROVED",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Get a specific review for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
| id required | integer <int64> id of the review |
Responses
Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "APPROVED",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Submit a pending review to an pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
| id required | integer <int64> id of the review |
Request Body schema: application/jsonrequired
| body | string |
| event | string Enum: "APPROVED" "PENDING" "COMMENT" "REQUEST_CHANGES" "REQUEST_REVIEW" |
Responses
Request samples
- Payload
{- "body": "string",
- "event": "APPROVED"
}Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "APPROVED",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Delete a specific review from a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
| id required | integer <int64> id of the review |
Responses
Get a specific review for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
| id required | integer <int64> id of the review |
Responses
Response samples
- 200
[- {
- "body": "string",
- "commit_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "diff_hunk": "string",
- "html_url": "string",
- "id": 0,
- "original_commit_id": "string",
- "original_position": 0,
- "path": "string",
- "position": 0,
- "pull_request_review_id": 0,
- "pull_request_url": "string",
- "resolver": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Dismiss a review for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
| id required | integer <int64> id of the review |
Request Body schema: application/jsonrequired
| message | string |
| priors | boolean |
Responses
Request samples
- Payload
{- "message": "string",
- "priors": true
}Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "APPROVED",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Cancel to dismiss a review for a pull request
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request |
| id required | integer <int64> id of the review |
Responses
Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "APPROVED",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Merge PR's baseBranch into headBranch
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| index required | integer <int64> index of the pull request to get |
query Parameters
| style | string Enum: "merge" "rebase" how to update pull request |
Responses
Get all push mirrors of the repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "interval": "string",
- "last_error": "string",
- "last_update": "2019-08-24T14:15:22Z",
- "remote_address": "string",
- "remote_name": "string",
- "repo_name": "string",
- "sync_on_commit": true
}
]add a push mirror to the repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| interval | string The sync interval for automatic updates |
| remote_address | string The remote repository URL to push to |
| remote_password | string The password for authentication with the remote repository |
| remote_username | string The username for authentication with the remote repository |
| sync_on_commit | boolean Whether to sync on every commit |
Responses
Request samples
- Payload
{- "interval": "string",
- "remote_address": "string",
- "remote_password": "string",
- "remote_username": "string",
- "sync_on_commit": true
}Response samples
- 200
{- "created": "2019-08-24T14:15:22Z",
- "interval": "string",
- "last_error": "string",
- "last_update": "2019-08-24T14:15:22Z",
- "remote_address": "string",
- "remote_name": "string",
- "repo_name": "string",
- "sync_on_commit": true
}Get push mirror of the repository by remoteName
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| name required | string remote name of push mirror |
Responses
Response samples
- 200
{- "created": "2019-08-24T14:15:22Z",
- "interval": "string",
- "last_error": "string",
- "last_update": "2019-08-24T14:15:22Z",
- "remote_address": "string",
- "remote_name": "string",
- "repo_name": "string",
- "sync_on_commit": true
}Get a file from a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| filepath required | string path of the file to get, it should be "{ref}/{filepath}". If there is no ref could be inferred, it will be treated as the default branch |
query Parameters
| ref | string The name of the commit/branch/tag. Default to the repository’s default branch |
Responses
List a repo's releases
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| draft | boolean filter (exclude / include) drafts, if you don't have repo write access none will show |
| pre-release | boolean filter (exclude / include) pre-releases |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}
]Create a release
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| body | string The release notes or description |
| draft | boolean Whether to create the release as a draft |
| name | string The display title of the release |
| prerelease | boolean Whether to mark the release as a prerelease |
| tag_message | string The message for the git tag |
| tag_name required | string |
| target_commitish | string The target commitish for the release |
Responses
Request samples
- Payload
{- "body": "string",
- "draft": true,
- "name": "string",
- "prerelease": true,
- "tag_message": "string",
- "tag_name": "string",
- "target_commitish": "string"
}Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}Get a release by tag name
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| tag required | string tag name of the release to get |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}Get a release
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the release to get |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}Update a release
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the release to edit |
Request Body schema: application/json
| body | string The new release notes or description |
| draft | boolean Whether to change the draft status |
| name | string The new display title of the release |
| prerelease | boolean Whether to change the prerelease status |
| tag_name | string The new name of the git tag |
| target_commitish | string The new target commitish for the release |
Responses
Request samples
- Payload
{- "body": "string",
- "draft": true,
- "name": "string",
- "prerelease": true,
- "tag_name": "string",
- "target_commitish": "string"
}Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}List release's attachments
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the release |
Responses
Response samples
- 200
[- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
]Create a release attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the release |
query Parameters
| name | string name of the attachment |
Request Body schema: multipart/form-data
| attachment | string <binary> attachment to upload |
Responses
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Get a release attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the release |
| attachment_id required | integer <int64> id of the attachment to get |
Responses
Response samples
- 200
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Delete a release attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the release |
| attachment_id required | integer <int64> id of the attachment to delete |
Responses
Edit a release attachment
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer <int64> id of the release |
| attachment_id required | integer <int64> id of the attachment to edit |
Request Body schema: application/json
| name | string Name is the new filename for the attachment |
Responses
Request samples
- Payload
{- "name": "string"
}Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}Return all users that can be requested to review in this repo
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]List a repo's stargazers
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Get a commit's statuses
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string sha of the commit |
query Parameters
| sort | string Enum: "oldest" "recentupdate" "leastupdate" "leastindex" "highestindex" type of sort |
| state | string Enum: "pending" "success" "error" "failure" "warning" type of state |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "pending",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]Create a commit status
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| sha required | string sha of the commit |
Request Body schema: application/json
| context | string Context is the unique context identifier for the status |
| description | string Description provides a brief description of the status |
| state | string Enum: "pending" "success" "error" "failure" "warning" "skipped" State represents the status state to set (pending, success, error, failure) pending CommitStatusPending CommitStatusPending is for when the CommitStatus is Pending success CommitStatusSuccess CommitStatusSuccess is for when the CommitStatus is Success error CommitStatusError CommitStatusError is for when the CommitStatus is Error failure CommitStatusFailure CommitStatusFailure is for when the CommitStatus is Failure warning CommitStatusWarning CommitStatusWarning is for when the CommitStatus is Warning skipped CommitStatusSkipped CommitStatusSkipped is for when CommitStatus is Skipped |
| target_url | string TargetURL is the URL to link to for more details |
Responses
Request samples
- Payload
{- "context": "string",
- "description": "string",
- "state": "pending",
- "target_url": "string"
}Response samples
- 201
{- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "pending",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}List a repo's watchers
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Check if the current user is watching a repo
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "ignored": true,
- "reason": null,
- "repository_url": "string",
- "subscribed": true,
- "url": "string"
}Watch a repo
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "ignored": true,
- "reason": null,
- "repository_url": "string",
- "subscribed": true,
- "url": "string"
}List tag protections for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "name_pattern": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "whitelist_teams": [
- "string"
], - "whitelist_usernames": [
- "string"
]
}
]Create a tag protections for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| name_pattern | string The pattern to match tag names for protection |
| whitelist_teams | Array of strings List of team names allowed to create/delete protected tags |
| whitelist_usernames | Array of strings List of usernames allowed to create/delete protected tags |
Responses
Request samples
- Payload
{- "name_pattern": "string",
- "whitelist_teams": [
- "string"
], - "whitelist_usernames": [
- "string"
]
}Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "name_pattern": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "whitelist_teams": [
- "string"
], - "whitelist_usernames": [
- "string"
]
}Get a specific tag protection for the repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer id of the tag protect to get |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "name_pattern": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "whitelist_teams": [
- "string"
], - "whitelist_usernames": [
- "string"
]
}Edit a tag protections for a repository. Only fields that are set will be changed
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| id required | integer id of protected tag |
Request Body schema: application/json
| name_pattern | string The pattern to match tag names for protection |
| whitelist_teams | Array of strings List of team names allowed to create/delete protected tags |
| whitelist_usernames | Array of strings List of usernames allowed to create/delete protected tags |
Responses
Request samples
- Payload
{- "name_pattern": "string",
- "whitelist_teams": [
- "string"
], - "whitelist_usernames": [
- "string"
]
}Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "name_pattern": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "whitelist_teams": [
- "string"
], - "whitelist_usernames": [
- "string"
]
}List a repository's tags
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results, default maximum page size is 50 |
Responses
Response samples
- 200
[- {
- "commit": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "id": "string",
- "message": "string",
- "name": "string",
- "tarball_url": "string",
- "zipball_url": "string"
}
]Create a new git tag in a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| message | string The message to associate with the tag |
| tag_name required | string |
| target | string The target commit SHA or branch name for the tag |
Responses
Request samples
- Payload
{- "message": "string",
- "tag_name": "string",
- "target": "string"
}Response samples
- 200
{- "commit": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "id": "string",
- "message": "string",
- "name": "string",
- "tarball_url": "string",
- "zipball_url": "string"
}Get the tag of a repository by tag name
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| tag required | string name of tag |
Responses
Response samples
- 200
{- "commit": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "id": "string",
- "message": "string",
- "name": "string",
- "tarball_url": "string",
- "zipball_url": "string"
}List a repository's teams
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]Check if a team is assigned to a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| team required | string team name |
Responses
Response samples
- 200
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}List a repo's tracked times
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| user | string optional filter by user (available for issue managers) |
| since | string <date-time> Only show times updated after the given time. This is a timestamp in RFC 3339 format |
| before | string <date-time> Only show times updated before the given time. This is a timestamp in RFC 3339 format |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]List a user's tracked times in a repo Deprecated
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| user required | string username of the user whose tracked times are to be listed |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]Get list of topics that a repository has
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "topics": [
- "string"
]
}Replace list of topics for a repository
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| topics | Array of strings list of topic names |
Responses
Request samples
- Payload
{- "topics": [
- "string"
]
}Transfer a repo ownership
Authorizations:
path Parameters
| owner required | string owner of the repo to transfer |
| repo required | string name of the repo to transfer |
Request Body schema: application/jsonrequired
Transfer Options
| new_owner required | string |
| team_ids | Array of integers <int64> [ items <int64 > ] ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. |
Responses
Request samples
- Payload
{- "new_owner": "string",
- "team_ids": [
- 0
]
}Response samples
- 202
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Accept a repo transfer
Authorizations:
path Parameters
| owner required | string owner of the repo to transfer |
| repo required | string name of the repo to transfer |
Responses
Response samples
- 202
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Reject a repo transfer
Authorizations:
path Parameters
| owner required | string owner of the repo to transfer |
| repo required | string name of the repo to transfer |
Responses
Response samples
- 200
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Create a wiki page
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
Request Body schema: application/json
| content_base64 | string content must be base64 encoded |
| message | string optional commit message summarizing the change |
| title | string page title. leave empty to keep unchanged |
Responses
Request samples
- Payload
{- "content_base64": "string",
- "message": "string",
- "title": "string"
}Response samples
- 201
{- "commit_count": 0,
- "content_base64": "string",
- "footer": "string",
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sidebar": "string",
- "sub_url": "string",
- "title": "string"
}Get a wiki page
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| pageName required | string name of the page |
Responses
Response samples
- 200
{- "commit_count": 0,
- "content_base64": "string",
- "footer": "string",
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sidebar": "string",
- "sub_url": "string",
- "title": "string"
}Edit a wiki page
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| pageName required | string name of the page |
Request Body schema: application/json
| content_base64 | string content must be base64 encoded |
| message | string optional commit message summarizing the change |
| title | string page title. leave empty to keep unchanged |
Responses
Request samples
- Payload
{- "content_base64": "string",
- "message": "string",
- "title": "string"
}Response samples
- 200
{- "commit_count": 0,
- "content_base64": "string",
- "footer": "string",
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sidebar": "string",
- "sub_url": "string",
- "title": "string"
}Get all wiki pages
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sub_url": "string",
- "title": "string"
}
]Get revisions of a wiki page
Authorizations:
path Parameters
| owner required | string owner of the repo |
| repo required | string name of the repo |
| pageName required | string name of the page |
query Parameters
| page | integer page number of results to return (1-based) |
Responses
Response samples
- 200
{- "commits": [
- {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}
], - "count": 0
}Create a repository using a template
Authorizations:
path Parameters
| template_owner required | string owner of the template repository |
| template_repo required | string name of the template repository |
Request Body schema: application/json
| avatar | boolean include avatar of the template repo |
| default_branch | string Default branch of the new repository |
| description | string Description of the repository to create |
| git_content | boolean include git content of default branch in template repo |
| git_hooks | boolean include git hooks in template repo |
| labels | boolean include labels in template repo |
| name required | string unique |
| owner required | string the organization's name or individual user's name who will own the new repository |
| private | boolean Whether the repository is private |
| protected_branch | boolean include protected branches in template repo |
| topics | boolean include topics in template repo |
| webhooks | boolean include webhooks in template repo |
Responses
Request samples
- Payload
{- "avatar": true,
- "default_branch": "string",
- "description": "string",
- "git_content": true,
- "git_hooks": true,
- "labels": true,
- "name": "string",
- "owner": "string",
- "private": true,
- "protected_branch": true,
- "topics": true,
- "webhooks": true
}Response samples
- 201
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Get a repository by id
Authorizations:
path Parameters
| id required | integer <int64> id of the repo to get |
Responses
Response samples
- 200
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}search topics via keyword
Authorizations:
query Parameters
| q required | string keywords to search |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "repo_count": 0,
- "topic_name": "string",
- "updated": "2019-08-24T14:15:22Z"
}
]Create a repository
Authorizations:
Request Body schema: application/json
| auto_init | boolean Whether the repository should be auto-initialized? |
| default_branch | string DefaultBranch of the repository (used when initializes and in template) |
| description | string Description of the repository to create |
| gitignores | string Gitignores to use |
| issue_labels | string Label-Set to use |
| license | string License to use |
| name required | string unique Name of the repository to create |
| object_format_name | string Enum: "sha1" "sha256" ObjectFormatName of the underlying git repository, empty string for default (sha1) |
| private | boolean Whether the repository is private |
| readme | string Readme of the repository to create |
| template | boolean Whether the repository is template |
| trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "object_format_name": "sha1",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}Response samples
- 201
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Get instance's global settings for api
Authorizations:
Responses
Response samples
- 200
{- "default_git_trees_per_page": 0,
- "default_max_blob_size": 0,
- "default_max_response_size": 0,
- "default_paging_num": 0,
- "max_response_items": 0
}Get instance's global settings for repositories
Authorizations:
Responses
Response samples
- 200
{- "http_git_disabled": true,
- "lfs_disabled": true,
- "migrations_disabled": true,
- "mirrors_disabled": true,
- "stars_disabled": true,
- "time_tracking_disabled": true
}Get the authenticated user
Authorizations:
Responses
Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}Get workflow jobs
Authorizations:
query Parameters
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "jobs": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "head_branch": "string",
- "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "labels": [
- "string"
], - "name": "string",
- "run_attempt": 0,
- "run_id": 0,
- "run_url": "string",
- "runner_id": 0,
- "runner_name": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "steps": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "name": "string",
- "number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "url": "string"
}
], - "total_count": 0
}Get user-level runners
Authorizations:
query Parameters
| disabled | boolean filter by disabled status (true or false) |
Responses
Response samples
- 200
{- "runners": [
- {
- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}
], - "total_count": 0
}Get a user-level runner
Authorizations:
path Parameters
| runner_id required | string id of the runner |
Responses
Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Update a user-level runner
Authorizations:
path Parameters
| runner_id required | string id of the runner |
Request Body schema: application/json
| disabled required | boolean |
Responses
Request samples
- Payload
{- "disabled": true
}Response samples
- 200
{- "busy": true,
- "disabled": true,
- "ephemeral": true,
- "id": 0,
- "labels": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "status": "string"
}Get workflow runs
Authorizations:
query Parameters
| event | string workflow event name |
| branch | string workflow branch |
| status | string workflow status (pending, queued, in_progress, failure, success, skipped) |
| actor | string triggered by user |
| head_sha | string triggering sha of the workflow run |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "total_count": 0,
- "workflow_runs": [
- {
- "actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "completed_at": "2019-08-24T14:15:22Z",
- "conclusion": "string",
- "display_title": "string",
- "event": "string",
- "head_branch": "string",
- "head_repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "head_sha": "string",
- "html_url": "string",
- "id": 0,
- "path": "string",
- "repository": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repository_id": 0,
- "run_attempt": 0,
- "run_number": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "trigger_actor": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "url": "string"
}
]
}Create or Update a secret value in a user scope
Authorizations:
path Parameters
| secretname required | string name of the secret |
Request Body schema: application/json
| data required | string Data of the secret to update |
| description | string Description of the secret to update |
Responses
Request samples
- Payload
{- "data": "string",
- "description": "string"
}Get the user-level list of variables which is created by current doer
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}
]Get a user-level variable which is created by current doer
Authorizations:
path Parameters
| variablename required | string name of the variable |
Responses
Response samples
- 200
{- "data": "string",
- "description": "string",
- "name": "string",
- "owner_id": 0,
- "repo_id": 0
}Update a user-level variable which is created by current doer
Authorizations:
path Parameters
| variablename required | string name of the variable |
Request Body schema: application/json
| description | string Description of the variable to update |
| name | string New name for the variable. If the field is empty, the variable name won't be updated. |
| value required | string Value of the variable to update |
Responses
Request samples
- Payload
{- "description": "string",
- "name": "string",
- "value": "string"
}Create a user-level variable
Authorizations:
path Parameters
| variablename required | string name of the variable |
Request Body schema: application/json
| description | string Description of the variable to create |
| value required | string Value of the variable to create |
Responses
Request samples
- Payload
{- "description": "string",
- "value": "string"
}List the authenticated user's oauth2 applications
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
], - "skip_secondary_authorization": true
}
]creates a new OAuth2 application
Authorizations:
Request Body schema: application/jsonrequired
| confidential_client | boolean Whether the client is confidential |
| name | string The name of the OAuth2 application |
| redirect_uris | Array of strings The list of allowed redirect URIs |
| skip_secondary_authorization | boolean Whether to skip secondary authorization |
Responses
Request samples
- Payload
{- "confidential_client": true,
- "name": "string",
- "redirect_uris": [
- "string"
], - "skip_secondary_authorization": true
}Response samples
- 201
{- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
], - "skip_secondary_authorization": true
}get an OAuth2 Application
Authorizations:
path Parameters
| id required | integer <int64> Application ID to be found |
Responses
Response samples
- 200
{- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
], - "skip_secondary_authorization": true
}update an OAuth2 Application, this includes regenerating the client secret
Authorizations:
path Parameters
| id required | integer <int64> application to be updated |
Request Body schema: application/jsonrequired
| confidential_client | boolean Whether the client is confidential |
| name | string The name of the OAuth2 application |
| redirect_uris | Array of strings The list of allowed redirect URIs |
| skip_secondary_authorization | boolean Whether to skip secondary authorization |
Responses
Request samples
- Payload
{- "confidential_client": true,
- "name": "string",
- "redirect_uris": [
- "string"
], - "skip_secondary_authorization": true
}Response samples
- 200
{- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
], - "skip_secondary_authorization": true
}List users blocked by the authenticated user
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Add email addresses
Authorizations:
Request Body schema: application/json
| emails | Array of strings email addresses to add |
Responses
Request samples
- Payload
{- "emails": [
- "string"
]
}Response samples
- 201
[- {
- "email": "user@example.com",
- "primary": true,
- "user_id": 0,
- "username": "string",
- "verified": true
}
]List the authenticated user's followers
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]List the users that the authenticated user is following
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]Verify a GPG key
Authorizations:
Responses
Response samples
- 201
{- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}List the authenticated user's GPG keys
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}
]Create a GPG key
Authorizations:
Request Body schema: application/json
| armored_public_key required | string unique An armored GPG key to add |
| armored_signature | string An optional armored signature for the GPG key |
Responses
Request samples
- Payload
{- "armored_public_key": "string",
- "armored_signature": "string"
}Response samples
- 201
{- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}Get a GPG key
Authorizations:
path Parameters
| id required | integer <int64> id of key to get |
Responses
Response samples
- 200
{- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}List the authenticated user's webhooks
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Create a hook
Authorizations:
Request Body schema: application/jsonrequired
| active | boolean Default: false |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
| events | Array of strings List of events that will trigger this webhook |
| name | string Optional human-readable name for the webhook |
| type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string",
- "type": "dingtalk"
}Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Get a hook
Authorizations:
path Parameters
| id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Update a hook
Authorizations:
path Parameters
| id required | integer <int64> id of the hook to update |
Request Body schema: application/json
| active | boolean Whether the webhook is active and will be triggered |
| authorization_header | string Authorization header to include in webhook requests |
| branch_filter | string Branch filter pattern to determine which branches trigger the webhook |
object Configuration settings for the webhook | |
| events | Array of strings List of events that trigger this webhook |
| name | string Optional human-readable name |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "name": "string"
}Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "name": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}List the authenticated user's public keys
Authorizations:
query Parameters
| fingerprint | string fingerprint of the key |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]Create a public key
Authorizations:
Request Body schema: application/json
| key required | string unique An armored SSH key to add |
| read_only | boolean Describe if the key has only read access or read/write |
| title required | string unique Title of the key to add |
Responses
Request samples
- Payload
{- "key": "string",
- "read_only": true,
- "title": "string"
}Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}Get a public key
Authorizations:
path Parameters
| id required | integer <int64> id of key to get |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}List the repos that the authenticated user owns
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]Create a repository
Authorizations:
Request Body schema: application/json
| auto_init | boolean Whether the repository should be auto-initialized? |
| default_branch | string DefaultBranch of the repository (used when initializes and in template) |
| description | string Description of the repository to create |
| gitignores | string Gitignores to use |
| issue_labels | string Label-Set to use |
| license | string License to use |
| name required | string unique Name of the repository to create |
| object_format_name | string Enum: "sha1" "sha256" ObjectFormatName of the underlying git repository, empty string for default (sha1) |
| private | boolean Whether the repository is private |
| readme | string Readme of the repository to create |
| template | boolean Whether the repository is template |
| trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "object_format_name": "sha1",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}Response samples
- 201
{- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}Get user settings
Authorizations:
Responses
Response samples
- 200
[- {
- "description": "string",
- "diff_view_style": "string",
- "full_name": "string",
- "hide_activity": true,
- "hide_email": true,
- "language": "string",
- "location": "string",
- "theme": "string",
- "website": "string"
}
]Update user settings
Authorizations:
Request Body schema: application/json
| description | string |
| diff_view_style | string |
| full_name | string |
| hide_activity | boolean |
| hide_email | boolean Privacy |
| language | string |
| location | string |
| theme | string |
| website | string |
Responses
Request samples
- Payload
{- "description": "string",
- "diff_view_style": "string",
- "full_name": "string",
- "hide_activity": true,
- "hide_email": true,
- "language": "string",
- "location": "string",
- "theme": "string",
- "website": "string"
}Response samples
- 200
[- {
- "description": "string",
- "diff_view_style": "string",
- "full_name": "string",
- "hide_activity": true,
- "hide_email": true,
- "language": "string",
- "location": "string",
- "theme": "string",
- "website": "string"
}
]The repos that the authenticated user has starred
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]Get list of all existing stopwatches
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "duration": "string",
- "issue_index": 0,
- "issue_title": "string",
- "repo_name": "string",
- "repo_owner_name": "string",
- "seconds": 0
}
]List repositories watched by the authenticated user
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]List all the teams a user belongs to
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]List the current user's tracked times
Authorizations:
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
| since | string <date-time> Only show times updated after the given time. This is a timestamp in RFC 3339 format |
| before | string <date-time> Only show times updated before the given time. This is a timestamp in RFC 3339 format |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "content_version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "open",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "draft": true,
- "html_url": "string",
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "open",
- "time_estimate": 0,
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]Search for users
Authorizations:
query Parameters
| q | string keyword |
| uid | integer <int64> ID of the user to search for |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
{- "data": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "ok": true
}Get a user
Authorizations:
path Parameters
| username required | string username of the user whose data is to be listed |
Responses
Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}List a user's activity feeds
Authorizations:
path Parameters
| username required | string username of the user whose activity feeds are to be listed |
query Parameters
| only-performed-by | boolean if true, only show actions performed by the requested user |
| date | string <date> the date of the activities to be found |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "create_repo",
- "ref_name": "string",
- "repo": {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]List the given user's followers
Authorizations:
path Parameters
| username required | string username of the user whose followers are to be listed |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]List the users that the given user is following
Authorizations:
path Parameters
| username required | string username of the user whose followed users are to be listed |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]List the given user's GPG keys
Authorizations:
path Parameters
| username required | string username of the user whose GPG key list is to be obtained |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}
]Get a user's heatmap
Authorizations:
path Parameters
| username required | string username of the user whose heatmap is to be obtained |
Responses
Response samples
- 200
[- {
- "contributions": 0,
- "timestamp": 0
}
]List the given user's public keys
Authorizations:
path Parameters
| username required | string username of the user whose public keys are to be listed |
query Parameters
| fingerprint | string fingerprint of the key |
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]List the repos owned by the given user
Authorizations:
path Parameters
| username required | string username of the user whose owned repos are to be listed |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]The repos that the given user has starred
Authorizations:
path Parameters
| username required | string username of the user whose starred repos are to be listed |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]List the repositories watched by a user
Authorizations:
path Parameters
| username required | string username of the user whose watched repos are to be listed |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_fast_forward_only_merge": true,
- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "autodetect_manual_merge": true,
- "avatar_url": "string",
- "branch_count": 0,
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "default_target_branch": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_code": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "licenses": [
- "string"
], - "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "object_format_name": "sha1",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "projects_mode": "string",
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "html_url": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "topics": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]List the authenticated user's access tokens
Authorizations:
path Parameters
| username required | string username of to user whose access tokens are to be listed |
query Parameters
| page | integer page number of results to return (1-based) |
| limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "last_used_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "scopes": [
- "string"
], - "sha1": "string",
- "token_last_eight": "string"
}
]Create an access token
Authorizations:
path Parameters
| username required | string username of the user whose token is to be created |
Request Body schema: application/json
| name required | string |
| scopes | Array of strings |
Responses
Request samples
- Payload
{- "name": "string",
- "scopes": [
- "all",
- "read:activitypub",
- "read:issue",
- "write:misc",
- "read:notification",
- "read:organization",
- "read:package",
- "read:repository",
- "read:user"
]
}Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "last_used_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "scopes": [
- "string"
], - "sha1": "string",
- "token_last_eight": "string"
}Join our community
Gitea is open source. Star our GitHub repo, and join our community on Discord!
Subscribe to our newsletter
Stay up to date with all things Gitea
