Skip to content

chore: rename AI Markdown translator references#23307

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#23307
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

  • Chores
    • Updated automated documentation translation workflows to use the latest Markdown translation tooling.
    • Improved translation dependency installation, source-file resolution, synchronization, and failure reporting.
    • Updated generated pull request descriptions to reflect the revised translation process.

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

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The translation workflows now use qiancai/ai-markdown-translator instead of qiancai/ai-pr-translator, including checkout paths, Python dependencies, script execution directories, failure reports, and generated PR descriptions.

Changes

Translator repository migration

Layer / File(s) Summary
Translator checkout and dependency setup
.github/workflows/sync-doc-pr-zh-to-en.yml, .github/workflows/translation-cron.yml, .github/workflows/translation-zh.yaml
All three workflows check out ai-markdown-translator and install dependencies from its scripts/requirements.txt; the scheduled workflows also update AI_TRANSLATOR_REPO.
Translation execution and reporting
.github/workflows/sync-doc-pr-zh-to-en.yml, .github/workflows/translation-cron.yml, .github/workflows/translation-zh.yaml
Script paths, working directories, failure-report paths, and PR description text now reference ai-markdown-translator.

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

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the workflow reference renaming.
Description check ✅ Passed The description covers the required change summary, affected version, links, AI involvement, and branch-impact checklist.
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/translation-cron.yml:
- Line 85: Update the actions/checkout references from v6 to v7 in
.github/workflows/translation-cron.yml (line 85),
.github/workflows/sync-doc-pr-zh-to-en.yml (line 44), and
.github/workflows/translation-zh.yaml (line 76); leave actions/setup-python@v6
unchanged. Optionally pin the checkout refs to SHAs for supply-chain hardening.
🪄 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: 5a3eb10b-2b43-4339-9dcb-b722eead44cd

📥 Commits

Reviewing files that changed from the base of the PR and between c37b46c and c19b04f.

📒 Files selected for processing (3)
  • .github/workflows/sync-doc-pr-zh-to-en.yml
  • .github/workflows/translation-cron.yml
  • .github/workflows/translation-zh.yaml

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

What are the latest major versions of actions/setup-python and actions/checkout?

💡 Result:

As of July 19, 2026, the latest major versions for these GitHub Actions are: - actions/checkout: v7 [1][2][3] - actions/setup-python: v6 [4][5][6] The actions/checkout action released version v7.0.0 on June 18, 2026 [2][7]. The actions/setup-python action is currently at major version v6 [4][6].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'Workflow action references:\n'
rg -n 'uses: actions/(checkout|setup-python)@' .github/workflows/translation-cron.yml .github/workflows/sync-doc-pr-zh-to-en.yml .github/workflows/translation-zh.yaml

printf '\nFull surrounding context:\n'
for f in .github/workflows/translation-cron.yml .github/workflows/sync-doc-pr-zh-to-en.yml .github/workflows/translation-zh.yaml; do
  echo "---- $f ----"
  sed -n '1,140p' "$f" | nl -ba | sed -n '1,140p' | rg -n 'actions/(checkout|setup-python)@|uses:|name:'
done

Repository: pingcap/docs

Length of output: 1298


🌐 Web query:

GitHub Actions actions/checkout current major version release and actions/setup-python current major version release

💡 Result:

As of July 19, 2026, the current major version releases for the specified GitHub Actions are: 1. actions/checkout: The current major version is v7 [1][2][3]. 2. actions/setup-python: The current major version is v6 [4][5]. Note: For actions/checkout, version v7.0.0 was released on June 18, 2026 [2]. For actions/setup-python, the v6 series (with the latest release being v6.3.0 as of the most recent data) remains the current major version [5].

Citations:


Bump actions/checkout to v7; actions/setup-python@v6 is already current.
The checkout refs in .github/workflows/translation-cron.yml, .github/workflows/sync-doc-pr-zh-to-en.yml, and .github/workflows/translation-zh.yaml are still on v6. Pin these action refs to SHAs if you want supply-chain hardening.

🧰 Tools
🪛 zizmor (1.26.1)

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

(unpinned-uses)

📍 Affects 3 files
  • .github/workflows/translation-cron.yml#L85-L85 (this comment)
  • .github/workflows/sync-doc-pr-zh-to-en.yml#L44-L44
  • .github/workflows/translation-zh.yaml#L76-L76
🤖 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/translation-cron.yml at line 85, Update the
actions/checkout references from v6 to v7 in
.github/workflows/translation-cron.yml (line 85),
.github/workflows/sync-doc-pr-zh-to-en.yml (line 44), and
.github/workflows/translation-zh.yaml (line 76); leave actions/setup-python@v6
unchanged. Optionally pin the checkout refs to SHAs for supply-chain hardening.

Source: Linters/SAST tools

@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 c8064bb into pingcap:master Jul 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm size/M Denotes a PR that changes 30-99 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