You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -236,3 +237,106 @@ The `/tests` slash command writes tests for existing code. If you prefer to writ
236
237
*`Add tests for a JavaScript function that should sum a list of integers`
237
238
238
239
{% endjetbrains %}
240
+
241
+
{% webui %}
242
+
243
+
Some of the example prompts require you to be in a specific context on the {% data variables.product.github %} website. For more information on how to access those contexts, see [Asking {% data variables.product.prodname_copilot_chat_short %} questions in different contexts](/copilot/using-github-copilot/asking-github-copilot-questions-in-github#asking-copilot-chat-questions-in-different-contexts).
244
+
245
+
## Ask general software questions
246
+
247
+
You can ask {% data variables.product.prodname_copilot_chat_short %} general software questions. For example:
248
+
249
+
*`tell me about nodejs web server frameworks`
250
+
*`how to create an express app`
251
+
*`what is the best way to update an npm package`
252
+
253
+
## Ask questions about a repository
254
+
255
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions about a repository. For example:
256
+
257
+
*`what is the purpose of this repository?`
258
+
*`When was the most recent release?`
259
+
*`Where is rate limiting implemented in our API?`
260
+
*`What was the last merged PR by USERNAME`
261
+
262
+
## Ask questions about a specific file or symbol
263
+
264
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions about a specific file or symbol. For example:
265
+
266
+
*`what sorting algorithm does this function use`
267
+
*`how are these files related`
268
+
*`what is the purpose of this function`
269
+
270
+
## Ask questions about a knowledge base
271
+
272
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions about a knowledge base. For example:
273
+
274
+
*`How do I deploy a new application?`
275
+
*`What's the process for creating a new REST API?`
276
+
*`What are our best practices for logging?`
277
+
278
+
## Ask questions about a specific piece of code
279
+
280
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions about a specific piece of code. You might ask a question about a whole file, or a specific line. For example:
281
+
282
+
If you are asking about a whole file, you could enter:
283
+
284
+
*`Explain this file.`
285
+
*`How could I improve this code?`
286
+
*`How can I test this script?`
287
+
288
+
If you are asking about specific lines, you could enter:
289
+
*`Explain the function at the selected lines.`
290
+
*`How could I improve this class?`
291
+
*`Add error handling to this code.`
292
+
*`Write a unit test for this method.`
293
+
294
+
## Ask questions about {% data variables.product.prodname_GH_advanced_security %} alerts
295
+
296
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions about security alerts in repositories in your organization from {% data variables.product.prodname_GH_advanced_security %} features ({% data variables.product.prodname_code_scanning %}, {% data variables.product.prodname_secret_scanning %}, and {% data variables.product.prodname_dependabot_alerts %}). For example:
297
+
298
+
*`How would I fix this alert?`
299
+
*`How many alerts do I have on this pull request?`
300
+
*`Which line of code is this {% data variables.product.prodname_code_scanning %} alert referencing?`
301
+
*`What library is affected by this {% data variables.product.prodname_dependabot %} alert?`
302
+
303
+
## Ask {% data variables.product.prodname_copilot_chat_short %} questions in a pull request
304
+
305
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions in a pull request. Your question could relate to various elements of the pull request For example:
306
+
307
+
You might ask for a summary of the changes in the pull request:
308
+
309
+
*`Summarize this PR for me.`
310
+
*`Summarize the comments in this PR.`
311
+
*`Summarize the changes in this PR.`
312
+
313
+
You might ask about the changes in a specific file in the pull request:
314
+
315
+
*`What's the purpose of this file?`
316
+
*`Why has this module been included?`
317
+
318
+
You might ask about the changes in a specific line in the pull request:
319
+
320
+
*`What is "actorData" in this line?`
321
+
*`Explain this "do..end" block.`
322
+
323
+
You might ask why a workflow failed:
324
+
325
+
*`Tell me why this job failed`
326
+
*`Suggest a fix for this error`
327
+
328
+
## Ask {% data variables.product.prodname_copilot_chat_short %} questions about a specific issue or discussion
329
+
330
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions about a specific issue or discussion. For example:
331
+
332
+
*`what is the purpose of this issue?`
333
+
334
+
## Ask {% data variables.product.prodname_copilot_chat_short %} questions about a specific commit
335
+
336
+
You can ask {% data variables.product.prodname_copilot_chat_short %} questions about a specific commit. For example:
A prompt is a request that you make to {% data variables.product.prodname_copilot %}. For example, a question that you ask {% data variables.product.prodname_copilot_chat_short %}, or a code snippet that you ask {% data variables.product.prodname_copilot_short %} to complete. In addition to your prompt, {% data variables.product.prodname_copilot_short %} uses additional context, like the code in your current file and the chat history, to generate a response.
0 commit comments