GitHubUpstream

data class GitHubUpstream(val user: String, val repo: String, val upstreamPriority: Priority = 0.priority) : Upstream(source)

The GitHub upstream.

Constructors

Link copied to clipboard
constructor(user: String, repo: String, upstreamPriority: Priority = 0.priority)

Properties

Link copied to clipboard

Name of the repository

Link copied to clipboard
open override val upstreamPriority: Priority

Priority is that used when comparing versions from multiple upstreams.

Link copied to clipboard

User that the repository resides under

Functions

Link copied to clipboard
open operator override fun compareTo(other: Upstream): Int
Link copied to clipboard
open suspend override fun fetch(client: HttpClient, schema: UpdateSchema): DefaultVersion?

Fetches a version object from the upstream.

Link copied to clipboard
open override fun toVersion(version: String, schema: UpdateSchema): DefaultVersion

Converts a version string into a DefaultVersion.

Link copied to clipboard
open override fun update(version: Version): Update

Returns an Update from a DefaultVersion.