I’m trying to migrate this code to the new apps for org endpoint.
fun getAppsForOrg(orgName: String = getEnv("BITRISE_ORG")): List<BitriseAppObject> {
val appsList = ArrayList<BitriseAppObject>()
var response: Response<BitriseAppData>
var next: String? = ""
while (next != null) {
response = apiService.getApps(next).execute()
appsList.addAll(response.body().data)
next = response.body().paging.next
}
return appsList.filter { orgName == it.repo_owner }
}
GET https://api.bitrise.io/v0.1/users/instructure/builds/
does not work. Is there an API for converting a user name to a user slug?