diff --git a/bun.lock b/bun.lock index 044707234..4f49a2e74 100644 --- a/bun.lock +++ b/bun.lock @@ -36,7 +36,7 @@ "@actions/expressions": "0.3.62", "@arethetypeswrong/cli": "0.18.5", "@biomejs/biome": "2.6.9", - "@octokit/graphql-schema": "15.26.1", + "@octokit/graphql-schema": "16.0.0", "@octokit/openapi": "24.0.0", "@octokit/openapi-webhooks": "12.2.0", "@types/bun": "1.4.5", @@ -172,7 +172,7 @@ "@octokit/graphql": ["@octokit/graphql@9.0.5", "", { "dependencies": { "@octokit/request": "^10.0.16", "@octokit/types": "^18.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg=="], - "@octokit/graphql-schema": ["@octokit/graphql-schema@15.26.1", "", { "dependencies": { "graphql": "^16.0.0", "graphql-tag": "^2.10.3" } }, "sha512-RFDC2MpRBd4AxSRvUeBIVeBU7ojN/SxDfALUd7iVYOSeEK3gZaqR2MGOysj4Zh2xj2RY5fQAUT+Oqq7hWTraMA=="], + "@octokit/graphql-schema": ["@octokit/graphql-schema@16.0.0", "", { "dependencies": { "graphql": "^16.0.0", "graphql-tag": "^2.10.3" } }, "sha512-PBlyNm5nXoz69XMBygjaotDtUQiv+ekLfDB4ixrpc+8KZ3zLyi8rlTmkx0EQhsTyYJZVKMBAu4+wxPssnvRRHQ=="], "@octokit/openapi": ["@octokit/openapi@24.0.0", "", {}, "sha512-KIpEIm6oND1tyTT3m/xyJZVJuduifs9BKLevaIjm+MBheg4ossTzLrx2leNgJoXccoIx5SjGGH/Esu/yecjirg=="], diff --git a/package.json b/package.json index 56b95b2ae..ad8fbd6fb 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@actions/expressions": "0.3.62", "@arethetypeswrong/cli": "0.18.5", "@biomejs/biome": "2.6.9", - "@octokit/graphql-schema": "15.26.1", + "@octokit/graphql-schema": "16.0.0", "@octokit/openapi": "24.0.0", "@octokit/openapi-webhooks": "12.2.0", "@types/bun": "1.4.5", diff --git a/src/generated/upstream-gaps.ts b/src/generated/upstream-gaps.ts index 8b52796db..22d34342b 100644 --- a/src/generated/upstream-gaps.ts +++ b/src/generated/upstream-gaps.ts @@ -7,11 +7,9 @@ */ import { undocumentedRoutes, type UnshippedGraphqlSdl, unshippedGraphqlSdl } from "../upstream-gaps/gap.js"; -import { GAP as issueCreationPolicy } from "../upstream-gaps/issue-creation-policy.js"; import { GAP as lfs } from "../upstream-gaps/lfs.js"; const GAPS = { - "issue-creation-policy": issueCreationPolicy, lfs, } as const; diff --git a/src/upstream-gaps/issue-creation-policy.ts b/src/upstream-gaps/issue-creation-policy.ts deleted file mode 100644 index a5eaa9eae..000000000 --- a/src/upstream-gaps/issue-creation-policy.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * A graphql-schema gap: its SDL extends the pinned @octokit/graphql-schema release before the declared queries are - * validated against it, so a query may select a field the package does not ship yet. No tripwire type can see a - * schema, so the file is deleted by hand once graphql-js refuses the extension (./gap.ts). - */ - -import { defineGraphqlSchemaGap } from "./gap.js"; - -/** GitHub shipped the repository issue-creation policy; the pinned @octokit/graphql-schema release predates it. */ -export const GAP = defineGraphqlSchemaGap({ - sdl: ` - enum IssueCreationPolicy { - ALL - COLLABORATORS_ONLY - } - extend type Repository { - issueCreationPolicy: IssueCreationPolicy - } - extend input UpdateRepositoryInput { - issueCreationPolicy: IssueCreationPolicy - } - `, -});