diff --git a/content/copilot/how-tos/chat-with-copilot/chat-in-github.md b/content/copilot/how-tos/chat-with-copilot/chat-in-github.md deleted file mode 100644 index a979dd161015..000000000000 --- a/content/copilot/how-tos/chat-with-copilot/chat-in-github.md +++ /dev/null @@ -1,222 +0,0 @@ ---- -title: Asking GitHub Copilot questions in GitHub -shortTitle: Chat in GitHub -intro: You can use {% data variables.copilot.copilot_chat_dotcom %} to answer general questions about software development, or specific questions about the issues or code in a repository. -versions: - feature: copilot -redirect_from: - - /copilot/github-copilot-enterprise/copilot-chat-in-github/using-github-copilot-chat-in-githubcom - - /copilot/github-copilot-enterprise/copilot-chat-in-github/about-github-copilot-chat-in-githubcom - - /copilot/github-copilot-chat/copilot-chat-in-github/using-github-copilot-chat-in-githubcom - - /copilot/github-copilot-chat/copilot-chat-in-github/about-github-copilot-chat-in-githubcom - - /copilot/github-copilot-chat/copilot-chat-in-github - - /copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom - - /copilot/using-github-copilot/asking-github-copilot-questions-in-github - - /copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-github - - /copilot/how-tos/chat/asking-github-copilot-questions-in-github - - /copilot/how-tos/chat/use-chat-in-github - - /copilot/how-tos/use-chat/use-chat-in-github - - /copilot/how-tos/chat-with-copilot/use-chat-in-github -contentType: how-tos -category: - - Author and optimize with Copilot ---- - -## Introduction - -This guide describes how to use {% data variables.copilot.copilot_chat_short %} to ask questions about software development in {% data variables.product.github %}. You can ask general questions about software development, or specific questions about the issues or code in a repository. For more information, see [AUTOTITLE](/copilot/concepts/about-github-copilot-chat). - -## Submitting a question to {% data variables.copilot.copilot_chat_short %} - -You can open {% data variables.copilot.copilot_chat_short %} from any page on {% data variables.product.github %}. Certain questions may require you to be in a specific context, such as a repository, issue, or pull request. The following procedure describes how to ask a general software related question, and demonstrates the core functionality of {% data variables.copilot.copilot_chat_short %} on {% data variables.product.github %}. For more information on other scenarios, see [Asking {% data variables.copilot.copilot_chat_short %} questions in different contexts](/copilot/using-github-copilot/asking-github-copilot-questions-in-github#asking-copilot-chat-questions-in-different-contexts). - -Depending on the question you ask, and your enterprise and organization settings, {% data variables.product.prodname_copilot_short %} may respond using information based on the results of a Bing search. By using Bing search, {% data variables.product.prodname_copilot_short %} can answer a broad range of tech-related questions with up-to-date details based on information currently available on the internet. For information on how to enable or disable Bing search integration, see [AUTOTITLE](/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/managing-copilot-policies-as-an-individual-subscriber#enabling-or-disabling-web-search-for-github-copilot-chat) and [AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise). - -{% data reusables.copilot.access-chat-instructions %} -1. In the prompt box, type a question and press Enter. - - Some examples of general questions you could ask are: - - * {% prompt %}What are the advantages of the Go programming language?{% endprompt %} - * {% prompt %}What is Agile software development?{% endprompt %} - * {% prompt %}What is the most popular JavaScript framework?{% endprompt %} - * {% prompt %}Give me some examples of regular expressions.{% endprompt %} - * {% prompt %}Write a bash script to output today's date.{% endprompt %} - -{% data reusables.copilot.stop-response-generation %} -1. If {% data variables.product.prodname_copilot_short %} uses a Bing search to answer your question, you can click the **_n_ references** link at the top of the response to see the search results that {% data variables.product.prodname_copilot_short %} used to answer your question. -1. Within a conversation thread, you can ask follow-up questions. {% data variables.product.prodname_copilot_short %} will answer within the context of the conversation. For example, you could type "tell me more" to get {% data variables.product.prodname_copilot_short %} to expand on its last comment. - - You can use your initial question as a foundation for follow-up questions. A detailed foundational prompt can help {% data variables.product.prodname_copilot_short %} provide more relevant answers to your follow-up questions. For more information, see [Prompting {% data variables.copilot.copilot_chat %} to become your personal AI assistant for accessibility](https://github.blog/2023-10-09-prompting-github-copilot-chat-to-become-your-personal-ai-assistant-for-accessibility/) on the {% data variables.product.prodname_dotcom %} Blog. - -1. To start a new conversation, click {% data reusables.copilot.pencil-paper-icon %} at the top left of the page. -1. To see a list of your previous conversations, click {% octicon "sidebar-collapse" aria-label="Open sidebar" %} at the top left of the page. - -{% data variables.copilot.copilot_chat_short %} stores up to 100 of your most recent conversations. Messages within each conversation are kept for 28 days before being permanently deleted. Once a conversation has no messages left, it's automatically removed from your history. - -### Viewing and editing generated files within {% data variables.copilot.copilot_chat_short %} - -> [!NOTE] -> This feature is currently in {% data variables.release-phases.public_preview %} and subject to change. - -When you ask a question, {% data variables.product.prodname_copilot_short %} may generate one or more files as part of its response. The generated files are displayed in a side panel. You can view and edit the files in the panel, or download them to your computer. - -For example, asking {% prompt %}Generate a simple calculator using HTML, CSS, and JavaScript{% endprompt %} may generate multiple files, such as `index.html`, `styles.css`, and `script.js`. - -You can also preview how some file formats, such as Markdown, render by toggling to the "Preview" tab in the side panel. - -### Regenerating a response with a different model - -After {% data variables.product.prodname_copilot_short %} responds to your question, you can regenerate the same prompt using a different model by clicking the retry icon ({% octicon "sync" aria-label="The re-run icon" %}) below the response. The new response will use your selected model and maintain the full context of the conversation. - -You can switch between responses to compare the results from different models. - -For help deciding which model to use, see [AUTOTITLE](/copilot/reference/ai-models/model-comparison). - -### Using subthreads in a conversation - -Subthreads are branches of a conversation that are created from a point in a conversation where you asked a question. Subthreads offer more control and flexibility for exploring aspects of a topic, or new topics, all within the same thread. - -You can create and navigate through subthreads in {% data variables.copilot.copilot_chat_short %}. - -You can create a subthread in {% data variables.copilot.copilot_chat_short %} by either editing or retrying any of your questions in the conversation. - -To edit a question: - -1. Hover over the question you want to edit. -1. Click the {% octicon "pencil" aria-label="Edit message" %} button that's displayed. - - ![Screenshot of the 'Edit message' button, highlighted with a dark orange outline.](/assets/images/help/copilot/subthread-edit-button.png) - -1. Edit the question, then click **Send**. - -> [!NOTE] -> You can only edit the text of a question. You can't edit any attachments. - -To retry a question: - -1. Hover over the response to a question you want to retry. Resubmitting a question to {% data variables.product.prodname_copilot_short %} may generate a different response. -1. Click the {% octicon "sync" aria-label="Retry" %} button. - - ![Screenshot of the 'Retry' button, highlighted with a dark orange outline.](/assets/images/help/copilot/subthread-retry-button.png) - -The response to your edited or retried question is displayed in a new subthread. - -To navigate between subthreads: - -* If you have retried a question, a retry counter is displayed under the response, alongside the retry button. - - ![Screenshot of the retry counter, highlighted with a dark orange outline.](/assets/images/help/copilot/subthread-retry-counter.png) - - Click {% octicon "chevron-left" aria-label="Previous response" %} or {% octicon "chevron-right" aria-label="Next response" %} to navigate to the previous or next subthread. - -* If you have edited a question, an edit counter is added below the question. - - ![Screenshot of the edit counter, highlighted with a dark orange outline.](/assets/images/help/copilot/subthread-edit-counter.png) - - Hover over the counter to display the edit and navigation buttons, then click {% octicon "chevron-left" aria-label="Previous response" %} or {% octicon "chevron-right" aria-label="Next response" %} to navigate to the previous or next subthread. - -## Powered by skills - -{% data variables.product.prodname_copilot_short %} has access to a collection of skills to fetch data from {% data variables.product.github %}, which are dynamically selected based on the question you ask. - -You can explicitly ask {% data variables.copilot.copilot_chat_dotcom %} to use a particular skill - for example, {% prompt %}Use the Bing skill to find the latest GPT4 model from OpenAI.{% endprompt %} - -Generate a list of currently available skills by asking {% data variables.product.prodname_copilot_short %}: {% prompt %}What skills are available?{% endprompt %} - -## Asking {% data variables.copilot.copilot_chat_short %} questions in different contexts - -You can ask {% data variables.copilot.copilot_chat_short %} different types of questions depending on where you are on {% data variables.product.github %}. For example, to ask a question about a specific repository, you must be in the context of that repository. The following sections describe how to access the different contexts. - - For examples of the types of questions you can ask in different contexts, see [AUTOTITLE](/copilot/using-github-copilot/example-use-cases/example-prompts-for-copilot-chat?tool=webui). - -## Using images in {% data variables.copilot.copilot_chat_short %} - -> [!NOTE] -> * Attaching images to chat prompts is currently in {% data variables.release-phases.public_preview %} and is subject to change. - -You can attach an image to {% data variables.product.prodname_copilot_short %} and then ask about the image. For example, you can attach: - -{% data reusables.copilot.image-questions-and-file-types %} - -### Attaching an image to your chat prompt - -1. Go to {% data variables.copilot.copilot_chat_short %} ([https://github.com/copilot](https://github.com/copilot?ref_product=copilot&ref_type=engagement&ref_style=text)). -1. If you see the AI model picker at the top of the page, select one of the models that supports adding images to prompts: - - ![Screenshot of the model picker with the list of models expanded.](/assets/images/help/copilot/model-picker-copilot-immersive.png) - -1. Do one of the following: - - * Copy an image and paste it into the prompt box at the bottom of the page. - * Click {% octicon "paperclip" aria-label="Add attachment" %} in the prompt box, then click **Image**. Browse to the image file you want to attach, select it and click **Open**. - * Drag and drop an image file from your operating system's file explorer into the prompt box. - -{% data reusables.copilot.type-prompt-for-image %} - -## Accessing {% data variables.copilot.copilot_chat_short %} from the search bar - -You can ask {% data variables.product.prodname_copilot_short %} a question about an entire repository by typing your question in the main search box of the repository. - -1. Navigate to a repository on {% data variables.product.github %}. -1. Press /, or click in the main search box at the top of the page. -1. In the search box, after `repo:OWNER/REPO`, type the question you want to ask {% data variables.product.prodname_copilot_short %}. - - For example, you could enter: - - * `What does this repo do?` - * `Where is authentication implemented in this codebase?` - * `How does license file detection work in this repo?` - -1. Click **Ask {% data variables.product.prodname_copilot_short %}**. - - ![Screenshot of the main search box on {% data variables.product.prodname_dotcom %}. The drop-down option "Ask {% data variables.product.prodname_copilot_short %}" is highlighted with an orange outline.](/assets/images/help/copilot/ask-copilot-from-search-bar.png) - - The {% data variables.copilot.copilot_chat %} panel is displayed and {% data variables.product.prodname_copilot_short %} responds to your request. - -{% data reusables.copilot.stop-response-generation %} - -## Accessing {% data variables.copilot.copilot_chat_short %} from the dashboard - -You can access {% data variables.copilot.copilot_chat_short %} from the dashboard. The dashboard is your personalized overview of your activity on {% data variables.product.github %}, seen when you visit https://github.com while logged in. - -1. Go to the dashboard at [https://github.com](https://github.com). -1. In the prompt box, type a question and press Enter. - - ![Screenshot of the dashboard with the Copilot Chat prompt box.](/assets/images/help/copilot/copilot-chat-dashboard.png) - - You will be taken to {% data variables.copilot.copilot_chat_short %} where {% data variables.product.prodname_copilot_short %} responds to your request. - -> [!NOTE] -> If you don't see the {% data variables.copilot.copilot_chat_short %} prompt box on your dashboard, check that **Dashboard entry point** in enabled in your {% data variables.product.prodname_copilot %} settings. - -## Sharing {% data variables.copilot.copilot_chat_short %} conversations - -> [!NOTE] This feature is currently in {% data variables.release-phases.public_preview %} and subject to change. During the {% data variables.release-phases.public_preview %}, this feature is only available to users without enterprise or team memberships. - -Shared conversations are public or private (i.e. permission-based), depending on the referenced content, for example, a conversation about a private repository. If you share a private conversation, the recipient must have the necessary permissions to view the content. - -Once you share a conversation, the conversation and future messages will be visible to anyone with the link. - -{% data reusables.copilot.access-chat-instructions %} -1. After you submit your first prompt, a share button is displayed in the upper right corner. -1. Click **{% octicon "lock" aria-hidden="true" aria-label="lock" %} Share** to open the share dialog. - - ![Screenshot of the main search box on {% data variables.product.prodname_dotcom %}. The share button is highlighted with an orange outline.](/assets/images/help/copilot/chat-share-button.png) - -1. To share the conversation, click **Share**. This will generate a link to the conversation. -1. To copy the conversation link, click the **{% octicon "copy" aria-label="Copy conversation icon" %}** copy icon. The link is copied to your clipboard. - -## Sharing feedback about {% data variables.copilot.copilot_chat_dotcom %} - -{% data reusables.rai.copilot-dotcom-feedback-collection %} - -To give feedback about a particular {% data variables.copilot.copilot_chat_short %} response, click either the thumbs up or thumbs down icon at the bottom of each chat response. - -To give feedback about {% data variables.copilot.copilot_chat_short %} in general, click the ellipsis (**...**) at the top right of the chat panel, then click **{% octicon "comment-discussion" aria-hidden="true" aria-label="comment-discussion" %} Give feedback**. - -## Further reading - -* [AUTOTITLE](/copilot/github-copilot-chat/copilot-chat-in-ides/using-github-copilot-chat-in-your-ide) -* [AUTOTITLE](/copilot/using-github-copilot/asking-github-copilot-questions-in-github-mobile) -* [AUTOTITLE](/copilot/tutorials/using-copilot-to-explore-a-codebase) diff --git a/content/copilot/how-tos/chat-with-copilot/chat-in-mobile.md b/content/copilot/how-tos/chat-with-copilot/chat-in-mobile.md deleted file mode 100644 index 90346bd133d2..000000000000 --- a/content/copilot/how-tos/chat-with-copilot/chat-in-mobile.md +++ /dev/null @@ -1,205 +0,0 @@ ---- -title: Asking GitHub Copilot questions in GitHub Mobile -intro: You can use {% data variables.copilot.copilot_mobile %} to answer general questions about software development, or specific questions about the code in a repository{% ifversion ghec %}. With {% data variables.copilot.copilot_enterprise_short %} you can also ask specific questions about a pull request, issue, or discussion{% endif %}. -versions: - feature: copilot-chat-for-mobile -shortTitle: Chat in Mobile -redirect_from: - - /copilot/github-copilot-chat/using-github-copilot-chat-in-github-mobile - - /copilot/github-copilot-chat/copilot-chat-in-github-mobile/using-github-copilot-chat-in-github-mobile - - /copilot/github-copilot-chat/copilot-chat-in-github-mobile - - /copilot/using-github-copilot/asking-github-copilot-questions-in-github-mobile - - /copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-github-mobile - - /copilot/how-tos/chat/asking-github-copilot-questions-in-github-mobile - - /copilot/how-tos/chat/use-chat-in-mobile - - /copilot/how-tos/use-chat/use-chat-in-mobile - - /copilot/how-tos/chat-with-copilot/use-chat-in-mobile -contentType: how-tos -category: - - Author and optimize with Copilot ---- - -## Overview - -{% data variables.copilot.copilot_chat %} is a chat interface that lets you ask and receive answers to coding-related questions in {% data variables.product.prodname_mobile %}. You can also use {% data variables.copilot.copilot_chat %} on either {% data variables.product.github %} or within a supported IDE. For information about {% data variables.copilot.copilot_chat %}, see [AUTOTITLE](/copilot/concepts/about-github-copilot-chat). - -{% data variables.copilot.copilot_mobile_short %} can help you with a variety of coding-related tasks, like offering you code suggestions, providing natural language descriptions of a piece of code's functionality and purpose, generating unit tests for your code, and proposing fixes for bugs in your code. For more information, see [AUTOTITLE](/copilot/github-copilot-chat/copilot-chat-in-github-mobile/about-github-copilot-chat-in-github-mobile). - -In {% data variables.product.prodname_mobile %}, you can use {% data variables.copilot.copilot_chat_short %} to ask: - -* General software-related questions, without a particular context. See [Asking a general question about software development](#asking-a-general-question-about-software-development). -* Questions asked in the context of your project. See [Asking questions about a specific repository](#asking-exploratory-questions-about-a-repository). -* Questions about a specific file or specified lines of code within a file. See [Asking questions about specific pieces of code](#asking-questions-about-specific-pieces-of-code).{% ifversion ghec %} - -With {% data variables.copilot.copilot_enterprise_short %}, you can also ask: - -* Questions about a specific pull request. See [Asking questions about a specific pull request](#asking-questions-about-a-specific-pull-request). -* Questions about a specific issue. See [Asking questions about a specific issue](#asking-questions-about-a-specific-issue). -* Questions about a specific discussion. See [Asking questions about a specific discussion](#asking-questions-about-a-specific-discussion). -{% endif %} - -## Limitations - -The following limitations apply to {% data variables.copilot.copilot_mobile_short %}: - -* The quality of the results from {% data variables.copilot.copilot_chat_short %} may, in some situations, be degraded if very large files, or a large number of files, are used as a context for a question. -* If you reach your premium request limit on mobile, {% data variables.product.prodname_copilot_short %} will automatically fall back to a free, non-premium model. Your access to premium models will reset at the start of the next billing cycle. -* If you purchased {% data variables.copilot.copilot_pro_short %} or {% data variables.copilot.copilot_pro_plus_short %} through {% data variables.product.prodname_mobile %} (via in-app purchase on iOS or Android), you cannot enable additional premium requests. - - * To enable additional premium requests, you'll need to cancel your mobile subscription and re-subscribe on {% data variables.product.prodname_dotcom_the_website %} through a web browser. - * For help, contact {% data variables.contact.contact_support %}. - -## Prerequisites - -To use {% data variables.copilot.copilot_mobile_short %}, click the {% data variables.product.prodname_copilot_short %} icon in {% data variables.product.prodname_mobile %} to initiate a chat. If you don't already have an active {% data variables.product.prodname_copilot %} subscription, you will automatically get subscribed to {% data variables.copilot.copilot_free_short %}. - -If you are part of an organization{% ifversion ghec %} or enterprise{% endif %} with a {% data variables.copilot.copilot_for_business %}{% ifversion ghec %} or {% data variables.copilot.copilot_enterprise %}{% endif %} subscription, the organization{% ifversion ghec %} or enterprise{% endif %} owner may need to grant you access to {% data variables.copilot.copilot_mobile_short %}. For more information, see [AUTOTITLE](/copilot/github-copilot-chat/copilot-chat-in-github-mobile/enabling-github-copilot-chat-for-github-mobile). - -## Asking a general question about software development - -You can ask a general question about software development{% ifversion ghec %} that is not focused on a particular context, such as a repository{% endif %}. - -{% data reusables.copilot.chat-mobile-start-chat %} -1. If the page displays a previous conversation you had with {% data variables.product.prodname_copilot_short %}, tap {% octicon "kebab-horizontal" aria-label="kebab-horizontal" %} in the top right corner of the screen, and then tap **New conversation {% octicon "plus" aria-hidden="true" aria-label="plus" %}**. -1. At the bottom of the page, in the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and send the message. - - Some examples of general questions you could ask are: - * `What are the advantages of the Go programming language?` - * `What is Agile software development?` - * `What is the most popular JavaScript framework?` - * `Give me some examples of regular expressions.` - * `Write a bash script to output today's date.` - -1. Within a conversation thread, you can ask follow-up questions. {% data variables.product.prodname_copilot_short %} will answer within the context of the conversation. For example, you could type "tell me more" to get {% data variables.product.prodname_copilot_short %} to expand on its last comment. - - You can use your initial question as a foundation for follow-up questions. A detailed foundational prompt can help {% data variables.product.prodname_copilot_short %} provide more relevant answers to your follow-up questions. For more information, see [Prompting {% data variables.copilot.copilot_chat %} to become your personal AI assistant for accessibility](https://github.blog/2023-10-09-prompting-github-copilot-chat-to-become-your-personal-ai-assistant-for-accessibility/) on the {% data variables.product.prodname_dotcom %} Blog. - -{% data reusables.copilot.chat-mobile-conversation-buttons %} - -## Asking exploratory questions about a repository - -You can ask questions about a specific repository, to get help with understanding the code, or to get help with a specific task you're working on. - -1. In {% data variables.product.prodname_mobile %}, navigate to a repository, and tap the **{% octicon "copilot" aria-hidden="true" aria-label="Copilot" %}** icon in the bottom right corner of the screen. -1. At the bottom of the page, use the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and send the message. - - For example, if you chose the repository you are working in as the context, you could ask: - - * `What is the main purpose of this repo? What problem does it solve or what functionality does it provide?` - * `What web frameworks are used in this project?` - * `Where is rate limiting implemented in our API?` - * `How is the code organized? Explain the project architecture.` - * `Are there any specific environment requirements for working on this project?` - - > [!IMPORTANT] - > {% data variables.product.prodname_copilot_short %}'s ability to answer natural language questions like these in a repository context is improved when the repository has been indexed for semantic code search. Without indexing, {% data variables.copilot.copilot_mobile_short %} may not be able to provide the most relevant answers to your questions. - > - > You can't trigger the creation of a semantic code search index for a repository from {% data variables.product.prodname_mobile %}. Instead you must use {% data variables.copilot.copilot_chat_short %} in a web browser. See [AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/indexing-repositories-for-copilot-chat). - -{% data reusables.copilot.chat-mobile-conversation-buttons %} - -## Asking questions about specific pieces of code - -You can chat with {% data variables.product.prodname_copilot_short %} about a file in your repository, or about specific lines of code within a file. - -1. In {% data variables.product.prodname_mobile %}, navigate to a repository and open a file. -1. Do one of the following: - * To ask a question about the entire file, tap the {% data variables.product.prodname_copilot_short %} icon ({% octicon "copilot" aria-hidden="true" aria-label="copilot" %}) in the bottom right corner of the file view. - * To ask a question about specific lines within the file, select and copy the lines you want to ask about. Then tap the {% data variables.product.prodname_copilot_short %} icon ({% octicon "copilot" aria-hidden="true" aria-label="copilot" %}) and paste the copied lines in the {% data variables.copilot.copilot_chat_short %} input field. - -1. Type a question in the "Ask {% data variables.product.prodname_copilot_short %}" box at the bottom of the chat panel and send the message. - - For example, if you are asking about the entire file, you could enter: - - * `Explain this file.` - * `How could I improve this code?` - * `How can I test this script?` - - If you are asking about specific lines, you could enter: - - * `How could I improve this class?` - * `Add error handling to this code.` - * `Write a unit test for this method.` - - {% data variables.product.prodname_copilot_short %} responds to your request in the panel. - -1. You can continue the conversation by asking a follow-up question. For example, you could type "tell me more" to get {% data variables.product.prodname_copilot_short %} to expand on its last comment. - -{% ifversion ghec %} - -## Asking questions about a specific pull request - -You can ask questions about a specific pull request in a repository. - -1. In {% data variables.product.prodname_mobile %}, navigate to a pull request in a repository, and tap the **{% octicon "copilot" aria-hidden="true" aria-label="Copilot" %}** icon in the bottom right corner of the screen. -1. At the bottom of the page, use the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and send the message. - - For example, you could ask: - - * `What is the purpose of this pull request?` - * `What changes are being made in this pull request?` - * `Are there any potential issues with this pull request?` - * `What is the status of this pull request?` - - {% data variables.product.prodname_copilot_short %} responds to your request in the panel. - -1. You can continue the conversation by asking a follow-up question. For example, you could type "tell me more" to get {% data variables.product.prodname_copilot_short %} to expand on its last comment. - -## Asking questions about a specific issue - -You can ask questions about a specific issue in a repository. - -1. In {% data variables.product.prodname_mobile %}, navigate to an issue in a repository, and tap the **{% octicon "copilot" aria-hidden="true" aria-label="Copilot" %}** icon in the bottom right corner of the screen. -1. At the bottom of the page, use the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and send the message. - - For example, you could ask: - - * `What is the purpose of this issue?` - * `What is the status of this issue?` - * `What are the steps to reproduce this issue?` - * `Are there any potential solutions to this issue?` - - {% data variables.product.prodname_copilot_short %} responds to your request in the panel. - -1. You can continue the conversation by asking a follow-up question. For example, you could type "tell me more" to get {% data variables.product.prodname_copilot_short %} to expand on its last comment. - -## Asking questions about a specific discussion - -You can ask questions about a specific discussion in a repository. - -1. In {% data variables.product.prodname_mobile %}, navigate to a discussion in a repository, and tap the **{% octicon "copilot" aria-hidden="true" aria-label="Copilot" %}** icon in the bottom right corner of the screen. -1. At the bottom of the page, use the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and send the message. - - For example, you could ask: - - * `What is the purpose of this discussion?` - * `What are the main points of this discussion?` - * `What are the next steps for this discussion?` - * `Are there any potential issues with this discussion?` - - {% data variables.product.prodname_copilot_short %} responds to your request in the panel. - -1. You can continue the conversation by asking a follow-up question. For example, you could type "tell me more" to get {% data variables.product.prodname_copilot_short %} to expand on its last comment. - -{% endif %} - -## Extending {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_mobile %} - -{% data reusables.copilot.copilot-extensions.extending-copilot-chat %} - -## Hiding {% data variables.copilot.copilot_chat_short %} - -You can hide the floating {% data variables.product.prodname_copilot_short %} button in {% data variables.product.prodname_mobile %}. - -1. In the bottom menu, tap **Profile**. -1. To view your settings, tap {% octicon "gear" aria-label="The Gear icon" %}. -1. Tap **{% data variables.product.prodname_copilot_short %}**. -1. Next to "Hide {% data variables.product.prodname_copilot_short %}", use the toggle to hide {% data variables.product.prodname_copilot_short %}. - -## Sharing feedback about {% data variables.copilot.copilot_mobile %} - -To give feedback about a particular {% data variables.copilot.copilot_chat_short %} response: - -1. Tap the ellipsis (**...**) in the top right corner above the chat response you want to provide feedback on, and tap either **Like {% data variables.product.prodname_copilot_short %} response {% octicon "thumbsup" aria-label="The thumbs up icon" %}** or **Dislike {% data variables.product.prodname_copilot_short %} response {% octicon "thumbsdown" aria-label="The thumbs down icon" %}**, -1. Optionally, provide information about why you liked or disliked the response. -1. Tap **Submit**. diff --git a/content/copilot/how-tos/chat-with-copilot/get-started-with-chat.md b/content/copilot/how-tos/chat-with-copilot/get-started-with-chat-in-your-ide.md similarity index 75% rename from content/copilot/how-tos/chat-with-copilot/get-started-with-chat.md rename to content/copilot/how-tos/chat-with-copilot/get-started-with-chat-in-your-ide.md index f8840d07a099..da228350f8bd 100644 --- a/content/copilot/how-tos/chat-with-copilot/get-started-with-chat.md +++ b/content/copilot/how-tos/chat-with-copilot/get-started-with-chat-in-your-ide.md @@ -1,6 +1,6 @@ --- -title: Getting started with prompts for GitHub Copilot Chat -intro: Get an overview of ways to use {% data variables.copilot.copilot_chat_short %}. +title: Getting started with prompts for GitHub Copilot Chat in your IDE +intro: Get an overview of ways to use {% data variables.copilot.copilot_chat_short %} in your IDE. defaultTool: vscode versions: feature: copilot @@ -12,7 +12,8 @@ redirect_from: - /copilot/how-tos/chat/getting-started-with-prompts-for-copilot-chat - /copilot/how-tos/chat/get-started-with-chat - /copilot/how-tos/use-chat/get-started-with-chat -shortTitle: Get started with Chat + - /copilot/how-tos/chat-with-copilot/get-started-with-chat +shortTitle: Get started with Chat in your IDE contentType: how-tos category: - Author and optimize with Copilot @@ -24,6 +25,10 @@ Use the tabs above to select the environment where you are using {% data variabl {% vscode %} + + Open {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vscode %} {% octicon "link-external" height:16 aria-label="link-external" %} + + Some of the following example prompts use chat participants (preceded by `@`), slash commands (preceded by `/`), or chat variables (preceded by `#`). For more information on keywords in prompts, see [AUTOTITLE](/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide#using-keywords-in-your-prompt). ## Ask general software questions @@ -244,101 +249,6 @@ The `/tests` slash command writes tests for existing code. If you prefer to writ {% endjetbrains %} -{% webui %} - -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.copilot.copilot_chat_short %} questions in different contexts](/copilot/using-github-copilot/asking-github-copilot-questions-in-github#asking-copilot-chat-questions-in-different-contexts). - -## Ask general software questions - -You can ask {% data variables.copilot.copilot_chat_short %} general software questions. For example: - -* {% 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 %} - -## Ask questions about a repository - -You can ask {% data variables.copilot.copilot_chat_short %} questions about a repository. For example: - -* `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` - -## Ask questions about a specific file or symbol - -You can ask {% data variables.copilot.copilot_chat_short %} questions about a specific file or symbol. For example: - -* `what sorting algorithm does this function use` -* `how are these files related` -* `what is the purpose of this function` - -## Ask questions about a specific piece of code - -You can ask {% data variables.copilot.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: - -If you are asking about a whole file, you could enter: - -* `Explain this file.` -* `How could I improve this code?` -* `How can I test this script?` - -If you are asking about specific lines, you could enter: -* `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.` - -## Ask questions about alerts from {% data variables.product.prodname_GHAS %} products - -You can ask {% data variables.copilot.copilot_chat_short %} questions about security alerts in repositories in your organization from {% data variables.product.prodname_GHAS %} features ({% data variables.product.prodname_code_scanning %}, {% data variables.product.prodname_secret_scanning %}, and {% data variables.product.prodname_dependabot_alerts %}). For example: - -* `How would I fix this alert?` -* `How many alerts do I have on this pull request?` -* `Which line of code is this {% data variables.product.prodname_code_scanning %} alert referencing?` -* `What library is affected by this {% data variables.product.prodname_dependabot %} alert?` - -## Ask {% data variables.copilot.copilot_chat_short %} questions in a pull request - -You can ask {% data variables.copilot.copilot_chat_short %} questions in a pull request. Your question could relate to various elements of the pull request For example: - -You might ask for a summary of the changes in the pull request: - -* `Summarize this PR for me.` -* `Summarize the comments in this PR.` -* `Summarize the changes in this PR.` - -You might ask about the changes in a specific file in the pull request: - -* `What's the purpose of this file?` -* `Why has this module been included?` - -You might ask about the changes in a specific line in the pull request: - -* `What is "actorData" in this line?` -* `Explain this "do..end" block.` - -You might ask why a workflow failed: - -* `Tell me why this job failed` -* `Suggest a fix for this error` - -## Ask {% data variables.copilot.copilot_chat_short %} questions about a specific issue or discussion - -You can ask {% data variables.copilot.copilot_chat_short %} questions about a specific issue or discussion. For example: - -* `what is the purpose of this issue?` - -## Ask {% data variables.copilot.copilot_chat_short %} questions about a specific commit - -You can ask {% data variables.copilot.copilot_chat_short %} questions about a specific commit. For example: - -* `what is the purpose of this commit?` -* `what is the expected output of this commit?` -* `what is the best way to test this commit?` - -{% endwebui %} - {% eclipse %} ## Ask general software questions diff --git a/content/copilot/how-tos/chat-with-copilot/index.md b/content/copilot/how-tos/chat-with-copilot/index.md index f29125a18693..588bdbbde1f7 100644 --- a/content/copilot/how-tos/chat-with-copilot/index.md +++ b/content/copilot/how-tos/chat-with-copilot/index.md @@ -10,11 +10,9 @@ redirect_from: - /copilot/how-tos/chat - /copilot/how-tos/use-chat children: - - /get-started-with-chat + - /get-started-with-chat-in-your-ide - /chat-in-ide - /chat-in-windows-terminal - - /chat-in-github - - /chat-in-mobile contentType: how-tos --- diff --git a/content/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-github.md b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-github.md new file mode 100644 index 000000000000..760a02b00613 --- /dev/null +++ b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-github.md @@ -0,0 +1,77 @@ +--- +title: Asking GitHub Copilot questions in GitHub +shortTitle: Chat in GitHub +intro: 'Get instant answers about your code, repositories, and development questions — right from {% data variables.product.github %}.' +versions: + feature: copilot +redirect_from: + - /copilot/github-copilot-enterprise/copilot-chat-in-github/using-github-copilot-chat-in-githubcom + - /copilot/github-copilot-enterprise/copilot-chat-in-github/about-github-copilot-chat-in-githubcom + - /copilot/github-copilot-chat/copilot-chat-in-github/using-github-copilot-chat-in-githubcom + - /copilot/github-copilot-chat/copilot-chat-in-github/about-github-copilot-chat-in-githubcom + - /copilot/github-copilot-chat/copilot-chat-in-github + - /copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom + - /copilot/using-github-copilot/asking-github-copilot-questions-in-github + - /copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-github + - /copilot/how-tos/chat/asking-github-copilot-questions-in-github + - /copilot/how-tos/chat/use-chat-in-github + - /copilot/how-tos/use-chat/use-chat-in-github + - /copilot/how-tos/chat-with-copilot/use-chat-in-github + - /copilot/how-tos/chat-with-copilot/chat-in-github +contentType: how-tos +category: + - Author and optimize with Copilot +--- + +## Submitting a question to {% data variables.copilot.copilot_chat_short %} + +{% data variables.copilot.copilot_chat_short %} is available from any page on {% data variables.product.github %}. Some questions work best in a specific context, such as a repository, issue, or pull request. + +{% data reusables.copilot.access-chat-instructions %} +1. In the prompt box, type a question and press Enter. + + Some examples of general questions you could ask are: + + * {% prompt %}What are the advantages of the Go programming language?{% endprompt %} + * {% prompt %}What is Agile software development?{% endprompt %} + * {% prompt %}What is the most popular JavaScript framework?{% endprompt %} + * {% prompt %}Give me some examples of regular expressions.{% endprompt %} + * {% prompt %}Write a bash script to output today's date.{% endprompt %} + +{% data reusables.copilot.stop-response-generation %} +1. Within a conversation thread, you can ask follow-up questions. {% data variables.product.prodname_copilot_short %} will answer within the context of the conversation. + +### Viewing an editing generated files + +> [!NOTE] +> This feature is currently in {% data variables.release-phases.public_preview %} and subject to change. + +{% data variables.product.prodname_copilot_short %} may generate files as part of its response, which you can view, edit, and download from the side panel. + +### Changing and comparing AI models + +You can choose from a selection of AI models, each with different strengths. Different models have different premium request multipliers, which affect your monthly usage allowance. For details, see [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests). + +{% data reusables.copilot.model-picker-enable-alternative-models %} + +1. At the bottom of {% data variables.copilot.copilot_chat_short %}, select the **CURRENT-MODEL** {% octicon "chevron-down" aria-hidden="true" aria-label="chevron-down" %} dropdown menu, then click the AI model of your choice. + +After submitting a prompt, you can also regenerate a response using a different model by clicking the retry icon ({% octicon "sync" aria-label="The re-run icon" %}) below the response. You can switch between responses to compare results. + +### Using subthreads in a conversation + +Subthreads are branches of a conversation that let you explore aspects of a topic, or new topics, all within the same thread. + +To create a subthread, hover over one of your previous questions and click the {% octicon "pencil" aria-label="Edit message" %} button. Edit the question, then click **Send**. You cannot edit any attachments. + +The response to your edited question is displayed in a new subthread. An edit counter appears below the question. Hover over the counter, then click {% octicon "chevron-left" aria-label="Previous response" %} or {% octicon "chevron-right" aria-label="Next response" %} to navigate between subthreads. + +### Using images in {% data variables.copilot.copilot_chat_short %} + +> [!NOTE] This feature is currently in {% data variables.release-phases.public_preview %} and subject to change. + +You can attach images to your prompts by pasting, dragging, or clicking {% octicon "plus" aria-label="Add attachment" %} in the prompt box and then selecting **{% octicon "file-code" aria-hidden="true" %} Upload from computer**. Select a model that supports images from the model picker. For supported file types and example questions, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/provide-visual-inputs). + +## Further reading + +* [AUTOTITLE](/copilot/tutorials/using-copilot-to-explore-a-codebase) diff --git a/content/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-mobile.md b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-mobile.md new file mode 100644 index 000000000000..c1e8fa91ad98 --- /dev/null +++ b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-mobile.md @@ -0,0 +1,81 @@ +--- +title: Asking GitHub Copilot questions in GitHub Mobile +intro: 'Ask coding questions, explore repositories, and get help with pull requests in {% data variables.product.prodname_mobile %}.' +versions: + feature: copilot-chat-for-mobile +shortTitle: Chat in Mobile +redirect_from: + - /copilot/github-copilot-chat/using-github-copilot-chat-in-github-mobile + - /copilot/github-copilot-chat/copilot-chat-in-github-mobile/using-github-copilot-chat-in-github-mobile + - /copilot/github-copilot-chat/copilot-chat-in-github-mobile + - /copilot/using-github-copilot/asking-github-copilot-questions-in-github-mobile + - /copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-github-mobile + - /copilot/how-tos/chat/asking-github-copilot-questions-in-github-mobile + - /copilot/how-tos/chat/use-chat-in-mobile + - /copilot/how-tos/use-chat/use-chat-in-mobile + - /copilot/how-tos/chat-with-copilot/use-chat-in-mobile + - /copilot/how-tos/chat-with-copilot/chat-in-mobile +contentType: how-tos +category: + - Author and optimize with Copilot +--- + +## Limitations + +The following limitations apply to {% data variables.copilot.copilot_mobile_short %}: + +* If you're a member of an organization{% ifversion ghec %} or enterprise{% endif %}, your access to {% data variables.copilot.copilot_mobile_short %} may depend on policies set by your administrator. See [AUTOTITLE](/copilot/concepts/policies). +* If you reach your premium request limit on mobile, {% data variables.product.prodname_copilot_short %} will automatically fall back to a free, non-premium model. Your access to premium models will reset at the start of the next billing cycle. +* If you purchased {% data variables.copilot.copilot_pro_short %} or {% data variables.copilot.copilot_pro_plus_short %} through an in-app purchase on iOS or Android, you cannot enable additional premium requests. To do so, cancel your mobile subscription and re-subscribe on {% data variables.product.prodname_dotcom_the_website %} through a web browser. + +## Asking a general question about software development + +{% data reusables.copilot.chat-mobile-start-chat %} +1. At the bottom of the page, in the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and send the message. + + Some examples of general questions you could ask are: + * `What are the advantages of the Go programming language?` + * `What is Agile software development?` + * `What is the most popular JavaScript framework?` + * `Give me some examples of regular expressions.` + * `Write a bash script to output today's date.` + +1. Within a conversation thread, you can ask follow-up questions. {% data variables.product.prodname_copilot_short %} will answer within the context of the conversation. + +## Asking exploratory questions about a repository + +You can ask questions about a specific repository, to get help with understanding the code, or to get help with a specific task you're working on. + +1. In {% data variables.product.prodname_mobile %}, navigate to a repository, and tap the **{% octicon "copilot" aria-hidden="true" aria-label="Copilot" %}** icon in the bottom right corner of the screen. +1. At the bottom of the page, use the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and send the message. + + For example, if you chose the repository you are working in as the context, you could ask: + + * `What is the main purpose of this repo? What problem does it solve or what functionality does it provide?` + * `What web frameworks are used in this project?` + * `Where is rate limiting implemented in our API?` + * `How is the code organized? Explain the project architecture.` + * `Are there any specific environment requirements for working on this project?` + +## Asking questions about specific pieces of code + +You can chat with {% data variables.product.prodname_copilot_short %} about a file in your repository, or about specific lines of code within a file. + +1. In {% data variables.product.prodname_mobile %}, navigate to a repository and open a file. +1. Do one of the following: + * To ask a question about the entire file, tap the {% data variables.product.prodname_copilot_short %} icon ({% octicon "copilot" aria-hidden="true" aria-label="copilot" %}) in the bottom right corner of the file view. + * To ask a question about specific lines within the file, select and copy the lines you want to ask about. Then tap the {% data variables.product.prodname_copilot_short %} icon ({% octicon "copilot" aria-hidden="true" aria-label="copilot" %}) and paste the copied lines in the {% data variables.copilot.copilot_chat_short %} input field. + +1. Type a question in the "Ask {% data variables.product.prodname_copilot_short %}" box at the bottom of the chat panel and send the message. + +{% ifversion ghec %} + +## Asking questions about pull requests, issues, and discussions + +Navigate to any pull request, issue, or discussion in {% data variables.product.prodname_mobile %} and tap the **{% octicon "copilot" aria-hidden="true" aria-label="Copilot" %}** icon to ask {% data variables.product.prodname_copilot_short %} about it. + +{% endif %} + +## Extending {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_mobile %} + +{% data reusables.copilot.copilot-extensions.extending-copilot-chat %} diff --git a/content/copilot/how-tos/copilot-on-github/chat-with-copilot/get-started-with-chat.md b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/get-started-with-chat.md new file mode 100644 index 000000000000..382bc750b309 --- /dev/null +++ b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/get-started-with-chat.md @@ -0,0 +1,60 @@ +--- +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: + feature: copilot +shortTitle: Get started with chat +contentType: how-tos +category: + - Author and optimize with Copilot +--- + + + Chat with {% data variables.product.prodname_copilot_short %} on {% data variables.product.github %} {% octicon "link-external" height:16 aria-label:"link-external" %} + + +{% 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. + +## General software questions + +* {% 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 %} + +## Repository questions + +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 %} + +## File and code questions + +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 %} + +## Pull request questions + +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 %} + +## Security alert questions + +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 %} + +## Issue, discussion, and commit questions + +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 %} diff --git a/content/copilot/how-tos/copilot-on-github/chat-with-copilot/index.md b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/index.md new file mode 100644 index 000000000000..959cbe16b49d --- /dev/null +++ b/content/copilot/how-tos/copilot-on-github/chat-with-copilot/index.md @@ -0,0 +1,12 @@ +--- +title: 'Chat with {% data variables.product.prodname_copilot_short %}' +shortTitle: Chat with {% data variables.product.prodname_copilot_short %} +intro: 'Learn how to use {% data variables.copilot.copilot_chat_short %} on {% data variables.product.github %}.' +versions: + feature: copilot +children: + - /get-started-with-chat + - /chat-in-github + - /chat-in-mobile +contentType: how-tos +--- diff --git a/content/copilot/how-tos/copilot-on-github/index.md b/content/copilot/how-tos/copilot-on-github/index.md new file mode 100644 index 000000000000..5376112e3756 --- /dev/null +++ b/content/copilot/how-tos/copilot-on-github/index.md @@ -0,0 +1,10 @@ +--- +title: '{% data variables.product.prodname_copilot %} on {% data variables.product.github %}' +shortTitle: '{% data variables.product.prodname_copilot_short %} on {% data variables.product.github %}' +intro: 'Learn how to use {% data variables.product.prodname_copilot %} on {% data variables.product.github %}.' +versions: + feature: copilot +children: + - /chat-with-copilot +contentType: how-tos +--- diff --git a/content/copilot/how-tos/index.md b/content/copilot/how-tos/index.md index 17e5549656a8..394268b11e79 100644 --- a/content/copilot/how-tos/index.md +++ b/content/copilot/how-tos/index.md @@ -5,6 +5,7 @@ intro: Learn how to use {% data variables.product.prodname_copilot %}. versions: feature: copilot children: + - /copilot-on-github - /set-up - /get-code-suggestions - /chat-with-copilot diff --git a/content/copilot/reference/customization-cheat-sheet.md b/content/copilot/reference/customization-cheat-sheet.md index 5fc9445a25e9..0d4031370265 100644 --- a/content/copilot/reference/customization-cheat-sheet.md +++ b/content/copilot/reference/customization-cheat-sheet.md @@ -54,7 +54,7 @@ This table shows which customization features are supported in each IDE and surf | Feature | {% data variables.product.prodname_vscode_shortname %} | {% data variables.product.prodname_vs %} | JetBrains IDEs | Eclipse | Xcode | {% data variables.product.prodname_dotcom %} .com | {% data variables.copilot.copilot_cli_short %} | |---------|:-------:|:-------------:|:---------:|:-------:|:-----:|:-------:|:---:| | Custom instructions | ✓ | ✓ | P | P | P | ✓ | ✓ | -| Prompt files | ✓ | ✓ | P | ✗ | P | ✗ | ✓ | +| Prompt files | ✓ | ✓ | P | ✗ | P | ✗ | ✗ | | {% data variables.copilot.custom_agents_caps_short %} | ✓ | ✗ | P | P | P | ✓ | ✓ | | {% data variables.copilot.subagents_caps_short %} | ✓ | ✗ | P | P | P | ✗ | ✓ | | Agent skills | ✓ | ✗ | P | ✗ | ✗ | ✓ | ✓ | diff --git a/data/reusables/actions/workflows/approve-workflow-runs.md b/data/reusables/actions/workflows/approve-workflow-runs.md index 48a471022c3f..0e25ed7d449e 100644 --- a/data/reusables/actions/workflows/approve-workflow-runs.md +++ b/data/reusables/actions/workflows/approve-workflow-runs.md @@ -4,4 +4,5 @@ Maintainers with write access to a repository can use the following procedure to {% data reusables.repositories.choose-pr-review %} {% data reusables.repositories.changed-files %} 1. {% data reusables.actions.workflows.inspect-proposed-changes %} -1. If you are comfortable with running workflows on the pull request branch, return to the **{% octicon "comment-discussion" aria-hidden="true" aria-label="comment-discussion" %} Conversation** tab, and in the section "_n_ workflow(s) awaiting approval", click **Approve workflows to run**. +1. If you are comfortable with running workflows on the pull request branch, click the button in the upper right corner labeled **Awaiting approval**, which will open the **Merge status** panel. +1. Find and click **Approve workflows to run**. diff --git a/data/reusables/contributing/content-linter-rules.md b/data/reusables/contributing/content-linter-rules.md index 833bb25a8bd8..2876d58237c5 100644 --- a/data/reusables/contributing/content-linter-rules.md +++ b/data/reusables/contributing/content-linter-rules.md @@ -44,7 +44,6 @@ | GHD032 | image-alt-text-end-punctuation | Alternate text for images should end with punctuation | error | accessibility, images | | GHD033 | incorrect-alt-text-length | Images alternate text should be between 40-150 characters | error | accessibility, images | | GHD034 | frontmatter-curly-quotes | Frontmatter title and intro should not contain curly quotes | error | frontmatter, format | -| GHD035 | rai-reusable-usage | RAI articles and reusables can only reference reusable content in the data/reusables/rai directory | error | feature, rai | | GHD036 | image-no-gif | Image must not be a gif, styleguide reference: contributing/style-guide-and-content-model/style-guide.md#images | error | images | | GHD038 | expired-content | Expired content must be remediated. | warning | expired | | GHD039 | expiring-soon | Content that expires soon should be proactively addressed. | warning | expired | @@ -65,7 +64,6 @@ | GHD061 | frontmatter-hero-image | Hero image paths must be absolute, extensionless, and point to valid images in /assets/images/banner-images/ | error | frontmatter, images | | GHD062 | frontmatter-intro-links | introLinks keys must be valid keys defined in data/ui.yml under product_landing | error | frontmatter, single-source | | GHD063 | frontmatter-children | Children frontmatter paths must exist. Supports relative paths and absolute /content/ paths for cross-product inclusion. | error | frontmatter, children | -| GHD064 | rai-app-card-structure | RAI application/platform card articles must follow the required template structure | warning | feature, rai | | GHD065 | frontmatter-content-type | Content files in content-type directories must have a contentType frontmatter property that matches the parent directory. | error | frontmatter, content-type | | GHD066 | frontmatter-docs-team-metrics | Articles whose path contains a docsTeamMetrics value must include that value in their docsTeamMetrics frontmatter property. | error | frontmatter, docs-team-metrics | | [search-replace](https://github.com/OnkarRuikar/markdownlint-rule-search-replace) | deprecated liquid syntax: octicon- | The octicon liquid syntax used is deprecated. Use this format instead `octicon "" aria-label=""` | error | | diff --git a/data/reusables/copilot/access-chat-instructions.md b/data/reusables/copilot/access-chat-instructions.md index e0f8f0b88ec1..125c9f5802ca 100644 --- a/data/reusables/copilot/access-chat-instructions.md +++ b/data/reusables/copilot/access-chat-instructions.md @@ -1,3 +1 @@ -1. At the top right of any page on {% data variables.product.github %}, click the **{% octicon "copilot" aria-label="Copilot icon" %}** button next to the search bar. - - {% data variables.copilot.copilot_chat_short %} is displayed. +1. Navigate to [https://github.com/copilot](https://github.com/copilot?ref_product=copilot&ref_type=engagement&ref_style=text). diff --git a/src/content-linter/style/github-docs.ts b/src/content-linter/style/github-docs.ts index 27f39754a4ba..fbadcf7ec11a 100644 --- a/src/content-linter/style/github-docs.ts +++ b/src/content-linter/style/github-docs.ts @@ -119,11 +119,14 @@ const githubDocsConfig = { 'partial-markdown-files': true, 'yml-files': true, }, - 'rai-reusable-usage': { - // GHD035 - severity: 'error', - 'partial-markdown-files': true, - }, + // 'rai-reusable-usage': { + // // GHD035 + // // Temporarily disabled until RAI application card PRs merge. + // // Re-enable by uncommenting this block. + // // See: github/docs-internal#59611, #59934, #59936 + // severity: 'error', + // 'partial-markdown-files': true, + // }, 'image-no-gif': { // GHD036 severity: 'error', @@ -187,13 +190,14 @@ const githubDocsConfig = { 'partial-markdown-files': true, 'yml-files': true, }, - 'rai-app-card-structure': { - // GHD064 - // Disabled until RAI content migration is complete (github/docs-team#6340). - // To enable, change severity to 'error'. - severity: 'warning', - 'partial-markdown-files': false, - }, + // 'rai-app-card-structure': { + // // GHD064 + // // Temporarily disabled until RAI application card PRs merge. + // // Re-enable by uncommenting this block (use 'error' once migration is complete per github/docs-team#6340). + // // See: github/docs-internal#59611, #59934, #59936 + // severity: 'warning', + // 'partial-markdown-files': false, + // }, } export const githubDocsFrontmatterConfig = {