Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
Update to fixed CF API, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverAndro committed Jun 11, 2022
1 parent 4e641b9 commit 1e81f56
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ data class ModrinthProjectCreate private constructor(
slug = curseforgeProject.slug,
description = curseforgeProject.summary,
license_id = ModifoldArgs.args.defaultLicense,
discord_url = ModifoldArgs.args.discordServer.takeUnless { it.isEmpty() },
categories = if (ModifoldArgs.args.donts.contains(DONT.MAP_CATEGORIES)) emptyList() else mapCategories(
curseforgeProject.categories
),
issues_url = curseforgeProject.links.issuesUrl,
source_url = curseforgeProject.links.sourceUrl,
wiki_url = curseforgeProject.links.wikiUrl
discord_url = ModifoldArgs.args.discordServer.takeIf { it.isNotBlank() },
issues_url = curseforgeProject.links.issuesUrl.takeIf { it.isNotBlank() },
source_url = curseforgeProject.links.sourceUrl.takeIf { it.isNotBlank() },
wiki_url = curseforgeProject.links.wikiUrl.takeIf { it.isNotBlank() }
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.p03w.modifold.curseforge_schema

data class CurseforgeLinks(
val websiteUrl: String?,
val wikiUrl: String?,
val issuesUrl: String?,
val sourceUrl: String?
val websiteUrl: String,
val wikiUrl: String,
val issuesUrl: String,
val sourceUrl: String
)
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "com.github.p03w"
version = "2.1.1"
version = "2.1.2"

repositories {
mavenCentral()
Expand Down

0 comments on commit 1e81f56

Please sign in to comment.