Skip to content

fix: 更新版本#42

Merged
Redmomn merged 5 commits into
masterfrom
fix/new-sgin
Jun 18, 2026
Merged

fix: 更新版本#42
Redmomn merged 5 commits into
masterfrom
fix/new-sgin

Conversation

@Redmomn

@Redmomn Redmomn commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@Redmomn
Redmomn requested review from Copilot and removed request for Copilot June 18, 2026 13:01
Copilot AI review requested due to automatic review settings June 18, 2026 13:03
@Redmomn
Redmomn removed the request for review from Copilot June 18, 2026 13:05
Copilot AI review requested due to automatic review settings June 18, 2026 13:13
@Redmomn
Redmomn merged commit 25dfa3f into master Jun 18, 2026
@Redmomn
Redmomn deleted the fix/new-sgin branch June 18, 2026 13:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s Go/dependency/tooling versions and adapts the sign-server integration/config to newer LagrangeGo signing API expectations (including per-server token support), plus a few small refactors/logic simplifications.

Changes:

  • Bump Go version (workflows + go.mod) and upgrade multiple dependencies (notably LagrangeGo).
  • Extend sign-server configuration to support token, and update the signing request/flow accordingly.
  • Small code cleanups in message parsing, CQ code handling, and formatter selection; update golangci-lint configuration/workflow.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
modules/filter/filter.go Simplifies neq evaluation logic.
modules/config/default_config.yml Updates default sign-server endpoint and adds token fields; clarifies uin comment.
modules/config/config.go Adds Token to SignServer YAML model.
internal/msg/parse.go Refactors CQ marker scan condition for readability.
go.mod Bumps Go version and updates required module versions.
go.sum Updates sums to match dependency upgrades.
coolq/event.go Uses switch for post-format selection.
coolq/cqcode.go Comment spacing + simplifies cache condition logic.
cmd/gocq/sign.go Updates signer/sign request schema, adds Authorization header support, removes/parks quality-test logic.
cmd/gocq/main.go Updates default protocol version key and client init/sign-server wiring.
.golangci.yml Migrates to golangci-lint config v2 and enables formatters/exclusions structure.
.github/workflows/release.yml Updates CI Go version to 1.25.
.github/workflows/golint.yml Updates CI Go version to 1.25 and bumps golangci-lint action major version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/gocq/sign.go
Comment on lines 203 to +207
err = json.NewDecoder(resp.Body).Decode(&signResp)
if err != nil {
return nil, err
}
if signResp.Code != 0 {
Comment thread cmd/gocq/main.go
Comment on lines +214 to 216
app := auth.AppList["linux"]["3.2.26-46494"]
log.Infof("使用协议: %s", app.CurrentVersion)
cli = newClient(app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants