Skip to content

Commit 38adc3b

Browse files
authored
Merge pull request #5276 from github/openapi-update-5277210ddee13dd52534cd687b5fee61a34728b0e12a5e73d2fb4d7973588eec
Update OpenAPI 3.0 Descriptions
2 parents 8d36cf7 + bcda6b0 commit 38adc3b

16 files changed

+232
-232
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15205,7 +15205,7 @@
1520515205
"/orgs/{org}/copilot/metrics": {
1520615206
"get": {
1520715207
"summary": "Get Copilot metrics for an organization",
15208-
"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.",
15208+
"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.",
1520915209
"tags": [
1521015210
"copilot"
1521115211
],
@@ -15220,7 +15220,7 @@
1522015220
},
1522115221
{
1522215222
"name": "since",
15223-
"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.",
15223+
"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.",
1522415224
"in": "query",
1522515225
"required": false,
1522615226
"schema": {
@@ -15241,11 +15241,11 @@
1524115241
},
1524215242
{
1524315243
"name": "per_page",
15244-
"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).\"",
15244+
"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).\"",
1524515245
"in": "query",
1524615246
"schema": {
1524715247
"type": "integer",
15248-
"default": 28
15248+
"default": 100
1524915249
}
1525015250
}
1525115251
],
@@ -23382,7 +23382,7 @@
2338223382
"/orgs/{org}/secret-scanning/pattern-configurations": {
2338323383
"get": {
2338423384
"summary": "List organization pattern configurations",
23385-
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `write:org` scope to use this endpoint.",
23385+
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `read:org` scope to use this endpoint.",
2338623386
"tags": [
2338723387
"secret-scanning"
2338823388
],
@@ -24297,7 +24297,7 @@
2429724297
"/orgs/{org}/team/{team_slug}/copilot/metrics": {
2429824298
"get": {
2429924299
"summary": "Get Copilot metrics for a team",
24300-
"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.",
24300+
"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.",
2430124301
"tags": [
2430224302
"copilot"
2430324303
],
@@ -24315,7 +24315,7 @@
2431524315
},
2431624316
{
2431724317
"name": "since",
24318-
"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.",
24318+
"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.",
2431924319
"in": "query",
2432024320
"required": false,
2432124321
"schema": {
@@ -24336,11 +24336,11 @@
2433624336
},
2433724337
{
2433824338
"name": "per_page",
24339-
"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).\"",
24339+
"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).\"",
2434024340
"in": "query",
2434124341
"schema": {
2434224342
"type": "integer",
24343-
"default": 28
24343+
"default": 100
2434424344
}
2434524345
}
2434624346
],

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11135,7 +11135,7 @@ paths:
1113511135
> [!NOTE]
1113611136
> 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.
1113711137

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

@@ -11154,7 +11154,7 @@ paths:
1115411154
- name: since
1115511155
description: Show usage metrics since this date. This is a timestamp in [ISO
1115611156
8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`).
11157-
Maximum value is 28 days ago.
11157+
Maximum value is 100 days ago.
1115811158
in: query
1115911159
required: false
1116011160
schema:
@@ -11169,12 +11169,12 @@ paths:
1116911169
type: string
1117011170
- "$ref": "#/components/parameters/page"
1117111171
- name: per_page
11172-
description: The number of days of metrics to display per page (max 28). For
11173-
more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
11172+
description: The number of days of metrics to display per page (max 100).
11173+
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)."
1117411174
in: query
1117511175
schema:
1117611176
type: integer
11177-
default: 28
11177+
default: 100
1117811178
responses:
1117911179
'200':
1118011180
description: Response
@@ -16990,7 +16990,7 @@ paths:
1699016990
description: |-
1699116991
Lists the secret scanning pattern configurations for an organization.
1699216992

16993-
Personal access tokens (classic) need the `write:org` scope to use this endpoint.
16993+
Personal access tokens (classic) need the `read:org` scope to use this endpoint.
1699416994
tags:
1699516995
- secret-scanning
1699616996
operationId: secret-scanning/list-org-pattern-configs
@@ -17646,7 +17646,7 @@ paths:
1764617646
> [!NOTE]
1764717647
> 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.
1764817648

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

@@ -17666,7 +17666,7 @@ paths:
1766617666
- name: since
1766717667
description: Show usage metrics since this date. This is a timestamp in [ISO
1766817668
8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`).
17669-
Maximum value is 28 days ago.
17669+
Maximum value is 100 days ago.
1767017670
in: query
1767117671
required: false
1767217672
schema:
@@ -17681,12 +17681,12 @@ paths:
1768117681
type: string
1768217682
- "$ref": "#/components/parameters/page"
1768317683
- name: per_page
17684-
description: The number of days of metrics to display per page (max 28). For
17685-
more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
17684+
description: The number of days of metrics to display per page (max 100).
17685+
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)."
1768617686
in: query
1768717687
schema:
1768817688
type: integer
17689-
default: 28
17689+
default: 100
1769017690
responses:
1769117691
'200':
1769217692
description: Response

descriptions/api.github.com/api.github.com.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15205,7 +15205,7 @@
1520515205
"/orgs/{org}/copilot/metrics": {
1520615206
"get": {
1520715207
"summary": "Get Copilot metrics for an organization",
15208-
"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.",
15208+
"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.",
1520915209
"tags": [
1521015210
"copilot"
1521115211
],
@@ -15220,7 +15220,7 @@
1522015220
},
1522115221
{
1522215222
"name": "since",
15223-
"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.",
15223+
"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.",
1522415224
"in": "query",
1522515225
"required": false,
1522615226
"schema": {
@@ -15241,11 +15241,11 @@
1524115241
},
1524215242
{
1524315243
"name": "per_page",
15244-
"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).\"",
15244+
"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).\"",
1524515245
"in": "query",
1524615246
"schema": {
1524715247
"type": "integer",
15248-
"default": 28
15248+
"default": 100
1524915249
}
1525015250
}
1525115251
],
@@ -23382,7 +23382,7 @@
2338223382
"/orgs/{org}/secret-scanning/pattern-configurations": {
2338323383
"get": {
2338423384
"summary": "List organization pattern configurations",
23385-
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `write:org` scope to use this endpoint.",
23385+
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `read:org` scope to use this endpoint.",
2338623386
"tags": [
2338723387
"secret-scanning"
2338823388
],
@@ -24297,7 +24297,7 @@
2429724297
"/orgs/{org}/team/{team_slug}/copilot/metrics": {
2429824298
"get": {
2429924299
"summary": "Get Copilot metrics for a team",
24300-
"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.",
24300+
"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.",
2430124301
"tags": [
2430224302
"copilot"
2430324303
],
@@ -24315,7 +24315,7 @@
2431524315
},
2431624316
{
2431724317
"name": "since",
24318-
"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.",
24318+
"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.",
2431924319
"in": "query",
2432024320
"required": false,
2432124321
"schema": {
@@ -24336,11 +24336,11 @@
2433624336
},
2433724337
{
2433824338
"name": "per_page",
24339-
"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).\"",
24339+
"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).\"",
2434024340
"in": "query",
2434124341
"schema": {
2434224342
"type": "integer",
24343-
"default": 28
24343+
"default": 100
2434424344
}
2434524345
}
2434624346
],

0 commit comments

Comments
 (0)