Skip to content

build(deps-dev): graduate the issue-creation-policy GraphQL gap - #685

Merged
Vivswan merged 1 commit into
mainfrom
chore/graduate-issue-creation-policy-gap
Dec 4, 2026
Merged

Vivswan merged 1 commit into
mainfrom
chore/graduate-issue-creation-policy-gap

Conversation

@Vivswan

@Vivswan Vivswan commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Before

nightly probe-schema -> bun add @octokit/graphql-schema@latest (16.0.0) -> extend the schema with each gap's SDL -> issue-creation-policy refused -> red
$ bun test test/sections/graphql-queries.test.ts
error: the pinned @octokit/graphql-schema refuses the SDL of src/upstream-gaps/issue-creation-policy.ts,
so it now ships what that gap declares: delete the file and regenerate the index
(bun .github/scripts/gen-gaps-index.ts). Type "IssueCreationPolicy" already exists in the schema.
Field "Repository.issueCreationPolicy" already exists in the schema.
Field "UpdateRepositoryInput.issueCreationPolicy" already exists in the schema.
(fail) declared GraphQL queries > every query validates against GitHub's published schema, extended by the upstream gaps

After

nightly probe-schema -> bun add @octokit/graphql-schema@latest (16.0.0) -> extend the schema with the one remaining gap (lfs) -> green
$ bun test test/sections/graphql-queries.test.ts
 5 pass
 0 fail

Nightly failure issue: #680. A green night closes it, so this PR only refs it.

How

  • Pin moved: @octokit/graphql-schema 15.26.1 to 16.0.0, exact, like the other @octokit dev pins.
  • Gap retired: the issue-creation-policy gap file is deleted, as its own failure message and gap.ts prescribe.
  • Index regenerated: bun .github/scripts/gen-gaps-index.ts leaves lfs as the only pending gap.
  • Queries untouched: all 14 declared operations validate against 16.0.0, whose removals touch nothing they select.

Proof

  • Gate: bun run check green, 4705 tests pass, 0 fail, 15 generated files match their generators.
  • Review: codex rubber-duck review of the staged diff converged with no findings.
Technical details
  • Failing run: Nightly run 47008721392 on ea9767e, the probe-schema step in both the checks job and release-gate / upstream-drift.
  • Why a major: 16.0.0 is a major because GitHub's schema removed types ("major additions and deletions"); the package's exports did not change.
  • Line accounting: source -25 (the gap file and its two index lines), package.json +1 -1, bun.lock +2 -2: a retirement, net negative as expected.
  • Census: references to the issue-creation-policy gap file: 2 before (the index import and record entry), 0 after; issueCreationPolicy stays in the repository section, its tests, and docs because GitHub still serves the field.
  • Files: package.json, bun.lock, src/generated/upstream-gaps.ts, src/upstream-gaps/issue-creation-policy.ts (deleted).

@octokit/graphql-schema 16.0.0 ships IssueCreationPolicy, Repository.issueCreationPolicy, and UpdateRepositoryInput.issueCreationPolicy, so graphql-js refuses the gap's SDL extension and the nightly probe-schema step and the release-gate upstream-drift job go red on the latest release. Move the pin to 16.0.0, delete the gap file, and regenerate the gaps index.

Refs #680
Copilot AI balanced review requested due to automatic review settings December 4, 2026 03:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the schema dependency update and removal of the obsolete workaround.

No open issues 🎉

What changed in this PR

Updates the GraphQL schema dependency and retires the issue-creation-policy workaround, addressing the schema conflict reported in #680.

Changes:

  • Pins @octokit/graphql-schema to 16.0.0.
  • Removes the obsolete schema extension and regenerates the gap index, leaving only lfs.
  • Leaves declared GraphQL operations unchanged.
File Description
src/​upstream-gaps/​issue-creation-policy.ts Deletes the obsolete schema extension.
src/​generated/​upstream-gaps.ts Removes the retired gap from the generated index.
package.json Updates the exact schema dependency pin.
bun.lock Records the updated dependency and integrity hash.

Review effort: Balanced

@Vivswan
Vivswan marked this pull request as ready for review December 4, 2026 03:15
@Vivswan
Vivswan merged commit a5b9864 into main Dec 4, 2026
32 checks passed
@Vivswan
Vivswan deleted the chore/graduate-issue-creation-policy-gap branch December 4, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants