Skip to main content
// List all branches
const branches = await repo.listBranches();
console.log(branches.branches); // Array of branch info

// With pagination
const page = await repo.listBranches({
  limit: 10,
  cursor: branches.nextCursor,
});

Options

ParameterTypeDescription
limitOptionalMaximum branches per page
cursorOptionalPagination cursor from a previous response

Response

FieldTypeDescription
branchesArrayList of branch info objects
nextCursor (TypeScript)
next_cursor (Python)
OptionalCursor for the next page (absent when no more results)