Skip to main content
// List all tags
const tags = await repo.listTags();
console.log(tags.tags); // Array of tag info

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

Options

limit
number
Maximum tags per page
cursor
string
Pagination cursor from a previous response

Response

tags
array
List of tag info objects, each containing name, sha, and cursor
nextCursor
string
Cursor for the next page (absent when no more results)
hasMore
boolean
Whether additional pages of results are available