View a Tugboat Repository

Retrieves the details of a Tugboat Repository, or a set of Repositories.

Arguments

  • repo - Optional
    The ID of the repository to list. If not specified, a list of all repositories that the user has permission to view is returned.

  • project - Optional
    Only list repositories in this project. If both repo and project are specified, project is ignored.

  • owner - Optional
    Only list the repositories owned by the provided API key ID. Repositories that the authenticated user does not have access to are not returned.

Example

socket.emit('tugboat', 'repos', 'list', args, callback);

Output

json

The requested repositories.

single

{
    "updatedAt": "2017-02-17T20:33:38.452Z",
    "createdAt": "2017-02-17T20:33:38.452Z",
    "name": "my-github-project",
    "agent": "dev.tugboat.qa",
    "_id": "58a75e22ddccc30001a26086",
    "size": 0,
    "quota": 0,
    "admins": [],
    "users": [],
    "project": "58a758b534f0210001cf9439",
    "id": "58a75e22ddccc30001a26086"
}

array

[
    {
        "updatedAt": "2017-02-17T20:33:38.452Z",
        "createdAt": "2017-02-17T20:33:38.452Z",
        "name": "my-github-project",
        "agent": "dev.tugboat.qa",
        "_id": "58a75e22ddccc30001a26086",
        "size": 0,
        "quota": 0,
        "admins": [],
        "users": [],
        "project": "58a758b534f0210001cf9439",
        "id": "58a75e22ddccc30001a26086"
    }
]

Errors

  • 1005: No Repositories Found
    Returned if the requested repositories do not exist, or the requestor does not have permission to view them.

results matching ""

    No results matching ""