Skip to content

Commit

Permalink
feat: Updates openapi-types to v21.0.0 (which had breaking changes), …
Browse files Browse the repository at this point in the history
…BREAKING CHANGE: Updates multiple endpoints to use owner + repo in place of repository_id (#625)

BREAKING CHANGE: Updates multiple endpoints to use owner + repo in place of repository_id
  • Loading branch information
octokitbot authored Apr 2, 2024
1 parent 2425655 commit ad024fe
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 147 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "Shared TypeScript definitions for Octokit projects",
"dependencies": {
"@octokit/openapi-types": "^20.0.0"
"@octokit/openapi-types": "^21.0.0"
},
"scripts": {
"build": "node scripts/build.mjs && tsc -p tsconfig.json",
Expand Down Expand Up @@ -80,6 +80,6 @@
]
},
"octokit": {
"openapi-version": "14.0.0"
"openapi-version": "14.1.0"
}
}
113 changes: 42 additions & 71 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,11 @@
},
{
"method": "POST",
"url": "/repositories/{repository_id}/environments/{environment_name}/variables",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/variables",
"documentationUrl": "https://docs.github.com/rest/actions/variables#create-an-environment-variable",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand All @@ -105,15 +101,11 @@
},
{
"method": "PUT",
"url": "/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}",
"documentationUrl": "https://docs.github.com/rest/actions/secrets#create-or-update-an-environment-secret",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -311,15 +303,11 @@
},
{
"method": "DELETE",
"url": "/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}",
"documentationUrl": "https://docs.github.com/rest/actions/secrets#delete-an-environment-secret",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand All @@ -332,15 +320,11 @@
},
{
"method": "DELETE",
"url": "/repositories/{repository_id}/environments/{environment_name}/variables/{name}",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}",
"documentationUrl": "https://docs.github.com/rest/actions/variables#delete-an-environment-variable",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "name" },
{
"alias": null,
Expand Down Expand Up @@ -685,15 +669,11 @@
},
{
"method": "GET",
"url": "/repositories/{repository_id}/environments/{environment_name}/secrets/public-key",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key",
"documentationUrl": "https://docs.github.com/rest/actions/secrets#get-an-environment-public-key",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand All @@ -705,15 +685,11 @@
},
{
"method": "GET",
"url": "/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}",
"documentationUrl": "https://docs.github.com/rest/actions/secrets#get-an-environment-secret",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand All @@ -726,15 +702,11 @@
},
{
"method": "GET",
"url": "/repositories/{repository_id}/environments/{environment_name}/variables/{name}",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}",
"documentationUrl": "https://docs.github.com/rest/actions/variables#get-an-environment-variable",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -1006,15 +978,11 @@
},
{
"method": "GET",
"url": "/repositories/{repository_id}/environments/{environment_name}/secrets",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/secrets",
"documentationUrl": "https://docs.github.com/rest/actions/secrets#list-environment-secrets",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand All @@ -1028,15 +996,11 @@
},
{
"method": "GET",
"url": "/repositories/{repository_id}/environments/{environment_name}/variables",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/variables",
"documentationUrl": "https://docs.github.com/rest/actions/variables#list-environment-variables",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -1761,15 +1725,11 @@
},
{
"method": "PATCH",
"url": "/repositories/{repository_id}/environments/{environment_name}/variables/{name}",
"url": "/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}",
"documentationUrl": "https://docs.github.com/rest/actions/variables#update-an-environment-variable",
"parameters": [
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "repository_id"
},
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "name" },
{
"alias": null,
Expand Down Expand Up @@ -6897,7 +6857,8 @@
"documentationUrl": "https://docs.github.com/rest/licenses/licenses#get-the-license-for-a-repository",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "ref" }
],
"renamed": null
},
Expand Down Expand Up @@ -10656,6 +10617,16 @@
],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/private-vulnerability-reporting",
"documentationUrl": "https://docs.github.com/rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }
],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/vulnerability-alerts",
Expand Down
Loading

0 comments on commit ad024fe

Please sign in to comment.