// 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,
});
// List branches in the ephemeral namespace
const previews = await repo.listBranches({ ephemeral: true });
Options
Maximum branches per page
Pagination cursor from a previous response
List branches from the ephemeral namespace instead of the persistent one (default: false)
Response
List of branch info objects
Cursor for the next page (absent when no more results)