Skip to content

ci: add PR English check and translate AGENTS.md for Codex review#68

Merged
YuminosukeSato merged 3 commits into
mainfrom
ci/codex-review
Feb 6, 2026
Merged

ci: add PR English check and translate AGENTS.md for Codex review#68
YuminosukeSato merged 3 commits into
mainfrom
ci/codex-review

Conversation

@YuminosukeSato

Copy link
Copy Markdown
Owner

Summary

  • Add pr-language CI job that fails when PR title/body contains >30% non-ASCII characters, enforcing English-only PRs
  • Translate all AGENTS.md files (root, worker/python, internal, docs, bench) from Japanese to English
  • Add Review Guidelines sections to each AGENTS.md for OpenAI Codex automatic review integration
  • CLAUDE.md remains in Japanese (Claude Code instruction file, not read by Codex)

Test plan

  • Verify pr-language job passes on this PR (English title/body)
  • Confirm Codex picks up Review Guidelines from AGENTS.md after enabling automatic reviews
  • Disable Copilot code review in GitHub Settings > Copilot if currently enabled

🤖 Generated with Claude Code

YuminosukeSato and others added 2 commits February 6, 2026 18:05
Add pr-language job that checks PR title and body contain
primarily ASCII characters (threshold: 30% non-ASCII fails).
This enforces English-only PR descriptions for consistency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Translate root and subdirectory AGENTS.md files from Japanese
to English for Codex automatic review compatibility. Add
Review Guidelines sections for Codex to follow.

CLAUDE.md remains in Japanese as the Claude Code instruction file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 6, 2026 09:17
@github-actions github-actions Bot added documentation Improvements or additions to documentation lang/docs Documentation changes area/ci CI/CD workflows area/worker Python worker process area/bench Benchmarking labels Feb 6, 2026

Copilot AI 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.

Pull request overview

This PR enforces English-only pull requests and translates agent instruction files for automated code review integration.

Changes:

  • Adds CI job that rejects PRs with >30% non-ASCII characters in title/body
  • Translates AGENTS.md files from Japanese to English across all directories
  • Adds Review Guidelines sections to support OpenAI Codex automatic code review

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/ci.yml Adds pr-language job to enforce English-only PR titles and descriptions
AGENTS.md Translates root agent instructions to English and adds review guidelines
worker/python/AGENTS.md Translates Python worker instructions to English with review guidelines
internal/AGENTS.md Translates internal package instructions to English with review guidelines
docs/AGENTS.md Translates documentation guidelines to English with review guidelines
bench/AGENTS.md Translates benchmark instructions to English with review guidelines

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread worker/python/AGENTS.md
uv run ruff format --check .

# Type check
uv run ty check .

Copilot AI Feb 6, 2026

Copy link

Choose a reason for hiding this comment

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

The command 'ty check' appears to be incorrect. Python type checking is typically done with 'mypy' or 'pyright'. This should likely be 'uv run mypy .' or 'uv run pyright .'.

Suggested change
uv run ty check .
uv run mypy .

Copilot uses AI. Check for mistakes.
Comment thread bench/AGENTS.md
Comment on lines +20 to +23
| Metric | Target | Notes |
|--------|--------|-------|
| p50 | < 100us | Simple function call |
| p99 | < 500us | Includes GC and process overhead |

Copilot AI Feb 6, 2026

Copy link

Choose a reason for hiding this comment

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

The Markdown table has duplicate pipe characters at the start of each line. Remove the leading pipe to fix the table formatting.

Suggested change
| Metric | Target | Notes |
|--------|--------|-------|
| p50 | < 100us | Simple function call |
| p99 | < 500us | Includes GC and process overhead |
Metric | Target | Notes |
--------|--------|-------|
p50 | < 100us | Simple function call |
p99 | < 500us | Includes GC and process overhead |

Copilot uses AI. Check for mistakes.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c324cdfafd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
Comment on lines +266 to +267
if (body.length > 0 && bodyRatio > threshold) {
issues.push(`PR body contains ${(bodyRatio * 100).toFixed(0)}% non-ASCII characters. Please use English.`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Enforce language check on authored PR body text

The new body check uses bodyRatio on the full PR body, but this repository’s .github/PULL_REQUEST_TEMPLATE.md is a long ASCII template, so non-English descriptions can still pass because the template text dominates the denominator. I verified this against the current template: adding a Japanese summary to the default body keeps non-ASCII ratio well under 30%, which means the pr-language gate does not actually enforce English-only PR bodies in normal workflow.

Useful? React with 👍 / 👎.

Add GitHub Actions workflow for automated PR review using
anthropics/claude-code-action. Runs on PR open/sync and
@claude comments. Uses OAuth token (Pro/Max plan) to avoid
API usage costs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@YuminosukeSato YuminosukeSato merged commit f591022 into main Feb 6, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/bench Benchmarking area/ci CI/CD workflows area/worker Python worker process documentation Improvements or additions to documentation lang/docs Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants