Skip to content

Add README (EN/JA), LICENSE, and CI badge#1

Merged
kaz29 merged 4 commits into
mainfrom
copilot/create-readme-license-files
Apr 11, 2026
Merged

Add README (EN/JA), LICENSE, and CI badge#1
kaz29 merged 4 commits into
mainfrom
copilot/create-readme-license-files

Conversation

Copilot AI commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

The repository had no meaningful documentation or license file — only a 9-byte README stub.

Changes

  • LICENSE — MIT license for kaz29
  • README.md (English, default) — Full project docs including:
    • GitHub Actions CI badge + MIT license badge
    • Features, Requirements, Installation
    • Usage examples (basic + runtime-balanced with JUnit baseline)
    • CLI options table (--workers, --log, --test-dir, --output)
    • How It Works (5-step pipeline summary)
    • Docker and local development instructions
    • Link to Japanese README
  • README.ja.md (Japanese) — Full Japanese translation of README.md with link back to English
Original prompt

ドキュメントがないので、プロジェクトの中身を確認して、README /LISENCEファイルを作成してください。
READMEは英語版をデフォルトにして、日本語版も作って相互にリンクをしてください。
あとciのバッジも付けたいです


⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Copilot AI changed the title [WIP] Add README and LICENSE files with English and Japanese versions Add README (EN/JA), LICENSE, and CI badge Mar 26, 2026
Copilot AI requested a review from kaz29 March 26, 2026 00:18
@kaz29 kaz29 requested review from Copilot and removed request for kaz29 March 26, 2026 00:19

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

Pull request overview

Adds foundational repository documentation and licensing so users can understand, install, and use phork, with bilingual README content and project badges.

Changes:

  • Add full English README.md with CI + license badges, usage examples, CLI options, and development notes
  • Add Japanese translation README.ja.md with cross-links between languages
  • Add MIT LICENSE

Reviewed changes

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

File Description
README.md Adds primary English documentation, badges, usage/examples, options, and dev/Docker sections
README.ja.md Adds Japanese translation of the README with links to/from English
LICENSE Introduces MIT license text for the project

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

Comment thread README.ja.md
Comment on lines +68 to +70
| `--log=PATH` | *(なし)* | 実行時間ベース分散に使用する過去の JUnit XML ファイルのパス |
| `--test-dir=PATH` | `tests/` | `*Test.php` ファイルをスキャンするディレクトリ |
| `--output=PATH` | `--log` と同じ | マージした JUnit XML 結果の出力先パス |

Copilot AI Mar 26, 2026

Copy link

Choose a reason for hiding this comment

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

--output のデフォルトが --log と同じパスのため、--log だけ指定して --output を省略するとベースラインの JUnit ファイルを上書きします。誤って消さないよう、注意書きや --output を常に指定する推奨を README に明記した方がよいです。

Copilot uses AI. Check for mistakes.
Comment thread README.ja.md Outdated
- **フォールバック対応** – 過去の実行データがない場合は自動的にラウンドロビン方式で分散
- **JUnit 出力のマージ** – 各ワーカーの JUnit XML レポートをひとつのファイルにまとめて出力
- **CPU コア数の自動検出** – 利用可能な CPU コア数に基づいてワーカー数を自動設定
- **PSR-4 対応** – `composer.json` を読み込み、ファイルパスと PHP クラス名を正しくマッピング

Copilot AI Mar 26, 2026

Copy link

Choose a reason for hiding this comment

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

特徴の「PSR-4 対応」は composer.json の PSR-4 マップ全般に対応している印象になりますが、現状の実装は namespace => ディレクトリが文字列 1 つの場合のみ想定で、Composer が許容する複数ディレクトリ(配列)形式は扱えません。互換性の範囲を README 側で明確にした方がよいです。

Suggested change
- **PSR-4 対応**`composer.json` を読み込み、ファイルパスと PHP クラス名を正しくマッピング
- **PSR-4 対応(単一ディレクトリのみ)**`composer.json` の PSR-4 設定から「namespace => ディレクトリ」が文字列 1 つで指定されている場合のみを対象に、ファイルパスと PHP クラス名をマッピング(複数ディレクトリ[配列]指定は未対応)

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines +65 to +67
| Option | Default | Description |
|---|---|---|
| `--workers=N` | auto (CPU cores) | Number of parallel worker processes |

Copilot AI Mar 26, 2026

Copy link

Choose a reason for hiding this comment

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

The CLI options table is formatted with a double leading pipe (|| ...) which creates an empty first column in GitHub Markdown. Use a standard table header/separator with a single leading | so the table renders as intended.

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines +70 to +71
| `--output=PATH` | same as `--log` | Path to write the merged JUnit XML result |

Copilot AI Mar 26, 2026

Copy link

Choose a reason for hiding this comment

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

--output defaults to the same path as --log, which will overwrite the baseline JUnit file if users pass --log but omit --output. The docs should call this out explicitly (or recommend always setting --output) to avoid accidental data loss.

Suggested change
| `--output=PATH` | same as `--log` | Path to write the merged JUnit XML result |
| `--output=PATH` | same as `--log` (can overwrite baseline) | Path to write the merged JUnit XML result |
> **Warning:** If you specify `--log` but omit `--output`, the merged JUnit XML will be written to the same path as `--log`, overwriting your baseline file. To avoid accidental data loss, it is recommended to always set `--output` explicitly.

Copilot uses AI. Check for mistakes.
Comment thread README.md Outdated
- **Graceful fallback** – uses round-robin distribution when no prior runtime data is available
- **Merged JUnit output** – combines per-worker JUnit XML reports into a single file
- **Auto CPU detection** – automatically picks the number of workers based on available CPU cores
- **PSR-4 aware** – reads `composer.json` to correctly map file paths to PHP class names

Copilot AI Mar 26, 2026

Copy link

Choose a reason for hiding this comment

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

The feature list claims full “PSR-4 aware” class mapping from composer.json, but the current implementation only supports a single directory string per namespace and won’t handle Composer’s allowed array-of-directories form. Consider clarifying this limitation in the docs to avoid overpromising compatibility.

Suggested change
- **PSR-4 aware** – reads `composer.json` to correctly map file paths to PHP class names
- **Basic PSR-4 mapping** – reads simple PSR-4 mappings in `composer.json` (one directory per namespace) to map file paths to PHP class names

Copilot uses AI. Check for mistakes.
Comment thread README.ja.md
Comment on lines +65 to +67
| オプション | デフォルト | 説明 |
|---|---|---|
| `--workers=N` | 自動(CPU コア数) | 並列ワーカープロセスの数 |

Copilot AI Mar 26, 2026

Copy link

Choose a reason for hiding this comment

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

The CLI options table is formatted with a double leading pipe (|| ...) which creates an empty first column in GitHub Markdown. Use a standard table header/separator with a single leading | so the table renders as intended.

Copilot uses AI. Check for mistakes.
@kaz29 kaz29 marked this pull request as ready for review March 28, 2026 05:29
kaz29 and others added 2 commits April 2, 2026 10:18
- Update copyright year to 2026 and holder to GitHub profile URL
- Add --dev flag to composer require in both READMEs
- Add database isolation section with TEST_TOKEN usage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kaz29 kaz29 merged commit 1ff8007 into main Apr 11, 2026
6 checks passed
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.

3 participants