issuesAsFlow
fun GithubApi.issuesAsFlow(repositoryName: String, concurrency: Int = 1, filter: RepositoryIssueQuery.() -> Unit = {}): Flow<Issue>
Retrieves a flow of all issues for the specified GitHub repository, filtered by the given criteria.
Return
A Flow<Issue>
object representing the issues matching the specified filter criteria.
Example usage:
val githubApi = GithubApi("your_api_key_here")
val repositoryName = "owner/repo_name"
val issuesFlow = githubApi.issuesAsFlow(repositoryName) {
state = "open"
sort = "created"
direction = "desc"
}
issuesFlow.collect { println(it) }
Content copied to clipboard
Parameters
repositoryName
The name of the GitHub repository.
filter
A lambda expression to configure the filter for the issues.