Skip to content

feat: 新增插件测试结果的卡片#374

Merged
he0119 merged 4 commits intomainfrom
feat/homepage-card
Apr 18, 2025
Merged

feat: 新增插件测试结果的卡片#374
he0119 merged 4 commits intomainfrom
feat/homepage-card

Conversation

@BigOrangeQWQ
Copy link
Copy Markdown
Member

@BigOrangeQWQ BigOrangeQWQ commented Apr 16, 2025

close #237

Copilot AI review requested due to automatic review settings April 16, 2025 14:22
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 introduces visual card components to display plugin test results using badge markdown in various test files and updates the rendering functionality accordingly.

  • Added badge markdown for homepage and test results in multiple test files.
  • Updated the render_comment function in the publish render module to incorporate the new card badges.
  • Defined a COMMENT_CARD_TEMPLATE constant and introduced inline snapshot configuration in pyproject.toml.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/plugins/github/publish/render/test_publish_render_error.py Added badge markdown for homepage and error test results.
tests/plugins/github/publish/render/test_publish_render_data.py Added badge markdown for homepage and OK test results.
tests/plugins/github/publish/process/test_publish_check_plugin.py Included badge markdown for homepage and OK test results.
tests/plugins/github/publish/process/test_publish_check.py Added badge markdown for homepage in various tests.
tests/plugins/github/config/process/test_config_check.py Included badge markdown for homepage and OK test results.
src/plugins/github/plugins/publish/render.py Updated badge card generation in render_comment.
src/plugins/github/plugins/publish/constants.py Added a constant for the COMMENT_CARD_TEMPLATE.
pyproject.toml Introduced inline snapshot configurations.
Files not reviewed (1)
  • src/plugins/github/plugins/publish/templates/comment.md.jinja: Language not supported

Comment thread src/plugins/github/plugins/publish/render.py Outdated
@github-actions github-actions Bot added the enhancement New feature or request label Apr 16, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.66%. Comparing base (a119ccb) to head (ceb42df).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #374      +/-   ##
==========================================
+ Coverage   93.65%   93.66%   +0.01%     
==========================================
  Files          41       41              
  Lines        2269     2274       +5     
==========================================
+ Hits         2125     2130       +5     
  Misses        144      144              

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

@he0119 he0119 merged commit d336dae into main Apr 18, 2025
7 checks passed
@he0119 he0119 deleted the feat/homepage-card branch April 18, 2025 00:59
@he0119 he0119 added the minor label Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 提供插件审核便捷入口

3 participants