From 89a7f68e0e292190f93c4390c331db6f6e1f6afd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:48:08 -0400 Subject: [PATCH] feat: new GitHub advisories endpoints, new GitHub classroom endpoints, new Copilot endpoints, remove required workflow endpoints (#625) BREAKING CHANGE: remove required workflow endpoints --------- Co-authored-by: wolfy1339 --- package-lock.json | 63 +++++- package.json | 2 +- .../update-endpoints/generated/endpoints.json | 206 ++++++++++++------ 3 files changed, 201 insertions(+), 70 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2d8b2632..56929aca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/types": "^11.0.0", + "@octokit/types": "^12.0.0", "bottleneck": "^2.15.3" }, "devDependencies": { @@ -1789,6 +1789,15 @@ "node": ">= 18" } }, + "node_modules/@octokit/core/node_modules/@octokit/types": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-11.1.0.tgz", + "integrity": "sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^18.0.0" + } + }, "node_modules/@octokit/endpoint": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.0.tgz", @@ -1803,6 +1812,15 @@ "node": ">= 18" } }, + "node_modules/@octokit/endpoint/node_modules/@octokit/types": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-11.1.0.tgz", + "integrity": "sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^18.0.0" + } + }, "node_modules/@octokit/graphql": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.0.1.tgz", @@ -1817,10 +1835,20 @@ "node": ">= 18" } }, + "node_modules/@octokit/graphql/node_modules/@octokit/types": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-11.1.0.tgz", + "integrity": "sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^18.0.0" + } + }, "node_modules/@octokit/openapi-types": { "version": "18.0.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.0.0.tgz", - "integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==" + "integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==", + "dev": true }, "node_modules/@octokit/request": { "version": "8.1.1", @@ -1852,6 +1880,24 @@ "node": ">= 18" } }, + "node_modules/@octokit/request-error/node_modules/@octokit/types": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-11.1.0.tgz", + "integrity": "sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^18.0.0" + } + }, + "node_modules/@octokit/request/node_modules/@octokit/types": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-11.1.0.tgz", + "integrity": "sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^18.0.0" + } + }, "node_modules/@octokit/tsconfig": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-2.0.0.tgz", @@ -1859,13 +1905,18 @@ "dev": true }, "node_modules/@octokit/types": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-11.1.0.tgz", - "integrity": "sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz", + "integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==", "dependencies": { - "@octokit/openapi-types": "^18.0.0" + "@octokit/openapi-types": "^19.0.0" } }, + "node_modules/@octokit/types/node_modules/@octokit/openapi-types": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz", + "integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==" + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", diff --git a/package.json b/package.json index 15aa33cd..20fbdcc7 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "author": "Simon Grondin (http://github.com/SGrondin)", "license": "MIT", "dependencies": { - "@octokit/types": "^11.0.0", + "@octokit/types": "^12.0.0", "bottleneck": "^2.15.3" }, "peerDependencies": { diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 5bd5ec59..02f7ee34 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -19,10 +19,6 @@ "url": "/orgs/{org}/actions/variables/{name}/repositories/{repository_id}", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "triggersNotification": null @@ -75,10 +71,6 @@ "url": "/repos/{owner}/{repo}/actions/variables", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/runner-groups", "triggersNotification": null @@ -123,10 +115,6 @@ "url": "/repos/{owner}/{repo}/actions/variables/{name}", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows/{required_workflow_id}", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/runners/{runner_id}", "triggersNotification": null @@ -287,14 +275,6 @@ "url": "/repos/{owner}/{repo}/actions/secrets/public-key", "triggersNotification": null }, - { - "url": "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}", - "triggersNotification": null - }, - { - "url": "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing", - "triggersNotification": null - }, { "url": "/repos/{owner}/{repo}/actions/secrets/{secret_name}", "triggersNotification": null @@ -303,10 +283,6 @@ "url": "/repos/{owner}/{repo}/actions/variables/{name}", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows/{required_workflow_id}", - "triggersNotification": null - }, { "url": "/repos/{owner}/{repo}/actions/runs/{run_id}/approvals", "triggersNotification": null @@ -395,10 +371,6 @@ "url": "/repos/{owner}/{repo}/actions/organization-variables", "triggersNotification": null }, - { - "url": "/repos/{org}/{repo}/actions/required_workflows", - "triggersNotification": null - }, { "url": "/repos/{owner}/{repo}/actions/secrets", "triggersNotification": null @@ -411,14 +383,6 @@ "url": "/repos/{owner}/{repo}/actions/workflows", "triggersNotification": null }, - { - "url": "/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs", - "triggersNotification": null - }, - { - "url": "/orgs/{org}/actions/required_workflows", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/runners/downloads", "triggersNotification": null @@ -439,10 +403,6 @@ "url": "/orgs/{org}/actions/permissions/repositories", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/runner-groups", "triggersNotification": null @@ -511,10 +471,6 @@ "url": "/orgs/{org}/actions/variables/{name}/repositories/{repository_id}", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "triggersNotification": null @@ -583,10 +539,6 @@ "url": "/orgs/{org}/actions/variables/{name}/repositories", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/permissions/repositories", "triggersNotification": null @@ -611,10 +563,6 @@ "url": "/repos/{owner}/{repo}/actions/variables/{name}", "triggersNotification": null }, - { - "url": "/orgs/{org}/actions/required_workflows/{required_workflow_id}", - "triggersNotification": null - }, { "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}", "triggersNotification": null @@ -1019,6 +967,30 @@ "url": "/repos/{owner}/{repo}/check-runs/{check_run_id}", "triggersNotification": null }, + { + "url": "/classrooms/{classroom_id}", + "triggersNotification": null + }, + { + "url": "/assignments/{assignment_id}", + "triggersNotification": null + }, + { + "url": "/assignments/{assignment_id}/grades", + "triggersNotification": null + }, + { + "url": "/assignments/{assignment_id}/accepted_assignments", + "triggersNotification": null + }, + { + "url": "/classrooms/{classroom_id}/assignments", + "triggersNotification": null + }, + { + "url": "/classrooms", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}", "triggersNotification": null @@ -1128,7 +1100,7 @@ "triggersNotification": null }, { - "url": "/orgs/{org}/codespaces/billing/selected_users", + "url": "/orgs/{org}/codespaces/access/selected_users", "triggersNotification": null }, { @@ -1248,11 +1220,11 @@ "triggersNotification": null }, { - "url": "/orgs/{org}/codespaces/billing", + "url": "/orgs/{org}/codespaces/access", "triggersNotification": null }, { - "url": "/orgs/{org}/codespaces/billing/selected_users", + "url": "/orgs/{org}/codespaces/access/selected_users", "triggersNotification": null }, { @@ -1279,6 +1251,34 @@ "url": "/user/codespaces/{codespace_name}", "triggersNotification": null }, + { + "url": "/orgs/{org}/copilot/billing/selected_teams", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/copilot/billing/selected_users", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/copilot/billing/selected_teams", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/copilot/billing/selected_users", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/copilot/billing", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/members/{username}/copilot", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/copilot/billing/seats", + "triggersNotification": null + }, { "url": "/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}", "triggersNotification": null @@ -1395,6 +1395,10 @@ "url": "/enterprises/{enterprise}/actions/runner-groups", "triggersNotification": null }, + { + "url": "/scim/v2/Groups/{scim_group_id}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", "triggersNotification": null @@ -1403,6 +1407,10 @@ "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "triggersNotification": null }, + { + "url": "/scim/v2/Users/{scim_user_id}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "triggersNotification": null @@ -1431,6 +1439,14 @@ "url": "/enterprises/{enterprise}/license-sync-status", "triggersNotification": null }, + { + "url": "/scim/v2/Groups/{scim_group_id}", + "triggersNotification": null + }, + { + "url": "/scim/v2/Users/{scim_user_id}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", "triggersNotification": null @@ -1451,6 +1467,14 @@ "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "triggersNotification": null }, + { + "url": "/scim/v2/Groups", + "triggersNotification": null + }, + { + "url": "/scim/v2/Users", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runners/downloads", "triggersNotification": null @@ -1471,6 +1495,14 @@ "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "triggersNotification": null }, + { + "url": "/scim/v2/Groups", + "triggersNotification": null + }, + { + "url": "/scim/v2/Users", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runners/{runner_id}/labels", "triggersNotification": null @@ -1499,6 +1531,14 @@ "url": "/enterprises/{enterprise}/actions/permissions", "triggersNotification": null }, + { + "url": "/scim/v2/Groups/{scim_group_id}", + "triggersNotification": null + }, + { + "url": "/scim/v2/Users/{scim_user_id}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "triggersNotification": null @@ -1511,6 +1551,14 @@ "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "triggersNotification": null }, + { + "url": "/scim/v2/Groups/{scim_group_id}", + "triggersNotification": null + }, + { + "url": "/scim/v2/Users/{scim_user_id}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "triggersNotification": null @@ -2156,19 +2204,19 @@ "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-tokens/{pat_id}/repositories", + "url": "/orgs/{org}/personal-access-tokens/{pat_id}/repositories", "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories", + "url": "/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories", "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-token-requests", + "url": "/orgs/{org}/personal-access-token-requests", "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-tokens", + "url": "/orgs/{org}/personal-access-tokens", "triggersNotification": null }, { @@ -2232,11 +2280,11 @@ "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-token-requests/{pat_request_id}", + "url": "/orgs/{org}/personal-access-token-requests/{pat_request_id}", "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-token-requests", + "url": "/orgs/{org}/personal-access-token-requests", "triggersNotification": null }, { @@ -2268,11 +2316,11 @@ "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-tokens/{pat_id}", + "url": "/orgs/{org}/personal-access-tokens/{pat_id}", "triggersNotification": null }, { - "url": "/organizations/{org}/personal-access-tokens", + "url": "/orgs/{org}/personal-access-tokens", "triggersNotification": null }, { @@ -2739,6 +2787,10 @@ "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/automated-security-fixes", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/collaborators/{username}", "triggersNotification": null @@ -2955,6 +3007,10 @@ "url": "/repos/{owner}/{repo}/lfs", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/private-vulnerability-reporting", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/vulnerability-alerts", "triggersNotification": null @@ -2983,6 +3039,10 @@ "url": "/repos/{owner}/{repo}/lfs", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/private-vulnerability-reporting", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/vulnerability-alerts", "triggersNotification": null @@ -3211,6 +3271,10 @@ "url": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/activity", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/autolinks", "triggersNotification": null @@ -3575,10 +3639,26 @@ "url": "/repos/{owner}/{repo}/security-advisories", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve", + "triggersNotification": null + }, + { + "url": "/advisories/{ghsa_id}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}", "triggersNotification": null }, + { + "url": "/advisories", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/security-advisories", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/security-advisories", "triggersNotification": null