From b5390dfdd2d59203319ae502f0555609723bb8ba Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 9 Jul 2024 14:42:10 -0400 Subject: [PATCH 1/3] Perform a checkout when deploying, even from `workflow_dispatch` (#51584) --- .github/workflows/azure-prod-build-deploy.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/azure-prod-build-deploy.yml b/.github/workflows/azure-prod-build-deploy.yml index 3c468c970900..77e48861b7b6 100644 --- a/.github/workflows/azure-prod-build-deploy.yml +++ b/.github/workflows/azure-prod-build-deploy.yml @@ -52,9 +52,6 @@ jobs: uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb - name: Check out repo - # If any of the steps above fail, we'll need a checkout so we - # have access to the `.github/actions/slack-alert/action.yml` file. - if: ${{ always() && github.event_name != 'workflow_dispatch' }} uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: ref: ${{ github.sha }} From d32d1255ae1f6e5b0f9cb2c7ea451a7e041f8ed3 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Tue, 9 Jul 2024 19:59:05 +0100 Subject: [PATCH 2/3] [2024-07-09] Copilot knowledge bases in Visual Studio for Copilot Enterprise customers (preview) (#51201) --- ...features-for-copilot-in-your-enterprise.md | 2 +- .../managing-copilot-knowledge-bases.md | 2 +- ...ng-github-copilot-questions-in-your-ide.md | 20 +++++++++++++++++++ .../copilot/copilot-enterprise-features.md | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise.md b/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise.md index f3feaee8c85d..48afdd990635 100644 --- a/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise.md +++ b/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise.md @@ -39,7 +39,7 @@ You can configure any of the following policies for your enterprise: With a {% data variables.product.prodname_copilot_enterprise_short %} license, you can enable "{% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}" to provide members of your enterprise access to AI features on {% data variables.product.prodname_dotcom_the_website %}, including: * **{% data variables.product.prodname_copilot_chat %} in {% data variables.product.prodname_dotcom_the_website %}** - You can ask {% data variables.product.prodname_copilot %} coding-related questions within a chat interface on {% data variables.product.prodname_dotcom_the_website %}. You can ask general questions or questions within a specific context such as a repository, issue, file, or symbol. * **{% data variables.product.prodname_copilot_short %} pull request summaries** - {% data variables.product.prodname_copilot_short %} can generate a summary of the changes made in a pull request, as well as a list of impacted files, using natural language. This overview helps reviewers quickly understand the proposed changes. -* **{% data variables.product.prodname_copilot_short %} knowledge bases** - Organization owners can create knowledge bases consisting of Markdown documentation across one or more repositories, allowing organization members to use that documentation as context when they ask questions in {% data variables.product.prodname_copilot_chat_dotcom %} and {% data variables.product.prodname_copilot_chat %} in {% data variables.product.prodname_vscode %}. +* **{% data variables.product.prodname_copilot_short %} knowledge bases** - Organization owners can create knowledge bases consisting of Markdown documentation across one or more repositories, allowing organization members to use that documentation as context when they ask questions in {% data variables.product.prodname_copilot_chat_dotcom_short %}, {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}, and {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vs %}. If you enable "{% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}", you can also configure additional features: * **Opt in to user feedback collection** - If enabled, members of your enterprise can provide feedback after {% data variables.product.prodname_copilot_short %} generates a pull request summary, and the summary will be sent to {% data variables.product.prodname_dotcom %} for context. If disabled, members of your enterprise can still provide feedback after each {% data variables.product.prodname_copilot_chat_short %} response, and via the "Give feedback" link in conversations. diff --git a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-copilot-knowledge-bases.md b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-copilot-knowledge-bases.md index 5f346f109066..1d7c60de312f 100644 --- a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-copilot-knowledge-bases.md +++ b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-copilot-knowledge-bases.md @@ -23,7 +23,7 @@ redirect_from: ## About knowledge bases -Organization owners can create knowledge bases, bringing together Markdown documentation across one or more repositories. Organization members can then specify that knowledge base as the context for {% data variables.product.prodname_copilot_chat_dotcom_short %} and {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}. +Organization owners can create knowledge bases, bringing together Markdown documentation across one or more repositories. Organization members can then specify that knowledge base as the context for {% data variables.product.prodname_copilot_chat_dotcom_short %}, {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}, and {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vs %}. When you ask a question in {% data variables.product.prodname_copilot_chat %} with a knowledge base selected, {% data variables.product.prodname_copilot %} will search the knowledge base for relevant information and synthesize a response. diff --git a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md index c09f81823dcc..125df5ac5406 100644 --- a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md +++ b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md @@ -388,6 +388,26 @@ The skills you can use in {% data variables.product.prodname_copilot_chat_short | **Path search** | Retrieves a specific file in the default branch of the Git repository. This skill is useful when you provide the exact path of a file in the repository. | Yes | `@github What logic does user_auth.js encapsulate?` | | **Show symbol definition** | Retrieves the lines of code that define a specific code symbol (function, class, or struct) in the default branch of the Git repository. This skill is useful when you have the exact name of a symbol, and want to understand it. | Yes | `@github Write unit tests for the AuthUser method` | | **Web search** | Searches the web using the Bing search engine. This skill is useful for teaching Copilot about recent events, new developments, trends, technologies, or extremely specific, detailed, or niche subjects. | No (requires admin approval - see "[AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise)")| `@github What are some recent articles about SAT tokens securing against vulnerabilities in Node?` | +| **Knowledge base search** | Tell {% data variables.product.prodname_copilot_chat_short %} to answer a question within the context of a knowledge base. To initiate a knowledge base search, first enter `@github`, then press **#**, then select a knowledge base. | Yes | Enter `@github #`, then choose your organization's style guide knowledge base, then ask: `What is our coding convention for indentation?` | + +## Asking a question about a knowledge base (preview) + +{% note %} + +**Notes**: + +* This feature is only available if you have a {% data variables.product.prodname_copilot_enterprise_short %} subscription. +* Support for knowledge bases is currently in preview, and only available in [{% data variables.product.prodname_vs %} 2022 Preview 3](https://visualstudio.microsoft.com/vs/preview/) onwards. + +{% endnote %} + +Organization owners can create knowledge bases, grouping together Markdown documentation across one or more repositories. For more information, see "[AUTOTITLE](/copilot/github-copilot-enterprise/managing-copilot-knowledge-bases)." + +You can tell {% data variables.product.prodname_copilot_short %} to answer a question within the context of a knowledge base. + +1. At the bottom of the {% data variables.product.prodname_copilot_chat_short %} window, in the **Ask {% data variables.product.prodname_copilot_short %}: Type / for commands and # to reference** text box, type `@github`, press #, then select a knowledge base from the list. +1. In the **Type / for commands and # to reference** text box, continue your message with your question, and then press **Enter**. +1. {% data variables.product.prodname_copilot_chat_short %} will process your question and provide an answer, with citations from your knowledge base, in the chat window. {% endif %} diff --git a/data/reusables/copilot/copilot-enterprise-features.md b/data/reusables/copilot/copilot-enterprise-features.md index c9fd3e121083..299b173c6663 100644 --- a/data/reusables/copilot/copilot-enterprise-features.md +++ b/data/reusables/copilot/copilot-enterprise-features.md @@ -8,4 +8,4 @@ ### {% data variables.product.prodname_copilot_short %} knowledge bases -Knowledge bases are collections of Markdown documentation from one or more repositories. When you ask a question in {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_dotcom_the_website %} and in {% data variables.product.prodname_vscode_shortname %} you can specify a knowledge base as the context for your question. For more information, see "[AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-copilot-knowledge-bases)." +Knowledge bases are collections of Markdown documentation from one or more repositories. When you ask {% data variables.product.prodname_copilot_chat_short %} a question in {% data variables.product.prodname_dotcom_the_website %}, {% data variables.product.prodname_vscode_shortname %}, and {% data variables.product.prodname_vs %} you can specify a knowledge base as the context for your question. For more information, see "[AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-copilot-knowledge-bases)." From 3e44d2a58e452bf257fcd4e48aae08085dcd0715 Mon Sep 17 00:00:00 2001 From: Anne-Marie <102995847+am-stead@users.noreply.github.com> Date: Tue, 9 Jul 2024 21:34:16 +0100 Subject: [PATCH 3/3] Create variable name and reusable for "Copilot Secret Scanning" (#51558) --- .../copilot-secret-scanning-GHAS-license.md | 5 +++++ data/variables/secret-scanning.yml | 1 + 2 files changed, 6 insertions(+) create mode 100644 data/reusables/advanced-security/copilot-secret-scanning-GHAS-license.md diff --git a/data/reusables/advanced-security/copilot-secret-scanning-GHAS-license.md b/data/reusables/advanced-security/copilot-secret-scanning-GHAS-license.md new file mode 100644 index 000000000000..10e5e759788d --- /dev/null +++ b/data/reusables/advanced-security/copilot-secret-scanning-GHAS-license.md @@ -0,0 +1,5 @@ +{% ifversion ghec %} + +{% data variables.secret-scanning.copilot-secret-scanning %} is available as part of your {% data variables.product.prodname_advanced_security %} (GHAS) license. + +{% endif %} diff --git a/data/variables/secret-scanning.yml b/data/variables/secret-scanning.yml index 76576d8161df..417c64308a8c 100644 --- a/data/variables/secret-scanning.yml +++ b/data/variables/secret-scanning.yml @@ -9,3 +9,4 @@ user_alerts_caps: >- alerts: 'secret scanning alerts' alerts_caps: 'Secret scanning alerts' custom-pattern-regular-expression-generator: 'regular expression generator' +copilot-secret-scanning: 'Copilot Secret Scanning'