Query parameters accepted by GET /rest/api/latest/projects/{key}/repos/{slug}/commits.

interface CommitsParams {
    followRenames?: boolean;
    ignoreMissing?: boolean;
    limit?: number;
    merges?: "include" | "exclude" | "only";
    path?: string;
    since?: string;
    start?: number;
    until?: string;
}

Hierarchy (View Summary)

Properties

followRenames?: boolean

Follow file renames when filtering by path

ignoreMissing?: boolean

Silently ignore missing commits referenced by since or until

limit?: number

Maximum number of results to return per page. Bitbucket default is 25, maximum is 1000.

merges?: "include" | "exclude" | "only"

How to handle merge commits

path?: string

Filter commits that touch this file path

since?: string

Exclude commits reachable from this commit ID or ref

start?: number

0-based index of the first result to return. Use nextPageStart from the previous response to paginate forward.

until?: string

The commit ID or ref to list commits reachable from. Defaults to the repository's default branch.