Skip to content

Commit a9a3835

Browse files
committed
build: 1.3.0
1 parent b48fa8a commit a9a3835

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "io.github.gnuf0rce"
10-
version = "1.2.11"
10+
version = "1.3.0"
1111

1212
mavenCentralPublish {
1313
useCentralS01()

readme.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
`[contact]?`是可选的参数,会自动由当前环境填充,例如群聊填充群号,私聊填充QQ号
2828
`[type]` 消息的格式,可选值为 `OLD`, `TEXT`, `FORWARD`
2929

30+
**1.3.0** 版本起,添加从 GitHub Release Latest 更新插件的功能
31+
其配置文件位于 `config/update.dict.json`
32+
3033
### GitHubIssuesCommand
3134

3235
| 指令 | 描述 |
@@ -124,7 +127,7 @@
124127
### MCL 指令安装
125128

126129
**请确认 mcl.jar 的版本是 2.1.0+**
127-
`./mcl --update-package io.github.gnuf0rce:github-helper --channel maven-stable --type plugin`
130+
`./mcl --update-package io.github.gnuf0rce:github-helper --channel maven-stable --type plugins`
128131

129132
### 手动安装
130133

src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubHelperPlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public object GitHubHelperPlugin : KotlinPlugin(
2929
JvmPluginDescription(
3030
id = "io.github.gnuf0rce.github-helper",
3131
name = "github-helper",
32-
version = "1.2.11",
32+
version = "1.3.0",
3333
) {
3434
author("cssxsh")
3535

src/test/kotlin/io/github/gnuf0rce/mirai/github/GitHubCurrentTest.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class GitHubCurrentTest : GitHubSubscriberTest<Issue>() {
1616
@DisabledIfEnvironmentVariable(named = "CI", matches = "true")
1717
fun issues(): Unit = runBlocking {
1818
val now = OffsetDateTime.now()
19-
for (issue in current.issues()) {
19+
for (issue in current.issues(per = 100)) {
2020
val message = issue.toMessage(group, Format.OLD, "有新 Issue", now)
2121
Assertions.assertTrue(message is MessageChain)
2222
val text = issue.toMessage(group, Format.TEXT, "有新 Issue", now)
@@ -38,6 +38,10 @@ internal class GitHubCurrentTest : GitHubSubscriberTest<Issue>() {
3838
Assertions.assertTrue(text is MessageChain)
3939
val forward = user.toMessage(group, Format.FORWARD)
4040
Assertions.assertTrue(forward is ForwardMessage)
41+
val miss = github.user("hundun000").load()
42+
miss.avatar(group)
43+
val ghost = github.user("ghost").load()
44+
ghost.avatar(group)
4145
}
4246

4347
@Test

0 commit comments

Comments
 (0)