From 8a8c8eb2e4c6fa28a5c17a5bf48afc86bd702909 Mon Sep 17 00:00:00 2001 From: Fodesu Date: Fri, 13 Feb 2026 22:01:01 +0800 Subject: [PATCH 1/5] ci: add typos ci support --- .github/workflows/typos.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/typos.yml diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 00000000..c38c3b0a --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,30 @@ +name: Spell Check + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + typos: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Check for typos + uses: crate-ci/typos@1.43.4 + - name: Typos info + if: failure() + run: | + echo 'To fix typos, please run `typos -w`' + echo 'To check for a diff, run `typos`' + echo 'You can find typos here: https://crates.io/crates/typos' + echo 'if you use VSCode, you can also install `Typos Spell Checker`' + echo 'You can find the extension here: https://marketplace.visualstudio.com/items?itemName=tekumara.typos-vscode' From 6bf56d4b6b05086e9dc8d54c1bf68522cf98fcc1 Mon Sep 17 00:00:00 2001 From: Fodesu Date: Fri, 13 Feb 2026 22:05:23 +0800 Subject: [PATCH 2/5] ci: fix typos failed log --- .github/workflows/typos.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index c38c3b0a..0d8e54d4 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -23,8 +23,8 @@ jobs: - name: Typos info if: failure() run: | - echo 'To fix typos, please run `typos -w`' - echo 'To check for a diff, run `typos`' + echo 'To check for a diff, run `mise x typos -- typos --diff`' + echo 'To fix typos, please run `mise x typos -- typos -w`' echo 'You can find typos here: https://crates.io/crates/typos' echo 'if you use VSCode, you can also install `Typos Spell Checker`' echo 'You can find the extension here: https://marketplace.visualstudio.com/items?itemName=tekumara.typos-vscode' From fc42e717a7040bfcc4e7db7a0261ec57fa7a4f7b Mon Sep 17 00:00:00 2001 From: Fodesu Date: Fri, 13 Feb 2026 22:06:56 +0800 Subject: [PATCH 3/5] chore: fix typos --- internal/channel/adapters/telegram/stream.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/channel/adapters/telegram/stream.go b/internal/channel/adapters/telegram/stream.go index 1f8b479c..0ef9976e 100644 --- a/internal/channel/adapters/telegram/stream.go +++ b/internal/channel/adapters/telegram/stream.go @@ -244,11 +244,11 @@ func (s *telegramOutboundStream) Push(ctx context.Context, event channel.StreamE } parseMode := resolveTelegramParseMode(msg.Format) for i, att := range msg.Attachments { - rto := replyTo + to := replyTo if i > 0 { - rto = 0 + to = 0 } - if err := sendTelegramAttachment(bot, s.target, att, "", rto, parseMode); err != nil && s.adapter.logger != nil { + if err := sendTelegramAttachment(bot, s.target, att, "", to, parseMode); err != nil && s.adapter.logger != nil { s.adapter.logger.Error("stream final attachment failed", slog.String("config_id", s.cfg.ID), slog.Any("error", err)) } } From 2c2a8da01bdcbb0b8f788b27221d8b550013c127 Mon Sep 17 00:00:00 2001 From: Fodesu Date: Fri, 13 Feb 2026 22:17:39 +0800 Subject: [PATCH 4/5] ci: fix typos version --- .github/workflows/typos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 0d8e54d4..be790f4c 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -19,7 +19,7 @@ jobs: with: persist-credentials: false - name: Check for typos - uses: crate-ci/typos@1.43.4 + uses: crate-ci/typos@latest - name: Typos info if: failure() run: | From 5ffd6726052d4f04bc2da62515657d5a55477816 Mon Sep 17 00:00:00 2001 From: Fodesu Date: Fri, 13 Feb 2026 22:21:20 +0800 Subject: [PATCH 5/5] ci: fix typos version again --- .github/workflows/typos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index be790f4c..b1d3c8b4 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -19,7 +19,7 @@ jobs: with: persist-credentials: false - name: Check for typos - uses: crate-ci/typos@latest + uses: crate-ci/typos@v1.43.4 - name: Typos info if: failure() run: |