Skip to content

docs: README 补质量资产行(coverage + BDD,与 wop-go-sdk 对齐) - #20

Merged
im47cn-bot merged 3 commits into
mainfrom
docs/badge-quality-row
Aug 31, 2026
Merged

im47cn-bot merged 3 commits into
mainfrom
docs/badge-quality-row

Conversation

@im47cn-bot

@im47cn-bot im47cn-bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

补齐与 wop-go-sdk 徽章布局对齐的质量资产行:Coverage + BDD 场景数。

数据来源(全部实测,非拍值):

  • 覆盖率:各仓最近 main CI 日志实测(python 99.78% / dotnet 99.8% / ts 100% / php 100% line+branch;java JaCoCo 走 artifact 无日志数字,挂诚实的 ≥98% CI 门禁徽章)
  • BDD:各仓 .feature 文件 Scenario 计数(含中文 Gherkin「场景:/场景大纲:」),java 19 / python 21 / ts 15 / php 18 / dotnet 18

变异徽章仅 wop-go-sdk 挂(唯一有 main 门禁 + 全量报告的仓);python 待 feat/mutation-gate 合入后补。

Sourcery 总结

在两个 README 文件中公开 Python SDK 的测试覆盖率和 BDD 场景数量。

新功能:

  • 在英文和中文 README 文件中添加覆盖率和 BDD 场景数量徽章。

文档:

  • 根据 SDK 文档布局调整 README 质量徽章,并将其链接到相关的 CI 工作流和功能场景。
Original summary in English

Sourcery 摘要

在两个 README 文件中展示 Python SDK 的测试覆盖率和 BDD 场景数量。

新功能:

  • 在英文和中文 README 文件中添加覆盖率和 BDD 场景数量徽章。

文档:

  • 根据 SDK 文档布局调整 README 质量徽章,并将其链接到 CI 工作流和功能场景。
Original summary in English

Summary by Sourcery

Expose the Python SDK’s measured test coverage and BDD scenario count in both README files.

New Features:

  • Add coverage and BDD scenario-count badges to the English and Chinese README files.

Documentation:

  • Align the README quality badges with the SDK documentation layout and link them to the CI workflow and feature scenarios.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f63d0891-1b47-4989-8d99-7658796583f1


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai

sourcery-ai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor
审查者指南(小型 PR 中折叠显示)

审查者指南

本 PR 仅更新中英文 README 的徽章布局,补充基于实测 CI 覆盖率和 feature 文件场景计数的 Coverage 与 BDD 质量资产,同时保留现有 CodeRabbit 徽章。

文件级变更

变更 详情 文件
为中英文 README 增加与其他 SDK 对齐的质量资产徽章行。
  • 新增指向 main CI 的 99.78% Coverage 徽章
  • 新增指向 feature 文件的 21 个 BDD 场景徽章
  • 保留并重新排列 CodeRabbit 审查徽章
README.md
README.en.md

提示和命令

与 Sourcery 交互

  • 触发新的审查: 在 pull request 中评论 @sourcery-ai review。
  • 继续讨论: 直接回复 Sourcery 的审查评论。
  • 根据审查评论生成 GitHub issue: 回复审查评论,请 Sourcery 根据该评论创建 issue。你也可以使用 @sourcery-ai issue 回复审查评论,以根据该评论创建 issue。
  • 生成 pull request 标题: 在 pull request 标题的任意位置写入 @sourcery-ai,即可随时生成标题。你也可以在 pull request 中评论 @sourcery-ai title,以随时生成或重新生成标题。
  • 生成 pull request 摘要: 在 pull request 正文中任意位置写入 @sourcery-ai summary,即可在指定位置随时生成 PR 摘要。你也可以在 pull request 中评论 @sourcery-ai summary,以随时生成或重新生成摘要。
  • 生成审查者指南: 在 pull request 中评论 @sourcery-ai guide,即可随时生成或重新生成审查者指南。
  • 解决所有 Sourcery 评论: 在 pull request 中评论 @sourcery-ai resolve,即可解决所有 Sourcery 评论。如果你已经处理完所有评论且不想再看到它们,这会非常有用。
  • 忽略所有 Sourcery 审查: 在 pull request 中评论 @sourcery-ai dismiss,即可忽略所有现有的 Sourcery 审查。如果你想从头开始新的审查,这尤其有用——别忘了评论 @sourcery-ai review 以触发新的审查!

自定义使用体验

访问你的控制面板即可:

  • 启用或禁用审查功能,例如 Sourcery 生成的 pull request 摘要、审查者指南等。
  • 更改审查语言。
  • 添加、删除或编辑自定义审查指令。
  • 调整其他审查设置。

获取帮助

Original review guide in English
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

本 PR 仅更新中英文 README 的徽章布局,补充基于实测 CI 覆盖率和 feature 文件场景计数的 Coverage 与 BDD 质量资产,同时保留现有 CodeRabbit 徽章。

File-Level Changes

Change Details Files
为中英文 README 增加与其他 SDK 对齐的质量资产徽章行。
  • 新增指向 main CI 的 99.78% Coverage 徽章
  • 新增指向特性文件的 21 个 BDD 场景徽章
  • 保留并重新排列 CodeRabbit 审查徽章
README.md
README.en.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot 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.

嘿——我发现了 1 个问题

AI 代理提示词
请处理此次代码审查中的评论:

## 单独评论

### 评论 1
<location path="README.en.md" line_range="4" />
<code_context>
+[![Coverage](https://img.shields.io/badge/coverage-99.78%25-brightgreen](https://github.com/wop-platform/wop-python-sdk/actions/workflows/ci.yml) [![Gherkin](https://img.shields.io/badge/bdd-21%20scenarios-orange)](tests/features/wop_merchant.feature) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/wop-platform/wop-python-sdk?utm_source=oss&utm_medium=github&utm_campaign=wop-platform%2Fwop-python-sdk&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)
</code_context>
<issue_to_address>
**问题:** Coverage 徽章链接在其图片 URL 后缺少结束符 `]`,因此 Markdown 链接格式错误,Coverage 徽章无法可靠地呈现为指向 CI 工作流的链接;后面的 Gherkin 和 CodeRabbit 徽章会被解析为该错误结构的一部分。

**建议修复:** 将前缀更改为 `[![Coverage](https://img.shields.io/badge/coverage-99.78%25-brightgreen)](https://github.com/wop-platform/wop-python-sdk/actions/workflows/ci.yml)`,然后再追加其他徽章。

```suggestion
[![Coverage](https://img.shields.io/badge/coverage-99.78%25-brightgreen)](https://github.com/wop-platform/wop-python-sdk/actions/workflows/ci.yml) [![Gherkin](https://img.shields.io/badge/bdd-21%20scenarios-orange)](tests/features/wop_merchant.feature) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/wop-platform/wop-python-sdk?utm_source=oss&utm_medium=github&utm_campaign=wop-platform%2Fwop-python-sdk&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)
```
</issue_to_address>

Sourcery 评估

等待批准。 请先处理 1 个发现的问题。

阻塞性发现:README.en.md:4


Sourcery 对开源项目免费——如果您喜欢我们的审查,请考虑分享 ✨
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我会利用这些反馈来改进审查结果。
Original comment in English

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="README.en.md" line_range="4" />
<code_context>
+[![Coverage](https://img.shields.io/badge/coverage-99.78%25-brightgreen](https://github.com/wop-platform/wop-python-sdk/actions/workflows/ci.yml) [![Gherkin](https://img.shields.io/badge/bdd-21%20scenarios-orange)](tests/features/wop_merchant.feature) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/wop-platform/wop-python-sdk?utm_source=oss&utm_medium=github&utm_campaign=wop-platform%2Fwop-python-sdk&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)
</code_context>
<issue_to_address>
**issue:** The Coverage badge link is missing the closing `]` after its image URL, so the Markdown link is malformed and the coverage badge does not reliably render as a link to the CI workflow; the following Gherkin and CodeRabbit badges are parsed as part of the malformed construct.

**Suggested fix:** Change the prefix to `[![Coverage](https://img.shields.io/badge/coverage-99.78%25-brightgreen)](https://github.com/wop-platform/wop-python-sdk/actions/workflows/ci.yml)` before appending the other badges.

```suggestion
[![Coverage](https://img.shields.io/badge/coverage-99.78%25-brightgreen)](https://github.com/wop-platform/wop-python-sdk/actions/workflows/ci.yml) [![Gherkin](https://img.shields.io/badge/bdd-21%20scenarios-orange)](tests/features/wop_merchant.feature) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/wop-platform/wop-python-sdk?utm_source=oss&utm_medium=github&utm_campaign=wop-platform%2Fwop-python-sdk&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)
```
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: README.en.md:4


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread README.en.md Resolved
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

@sourcery-ai sourcery-ai Bot 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.

Sourcery assessment

Approved.

@im47cn-bot
im47cn-bot merged commit a2fc553 into main Aug 31, 2026
21 checks passed
@im47cn
im47cn deleted the docs/badge-quality-row branch August 31, 2026 05:18
@im47cn-bot im47cn-bot mentioned this pull request Aug 31, 2026
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.

2 participants