View a Tugboat Repository's Pull Requests

Returns a list of pull requests from the repository provider.

Arguments

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

Example

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

Output

[
    {
        "name": "Tugboat Test",
        "number": 1,
        "created": "2018-07-26T19:23:55.000Z",
        "updated": "2018-08-01T15:56:59.000Z",
        "source": {
            "repository": "TugboatQA/tugboat-test",
            "branch": "test-branch"
        },
        "destination": {
            "repository": "TugboatQA/tugboat-test",
            "branch": "master"
        },
        "url": "https://github.com/TugboatQA/tugboat-test/pull/1",
        "raw": {} // The raw pull request object from the provider API
    }
]

results matching ""

    No results matching ""