View a Tugboat Repository's Branches

Returns a list of git branches from the repository provider.

Arguments

  • repo - Required
    The ID of the repository to fetch branches from.

Example

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

Output

[
    {
        "name": "master",
        "ref": "refs/heads/master",
        "url": "https://gitlab.com/tugboatqa/tugboat-test/tree/master",
        "raw": {} // The raw branch object from the provider API
    },
    {
        "name": "test-branch",
        "ref": "refs/heads/test-branch",
        "url": "https://gitlab.com/tugboatqa/tugboat-test/tree/test-branch",
        "raw": {} // The raw branch object from the provider API
    }
]

results matching ""

    No results matching ""