Skip to content

♻️ 重构handle - #59

Merged
shoucandanghehe merged 82 commits into
masterfrom
feat/refactor-handle
Feb 13, 2026
Merged

shoucandanghehe merged 82 commits into
masterfrom
feat/refactor-handle

Conversation

@shoucandanghehe

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Feb 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.54967% with 94 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.16%. Comparing base (de4b8fb) to head (1323b01).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
nonebot/adapters/discord/commands/params.py 9.52% 38 Missing ⚠️
nonebot/adapters/discord/api/validation.py 86.61% 11 Missing and 6 partials ⚠️
nonebot/adapters/discord/adapter.py 53.33% 7 Missing ⚠️
nonebot/adapters/discord/utils.py 36.36% 6 Missing and 1 partial ⚠️
nonebot/adapters/discord/api/utils.py 84.21% 2 Missing and 4 partials ⚠️
nonebot/adapters/discord/bot.py 0.00% 5 Missing ⚠️
nonebot/adapters/discord/commands/matcher.py 16.66% 5 Missing ⚠️
nonebot/adapters/discord/api/types.py 90.00% 2 Missing ⚠️
nonebot/adapters/discord/commands/storage.py 33.33% 2 Missing ⚠️
nonebot/adapters/discord/message.py 33.33% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   72.87%   73.16%   +0.29%     
==========================================
  Files          22       26       +4     
  Lines        5718     6503     +785     
  Branches      269      334      +65     
==========================================
+ Hits         4167     4758     +591     
- Misses       1511     1689     +178     
- Partials       40       56      +16     
Flag Coverage Δ
unittests 73.16% <87.54%> (+0.29%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 19 changed files in this pull request and generated 5 comments.


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

Comment thread nonebot/adapters/discord/api/model.py Resolved
Comment thread nonebot/adapters/discord/api/types.py Resolved
Comment thread nonebot/adapters/discord/utils.py Resolved
Comment thread .pre-commit-config.yaml Resolved
Comment thread nonebot/adapters/discord/adapter.py Resolved
shoucandanghehe and others added 4 commits February 12, 2026 22:42
使用 is_unset() 类型守卫正确收窄 Missing[list[...]] 类型

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
将 options, default_permission, nsfw 参数类型从 Optional 改为 Missing,默认值从 None 改为 UNSET

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

Copilot AI commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

@shoucandanghehe I've opened a new pull request, #61, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 5 commits February 13, 2026 01:05
* Initial plan

* 🔧 Use python3 explicitly in pre-commit hook for portability

Co-authored-by: shoucandanghehe <51957264+shoucandanghehe@users.noreply.github.com>

* 🔧 Use language: python for pre-commit managed interpreter

Co-authored-by: shoucandanghehe <51957264+shoucandanghehe@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shoucandanghehe <51957264+shoucandanghehe@users.noreply.github.com>
统一 API 调用参数形态,避免在适配层静默改写 params/data 导致行为不透明。
@shoucandanghehe
shoucandanghehe merged commit be99184 into master Feb 13, 2026
20 checks passed
@shoucandanghehe
shoucandanghehe deleted the feat/refactor-handle branch February 13, 2026 08:09
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.

3 participants