An individual repository.
If querying using the repository slug, it must be formatted using standard URL encoding, including any special characters.
Included when the resource is returned as part of another resource.
Name | Type | Description |
---|
id | Integer | Value uniquely identifying the repository. |
name | String | The repository's name on GitHub. |
slug | String | Same as {repository.owner.name}/{repository.name}. |
Included when the resource is the main response of a request, or is eager loaded.
Name | Type | Description |
---|
id | Integer | Value uniquely identifying the repository. |
name | String | The repository's name on GitHub. |
slug | String | Same as {repository.owner.name}/{repository.name}. |
description | String | The repository's description from GitHub. |
github_id | Integer | The repository's id on GitHub. |
vcs_id | Unknown | The repository's vcs_id. |
vcs_type | Unknown | The repository's vcs_type. |
github_language | String | The main programming language used according to GitHub. |
active | Boolean | Whether or not this repository is currently enabled on Travis CI. |
private | Boolean | Whether or not this repository is private. |
owner | Owner | GitHub user or organization the repository belongs to. |
owner_name | Unknown | The repository's owner_name. |
vcs_name | Unknown | The repository's vcs_name. |
default_branch | Branch | The default branch on GitHub. |
starred | Boolean | Whether or not this repository is starred. |
managed_by_installation | Boolean | Whether or not this repository is managed by a GitHub App installation. |
active_on_org | Boolean | Whether or not this repository runs builds on travis-ci.org (may also be null). |
migration_status | Unknown | The repository's migration_status. |
history_migration_status | Unknown | The repository's history_migration_status. |
shared | Unknown | The repository's shared. |
config_validation | Unknown | The repository's config_validation. |
server_type | Unknown | The repository's server_type. |
scan_failed_at | Unknown | The repository's scan_failed_at. |
Document representations/list
not found.
Name | Type | Description |
---|
id | Integer | Value uniquely identifying the repository. |
name | String | The repository's name on GitHub. |
slug | String | Same as {repository.owner.name}/{repository.name}. |
active | Boolean | Whether or not this repository is currently enabled on Travis CI. |
private | Boolean | Whether or not this repository is private. |
owner | Owner | GitHub user or organization the repository belongs to. |
vcs_id | Unknown | The repository's vcs_id. |
vcs_type | Unknown | The repository's vcs_type. |
server_type | Unknown | The repository's server_type. |
Document representations/minimal_with_build
not found.
Name | Type | Description |
---|
id | Integer | Value uniquely identifying the repository. |
name | String | The repository's name on GitHub. |
slug | String | Same as {repository.owner.name}/{repository.name}. |
active | Boolean | Whether or not this repository is currently enabled on Travis CI. |
private | Boolean | Whether or not this repository is private. |
owner | Owner | GitHub user or organization the repository belongs to. |
vcs_id | Unknown | The repository's vcs_id. |
vcs_type | Unknown | The repository's vcs_type. |
server_type | Unknown | The repository's server_type. |
managed_by_installation | Boolean | Whether or not this repository is managed by a GitHub App installation. |
last_started_build | Build | Alias for current_build. |
current_build | Build | The most recently started build (this excludes builds that have been created but have not yet started). |
Name | Type | Description |
---|
allow_migration | Unknown | The repository's allow_migration. |
This returns an individual repository.
GET
/repo/{provider}/{repository.id}
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.id | Integer | Value uniquely identifying the repository. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
repository.server_type | Unknown | The repository's server_type. |
server_type | Unknown | Alias for repository.server_type. |
GET
/repo/{provider}/{repository.slug}
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
repository.server_type | Unknown | The repository's server_type. |
server_type | Unknown | Alias for repository.server_type. |
Template Variable | Type | Description |
---|
repository.id | Integer | Value uniquely identifying the repository. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
repository.server_type | Unknown | The repository's server_type. |
server_type | Unknown | Alias for repository.server_type. |
Example:GET /repo/891
GET
/repo/{repository.slug}
Template Variable | Type | Description |
---|
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Query Parameter | Type | Description |
---|
include | [String] | List of attributes to eager load. |
repository.server_type | Unknown | The repository's server_type. |
server_type | Unknown | Alias for repository.server_type. |
Example:GET /repo/rails%2Frails
This will activate a repository, allowing its tests to be run on Travis CI.
POST
/repo/{provider}/{repository.id}/activate
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.id | Integer | Value uniquely identifying the repository. |
POST
/repo/{provider}/{repository.slug}/activate
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
POST
/repo/{repository.id}/activate
Template Variable | Type | Description |
---|
repository.id | Integer | Value uniquely identifying the repository. |
Example:POST /repo/891/activate
POST
/repo/{repository.slug}/activate
Template Variable | Type | Description |
---|
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Example:POST /repo/rails%2Frails/activate
This will deactivate a repository, preventing any tests from running on Travis CI.
POST
/repo/{provider}/{repository.id}/deactivate
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.id | Integer | Value uniquely identifying the repository. |
POST
/repo/{provider}/{repository.slug}/deactivate
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
POST
/repo/{repository.id}/deactivate
Template Variable | Type | Description |
---|
repository.id | Integer | Value uniquely identifying the repository. |
Example:POST /repo/891/deactivate
POST
/repo/{repository.slug}/deactivate
Template Variable | Type | Description |
---|
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Example:POST /repo/rails%2Frails/deactivate
This will star a repository based on the currently logged in user.
POST
/repo/{provider}/{repository.id}/star
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.id | Integer | Value uniquely identifying the repository. |
POST
/repo/{provider}/{repository.slug}/star
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
POST
/repo/{repository.id}/star
Template Variable | Type | Description |
---|
repository.id | Integer | Value uniquely identifying the repository. |
Example:POST /repo/891/star
POST
/repo/{repository.slug}/star
Template Variable | Type | Description |
---|
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Example:POST /repo/rails%2Frails/star
This will unstar a repository based on the currently logged in user.
POST
/repo/{provider}/{repository.id}/unstar
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.id | Integer | Value uniquely identifying the repository. |
POST
/repo/{provider}/{repository.slug}/unstar
Template Variable | Type | Description |
---|
provider | Unknown | Documentation missing. |
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
POST
/repo/{repository.id}/unstar
Template Variable | Type | Description |
---|
repository.id | Integer | Value uniquely identifying the repository. |
Example:POST /repo/891/unstar
POST
/repo/{repository.slug}/unstar
Template Variable | Type | Description |
---|
repository.slug | String | Same as {repository.owner.name}/{repository.name}. |
Example:POST /repo/rails%2Frails/unstar