getProtectedBranches

@GET(value = "projects/{id}/protected_branches")
abstract suspend fun getProtectedBranches(@Path(value = "id") id: String, @Query(value = "search") search: String? = null): Result<List<ProtectedBranch>>

Gets a list of protected branches from a project as they are defined in the UI. If a wildcard is set, it is returned instead of the exact name of the branches that match that wildcard.

Return

A list of protected branches

Parameters

id

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

search

Name or part of the name of protected branches to be searched for