| title | Getting started with prompts for {% data variables.copilot.copilot_chat_short %} on {% data variables.product.github %} | ||
|---|---|---|---|
| intro | Explore example prompts to ask {% data variables.copilot.copilot_chat_short %} about code, repositories, pull requests, and more. | ||
| versions |
|
||
| shortTitle | Get started with chat | ||
| contentType | how-tos | ||
| category |
|
{% data variables.copilot.copilot_chat_short %} responds differently depending on where you are on {% data variables.product.github %}. The following examples show the kinds of questions you can ask in each context.
- {% prompt %}tell me about nodejs web server frameworks{% endprompt %}
- {% prompt %}how can I create an Express app{% endprompt %}
- {% prompt %}what is the best way to update an npm package{% endprompt %}
Navigate to a repository to ask about its code, structure, or history.
- {% prompt %}What is the main purpose of this repo?{% endprompt %}
- {% prompt %}Where is rate limiting implemented in our API?{% endprompt %}
- {% prompt %}What was the last merged PR by USERNAME{% endprompt %}
Open a file or select specific lines, then ask about them.
- {% prompt %}Explain this file.{% endprompt %}
- {% prompt %}How could I improve this code?{% endprompt %}
- {% prompt %}Write a unit test for this method.{% endprompt %}
Navigate to a pull request to ask about changes, reviews, or failing workflows.
- {% prompt %}Summarize the changes in this PR.{% endprompt %}
- {% prompt %}What's the purpose of this file?{% endprompt %}
- {% prompt %}Tell me why this job failed{% endprompt %}
Navigate to a {% data variables.product.prodname_code_scanning %}, {% data variables.product.prodname_secret_scanning %}, or {% data variables.product.prodname_dependabot %} alert to ask about it.
- {% prompt %}How would I fix this alert?{% endprompt %}
- {% prompt %}Which line of code is this alert referencing?{% endprompt %}
Navigate to any issue, discussion, or commit and ask {% data variables.copilot.copilot_chat_short %} about it.
- {% prompt %}What is the purpose of this issue?{% endprompt %}
- {% prompt %}What is the expected output of this commit?{% endprompt %}