Skip to content

Github graphql api - #213

Draft
dearlordylord wants to merge 64 commits into
vercel-labs:mainfrom
dearlordylord:main
Draft

Github graphql api#213
dearlordylord wants to merge 64 commits into
vercel-labs:mainfrom
dearlordylord:main

Conversation

@dearlordylord

Copy link
Copy Markdown

Hi, thank you for Emulate. This PR is not for detailed review yet, but an invitation for a discussion / "feature request".

I (controlled-)vibed it as a proof of concept that supports a subset of GitHub GraphQL features my app uses, and it seems to work wired to my app. Because I lack GraphQL in Emulate and the normal api is insufficient for my case.

Strongest inspiration is #180

The questions I want to raise is

  • is GraphQL planned?
  • would you be interested in me humanising (or rewriting, if needed) this pr
  • what subset of features would Emulate be interested in? all of GraphQL or e.g. only Issue management, for an MVP? what granularity, in other words
  • anything else important I forgot to mention?

Thanks


implemented subset:

Queries:

  • repository(owner:, name:)
  • node(id:)
  • rateLimit

Repository and issue traversal:

  • Repository metadata, owner, labels, and individual issue lookup
  • Issue metadata, author, comments, parent, subissues, blockers, and duplicate relationships
  • Relay-style connections with first, after, last, and before
  • Opaque cursors, pageInfo, edges, nodes, and totalCount
  • node() resolution for repositories, issues, labels, and issue comments

Mutations:

  • createIssue
  • closeIssue
  • reopenIssue
  • deleteIssue
  • addComment
  • createLabel
  • deleteLabel
  • addSubIssue
  • addBlockedBy

# Conflicts:
#	packages/emulate/src/index.ts
# Conflicts:
#	packages/@emulators/github/src/entities.ts
# Conflicts:
#	apps/web/app/docs/github/page.mdx
#	packages/@emulators/github/src/graphql/schema.ts
#	packages/@emulators/github/src/routes/graphql.ts
#	packages/emulate/src/index.ts
#	skills/github/SKILL.md
# Conflicts:
#	packages/@emulators/github/src/graphql/views.ts
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@dearlordylord is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@dearlordylord
dearlordylord marked this pull request as draft August 26, 2026 16:31
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​graphql@​17.0.210010010096100

View full report

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.

1 participant