Skip to content

Commit

Permalink
build: 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed May 25, 2022
1 parent c018152 commit a96480f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "io.github.gnuf0rce"
version = "1.2.0-RC"
version = "1.2.0"

mavenCentralPublish {
useCentralS01()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public object GitHubHelperPlugin : KotlinPlugin(
JvmPluginDescription(
id = "io.github.gnuf0rce.github-helper",
name = "github-helper",
version = "1.2.0-RC",
version = "1.2.0",
) {
author("cssxsh")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ internal val ReplierPermission: Permission by lazy {

private fun MessageEvent.hasReplierPermission() = toCommandSender().hasPermission(ReplierPermission)

// TODO: REPLIER_FORMAT
private val REPLIER_FORMAT get() = GitHubConfig.replier

/**
Expand All @@ -52,7 +51,7 @@ internal val OwnerReplier: MessageReplier = replier@{ result ->
val (owner) = result.destructured
val entry = github.user(owner).load().takeIf { it.type == "User" }
?: github.organization(owner).load()
entry.toMessage(subject, REPLIER_FORMAT, "", OffsetDateTime.MIN)
entry.toMessage(subject, REPLIER_FORMAT, "replier", OffsetDateTime.MIN)
} catch (cause: Throwable) {
logger.warning({ "构建Repo(${result.value})信息失败" }, cause)
cause.message
Expand Down

0 comments on commit a96480f

Please sign in to comment.