Skip to content

fix: 修复机器人/适配器发布时没有历史测试的问题#409

Merged
he0119 merged 1 commit intomainfrom
fix/adapter-missing-action-url
Jun 17, 2025
Merged

fix: 修复机器人/适配器发布时没有历史测试的问题#409
he0119 merged 1 commit intomainfrom
fix/adapter-missing-action-url

Conversation

@he0119
Copy link
Copy Markdown
Member

@he0119 he0119 commented Jun 17, 2025

任何时候都应该显示历史测试,因为 #394#401 依赖其提供数据。

Copilot AI review requested due to automatic review settings June 17, 2025 07:59
@github-actions github-actions Bot added the bug Something isn't working label Jun 17, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.16%. Comparing base (d6053c5) to head (c08c228).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #409   +/-   ##
=======================================
  Coverage   94.16%   94.16%           
=======================================
  Files          40       40           
  Lines        2382     2383    +1     
=======================================
+ Hits         2243     2244    +1     
  Misses        139      139           

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adds a "历史测试" section to published GitHub actions comment renderings, ensuring historical test runs are always displayed.

  • Inserts <details> blocks with historical test entries in all relevant render tests.
  • Refactors render_comment to unify action_url handling and always append history entries.
  • Updates the changelog to document this fix.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/plugins/github/publish/render/test_publish_render_error.py Added historical test <details> block to error rendering test
tests/plugins/github/publish/render/test_publish_render_data.py Added historical test <details> block to data rendering test
tests/plugins/github/publish/render/test_publish_render.py Added historical test <details> block to general rendering tests
tests/plugins/github/publish/process/test_publish_check.py Added historical test <details> block to process publish-check tests
src/plugins/github/plugins/publish/render.py Refactored action_url assignment and history appending logic
CHANGELOG.md Documented the fix under "Unreleased"

Comment thread tests/plugins/github/publish/render/test_publish_render_error.py
Comment thread tests/plugins/github/publish/render/test_publish_render_data.py
Comment thread src/plugins/github/plugins/publish/render.py
@he0119 he0119 merged commit 8b10b89 into main Jun 17, 2025
7 checks passed
@he0119 he0119 deleted the fix/adapter-missing-action-url branch June 17, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants