IssueReporterRemoteDataSource

class IssueReporterRemoteDataSource(client: HttpClient)(source)

Files issues through the GitHub REST API. The token is sent only as the Authorization header and never appears in a thrown exception.

Constructors

Link copied to clipboard
constructor(client: HttpClient)

Functions

Link copied to clipboard
suspend fun createIssue(payload: CreateIssueRequest, target: GithubTarget, token: String?): String

Files payload in target and returns the created issue's web URL, which is empty when GitHub leaves it out.