Skip to content

Commit 433d8aa

Browse files
committed
fix: check update
1 parent 314478b commit 433d8aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout
1313
uses: actions/[email protected]
1414
with:
15-
fetch-depth: 0
15+
fetch-depth: 1
1616

1717
- name: Set up Go
1818
uses: actions/setup-go@v2

internal/selfupdate/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func readLine() (str string) {
2929
}
3030

3131
func lastVersion() (string, error) {
32-
r, err := download.Request{URL: "https://api.github.com/repos/Mrs4s/go-cqhttp/releases/latest"}.JSON()
32+
r, err := download.Request{URL: "https://api.github.com/repos/CodeLaboratory/go-cqhttp/releases/latest"}.JSON()
3333
if err != nil {
3434
return "", err
3535
}
@@ -49,7 +49,7 @@ func CheckUpdate() {
4949
return
5050
}
5151
if global.VersionNameCompare(base.Version, latest) {
52-
logrus.Infof("当前有更新的 go-cqhttp 可供更新, 请前往 https://github.com/Mrs4s/go-cqhttp/releases 下载.")
52+
logrus.Infof("当前有更新的 go-cqhttp 可供更新, 请前往 https://github.com/CodeLaboratory/go-cqhttp/releases 下载.")
5353
logrus.Infof("当前版本: %v 最新版本: %v", base.Version, latest)
5454
return
5555
}

0 commit comments

Comments
 (0)