class GithubReleasesClient
GithubReleasesClient(github: GithubConfig, apiUrl: String)GithubReleasesClient(repository: String, user: String, accessToken: String, apiUrl: String) |
val accessToken: String |
|
val apiUrl: String |
|
val repository: String |
|
val user: String |
fun createRelease(tagName: String, targetCommitish: String? = null, name: String? = null, body: String? = null, draft: Boolean = false, prerelease: Boolean = false): JsonObject
Creates a github release with the tag |
|
fun deleteReleaseAsset(assetId: Int): Unit
Deletes the release asset |
|
fun getLatestRelease(): JsonObject?
Replies the latest release or null, if no such release exists. |
|
fun getReleaseAssets(releaseId: Int): JsonArray<JsonObject>
Fetch the list of release assets for the release |
|
fun getReleases(): JsonArray<JsonObject>
Fetches the list of releases |
|
fun updateRelease(releaseId: Int, tagName: String? = null, targetCommitish: String? = null, name: String? = null, body: String? = null, draft: Boolean? = null, prerelease: Boolean? = null): JsonObject
Creates a github release with the tag |
|
fun uploadReleaseAsset(releaseId: Int, file: File, contentType: String, name: String? = null, label: String? = null): JsonObject
Upload a release asset |