repositoriesAsFlow

fun GithubApi.repositoriesAsFlow(username: String, concurrency: Int = 1, filter: RepositoryQuery.() -> Unit = {}): Flow<Repository>

Retrieves a flow of all repositories for the specified GitHub user, filtered by the given criteria.

Return

A Flow<Repository> object representing the repositories matching the specified filter criteria.

Example usage:

val githubApi = GithubApi("your_api_key_here")
val username = "github_username"
val repositoriesFlow = githubApi.repositoriesAsFlow(username) {
type = "owner"
sort = "created"
direction = "desc"
}
repositoriesFlow.collect { println(it) }

Parameters

username

The GitHub username whose repositories should be retrieved.

filter

A lambda expression to configure the filter for the repositories.