0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Amazon Q Developer for GitHubを日本語化する方法

0
Posted at

はじめに

みなさん、プルリクエストの自動レビューは既に導入していますか?

Amazon Q Developer for GitHubは、GitHubのプルリクエストに対して自動的にコードレビューを行い、改善提案を提供してくれるAI支援ツールです。
開発者の生産性向上とコード品質の維持に役立ちます。

現状の課題

Amazon Q Developer for GitHubをそのまま連携すると、すべてのレビューコメントや提案が英語で出力されます。

  • レビューコメントの理解に時間がかかる
  • 英語が苦手なメンバーにとって心理的なハードルが高い

当然ですが、母国語の方が理解が早いケースが多いので、できるなら日本語化したいですね。

解決案と結果

プロジェクトルールによる日本語対応

Amazon Q Developerは「プロジェクトルール」機能を使用することで、出力言語をカスタマイズできます。

設定手順

  1. リポジトリのルートディレクトリに .amazonq/rules フォルダを作成
  2. その中に language.md ファイルを作成
  3. 以下の内容を記述:
  4. この設定ファイルを main ブランチにマージする**
すべての説明・提案・レビューコメントは日本語で書いてください。

プロジェクトルールは mainブランチに配置されている必要がありますので、ご注意ください。
フィーチャーブランチのみに存在する場合、設定は反映されません。

実際の動作結果

設定後、Amazon Q Developer for GitHubは日本語でレビューコメントを提供するようになります。

amazonQDeveloperForGithub.png

まとめ

.amazonq/rules/language.md ファイルを作成し、mainブランチに配置するだけで、Amazon Q Developer for GitHubを日本語化できます。
シンプルな設定で、チーム全体の開発体験を大きく改善できる有効な方法です。

また、Amazon Q Developer for GitHubはまだプレビュー版のため、今後のさらなるバージョンアップが期待できます。

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?