From 225e9f2dcc0f658c0287be82a24e5c19755e0331 Mon Sep 17 00:00:00 2001 From: Chad Fawcett Date: Fri, 7 Jun 2024 12:53:50 -0700 Subject: [PATCH 1/3] Revert "Give codespace read access to github/rest-api-description" (#51067) --- .devcontainer/devcontainer.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 342597bb43..4d0e0816a8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -41,11 +41,6 @@ "permissions": { "contents": "write" } - }, - "github/rest-api-description": { - "permissions": { - "contents": "read" - } } } } From 572f7aa32a6dbe67cfd3ba1d9fba11941c1b3ec2 Mon Sep 17 00:00:00 2001 From: Chad Fawcett Date: Fri, 7 Jun 2024 12:55:24 -0700 Subject: [PATCH 2/3] Clone github/rest-api-description during Codespace pre-build (#51066) --- .devcontainer/devcontainer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4d0e0816a8..aa525f00dc 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -58,6 +58,9 @@ // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "npm ci", + // Use 'updateContentCommand' to run commands to be included in Codespace pre-builds + "updateContentCommand": "git clone https://github.com/github/rest-api-description.git", + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "node", From 788efb05cc14f2b8685bc273131b17a8239aa132 Mon Sep 17 00:00:00 2001 From: Sarah Edwards Date: Fri, 7 Jun 2024 12:59:11 -0700 Subject: [PATCH 3/3] Fix Copilot usage versioning and redirect (#51048) --- .../managing-copilot-for-your-enterprise/index.md | 3 ++- ...sage.md => viewing-copilot-usage-for-your-enterprise.md} | 6 +++--- ...ng-usage-data-for-github-copilot-in-your-organization.md | 3 +++ 3 files changed, 8 insertions(+), 4 deletions(-) rename content/copilot/managing-copilot/managing-copilot-for-your-enterprise/{viewing-your-github-copilot-usage.md => viewing-copilot-usage-for-your-enterprise.md} (95%) diff --git a/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/index.md b/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/index.md index 1a1e52a0d4..4dae93f942 100644 --- a/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/index.md +++ b/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/index.md @@ -11,8 +11,9 @@ children: - /managing-policies-and-features-for-copilot-in-your-enterprise - /enabling-copilot-for-organizations-in-your-enterprise - /disabling-copilot-for-organizations-in-your-enterprise - - /viewing-your-github-copilot-usage + - /viewing-copilot-usage-for-your-enterprise - /upgrading-copilot-for-your-enterprise - /downgrading-copilot-for-your-enterprise - /canceling-copilot-for-your-enterprise --- + diff --git a/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-your-github-copilot-usage.md b/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-copilot-usage-for-your-enterprise.md similarity index 95% rename from content/copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-your-github-copilot-usage.md rename to content/copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-copilot-usage-for-your-enterprise.md index 9d9798cae2..b361d513db 100644 --- a/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-your-github-copilot-usage.md +++ b/content/copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-copilot-usage-for-your-enterprise.md @@ -1,16 +1,16 @@ --- -title: Viewing your GitHub Copilot usage +title: Viewing Copilot usage for your enterprise intro: 'You can view how many users have access to {% data variables.product.prodname_copilot %} across {% ifversion fpt %}your organization{% else %} all the organizations in your enterprise{% endif %}.' product: '{% data reusables.gated-features.copilot-billing %}' permissions: '{% ifversion fpt %}Organization admins{% else %}Enterprise owners{% endif %} can view usage for {% data variables.product.prodname_copilot %} in their {% ifversion fpt %}organization{% else %}enterprise{% endif %}.' versions: - feature: copilot + feature: copilot-enterprise type: how_to topics: - Copilot shortTitle: View usage redirect_from: - - /billing/managing-billing-for-github-copilot/viewing-your-github-copilot-usage + - /copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-your-github-copilot-usage --- {% ifversion enhanced-billing-platform %} diff --git a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization.md b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization.md index 128049452d..e4dd23960f 100644 --- a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization.md +++ b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization.md @@ -9,6 +9,7 @@ topics: - Copilot redirect_from: - /copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization + - /billing/managing-billing-for-github-copilot/viewing-your-github-copilot-usage --- ## Reviewing usage data for {% data variables.product.prodname_copilot %} in your organization @@ -36,6 +37,8 @@ You can use {% data variables.product.prodname_dotcom %}'s REST API to get detai ## Further reading +{% ifversion ghec%} +- "[AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/viewing-copilot-usage-for-your-enterprise)"{% endif %} - [{% data variables.product.prodname_copilot %} Trust Center](https://resources.github.com/copilot-trust-center) - "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/granting-access-to-copilot-for-members-of-your-organization)." - "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)"