Skip to content

Commit 455f2d6

Browse files
docs-botfgalind0subatoi
authored
Update OpenAPI Description (#55029)
Co-authored-by: Fernando <[email protected]> Co-authored-by: Ben Ahmady <[email protected]>
1 parent c335cd6 commit 455f2d6

35 files changed

+6538
-2741
lines changed

content/rest/copilot/copilot-metrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ topics:
99
- API
1010
autogenerated: rest
1111
allowTitleToDifferFromFilename: true
12+
redirect_from:
13+
- /rest/copilot/copilot-usage
1214
---
1315

1416
You can use these endpoints to get a breakdown of aggregated metrics for various {% data variables.product.prodname_copilot %} features. The API includes:
@@ -18,8 +20,6 @@ You can use these endpoints to get a breakdown of aggregated metrics for various
1820
* Breakdowns by language and IDE
1921
* The option to view metrics for an enterprise, organization, or team
2022

21-
If you currently use the [AUTOTITLE](/rest/copilot/copilot-usage), we recommend migrating to these endpoints as soon as possible.
22-
2323
For help getting started, see [AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/analyzing-usage-over-time-with-the-copilot-metrics-api).
2424

2525
{% data reusables.copilot.metrics-api-ghecom %}

content/rest/copilot/copilot-usage.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

content/rest/copilot/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ autogenerated: rest
1111
allowTitleToDifferFromFilename: true
1212
children:
1313
- /copilot-metrics
14-
- /copilot-usage
1514
- /copilot-user-management
1615
versions:
1716
fpt: '*'

src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,6 @@
486486
"additional-permissions": true,
487487
"access": "read"
488488
},
489-
{
490-
"category": "copilot",
491-
"slug": "get-a-summary-of-copilot-usage-for-organization-members",
492-
"subcategory": "copilot-usage",
493-
"verb": "get",
494-
"requestPath": "/orgs/{org}/copilot/usage",
495-
"additional-permissions": true,
496-
"access": "read"
497-
},
498489
{
499490
"category": "orgs",
500491
"slug": "list-app-installations-for-an-organization",
@@ -684,15 +675,6 @@
684675
"additional-permissions": true,
685676
"access": "read"
686677
},
687-
{
688-
"category": "copilot",
689-
"slug": "get-a-summary-of-copilot-usage-for-a-team",
690-
"subcategory": "copilot-usage",
691-
"verb": "get",
692-
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/usage",
693-
"additional-permissions": true,
694-
"access": "read"
695-
},
696678
{
697679
"category": "orgs",
698680
"slug": "enable-or-disable-a-security-feature-for-an-organization",
@@ -921,15 +903,6 @@
921903
"additional-permissions": true,
922904
"access": "read"
923905
},
924-
{
925-
"category": "copilot",
926-
"slug": "get-a-summary-of-copilot-usage-for-organization-members",
927-
"subcategory": "copilot-usage",
928-
"verb": "get",
929-
"requestPath": "/orgs/{org}/copilot/usage",
930-
"additional-permissions": true,
931-
"access": "read"
932-
},
933906
{
934907
"category": "copilot",
935908
"slug": "get-copilot-seat-assignment-details-for-a-user",
@@ -947,15 +920,6 @@
947920
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/metrics",
948921
"additional-permissions": true,
949922
"access": "read"
950-
},
951-
{
952-
"category": "copilot",
953-
"slug": "get-a-summary-of-copilot-usage-for-a-team",
954-
"subcategory": "copilot-usage",
955-
"verb": "get",
956-
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/usage",
957-
"additional-permissions": true,
958-
"access": "read"
959923
}
960924
]
961925
},
@@ -2805,15 +2769,6 @@
28052769
"additional-permissions": false,
28062770
"access": "read"
28072771
},
2808-
{
2809-
"category": "actions",
2810-
"slug": "review-pending-deployments-for-a-workflow-run",
2811-
"subcategory": "workflow-runs",
2812-
"verb": "post",
2813-
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments",
2814-
"additional-permissions": true,
2815-
"access": "read"
2816-
},
28172772
{
28182773
"category": "actions",
28192774
"slug": "re-run-a-workflow",
@@ -4065,15 +4020,6 @@
40654020
"title": "Checks",
40664021
"displayTitle": "Repository permissions for \"Checks\"",
40674022
"permissions": [
4068-
{
4069-
"category": "actions",
4070-
"slug": "review-pending-deployments-for-a-workflow-run",
4071-
"subcategory": "workflow-runs",
4072-
"verb": "post",
4073-
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments",
4074-
"additional-permissions": true,
4075-
"access": "read"
4076-
},
40774023
{
40784024
"category": "checks",
40794025
"slug": "create-a-check-run",
@@ -5397,8 +5343,8 @@
53975343
"subcategory": "workflow-runs",
53985344
"verb": "post",
53995345
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments",
5400-
"additional-permissions": true,
5401-
"access": "read"
5346+
"additional-permissions": false,
5347+
"access": "write"
54025348
},
54035349
{
54045350
"category": "deployments",

src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,12 +2126,6 @@
21262126
"verb": "get",
21272127
"requestPath": "/orgs/{org}/copilot/metrics"
21282128
},
2129-
{
2130-
"slug": "get-a-summary-of-copilot-usage-for-organization-members",
2131-
"subcategory": "copilot-usage",
2132-
"verb": "get",
2133-
"requestPath": "/orgs/{org}/copilot/usage"
2134-
},
21352129
{
21362130
"slug": "get-copilot-seat-assignment-details-for-a-user",
21372131
"subcategory": "copilot-user-management",
@@ -2143,12 +2137,6 @@
21432137
"subcategory": "copilot-metrics",
21442138
"verb": "get",
21452139
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/metrics"
2146-
},
2147-
{
2148-
"slug": "get-a-summary-of-copilot-usage-for-a-team",
2149-
"subcategory": "copilot-usage",
2150-
"verb": "get",
2151-
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/usage"
21522140
}
21532141
],
21542142
"dependabot": [

src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json

Lines changed: 2 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -592,17 +592,6 @@
592592
"server-to-server": true,
593593
"additional-permissions": true
594594
},
595-
{
596-
"category": "copilot",
597-
"slug": "get-a-summary-of-copilot-usage-for-organization-members",
598-
"subcategory": "copilot-usage",
599-
"verb": "get",
600-
"requestPath": "/orgs/{org}/copilot/usage",
601-
"access": "read",
602-
"user-to-server": true,
603-
"server-to-server": true,
604-
"additional-permissions": true
605-
},
606595
{
607596
"category": "orgs",
608597
"slug": "list-app-installations-for-an-organization",
@@ -834,17 +823,6 @@
834823
"server-to-server": true,
835824
"additional-permissions": true
836825
},
837-
{
838-
"category": "copilot",
839-
"slug": "get-a-summary-of-copilot-usage-for-a-team",
840-
"subcategory": "copilot-usage",
841-
"verb": "get",
842-
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/usage",
843-
"access": "read",
844-
"user-to-server": true,
845-
"server-to-server": true,
846-
"additional-permissions": true
847-
},
848826
{
849827
"category": "orgs",
850828
"slug": "enable-or-disable-a-security-feature-for-an-organization",
@@ -1117,17 +1095,6 @@
11171095
"server-to-server": true,
11181096
"additional-permissions": true
11191097
},
1120-
{
1121-
"category": "copilot",
1122-
"slug": "get-a-summary-of-copilot-usage-for-organization-members",
1123-
"subcategory": "copilot-usage",
1124-
"verb": "get",
1125-
"requestPath": "/orgs/{org}/copilot/usage",
1126-
"access": "read",
1127-
"user-to-server": true,
1128-
"server-to-server": true,
1129-
"additional-permissions": true
1130-
},
11311098
{
11321099
"category": "copilot",
11331100
"slug": "get-copilot-seat-assignment-details-for-a-user",
@@ -1149,17 +1116,6 @@
11491116
"user-to-server": true,
11501117
"server-to-server": true,
11511118
"additional-permissions": true
1152-
},
1153-
{
1154-
"category": "copilot",
1155-
"slug": "get-a-summary-of-copilot-usage-for-a-team",
1156-
"subcategory": "copilot-usage",
1157-
"verb": "get",
1158-
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/usage",
1159-
"access": "read",
1160-
"user-to-server": true,
1161-
"server-to-server": true,
1162-
"additional-permissions": true
11631119
}
11641120
]
11651121
},
@@ -3397,17 +3353,6 @@
33973353
"server-to-server": true,
33983354
"additional-permissions": false
33993355
},
3400-
{
3401-
"category": "actions",
3402-
"slug": "review-pending-deployments-for-a-workflow-run",
3403-
"subcategory": "workflow-runs",
3404-
"verb": "post",
3405-
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments",
3406-
"access": "read",
3407-
"user-to-server": true,
3408-
"server-to-server": true,
3409-
"additional-permissions": true
3410-
},
34113356
{
34123357
"category": "actions",
34133358
"slug": "re-run-a-workflow",
@@ -4933,17 +4878,6 @@
49334878
"title": "Checks",
49344879
"displayTitle": "Repository permissions for \"Checks\"",
49354880
"permissions": [
4936-
{
4937-
"category": "actions",
4938-
"slug": "review-pending-deployments-for-a-workflow-run",
4939-
"subcategory": "workflow-runs",
4940-
"verb": "post",
4941-
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments",
4942-
"access": "read",
4943-
"user-to-server": true,
4944-
"server-to-server": true,
4945-
"additional-permissions": true
4946-
},
49474881
{
49484882
"category": "checks",
49494883
"slug": "create-a-check-run",
@@ -6556,10 +6490,10 @@
65566490
"subcategory": "workflow-runs",
65576491
"verb": "post",
65586492
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments",
6559-
"access": "read",
6493+
"access": "write",
65606494
"user-to-server": true,
65616495
"server-to-server": true,
6562-
"additional-permissions": true
6496+
"additional-permissions": false
65636497
},
65646498
{
65656499
"category": "deployments",

src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,12 +1860,6 @@
18601860
"verb": "get",
18611861
"requestPath": "/orgs/{org}/copilot/metrics"
18621862
},
1863-
{
1864-
"slug": "get-a-summary-of-copilot-usage-for-organization-members",
1865-
"subcategory": "copilot-usage",
1866-
"verb": "get",
1867-
"requestPath": "/orgs/{org}/copilot/usage"
1868-
},
18691863
{
18701864
"slug": "get-copilot-seat-assignment-details-for-a-user",
18711865
"subcategory": "copilot-user-management",
@@ -1877,12 +1871,6 @@
18771871
"subcategory": "copilot-metrics",
18781872
"verb": "get",
18791873
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/metrics"
1880-
},
1881-
{
1882-
"slug": "get-a-summary-of-copilot-usage-for-a-team",
1883-
"subcategory": "copilot-usage",
1884-
"verb": "get",
1885-
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/usage"
18861874
}
18871875
],
18881876
"dependabot": [

src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,12 +2126,6 @@
21262126
"verb": "get",
21272127
"requestPath": "/orgs/{org}/copilot/metrics"
21282128
},
2129-
{
2130-
"slug": "get-a-summary-of-copilot-usage-for-organization-members",
2131-
"subcategory": "copilot-usage",
2132-
"verb": "get",
2133-
"requestPath": "/orgs/{org}/copilot/usage"
2134-
},
21352129
{
21362130
"slug": "get-copilot-seat-assignment-details-for-a-user",
21372131
"subcategory": "copilot-user-management",
@@ -2143,12 +2137,6 @@
21432137
"subcategory": "copilot-metrics",
21442138
"verb": "get",
21452139
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/metrics"
2146-
},
2147-
{
2148-
"slug": "get-a-summary-of-copilot-usage-for-a-team",
2149-
"subcategory": "copilot-usage",
2150-
"verb": "get",
2151-
"requestPath": "/orgs/{org}/team/{team_slug}/copilot/usage"
21522140
}
21532141
],
21542142
"dependabot": [

0 commit comments

Comments
 (0)