getRepoBranches

@GET(value = "projects/{id}/repository/branches")
abstract suspend fun getRepoBranches(@Path(value = "id") id: String, @Query(value = "search") search: String? = null, @Query(value = "regex") regex: String? = null): Result<List<Branch>>

Get repo branches

Return

a list of repository branches from a project, sorted by name alphabetically.

Parameters

id

ID or URL-encoded path of the project owned by the authenticated user.

search

Return list of branches containing the search string. You can use ^term to find branches that begin with term, and term$ to find branches that end with term.

regex

Return list of branches with names matching a re2 regular expression.