Skip to content

Commit d402a68

Browse files
authored
feat: add support for returning dependency_snapshots-specific rate limits in GET /rate_limit (see PR description for additional fix) (#193)
1 parent f300f8a commit d402a68

File tree

17 files changed

+43
-35
lines changed

17 files changed

+43
-35
lines changed

cache/api.github.jpy.wang.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "6.4.0",
4+
"version": "6.5.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -16944,7 +16944,7 @@
1694416944
},
1694516945
"post": {
1694616946
"summary": "Review pending deployments for a workflow run",
16947-
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.",
16947+
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.",
1694816948
"tags": ["actions"],
1694916949
"operationId": "actions/review-pending-deployments-for-run",
1695016950
"externalDocs": {
@@ -17006,7 +17006,7 @@
1700617006
},
1700717007
"x-github": {
1700817008
"githubCloudOnly": false,
17009-
"enabledForGitHubApps": true,
17009+
"enabledForGitHubApps": false,
1701017010
"category": "actions",
1701117011
"subcategory": "workflow-runs"
1701217012
},
@@ -52557,7 +52557,10 @@
5255752557
"actions_runner_registration": {
5255852558
"$ref": "#/components/schemas/rate-limit"
5255952559
},
52560-
"scim": { "$ref": "#/components/schemas/rate-limit" }
52560+
"scim": { "$ref": "#/components/schemas/rate-limit" },
52561+
"dependency_snapshots": {
52562+
"$ref": "#/components/schemas/rate-limit"
52563+
}
5256152564
},
5256252565
"required": ["core", "search"]
5256352566
},

cache/ghes-3.2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "6.4.0",
4+
"version": "6.5.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -15181,7 +15181,7 @@
1518115181
},
1518215182
"post": {
1518315183
"summary": "Review pending deployments for a workflow run",
15184-
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.",
15184+
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.",
1518515185
"tags": ["actions"],
1518615186
"operationId": "actions/review-pending-deployments-for-run",
1518715187
"externalDocs": {
@@ -15243,7 +15243,7 @@
1524315243
},
1524415244
"x-github": {
1524515245
"githubCloudOnly": false,
15246-
"enabledForGitHubApps": true,
15246+
"enabledForGitHubApps": false,
1524715247
"category": "actions",
1524815248
"subcategory": "workflow-runs"
1524915249
},

cache/ghes-3.3.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "6.4.0",
4+
"version": "6.5.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -14811,7 +14811,7 @@
1481114811
},
1481214812
"post": {
1481314813
"summary": "Review pending deployments for a workflow run",
14814-
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.",
14814+
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.",
1481514815
"tags": ["actions"],
1481614816
"operationId": "actions/review-pending-deployments-for-run",
1481714817
"externalDocs": {
@@ -14873,7 +14873,7 @@
1487314873
},
1487414874
"x-github": {
1487514875
"githubCloudOnly": false,
14876-
"enabledForGitHubApps": true,
14876+
"enabledForGitHubApps": false,
1487714877
"category": "actions",
1487814878
"subcategory": "workflow-runs"
1487914879
},

cache/ghes-3.4.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "6.4.0",
4+
"version": "6.5.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -16045,7 +16045,7 @@
1604516045
},
1604616046
"post": {
1604716047
"summary": "Review pending deployments for a workflow run",
16048-
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.",
16048+
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.",
1604916049
"tags": ["actions"],
1605016050
"operationId": "actions/review-pending-deployments-for-run",
1605116051
"externalDocs": {
@@ -16107,7 +16107,7 @@
1610716107
},
1610816108
"x-github": {
1610916109
"githubCloudOnly": false,
16110-
"enabledForGitHubApps": true,
16110+
"enabledForGitHubApps": false,
1611116111
"category": "actions",
1611216112
"subcategory": "workflow-runs"
1611316113
},

cache/ghes-3.5.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "6.4.0",
4+
"version": "6.5.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -14989,7 +14989,9 @@
1498914989
"category": "rate-limit",
1499014990
"subcategory": null
1499114991
},
14992-
"x-octokit": {}
14992+
"x-octokit": {
14993+
"diff": { "api.github.jpy.wang.json": { "type": "changed" } }
14994+
}
1499314995
}
1499414996
},
1499514997
"/repos/{owner}/{repo}": {
@@ -16884,7 +16886,7 @@
1688416886
},
1688516887
"post": {
1688616888
"summary": "Review pending deployments for a workflow run",
16887-
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.",
16889+
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.",
1688816890
"tags": ["actions"],
1688916891
"operationId": "actions/review-pending-deployments-for-run",
1689016892
"externalDocs": {
@@ -16946,7 +16948,7 @@
1694616948
},
1694716949
"x-github": {
1694816950
"githubCloudOnly": false,
16949-
"enabledForGitHubApps": true,
16951+
"enabledForGitHubApps": false,
1695016952
"category": "actions",
1695116953
"subcategory": "workflow-runs"
1695216954
},

cache/github.ae.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "6.4.0",
4+
"version": "6.5.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -11635,7 +11635,9 @@
1163511635
"category": "rate-limit",
1163611636
"subcategory": null
1163711637
},
11638-
"x-octokit": {}
11638+
"x-octokit": {
11639+
"diff": { "api.github.jpy.wang.json": { "type": "changed" } }
11640+
}
1163911641
}
1164011642
},
1164111643
"/repos/{owner}/{repo}": {

packages/openapi-types-ghes-3.2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "6.4.0" }
15+
"octokit": { "openapi-version": "6.5.0" }
1616
}

packages/openapi-types-ghes-3.2/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ export interface paths {
18011801
/**
18021802
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
18031803
*
1804-
* Anyone with read access to the repository contents and deployments can use this endpoint.
1804+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
18051805
*/
18061806
post: operations["actions/review-pending-deployments-for-run"];
18071807
};
@@ -18916,7 +18916,7 @@ export interface operations {
1891618916
/**
1891718917
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
1891818918
*
18919-
* Anyone with read access to the repository contents and deployments can use this endpoint.
18919+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
1892018920
*/
1892118921
"actions/review-pending-deployments-for-run": {
1892218922
parameters: {

packages/openapi-types-ghes-3.3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "6.4.0" }
15+
"octokit": { "openapi-version": "6.5.0" }
1616
}

packages/openapi-types-ghes-3.3/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ export interface paths {
18181818
/**
18191819
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
18201820
*
1821-
* Anyone with read access to the repository contents and deployments can use this endpoint.
1821+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
18221822
*/
18231823
post: operations["actions/review-pending-deployments-for-run"];
18241824
};
@@ -19402,7 +19402,7 @@ export interface operations {
1940219402
/**
1940319403
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
1940419404
*
19405-
* Anyone with read access to the repository contents and deployments can use this endpoint.
19405+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
1940619406
*/
1940719407
"actions/review-pending-deployments-for-run": {
1940819408
parameters: {

packages/openapi-types-ghes-3.4/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "6.4.0" }
15+
"octokit": { "openapi-version": "6.5.0" }
1616
}

packages/openapi-types-ghes-3.4/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ export interface paths {
20672067
/**
20682068
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
20692069
*
2070-
* Anyone with read access to the repository contents and deployments can use this endpoint.
2070+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
20712071
*/
20722072
post: operations["actions/review-pending-deployments-for-run"];
20732073
};
@@ -20617,7 +20617,7 @@ export interface operations {
2061720617
/**
2061820618
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
2061920619
*
20620-
* Anyone with read access to the repository contents and deployments can use this endpoint.
20620+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
2062120621
*/
2062220622
"actions/review-pending-deployments-for-run": {
2062320623
parameters: {

packages/openapi-types-ghes-3.5/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "6.4.0" }
15+
"octokit": { "openapi-version": "6.5.0" }
1616
}

packages/openapi-types-ghes-3.5/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ export interface paths {
21912191
/**
21922192
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
21932193
*
2194-
* Anyone with read access to the repository contents and deployments can use this endpoint.
2194+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
21952195
*/
21962196
post: operations["actions/review-pending-deployments-for-run"];
21972197
};
@@ -21860,7 +21860,7 @@ export interface operations {
2186021860
/**
2186121861
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
2186221862
*
21863-
* Anyone with read access to the repository contents and deployments can use this endpoint.
21863+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
2186421864
*/
2186521865
"actions/review-pending-deployments-for-run": {
2186621866
parameters: {

packages/openapi-types-github.ae/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "6.4.0" }
15+
"octokit": { "openapi-version": "6.5.0" }
1616
}

packages/openapi-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "6.4.0" }
15+
"octokit": { "openapi-version": "6.5.0" }
1616
}

packages/openapi-types/types.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ export interface paths {
25132513
/**
25142514
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
25152515
*
2516-
* Anyone with read access to the repository contents and deployments can use this endpoint.
2516+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
25172517
*/
25182518
post: operations["actions/review-pending-deployments-for-run"];
25192519
};
@@ -9416,6 +9416,7 @@ export interface components {
94169416
code_scanning_upload?: components["schemas"]["rate-limit"];
94179417
actions_runner_registration?: components["schemas"]["rate-limit"];
94189418
scim?: components["schemas"]["rate-limit"];
9419+
dependency_snapshots?: components["schemas"]["rate-limit"];
94199420
};
94209421
rate: components["schemas"]["rate-limit"];
94219422
};
@@ -23938,7 +23939,7 @@ export interface operations {
2393823939
/**
2393923940
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
2394023941
*
23941-
* Anyone with read access to the repository contents and deployments can use this endpoint.
23942+
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
2394223943
*/
2394323944
"actions/review-pending-deployments-for-run": {
2394423945
parameters: {

0 commit comments

Comments
 (0)