Copilot Chat にプロジェクトに関する具体的な質問や、ソフトウェア全般に関する質問をすることができます。 また、Copilot Chat に、コードの記述、エラーの修正、テストの記述、およびドキュメント コードを依頼することもできます。
上記のタブを使用して、Copilot Chat を使用している環境を選択します。
一部のプロンプト例では、GitHub Web サイトの特定のコンテキストにいる必要があります。 こうしたコンテキストにアクセスする方法の詳細については、「さまざまなコンテキストで Copilot Chat に質問する」を参照してください。
ソフトウェアに関する一般的な質問を行う
Copilot Chat の一般的なソフトウェアに関する質問をすることができます。 次に例を示します。
tell me about nodejs web server frameworks
how to create an express app
what is the best way to update an npm package
リポジトリについて質問する
リポジトリについて Copilot Chat に質問することができます。 次に例を示します。
what is the purpose of this repository?
When was the most recent release?
Where is rate limiting implemented in our API?
What was the last merged PR by USERNAME
特定のファイルまたはシンボルについて質問する
特定のファイルまたはシンボルについて Copilot Chat に質問することができます。 次に例を示します。
what sorting algorithm does this function use
how are these files related
what is the purpose of this function
ナレッジ ベースについて質問する
ナレッジ ベースについて Copilot Chat に質問することができます。 次に例を示します。
How do I deploy a new application?
What's the process for creating a new REST API?
What are our best practices for logging?
特定のコード部分について質問する
特定のコード部分について Copilot Chat に質問することができます。 ファイル全体または特定の行について質問することができます。 次に例を示します。
ファイル全体について質問する場合は、次のように入力できます。
Explain this file.
How could I improve this code?
How can I test this script?
特定の行について質問する場合は、次のように入力できます。
Explain the function at the selected lines.
How could I improve this class?
Add error handling to this code.
Write a unit test for this method.
GitHub Advanced Security アラートについて質問する
GitHub Advanced Security 機能 (code scanning、secret scanning、Dependabot alerts) による organization 内のリポジトリのセキュリティ アラートについて、Copilot Chat に質問することができます。 次に例を示します。
How would I fix this alert?
How many alerts do I have on this pull request?
Which line of code is this code scanning alert referencing?
What library is affected by this Dependabot alert?
Pull request で Copilot Chat に質問する
Pull request で Copilot Chat に質問することができます。 質問は、pull request のさまざまな要素に関連している可能性があります。次に例を示します。
Pull request の変更の概要について質問することができます。
Summarize this PR for me.
Summarize the comments in this PR.
Summarize the changes in this PR.
Pull request 内の特定のファイルに加えられた変更について質問することができます。
What's the purpose of this file?
Why has this module been included?
Pull request の特定の行に加えられた変更について質問することができます。
What is "actorData" in this line?
Explain this "do..end" block.
ワークフローが失敗した理由を質問することができます。
Tell me why this job failed
Suggest a fix for this error
特定の issue またはディスカッションについて Copilot Chat に質問する
特定の issue やディスカッションについて、Copilot Chat に質問することができます。 次に例を示します。
what is the purpose of this issue?
特定のコミットについて Copilot Chat に質問する
特定のコミットについて Copilot Chat に質問することができます。 次に例を示します。
what is the purpose of this commit?
what is the expected output of this commit?
what is the best way to test this commit?