Skip to content

Commit 883ec92

Browse files
authored
Merge pull request #5277 from github/openapi-update-9a7c6c300b875098c8db26b40f3ac9fef3b1d6548ff9b76a9b335139e2d1b08a
Update OpenAPI 3.1 Descriptions
2 parents 38adc3b + 5c0b868 commit 883ec92

16 files changed

+232
-232
lines changed

descriptions-next/api.github.com/api.github.com.2022-11-28.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15259,7 +15259,7 @@
1525915259
"/orgs/{org}/copilot/metrics": {
1526015260
"get": {
1526115261
"summary": "Get Copilot metrics for an organization",
15262-
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization.\nOnly organization owners and owners and billing managers of the parent enterprise can view Copilot metrics.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
15262+
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization.\nOnly organization owners and owners and billing managers of the parent enterprise can view Copilot metrics.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
1526315263
"tags": [
1526415264
"copilot"
1526515265
],
@@ -15274,7 +15274,7 @@
1527415274
},
1527515275
{
1527615276
"name": "since",
15277-
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.",
15277+
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.",
1527815278
"in": "query",
1527915279
"required": false,
1528015280
"schema": {
@@ -15295,11 +15295,11 @@
1529515295
},
1529615296
{
1529715297
"name": "per_page",
15298-
"description": "The number of days of metrics to display per page (max 28). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
15298+
"description": "The number of days of metrics to display per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
1529915299
"in": "query",
1530015300
"schema": {
1530115301
"type": "integer",
15302-
"default": 28
15302+
"default": 100
1530315303
}
1530415304
}
1530515305
],
@@ -23470,7 +23470,7 @@
2347023470
"/orgs/{org}/secret-scanning/pattern-configurations": {
2347123471
"get": {
2347223472
"summary": "List organization pattern configurations",
23473-
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `write:org` scope to use this endpoint.",
23473+
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `read:org` scope to use this endpoint.",
2347423474
"tags": [
2347523475
"secret-scanning"
2347623476
],
@@ -24385,7 +24385,7 @@
2438524385
"/orgs/{org}/team/{team_slug}/copilot/metrics": {
2438624386
"get": {
2438724387
"summary": "Get Copilot metrics for a team",
24388-
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization containing the team within GitHub settings.\nOnly organization owners for the organization that contains this team and owners and billing managers of the parent enterprise can view Copilot metrics for a team.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
24388+
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization containing the team within GitHub settings.\nOnly organization owners for the organization that contains this team and owners and billing managers of the parent enterprise can view Copilot metrics for a team.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
2438924389
"tags": [
2439024390
"copilot"
2439124391
],
@@ -24403,7 +24403,7 @@
2440324403
},
2440424404
{
2440524405
"name": "since",
24406-
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.",
24406+
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.",
2440724407
"in": "query",
2440824408
"required": false,
2440924409
"schema": {
@@ -24424,11 +24424,11 @@
2442424424
},
2442524425
{
2442624426
"name": "per_page",
24427-
"description": "The number of days of metrics to display per page (max 28). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
24427+
"description": "The number of days of metrics to display per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
2442824428
"in": "query",
2442924429
"schema": {
2443024430
"type": "integer",
24431-
"default": 28
24431+
"default": 100
2443224432
}
2443324433
}
2443424434
],

descriptions-next/api.github.com/api.github.com.2022-11-28.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11160,7 +11160,7 @@ paths:
1116011160
> [!NOTE]
1116111161
> This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
1116211162

11163-
The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
11163+
The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
1116411164
and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
1116511165
they must have telemetry enabled in their IDE.
1116611166

@@ -11179,7 +11179,7 @@ paths:
1117911179
- name: since
1118011180
description: Show usage metrics since this date. This is a timestamp in [ISO
1118111181
8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`).
11182-
Maximum value is 28 days ago.
11182+
Maximum value is 100 days ago.
1118311183
in: query
1118411184
required: false
1118511185
schema:
@@ -11194,12 +11194,12 @@ paths:
1119411194
type: string
1119511195
- "$ref": "#/components/parameters/page"
1119611196
- name: per_page
11197-
description: The number of days of metrics to display per page (max 28). For
11198-
more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
11197+
description: The number of days of metrics to display per page (max 100).
11198+
For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
1119911199
in: query
1120011200
schema:
1120111201
type: integer
11202-
default: 28
11202+
default: 100
1120311203
responses:
1120411204
'200':
1120511205
description: Response
@@ -17032,7 +17032,7 @@ paths:
1703217032
description: |-
1703317033
Lists the secret scanning pattern configurations for an organization.
1703417034

17035-
Personal access tokens (classic) need the `write:org` scope to use this endpoint.
17035+
Personal access tokens (classic) need the `read:org` scope to use this endpoint.
1703617036
tags:
1703717037
- secret-scanning
1703817038
operationId: secret-scanning/list-org-pattern-configs
@@ -17688,7 +17688,7 @@ paths:
1768817688
> [!NOTE]
1768917689
> This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
1769017690

17691-
The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
17691+
The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
1769217692
and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
1769317693
they must have telemetry enabled in their IDE.
1769417694

@@ -17708,7 +17708,7 @@ paths:
1770817708
- name: since
1770917709
description: Show usage metrics since this date. This is a timestamp in [ISO
1771017710
8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`).
17711-
Maximum value is 28 days ago.
17711+
Maximum value is 100 days ago.
1771217712
in: query
1771317713
required: false
1771417714
schema:
@@ -17723,12 +17723,12 @@ paths:
1772317723
type: string
1772417724
- "$ref": "#/components/parameters/page"
1772517725
- name: per_page
17726-
description: The number of days of metrics to display per page (max 28). For
17727-
more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
17726+
description: The number of days of metrics to display per page (max 100).
17727+
For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
1772817728
in: query
1772917729
schema:
1773017730
type: integer
17731-
default: 28
17731+
default: 100
1773217732
responses:
1773317733
'200':
1773417734
description: Response

descriptions-next/api.github.com/api.github.com.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15259,7 +15259,7 @@
1525915259
"/orgs/{org}/copilot/metrics": {
1526015260
"get": {
1526115261
"summary": "Get Copilot metrics for an organization",
15262-
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization.\nOnly organization owners and owners and billing managers of the parent enterprise can view Copilot metrics.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
15262+
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization.\nOnly organization owners and owners and billing managers of the parent enterprise can view Copilot metrics.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
1526315263
"tags": [
1526415264
"copilot"
1526515265
],
@@ -15274,7 +15274,7 @@
1527415274
},
1527515275
{
1527615276
"name": "since",
15277-
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.",
15277+
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.",
1527815278
"in": "query",
1527915279
"required": false,
1528015280
"schema": {
@@ -15295,11 +15295,11 @@
1529515295
},
1529615296
{
1529715297
"name": "per_page",
15298-
"description": "The number of days of metrics to display per page (max 28). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
15298+
"description": "The number of days of metrics to display per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
1529915299
"in": "query",
1530015300
"schema": {
1530115301
"type": "integer",
15302-
"default": 28
15302+
"default": 100
1530315303
}
1530415304
}
1530515305
],
@@ -23470,7 +23470,7 @@
2347023470
"/orgs/{org}/secret-scanning/pattern-configurations": {
2347123471
"get": {
2347223472
"summary": "List organization pattern configurations",
23473-
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `write:org` scope to use this endpoint.",
23473+
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `read:org` scope to use this endpoint.",
2347423474
"tags": [
2347523475
"secret-scanning"
2347623476
],
@@ -24385,7 +24385,7 @@
2438524385
"/orgs/{org}/team/{team_slug}/copilot/metrics": {
2438624386
"get": {
2438724387
"summary": "Get Copilot metrics for a team",
24388-
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization containing the team within GitHub settings.\nOnly organization owners for the organization that contains this team and owners and billing managers of the parent enterprise can view Copilot metrics for a team.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
24388+
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization containing the team within GitHub settings.\nOnly organization owners for the organization that contains this team and owners and billing managers of the parent enterprise can view Copilot metrics for a team.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
2438924389
"tags": [
2439024390
"copilot"
2439124391
],
@@ -24403,7 +24403,7 @@
2440324403
},
2440424404
{
2440524405
"name": "since",
24406-
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.",
24406+
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.",
2440724407
"in": "query",
2440824408
"required": false,
2440924409
"schema": {
@@ -24424,11 +24424,11 @@
2442424424
},
2442524425
{
2442624426
"name": "per_page",
24427-
"description": "The number of days of metrics to display per page (max 28). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
24427+
"description": "The number of days of metrics to display per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
2442824428
"in": "query",
2442924429
"schema": {
2443024430
"type": "integer",
24431-
"default": 28
24431+
"default": 100
2443224432
}
2443324433
}
2443424434
],

0 commit comments

Comments
 (0)