Skip to content

chore: rename AI Markdown translator references#21822

Merged
ti-chi-bot[bot] merged 1 commit into
pingcap:masterfrom
qiancai:chore/rename-ai-markdown-translator
Jul 19, 2026
Merged

chore: rename AI Markdown translator references#21822
ti-chi-bot[bot] merged 1 commit into
pingcap:masterfrom
qiancai:chore/rename-ai-markdown-translator

Conversation

@qiancai

@qiancai qiancai commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

What is changed, added or deleted? (Required)

Update the GitHub Actions workflows to use the renamed qiancai/ai-markdown-translator repository and matching checkout paths.

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • 改进
    • 更新文档同步与翻译流程,改用新的 Markdown 翻译工具,提升中英文文档自动同步的稳定性。
    • 翻译失败汇总及自动创建的更新说明将适配新的翻译流程。

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 19, 2026
@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

两个文档同步工作流统一使用 ai-markdown-translator,并同步更新仓库检出、依赖安装、脚本执行目录、失败报告路径及 PR 描述。

Changes

翻译器仓库迁移

Layer / File(s) Summary
仓库检出与依赖配置
.github/workflows/sync-ai-docs-en-to-zh.yml, .github/workflows/sync-doc-pr-en-to-zh.yml
两个工作流改为检出 qiancai/ai-markdown-translator,并从其 scripts/requirements.txt 安装依赖。
脚本执行与结果路径
.github/workflows/sync-ai-docs-en-to-zh.yml, .github/workflows/sync-doc-pr-en-to-zh.yml
同步脚本改用 ai-markdown-translator/scripts 工作目录;失败报告路径及 PR 正文中的翻译器名称同步更新。

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed 标题准确概括了主要改动:将 AI Markdown translator 相关引用切换到新仓库。
Description check ✅ Passed 描述包含了变更内容、适用版本、相关链接、AI 参与情况和附加勾选项,整体符合模板要求。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/sync-ai-docs-en-to-zh.yml:
- Line 135: The workflows use mutable `@v6` action tags; pin every affected `@v6`
dependency to its corresponding full commit SHA. Update actions/setup-python in
.github/workflows/sync-ai-docs-en-to-zh.yml:135, actions/checkout in
.github/workflows/sync-doc-pr-en-to-zh.yml:44, and all other `@v6` dependencies in
the same files, preserving their intended action versions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 0fd8632e-9c37-47e6-87a7-f9617a1cce4a

📥 Commits

Reviewing files that changed from the base of the PR and between 6088948 and 0e90745.

📒 Files selected for processing (2)
  • .github/workflows/sync-ai-docs-en-to-zh.yml
  • .github/workflows/sync-doc-pr-en-to-zh.yml

path: ai-markdown-translator
persist-credentials: false

- uses: actions/setup-python@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

set -euo pipefail

printf '\n== sync-ai-docs-en-to-zh.yml around line 135 ==\n'
sed -n '120,150p' .github/workflows/sync-ai-docs-en-to-zh.yml | cat -n

printf '\n== sync-doc-pr-en-to-zh.yml around line 44 ==\n'
sed -n '30,55p' .github/workflows/sync-doc-pr-en-to-zh.yml | cat -n

printf '\n== workflow uses of actions/checkout and actions/setup-python ==\n'
rg -n "uses:\s*actions/(checkout|setup-python)@" .github/workflows -S

Repository: pingcap/docs-cn

Length of output: 4352


🏁 Script executed:

set -euo pipefail

printf '\n== pinning / zizmor references ==\n'
rg -n "zizmor|pin(n|ning)|commit SHA|full commit|actions/checkout@v6|actions/setup-python@v6" . -S

printf '\n== workflow/security related files ==\n'
git ls-files | rg '(^|/)(README|SECURITY|CONTRIBUTING|\.github/.*(yml|yaml|md)|zizmor|action).*'

Repository: pingcap/docs-cn

Length of output: 1090


将这两处工作流依赖固定到 commit SHA。

.github/workflows/sync-ai-docs-en-to-zh.yml:135actions/setup-python@v6.github/workflows/sync-doc-pr-en-to-zh.yml:44actions/checkout@v6 都还是可变标签,建议改为对应版本的完整 commit SHA;同文件里的其他 @v6 依赖也一并处理。

🧰 Tools
🪛 zizmor (1.26.1)

[error] 135-135: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

📍 Affects 2 files
  • .github/workflows/sync-ai-docs-en-to-zh.yml#L135-L135 (this comment)
  • .github/workflows/sync-doc-pr-en-to-zh.yml#L44-L44
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/sync-ai-docs-en-to-zh.yml at line 135, The workflows use
mutable `@v6` action tags; pin every affected `@v6` dependency to its corresponding
full commit SHA. Update actions/setup-python in
.github/workflows/sync-ai-docs-en-to-zh.yml:135, actions/checkout in
.github/workflows/sync-doc-pr-en-to-zh.yml:44, and all other `@v6` dependencies in
the same files, preserving their intended action versions.

Source: Linters/SAST tools

@qiancai qiancai self-assigned this Jul 19, 2026
@qiancai qiancai added translation/no-need No need to translate this PR. and removed missing-translation-status This PR does not have translation status info. labels Jul 19, 2026
@qiancai

qiancai commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator Author

/approve

@qiancai qiancai added the lgtm label Jul 19, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiancai

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Jul 19, 2026
@ti-chi-bot
ti-chi-bot Bot merged commit 3bd3e9b into pingcap:master Jul 19, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm size/S Denotes a PR that changes 10-29 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant