1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Copilot: Add new chat prompts that will use the API skill (#52030)

Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com>
This commit is contained in:
hubwriter
2024-08-29 19:31:36 +01:00
committed by GitHub
parent 6630d15813
commit c118801035
4 changed files with 19 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@@ -27,7 +27,9 @@ After you index a repository it is automatically re-indexed every time a change
1. On {% data variables.product.prodname_dotcom_the_website %}, browse to the repository you want to index. 1. On {% data variables.product.prodname_dotcom_the_website %}, browse to the repository you want to index.
1. On any page, click the **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}** icon in the upper-right corner. 1. On any page, click the **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}** icon in the upper-right corner.
The indexing status of the repository is displayed near top of the {% data variables.product.prodname_copilot_short %} Chat panel. If the repository has been indexed, this is shown near top of the {% data variables.product.prodname_copilot_short %} Chat panel.
![Screenshot showing 'Indexed for improved understanding and accuracy' highlighted with a dark orange outline.](/assets/images/help/copilot/indexed-repo.png)
1. If the repository has not been indexed, an **Index REPOSITORY NAME** button is displayed. Click this button to start the indexing process. 1. If the repository has not been indexed, an **Index REPOSITORY NAME** button is displayed. Click this button to start the indexing process.

View File

@@ -106,19 +106,31 @@ Depending on the question you ask, and your enterprise and organization settings
{% data variables.product.prodname_copilot_short %} allows you to use natural language questions to explore repositories on {% data variables.product.prodname_dotcom %}. This can help you get a better understanding of where specific aspects of a codebase are implemented. {% data variables.product.prodname_copilot_short %} allows you to use natural language questions to explore repositories on {% data variables.product.prodname_dotcom %}. This can help you get a better understanding of where specific aspects of a codebase are implemented.
{% data reusables.copilot.go-to-copilot-page %} 1. On the {% data variables.product.prodname_dotcom %} website, go to the repository you want to chat about.
{% data reusables.copilot.ask-copilot-not-displayed %} 1. Click the **{% octicon "copilot" aria-hidden="true" %}** {% data variables.product.prodname_copilot %} icon at the top right of the page.
1. In the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and press <kbd>Enter</kbd>. The {% data variables.product.prodname_copilot_chat %} panel is displayed. To resize the panel, click and drag the top or left edge.
1. The heading at the top of the panel should read "Chatting about" followed by the name of the current repository.
If the wrong repository name is displayed, because you were previously chatting about another repository, click **All repositories** then choose the repository you want to chat about.
![Screenshot of the {% data variables.product.prodname_copilot_short %} chat panel page with "All repositories" highlighted with a dark orange outline.](/assets/images/help/copilot/copilot-chat-all-repositories.png)
1. In the "Ask {% data variables.product.prodname_copilot_short %}" box, at the bottom of the chat panel, type a question and press <kbd>Enter</kbd>.
For example, you could ask: For example, you could ask:
* When was the most recent release? * When was the most recent release?
* Where is rate limiting implemented in our API? * Where is rate limiting implemented in our API?
* How does the WidgetFactory class work? * How does the WidgetFactory class work?
* Where is the code for converting an organization member to be an outside collaborator? * Where is the code for updating a phone number?
* Where are SAT tokens generated? * Where are SAT tokens generated?
* Show the most recently updated issues assigned to USERNAME
* List open issues about SUBJECT
* What was the last merged PR by USERNAME
* What are the latest commits to the main branch by USERNAME
{% data variables.product.prodname_copilot_short %} replies in the chat panel. {% data variables.product.prodname_copilot_short %} replies in the chat panel.