Open
Conversation
Co-authored-by: he0119 <[email protected]>
Copilot
AI
changed the title
[WIP] Fix error when PR corresponds to non-existent issue
fix: 当 PR 对应的 Issue 不存在时跳过处理而非崩溃
Mar 18, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #475 +/- ##
==========================================
- Coverage 96.07% 95.96% -0.12%
==========================================
Files 40 40
Lines 2320 2330 +10
==========================================
+ Hits 2229 2236 +7
- Misses 91 94 +3 ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在解决冲突 PR 时,若对应议题已被删除(GitHub API 返回 404),
to_issue_handler会抛出未捕获的ActionFailed,导致整个 bot 进程崩溃,后续 PR 均无法处理。Changes
publish/utils.py&remove/utils.py: 在resolve_conflict_pull_requests中,对to_issue_handler调用添加try/except (ActionFailed, RequestFailed),捕获 404 后记录错误并continue至下一个 PRtest_resolve_pull_request.py: 新增test_resolve_pull_request_issue_not_found,验证议题 404 时对应 PR 被跳过、后续 PR 仍正常处理。Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
releases.astral.sh/home/REDACTED/.local/bin/uv uv sync(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.