diff --git a/content/billing/managing-your-billing/charging-business-units.md b/content/billing/managing-your-billing/charging-business-units.md index 0e16eaf21377..46bd51940dc0 100644 --- a/content/billing/managing-your-billing/charging-business-units.md +++ b/content/billing/managing-your-billing/charging-business-units.md @@ -177,11 +177,10 @@ The following table illustrates how spending for each user is allocated to a cos There are a few current limitations when working with cost centers and the API: -* You **cannot** create cost centers using the API. Administrators must create them through the UI. -* Once a cost center is created in the UI, administrators can use the API to add **members** only. -* It’s **not currently possible** to add **organizations** or **repositories** to cost centers using the API. -* You **cannot** add members to cost centers through the UI. -* A single **organization**, **repository**, or **member** can only be assigned to one cost center at a time. +* There is a maximum of 250 cost centers per enterprise. +* You can add or remove up to 50 resources at a time from a cost center using the API. +* Azure subscriptions can only be added to or removed from cost centers via the UI. +* Users can only be added to or removed from cost centers via the API. ## Further reading diff --git a/content/copilot/get-started/choosing-your-enterprises-plan-for-github-copilot.md b/content/copilot/get-started/choosing-your-enterprises-plan-for-github-copilot.md index 6a4af83c66cc..9da43098d18d 100644 --- a/content/copilot/get-started/choosing-your-enterprises-plan-for-github-copilot.md +++ b/content/copilot/get-started/choosing-your-enterprises-plan-for-github-copilot.md @@ -57,11 +57,7 @@ With {% data variables.copilot.copilot_enterprise_short %}, you can create **kno With {% data variables.copilot.copilot_code-review_short %}, {% data variables.product.prodname_copilot_short %} can provide feedback on pull requests on {% data variables.product.github %}. How much you use this feature depends on the goals of your rollout. For example, if a goal is to increase velocity by accelerating approvals of pull requests, then you may be encouraging developers to use {% data variables.copilot.copilot_code-review_short %} as much as possible. -With {% data variables.copilot.copilot_enterprise_short %}, you can make {% data variables.product.prodname_copilot_short %}'s reviews more consistent across your repositories by adding **custom coding guidelines** written in natural language. {% data variables.product.prodname_copilot_short %} will give feedback based on the guidelines when it reviews code, which can increase developers' confidence in the reviews and allow you to encourage consistency in coding standards across teams. - -{% data reusables.copilot.code-review.custom-coding-guidelines-prerequisites %} - -{% data variables.copilot.copilot_enterprise_short %} also includes a higher allowance for premium requests, which include code reviews. To learn more, see [How much will we benefit from premium requests?](#how-much-will-we-benefit-from-premium-requests). +{% data variables.copilot.copilot_enterprise_short %} includes a higher allowance for premium requests, which are used by {% data variables.copilot.copilot_code-review_short %}. To learn more, see [How much will we benefit from premium requests?](#how-much-will-we-benefit-from-premium-requests). ## How much will we benefit from premium requests? diff --git a/content/copilot/how-tos/agents/copilot-code-review/configuring-coding-guidelines.md b/content/copilot/how-tos/agents/copilot-code-review/configuring-coding-guidelines.md index 8c6b61953a08..11f63bf8bd0a 100644 --- a/content/copilot/how-tos/agents/copilot-code-review/configuring-coding-guidelines.md +++ b/content/copilot/how-tos/agents/copilot-code-review/configuring-coding-guidelines.md @@ -13,7 +13,7 @@ redirect_from: - /copilot/using-github-copilot/code-review/configuring-coding-guidelines --- -{% data reusables.copilot.code-review.custom-coding-guidelines-prerequisites %} +{% data reusables.copilot.code-review.custom-coding-guidelines-prerequisites %} See [AUTOTITLE](/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review#customizing-copilots-reviews-with-custom-instructions). ## About coding guidelines diff --git a/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md b/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md index baff9bfa2e46..642baa40106f 100644 --- a/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md +++ b/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md @@ -29,13 +29,14 @@ The current functionality and availability of the two types of review is summari {% rowheaders %} -| | Review selection | Review changes | -|------------------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Available in | {% data variables.product.prodname_vscode %} | {% data variables.product.prodname_vscode %} and the {% data variables.product.github %} website | -| Premium/standard feature | Standard feature available to all {% data variables.product.prodname_copilot_short %} subscribers | Premium feature. Available with the {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %}, {% data variables.copilot.copilot_business_short %}, and {% data variables.copilot.copilot_enterprise_short %} plans. Per-person monthly quota applies. | -| Description | Initial review of a highlighted section of code with feedback and suggestions | Deeper review of all changes | -| Language support | All | All | -| Custom coding guidelines support | No | Yes, see [Customizing {% data variables.product.prodname_copilot_short %}'s reviews with coding guidelines](#customizing-copilots-reviews-with-coding-guidelines) | +| | Review selection | Review changes | +|----------------------------------|------------------|----------------| +| Available in | {% data variables.product.prodname_vscode %} | {% data variables.product.prodname_vscode %} and the {% data variables.product.github %} website | +| Premium/standard feature | Standard feature available to all {% data variables.product.prodname_copilot_short %} subscribers | Premium feature. Available with the {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %}, {% data variables.copilot.copilot_business_short %}, and {% data variables.copilot.copilot_enterprise_short %} plans. Per-person monthly quota applies. | +| Description | Initial review of a highlighted section of code with feedback and suggestions | Deeper review of all changes | +| Supported languages | All | All | +| Custom instructions support | No | Yes, see [Customizing {% data variables.product.prodname_copilot_short %}'s reviews with custom instructions](#customizing-copilots-reviews-with-custom-instructions-1) | +| Custom coding guidelines support | No | Yes, see [Customizing {% data variables.product.prodname_copilot_short %}'s reviews with coding guidelines](#customizing-copilots-reviews-with-coding-guidelines-1) | {% endrowheaders %} diff --git a/content/copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot.md b/content/copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot.md index 95619016f65f..80d91a583739 100644 --- a/content/copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot.md +++ b/content/copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot.md @@ -11,52 +11,54 @@ topics: - Copilot --- - {% webui %} -> This feature is currently in {% data variables.release-phases.public_preview %} and is subject to change. -> -{% data reusables.copilot.repository-custom-instructions-note %} They are also supported for {% data variables.copilot.copilot_coding_agent %}. -> -> This version of this article is for using repository custom instructions on the {% data variables.product.github %} website. Click the tabs above for information on using custom instructions in other environments. +> [!NOTE] This feature is currently in {% data variables.release-phases.public_preview %} and is subject to change. -For an overview of the methods you can use to customize {% data variables.copilot.copilot_chat %} responses, see [AUTOTITLE](/copilot/customizing-copilot/about-customizing-github-copilot-chat-responses?tool=webui). For information on customizing {% data variables.copilot.copilot_coding_agent %} see [AUTOTITLE](/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent). +This version of this article is for using repository custom instructions on the {% data variables.product.github %} website. Click the tabs above for information on using custom instructions in other environments. ## About repository custom instructions for {% data variables.product.prodname_copilot_short %} -{% data variables.product.prodname_copilot %} can provide chat responses that are tailored to the way your team works, the tools you use, or the specifics of your project, if you provide it with enough context to do so. Instead of repeatedly adding this contextual detail to your chat questions, you can create a file in your repository that automatically adds this information for you. The additional information is not displayed in the chat, but is available to {% data variables.product.prodname_copilot_short %} to allow it to generate higher quality responses. +{% data reusables.copilot.repository-custom-instructions-support %} +* **{% data variables.copilot.copilot_coding_agent %}** +* **{% data variables.copilot.copilot_code-review_short %}** + +{% data reusables.copilot.repository-custom-instructions-intro %} You can do this by creating a file in your repository that provides {% data variables.product.prodname_copilot_short %} with the contextual information it needs to generate higher quality responses. -The custom instructions file is also used by {% data variables.product.prodname_copilot_short %} when you assign it to an issue or ask it to create a pull request. Instructions included in this file can help {% data variables.product.prodname_copilot_short %} to work on files in a way that matches your team's working practices and conforms to coding standards for your project. See [AUTOTITLE](/copilot/using-github-copilot/coding-agent/about-assigning-tasks-to-copilot). +The custom instructions file is used for chat responses, for code review, and also by {% data variables.product.prodname_copilot_short %} when you assign it to an issue or ask it to create a pull request. Instructions included in this file can help {% data variables.product.prodname_copilot_short %} to work on files in a way that matches your team's working practices and conforms to coding standards for your project. See [AUTOTITLE](/copilot/using-github-copilot/coding-agent/about-assigning-tasks-to-copilot). ### Example {% data reusables.copilot.repository-custom-instructions-example %} +{% data reusables.copilot.repository-cust-instr-code-review %} + {% endwebui %} {% vscode %} -{% data reusables.copilot.repository-custom-instructions-note %} -> -> This version of this article is for using repository custom instructions in {% data variables.product.prodname_vscode_shortname %}. Click the tabs above for instructions on using custom instructions in other environments. +This version of this article is for using repository custom instructions in {% data variables.product.prodname_vscode_shortname %}. Click the tabs above for instructions on using custom instructions in other environments. -For an overview of the methods you can use to customize {% data variables.copilot.copilot_chat %} responses, see [AUTOTITLE](/copilot/customizing-copilot/about-customizing-github-copilot-chat-responses?tool=vscode). +## About repository custom instructions and prompt files for {% data variables.product.prodname_copilot_short %} -## About repository custom instructions and prompt files for {% data variables.copilot.copilot_chat %} +{% data reusables.copilot.repository-custom-instructions-support %} +* **{% data variables.copilot.copilot_code-review_short %}** -{% data variables.product.prodname_copilot %} can provide chat responses that are tailored to the way your team works, the tools you use, or the specifics of your project, if you provide it with enough context to do so. Instead of repeatedly adding this contextual detail to your chat questions, you can create files in your repository that automatically add this information for you. +{% data reusables.copilot.repository-custom-instructions-intro %} You can do this by creating a file in your repositories that provides {% data variables.product.prodname_copilot_short %} with the contextual information it needs to generate higher quality responses. -There are two types of files you can use to provide context and instructions to {% data variables.copilot.copilot_chat %} in {% data variables.product.prodname_vscode_shortname %}: +There are two types of files you can use to provide context and instructions to {% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_vscode_shortname %}: -* **Repository custom instructions** allow you to specify repository-wide instructions and preferences, in a single file, that apply to any conversation held in the context of the repository. -* **Prompt files** (public preview) allow you to save common prompt instructions and relevant context in Markdown files (`*.prompt.md`) that you can then reuse in your chat prompts. Prompt files are only available in {% data variables.product.prodname_vscode_shortname %}. +* **Repository custom instructions** allow you to specify repository-wide instructions and preferences, in a single file, that {% data variables.product.prodname_copilot_short %} will use when working in this repository. +* **Prompt files** (public preview) allow you to save common prompt instructions and relevant context in Markdown files (`*.prompt.md`) that you can then reuse in your {% data variables.copilot.copilot_chat_short %} prompts. Prompt files are only available in {% data variables.product.prodname_vscode_shortname %}. -While custom instructions help to add codebase-wide context to each AI workflow, prompt files let you add instructions to a specific chat interaction. +While custom instructions help to add codebase-wide context to each AI workflow, prompt files let you add instructions to a specific {% data variables.product.prodname_copilot_short %} interaction. ### Repository custom instructions example {% data reusables.copilot.repository-custom-instructions-example %} +{% data reusables.copilot.repository-cust-instr-code-review %} + ### Prompt file examples The following examples demonstrate how to use prompt files. @@ -95,31 +97,33 @@ The following examples demonstrate how to use prompt files. {% visualstudio %} -> This feature is currently in {% data variables.release-phases.public_preview %} and is subject to change. -> -{% data reusables.copilot.repository-custom-instructions-note %} -> -> This version of this article is for using repository custom instructions in {% data variables.product.prodname_vs %}. Click the tabs above for instructions on using custom instructions in other environments. +> [!NOTE] This feature is currently in {% data variables.release-phases.public_preview %} and is subject to change. -For an overview of the methods you can use to customize {% data variables.copilot.copilot_chat %} responses, see [AUTOTITLE](/copilot/customizing-copilot/about-customizing-github-copilot-chat-responses?tool=visualstudio). +This version of this article is for using repository custom instructions in {% data variables.product.prodname_vs %}. Click the tabs above for instructions on using custom instructions in other environments. -## About repository custom instructions for {% data variables.copilot.copilot_chat %} +## About repository custom instructions for {% data variables.product.prodname_copilot_short %} + +{% data reusables.copilot.repository-custom-instructions-support %} +* **{% data variables.copilot.copilot_code-review_short %}** -{% data variables.product.prodname_copilot %} can provide chat responses that are tailored to the way your team works, the tools you use, or the specifics of your project, if you provide it with enough context to do so. Instead of repeatedly adding this contextual detail to your chat questions, you can create a file in your repository that automatically adds this information for you. The additional information is not displayed in the chat, but is available to {% data variables.product.prodname_copilot_short %} to allow it to generate higher quality responses. +{% data reusables.copilot.repository-custom-instructions-intro %} You can do this by creating a file in your repositories that provides {% data variables.product.prodname_copilot_short %} with the contextual information it needs to generate higher quality responses. ### Example {% data reusables.copilot.repository-custom-instructions-example %} +{% data reusables.copilot.repository-cust-instr-code-review %} + {% endvisualstudio %} ## Prerequisites for repository custom instructions -* A custom instructions file (see the instructions below). +* You must have a custom instructions file (see the instructions below). {% webui %} * Your personal choice of whether to use custom instructions must be set to enabled. This is enabled by default. See [Enabling or disabling repository custom instructions](#enabling-or-disabling-repository-custom-instructions) later in this article. + * During the {% data variables.release-phases.public_preview %}, if you're using a {% data variables.copilot.copilot_business_short %} {% ifversion ghec %}or {% data variables.copilot.copilot_enterprise_short %}{% endif %} plan, the organization {% ifversion ghec %}or enterprise{% endif %} that provides your plan must have the **Opt in to preview features** setting enabled. See [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization){% ifversion ghec %} and [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#copilot-in-githubcom){% endif %}. {% endwebui %} @@ -158,15 +162,15 @@ Did you successfully add a custom instructions file to your repository? ## Writing effective repository custom instructions -The instructions you add to the `.github/copilot-instructions.md` file should be short, self-contained statements that add context or relevant information to supplement users' chat questions. +The instructions you add to the `.github/copilot-instructions.md` file should be short, self-contained statements provide {% data variables.product.prodname_copilot_short %} with relevant information to help it work in this repository. -You should also consider the size and complexity of your repository. The following types of instructions may work for a small repository with only a few contributors, but for a large and diverse repository, they may cause problems with other areas of {% data variables.product.prodname_copilot_short %}: +You should also consider the size and complexity of your repository. The following types of instructions may work for a small repository with only a few contributors, but for a large and diverse repository, **these may cause problems**: * Requests to refer to external resources when formulating a response * Instructions to answer in a particular style * Requests to always respond with a certain level of detail -For example, the following instructions may not have the intended results: +For example, the following instructions **may not have the intended results**: ```markdown Always conform to the coding styles defined in styleguide.md in repo my-org/my-repo when generating code. @@ -180,9 +184,9 @@ Answer all questions in less than 1000 characters, and words of no more than 12 ## Repository custom instructions in use -{% webui %} +The instructions in the `.github/copilot-instructions.md` file are available for use by {% data variables.copilot.copilot_chat_short %} as soon as you save the file. The complete set of instructions will be automatically added to requests that you submit to {% data variables.product.prodname_copilot_short %} in the context of that repository. For example, they are added to the prompt you submit to {% data variables.copilot.copilot_chat_short %}. -The instructions in the `.github/copilot-instructions.md` file are available for use by {% data variables.copilot.copilot_chat_short %} as soon as you save the file. The complete set of instructions will be automatically added to chat prompts that relate to the repository containing the instructions file. +{% webui %} In {% data variables.copilot.copilot_chat_short %}'s immersive view ([github.com/copilot](https://github.com/copilot)), you can start a conversation that uses repository custom instructions by adding, as an attachment, the repository that contains the instructions file. @@ -214,17 +218,24 @@ You can click the reference to open the file. ## Enabling or disabling repository custom instructions -You can choose whether or not to have custom instructions added to your chat questions. +You can choose whether or not you want {% data variables.product.prodname_copilot_short %} to use repository-based custom instructions. + +### Enabling or disabling custom instructions for {% data variables.copilot.copilot_chat_short %} + +Custom instructions are enabled for {% data variables.copilot.copilot_chat_short %} by default but you can disable, or re-enable, them at any time. This applies to your own use of {% data variables.copilot.copilot_chat_short %} and does not affect other users. {% webui %} +1. On {% data variables.product.prodname_dotcom_the_website %}, do one of the following: + * Go to a repository with a custom instructions file and open the assistive chat panel. + * Go to the immersive view of {% data variables.copilot.copilot_chat_short %} ([github.com/copilot](https://github.com/copilot)) and attach a repository that contains a custom instructions file. 1. Click the {% octicon "kebab-horizontal" aria-label="Conversation options" %} button at the top of the Chat panel, or the top right of the immersive page. 1. Click **Disable custom instructions** or **Enable custom instructions**. > [!NOTE] - > In immersive mode, you will only see these options if you have attached a repository that contains a custom instructions file. + > You will only see these options in the context of a repository that contains a custom instructions file. -Your choice persists until you change it. +Your choice persists, for all repositories containing a custom instructions file, until you change it. {% endwebui %} @@ -247,6 +258,15 @@ Your choice persists until you change it. {% endvisualstudio %} +### Enabling or disabling custom instructions for {% data variables.copilot.copilot_code-review_short %} + +Custom instructions are enabled for {% data variables.copilot.copilot_code-review_short %} by default but you can disable, or re-enable, them in the repository settings on {% data variables.product.prodname_dotcom_the_website %}. This applies to {% data variables.product.prodname_copilot_short %}'s use of custom instructions for all code reviews it performs in this repository. + +{% data reusables.repositories.navigate-to-repo %} +{% data reusables.repositories.sidebar-settings %} +1. In the "Code & automation" section of the sidebar, click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} {% data variables.product.prodname_copilot_short %}**, then **Code review**. +1. Toggle the “Use custom instructions when reviewing pull requests” option on or off. + {% vscode %} ## Enabling and using prompt files diff --git a/data/reusables/copilot/code-review/custom-coding-guidelines-prerequisites.md b/data/reusables/copilot/code-review/custom-coding-guidelines-prerequisites.md index 70057ab48a80..53034f2a992f 100644 --- a/data/reusables/copilot/code-review/custom-coding-guidelines-prerequisites.md +++ b/data/reusables/copilot/code-review/custom-coding-guidelines-prerequisites.md @@ -1 +1,3 @@ > [!NOTE] The custom coding guidelines feature is only available with the {% data variables.copilot.copilot_enterprise_short %} plan, and is currently limited to selected customers. +> +> This feature will be deprecated in favor of using {% data variables.product.prodname_copilot_short %} custom instructions to customize {% data variables.copilot.copilot_code-review_short %}. diff --git a/data/reusables/copilot/code-review/custom-instructions-information.md b/data/reusables/copilot/code-review/custom-instructions-information.md index 90c8ffbdb162..256b7e39e4d4 100644 --- a/data/reusables/copilot/code-review/custom-instructions-information.md +++ b/data/reusables/copilot/code-review/custom-instructions-information.md @@ -1,13 +1,9 @@ > [!NOTE] > Custom instructions for {% data variables.copilot.copilot_code-review_short %} are in {% data variables.release-phases.public_preview %} and are subject to change. > -> This feature is available with the {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %} {% data variables.copilot.copilot_business_short %}, and {% data variables.copilot.copilot_enterprise_short %} plan. -> > During the {% data variables.release-phases.public_preview %}, if you're using a {% data variables.copilot.copilot_business_short %} or {% data variables.copilot.copilot_enterprise_short %} plan, the organization or enterprise that provides your plan must have the **Opt in to preview features** setting enabled. See [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization) or [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#copilot-in-githubcom) -Customize {% data variables.copilot.copilot_code-review_short %} behavior by adding a repository custom instructions file. To do this, create a `.github/copilot-instructions.md` file in your repository and add natural language text that you want {% data variables.product.prodname_copilot_short %} to consider when reviewing code. This is the same `copilot-instructions.md` used by {% data variables.copilot.copilot_chat_short %}. See [AUTOTITLE](/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot). - -To enable or disable custom instructions for code review, go to your repository’s settings, then navigate to **Code Review** under **Copilot**, and toggle the “Use custom instructions when reviewing pull requests” option. +You can customize {% data variables.copilot.copilot_code-review_short %} by adding a `.github/copilot-instructions.md` file in your repository containing information that you want {% data variables.product.prodname_copilot_short %} to consider when reviewing code. This is the same `copilot-instructions.md` used by {% data variables.copilot.copilot_chat_short %}. See [AUTOTITLE](/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot). ### Example diff --git a/data/reusables/copilot/custom-instructions-reference.md b/data/reusables/copilot/custom-instructions-reference.md index 6f6e46ac3be8..05564361b9f5 100644 --- a/data/reusables/copilot/custom-instructions-reference.md +++ b/data/reusables/copilot/custom-instructions-reference.md @@ -1,3 +1 @@ -The instructions in the `.github/copilot-instructions.md` file are available for use by {% data variables.copilot.copilot_chat_short %} as soon as you save the file. The complete set of instructions will be automatically attached to requests that you submit in either the {% data variables.copilot.copilot_chat_short %} view, or in inline chat. - Custom instructions are not visible in the Chat view or inline chat, but you can verify that they are being used by {% data variables.product.prodname_copilot_short %} by looking at the References list of a response in the Chat view. If custom instructions were added to the prompt that was sent to the model, the `.github/copilot-instructions.md` file is listed as a reference. You can click the reference to open the file. diff --git a/data/reusables/copilot/policies-for-dotcom.md b/data/reusables/copilot/policies-for-dotcom.md index 4c26aa1174d3..54faa129a7a2 100644 --- a/data/reusables/copilot/policies-for-dotcom.md +++ b/data/reusables/copilot/policies-for-dotcom.md @@ -2,4 +2,4 @@ * **Opt in to preview features:** If enabled, users can test new {% data variables.product.prodname_copilot_short %} features that are not yet generally available. Be aware that previews of features may have flaws, and the features may be changed or discontinued at any time. Current previews of {% data variables.product.prodname_copilot_short %} features include: * {% data variables.copilot.copilot_spaces %}. See [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces). - * Repository custom instructions for {% data variables.copilot.copilot_code-review_short %}. See [Customizing {% data variables.product.prodname_copilot_short %}'s reviews with custom instructions](/copilot/using-github-copilot/code-review/using-copilot-code-review#customizing-copilots-reviews-with-custom-instructions). + * Repository custom instructions for {% data variables.copilot.copilot_code-review_short %}. See [AUTOTITLE](/copilot/customizing-copilot/about-customizing-github-copilot-chat-responses). diff --git a/data/reusables/copilot/repository-cust-instr-code-review.md b/data/reusables/copilot/repository-cust-instr-code-review.md new file mode 100644 index 000000000000..434dd2846399 --- /dev/null +++ b/data/reusables/copilot/repository-cust-instr-code-review.md @@ -0,0 +1 @@ +For examples of custom instructions used to configure {% data variables.copilot.copilot_code-review_short %}, see [AUTOTITLE](/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review?tool=webui#customizing-copilots-reviews-with-custom-instructions). diff --git a/data/reusables/copilot/repository-custom-instructions-example.md b/data/reusables/copilot/repository-custom-instructions-example.md index b6ed12efe81e..9795c8022d72 100644 --- a/data/reusables/copilot/repository-custom-instructions-example.md +++ b/data/reusables/copilot/repository-custom-instructions-example.md @@ -1,4 +1,4 @@ -This example of a `.github/copilot-instructions.md` file contains three instructions that will be added to all chat questions. +This example of a `.github/copilot-instructions.md` file contains three instructions for {% data variables.product.prodname_copilot_short %}. ```markdown We use Bazel for managing our Java dependencies, not Maven, so when talking about Java packages, always give me instructions and code samples that use Bazel. diff --git a/data/reusables/copilot/repository-custom-instructions-intro.md b/data/reusables/copilot/repository-custom-instructions-intro.md new file mode 100644 index 000000000000..5cbbd6c368ef --- /dev/null +++ b/data/reusables/copilot/repository-custom-instructions-intro.md @@ -0,0 +1 @@ +You can configure {% data variables.product.prodname_copilot %} to generate responses that are tailored to the way your team works, the tools you use, or the specifics of your project. diff --git a/data/reusables/copilot/repository-custom-instructions-note.md b/data/reusables/copilot/repository-custom-instructions-note.md deleted file mode 100644 index 9b8d70873903..000000000000 --- a/data/reusables/copilot/repository-custom-instructions-note.md +++ /dev/null @@ -1 +0,0 @@ -> [!NOTE] Repository custom instructions are currently supported for {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vs %}, {% data variables.product.prodname_vscode_shortname %} and on the {% data variables.product.github %} website. diff --git a/data/reusables/copilot/repository-custom-instructions-support.md b/data/reusables/copilot/repository-custom-instructions-support.md new file mode 100644 index 000000000000..47b28cc99c0d --- /dev/null +++ b/data/reusables/copilot/repository-custom-instructions-support.md @@ -0,0 +1,2 @@ +Repository custom instructions are currently supported for: +* **{% data variables.copilot.copilot_chat_short %}** in {% data variables.product.prodname_vs %}, {% data variables.product.prodname_vscode_shortname %} and on the {% data variables.product.github %} website