TypeScript
refactor(github): all GitHub GraphQL on effect/graphql, one request policy for REST and GraphQL (#19224)
Julius Marmingec3a36af8728c
diff --git a/.gitattributes b/.gitattributesindex 00b0e5eccb9..ffcc4445fe8 100644--- a/.gitattributes+++ b/.gitattributes@@ -3,3 +3,6 @@# Batch files need CRLF for cmd.exe to parse them reliably.*.cmd text eol=crlf*.bat text eol=crlf+# GitHub's GraphQL schema and the operations graphqlgen writes from it.+packages/source-control-github/schema/** linguist-generated+**/*.graphql.ts linguist-generateddiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex dbdc1ec40e6..c0bf0857254 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -52,6 +52,9 @@ jobs:- name: Check unused coderun: vp run knip:check+ - name: Check generated GitHub GraphQL operations+ run: vp run --filter @t3tools/source-control-github generate --check+- name: Checkrun: vp checkdiff --git a/apps/server/scripts/measure-pr-preview.ts b/apps/server/scripts/measure-pr-preview.tsindex 8fca30c9148..c6b27959895 100644--- a/apps/server/scripts/measure-pr-preview.ts+++ b/apps/server/scripts/measure-pr-preview.ts@@ -1,23 +1,21 @@// Run with: node apps/server/scripts/measure-pr-preview.ts owner/repo 123 456// Numbers form a session with shared repository-permission caches. Browser and// service caches are excluded. Uses real GitHub reads, without a server or database.-// Each GraphQL read asks for `rateLimit` here, so its cost is read off its own answer.+// Requests are counted at the HTTP client. A GraphQL request's cost is how far it moved GitHub's+// `x-ratelimit-used` for the `graphql` resource, which is approximate when anything else spends+// the same token's quota while this runs.import * as NodeServices from "@effect/platform-node/NodeServices";import * as Effect from "effect/Effect";import * as Console from "effect/Console";import * as Layer from "effect/Layer";-import * as Option from "effect/Option";import * as Schema from "effect/Schema";-import { FetchHttpClient } from "effect/http";+import { FetchHttpClient, HttpClient } from "effect/http";import * as GitHubPullRequestApi from "@t3tools/source-control-github/server/GitHubPullRequestApi";import * as GitHubPullRequestProvider from "@t3tools/source-control-github/server/GitHubPullRequestProvider";-import * as GitHubApi from "@t3tools/source-control-github/server/GitHubApi";-import * as GitHubCredentials from "@t3tools/source-control-github/server/GitHubCredentials";+import * as GitHubRest from "@t3tools/source-control-github/server/GitHubRest";import * as ServerConfig from "../src/config.ts";import * as ServerSettings from "../src/serverSettings.ts";-import * as GitHubQuota from "@t3tools/source-control-github/server/GitHubQuota";-import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";import * as ServerSourceControlHost from "../src/sourceControl/ServerSourceControlHost.ts";import * as GitVcsDriver from "../src/vcs/GitVcsDriver.ts";import * as VcsDriverRegistry from "../src/vcs/VcsDriverRegistry.ts";@@ -31,21 +29,50 @@ if (!repository || numbers.length === 0 || numbers.some((number) => !/^\d+$/.testype Read = { graphqlRequests: number; restRequests: number; cost: number };const reads: Read[] = [];-const decodeCost = Schema.decodeUnknownOption(++/** The `graphql` quota's use so far, and the window it counts in. */+let graphqlUsed: { used: number; reset: string } | null = null;+const decodeRateLimit = Schema.decodeUnknownSync(Schema.fromJsonString(Schema.Struct({- data: Schema.Struct({ rateLimit: Schema.Struct({ cost: Schema.Number }) }),+ resources: Schema.Struct({+ graphql: Schema.Struct({ used: Schema.Number, reset: Schema.Number }),+ }),}),),);-/** The query with GitHub's own count of what it cost, for a read rather than a mutation. */-function withRateLimit(query: string): string {- const end = query.lastIndexOf("}");- return query.trimStart().startsWith("mutation") || end === -1- ? query- : `${query.slice(0, end)}\n rateLimit { cost }\n${query.slice(end)}`;++/**+ * What one GraphQL answer spent: how far it moved `used` past the highest value seen, so requests+ * answered out of order still add up to the window's total. A new window starts from zero.+ */+function graphqlCost(headers: Readonly<Record<string, string | undefined>>): number {+ const used = Number(headers["x-ratelimit-used"]);+ const reset = headers["x-ratelimit-reset"] ?? "";+ if (headers["x-ratelimit-resource"] !== "graphql" || !Number.isFinite(used)) return 0;+ const previous = graphqlUsed?.reset === reset ? graphqlUsed.used : 0;+ graphqlUsed = { used: Math.max(previous, used), reset };+ return Math.max(0, used - previous);}+/** The HTTP client the GitHub transports send through, recording each request as it is answered. */+const measuredHttp = Layer.effect(+ HttpClient.HttpClient,+ Effect.gen(function* () {+ const client = yield* HttpClient.HttpClient;+ return HttpClient.tap(client, (response) =>+ Effect.sync(() => {+ const graphql = new URL(response.request.url).pathname.endsWith("/graphql");+ reads.push({+ graphqlRequests: graphql ? 1 : 0,+ restRequests: graphql ? 0 : 1,+ cost: graphql ? graphqlCost(response.headers) : 0,+ });+ }),+ );+ }),+).pipe(Layer.provide(FetchHttpClient.layer));+// The server's host port over default settings: gh's own account choice, no saved token.const sourceControlHost = ServerSourceControlHost.layer.pipe(Layer.provide(VcsDriverRegistry.layer.pipe(Layer.provide(VcsProjectConfig.layer))),@@ -57,46 +84,9 @@ const sourceControlHost = ServerSourceControlHost.layer.pipe(Layer.provideMerge(NodeServices.layer),);-const measuredApi = Layer.effect(- GitHubApi.GitHubApi,- Effect.gen(function* () {- const api = yield* GitHubApi.make;- return GitHubApi.GitHubApi.of({- ...api,- graphql: (input) =>- api.graphql({ ...input, query: withRateLimit(input.query) }).pipe(- Effect.tap((body) =>- Effect.sync(() =>- reads.push({- graphqlRequests: 1,- restRequests: 0,- cost: Option.match(decodeCost(body), {- onNone: () => 0,- onSome: (decoded) => decoded.data.rateLimit.cost,- }),- }),- ),- ),- ),- rest: (input) =>- api- .rest(input)- .pipe(- Effect.tap(() =>- Effect.sync(() => reads.push({ graphqlRequests: 0, restRequests: 1, cost: 0 })),- ),- ),- });- }),-).pipe(- Layer.provide(GitHubCredentials.layer),- Layer.provide(GitHubQuota.layer),- Layer.provide(SourceControlRateLimit.layer),- Layer.provide(FetchHttpClient.layer),-);-const services = GitHubPullRequestApi.layer.pipe(- Layer.provideMerge(measuredApi),+ Layer.provideMerge(GitHubRest.layerWithDependencies),+ Layer.provideMerge(measuredHttp),Layer.provideMerge(sourceControlHost),);@@ -108,6 +98,13 @@ for (const mode of ["detail", "preview"] as const) {Effect.scoped(Effect.gen(function* () {const provider = yield* GitHubPullRequestProvider.make;+ // Where the `graphql` quota stands before the first read. `rate_limit` is free.+ const api = yield* GitHubRest.GitHubRest;+ const limits = decodeRateLimit(+ (yield* api.rest({ host: "github.com", operation: "rateLimit", path: "rate_limit" }))+ .body,+ ).resources.graphql;+ graphqlUsed = { used: limits.used, reset: String(limits.reset) };return yield* Effect.forEach(numbers.map(Number), (number) =>Effect.gen(function* () {const input = { cwd: process.cwd(), repository, host: "github.com", number };diff --git a/apps/server/src/project/AgentSessionScanner.ts b/apps/server/src/project/AgentSessionScanner.tsindex 454971a75ab..5f08c91d3c3 100644--- a/apps/server/src/project/AgentSessionScanner.ts+++ b/apps/server/src/project/AgentSessionScanner.ts@@ -592,8 +592,8 @@ function transcriptIdentity(filePath: string, stats: FileSystem.File.Info) {filePath,size: Number(stats.size),mtimeMs: Option.match(stats.mtime, { onNone: () => null, onSome: (date) => date.getTime() }),- device: stats.dev,- inode: Option.getOrNull(stats.ino),+ device: Number(stats.dev),+ inode: Option.match(stats.ino, { onNone: () => null, onSome: Number }),birthtimeMs: Option.match(stats.birthtime, {onNone: () => null,onSome: (date) => date.getTime(),@@ -671,12 +671,7 @@ export const make = Effect.gen(function* () {) {const resolved = path.resolve(target);const stats = knownStats === undefined ? yield* statOption(resolved) : Option.some(knownStats);- if (- Option.isSome(stats) &&- Option.isSome(stats.value.ino) &&- Number.isSafeInteger(stats.value.ino.value) &&- stats.value.ino.value > 0- ) {+ if (Option.isSome(stats) && Option.isSome(stats.value.ino) && stats.value.ino.value > 0n) {return `inode:${stats.value.dev}:${stats.value.ino.value}`;}const realPath = yield* fileSystemdiff --git a/apps/server/src/pullRequest/PullRequestProviderRateLimit.test.ts b/apps/server/src/pullRequest/PullRequestProviderRateLimit.test.tsindex 38969188dcd..4b8f3c38ac1 100644--- a/apps/server/src/pullRequest/PullRequestProviderRateLimit.test.ts+++ b/apps/server/src/pullRequest/PullRequestProviderRateLimit.test.ts@@ -3,7 +3,8 @@ import { assert, it } from "@effect/vitest";import * as AzureDevOpsCli from "@t3tools/source-control-azure-devops/server/AzureDevOpsCli";import * as BitbucketApi from "@t3tools/source-control-bitbucket/server/BitbucketApi";-import * as GitHubApi from "@t3tools/source-control-github/server/GitHubApi";+import * as GitHubRest from "@t3tools/source-control-github/server/GitHubRest";+import * as GitHubRequestPolicy from "@t3tools/source-control-github/server/GitHubRequestPolicy";import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";import * as GitLabCli from "@t3tools/source-control-gitlab/server/GitLabCli";import { azureDevOpsProviderFailure } from "@t3tools/source-control-azure-devops/server/AzureDevOpsPullRequestProvider";@@ -16,7 +17,7 @@ const cause = new Error("redacted provider failure");it("classifies rate limits from every pull-request provider", () => {assert.deepStrictEqual(gitHubProviderFailure(- new GitHubApi.GitHubApiRateLimitError({ host: "github.com", operation: "execute" }),+ new GitHubRequestPolicy.GitHubApiRateLimitError({ host: "github.com", operation: "execute" }),),{ reason: "rate-limited" },);diff --git a/apps/server/src/pullRequest/PullRequestService.test.ts b/apps/server/src/pullRequest/PullRequestService.test.tsindex 70865973854..b507848aa18 100644--- a/apps/server/src/pullRequest/PullRequestService.test.ts+++ b/apps/server/src/pullRequest/PullRequestService.test.ts@@ -36,7 +36,7 @@ import * as SourceControlProviderRegistry from "../sourceControl/SourceControlPrimport * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";import * as ForgejoCli from "@t3tools/source-control-forgejo/server/ForgejoCli";import * as ForgejoPullRequestProvider from "@t3tools/source-control-forgejo/server/ForgejoPullRequestProvider";-import * as GitHubApi from "@t3tools/source-control-github/server/GitHubApi";+import * as GitHubRest from "@t3tools/source-control-github/server/GitHubRest";import * as GitHubCredentials from "@t3tools/source-control-github/server/GitHubCredentials";import * as GitHubPullRequestApi from "@t3tools/source-control-github/server/GitHubPullRequestApi";import * as GitHubPullRequestProvider from "@t3tools/source-control-github/server/GitHubPullRequestProvider";@@ -1750,13 +1750,14 @@ it.effect("keeps branch deletion on the credential that passed source repositorybody = {data: {node: {+ __typename: "Repository",defaultBranchRef: { name: "main" },- ref: { target: { oid: "abc123" } },+ ref: { target: { __typename: "Commit", oid: "abc123" } },},},};} else if (operation.includes("updateRefs(")) {- body = { data: { updateRefs: {} } };+ body = { data: { updateRefs: { clientMutationId: null } } };} else {activeToken = "account-b";body = {@@ -1775,18 +1776,24 @@ it.effect("keeps branch deletion on the credential that passed source repository},};}- return HttpClientResponse.fromWeb(request, new Response(JSON.stringify(body)));+ return HttpClientResponse.fromWeb(+ request,+ new Response(JSON.stringify(body), {+ headers: { "content-type": "application/json" },+ }),+ );}),),);const provider = yield* GitHubPullRequestProvider.make.pipe(Effect.provide(GitHubPullRequestApi.layer.pipe(+ // GraphQL reads go over `http` too, through the same credential and quota as REST.Layer.provide(- GitHubApi.layer.pipe(- Layer.provide(Layer.mergeAll(credentials, http)),- Layer.provide(GitHubQuota.layer),- Layer.provide(SourceControlRateLimit.layer),+ GitHubRest.layer.pipe(+ Layer.provideMerge(Layer.mergeAll(credentials, http)),+ Layer.provideMerge(GitHubQuota.layer),+ Layer.provideMerge(SourceControlRateLimit.layer),),),Layer.provide(TestSourceControlHost.layer()),diff --git a/apps/server/src/sourceControl/SourceControlDiscovery.test.ts b/apps/server/src/sourceControl/SourceControlDiscovery.test.tsindex cc79c19571e..64661058d85 100644--- a/apps/server/src/sourceControl/SourceControlDiscovery.test.ts+++ b/apps/server/src/sourceControl/SourceControlDiscovery.test.ts@@ -21,7 +21,8 @@ import * as AzureDevOpsCli from "@t3tools/source-control-azure-devops/server/Azuimport * as AzureDevOpsPullRequestCli from "@t3tools/source-control-azure-devops/server/AzureDevOpsPullRequestCli";import * as BitbucketApi from "@t3tools/source-control-bitbucket/server/BitbucketApi";import * as BitbucketPullRequestApi from "@t3tools/source-control-bitbucket/server/BitbucketPullRequestApi";-import * as GitHubApi from "@t3tools/source-control-github/server/GitHubApi";+import * as GitHubRest from "@t3tools/source-control-github/server/GitHubRest";+import * as GitHubRequestPolicy from "@t3tools/source-control-github/server/GitHubRequestPolicy";import * as GitHubPullRequestApi from "@t3tools/source-control-github/server/GitHubPullRequestApi";import * as GitLabCli from "@t3tools/source-control-gitlab/server/GitLabCli";import * as GitLabPullRequestCli from "@t3tools/source-control-gitlab/server/GitLabPullRequestCli";@@ -51,7 +52,13 @@ const layerSourceControlProviderRegistryTest = (input: {Layer.mock(BitbucketPullRequestApi.BitbucketPullRequestApi)({}),ServerSettings.ServerSettingsService.layerTest(),Layer.mock(GitHubPullRequestApi.GitHubPullRequestApi)({}),- Layer.mock(GitHubApi.GitHubApi)({}),+ Layer.mock(GitHubRest.GitHubRest)({}),+ // The GitHub provider's GraphQL reads go through these; no test here makes one.+ Layer.mock(GitHubRequestPolicy.GitHubRequestPolicy)({}),+ Layer.succeed(+ HttpClient.HttpClient,+ HttpClient.make(() => Effect.die(new Error("Unexpected GitHub GraphQL read"))),+ ),Layer.mock(GitVcsDriver.GitVcsDriver)({}),Layer.mock(GitLabCli.GitLabCli)({}),Layer.mock(GitLabPullRequestCli.GitLabPullRequestCli)({}),diff --git a/apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts b/apps/server/src/sourceControl/SourceControlProviderRegistry.test.tsindex 3e743015755..117d8ff574f 100644--- a/apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts+++ b/apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts@@ -12,6 +12,7 @@ import * as PubSub from "effect/PubSub";import * as Redacted from "effect/Redacted";import * as Stream from "effect/Stream";import * as TestClock from "effect/testing/TestClock";+import { HttpClient } from "effect/http";import { ChildProcessSpawner } from "effect/process";import {DEFAULT_SERVER_SETTINGS,@@ -30,7 +31,8 @@ import * as AzureDevOpsPullRequestCli from "@t3tools/source-control-azure-devopsimport * as BitbucketApi from "@t3tools/source-control-bitbucket/server/BitbucketApi";import * as BitbucketPullRequestApi from "@t3tools/source-control-bitbucket/server/BitbucketPullRequestApi";import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";-import * as GitHubApi from "@t3tools/source-control-github/server/GitHubApi";+import * as GitHubRest from "@t3tools/source-control-github/server/GitHubRest";+import * as GitHubRequestPolicy from "@t3tools/source-control-github/server/GitHubRequestPolicy";import * as GitHubPullRequestApi from "@t3tools/source-control-github/server/GitHubPullRequestApi";import * as GitHubCredentials from "@t3tools/source-control-github/server/GitHubCredentials";import * as GitLabCli from "@t3tools/source-control-gitlab/server/GitLabCli";@@ -63,7 +65,7 @@ function makeRegistry(input: {readonly url: string;}>;readonly process?: Partial<VcsProcess.VcsProcess["Service"]>;- readonly githubApi?: Partial<GitHubApi.GitHubApi["Service"]>;+ readonly githubApi?: Partial<GitHubRest.GitHubRest["Service"]>;readonly gitlab?: Partial<GitLabCli.GitLabCli["Service"]>;readonly forgejo?: Partial<ForgejoCli.ForgejoCli["Service"]>;readonly settings?: Partial<ServerSettings.ServerSettingsService["Service"]>;@@ -135,7 +137,13 @@ function makeRegistry(input: {? Layer.mock(ServerSettings.ServerSettingsService)(input.settings): ServerSettings.ServerSettingsService.layerTest(),Layer.mock(GitHubPullRequestApi.GitHubPullRequestApi)({}),- Layer.mock(GitHubApi.GitHubApi)({+ // The GitHub provider's GraphQL reads go through these; no test here makes one.+ Layer.mock(GitHubRequestPolicy.GitHubRequestPolicy)({}),+ Layer.succeed(+ HttpClient.HttpClient,+ HttpClient.make(() => Effect.die(new Error("Unexpected GitHub GraphQL read"))),+ ),+ Layer.mock(GitHubRest.GitHubRest)({// No GitHub credential unless a test supplies one, so custom hosts stay unclaimed.credential: (host) => Effect.fail(new GitHubCredentials.GitHubNotSignedInError({ host })),...input.githubApi,diff --git a/apps/server/src/sourceControl/builtInDrivers.ts b/apps/server/src/sourceControl/builtInDrivers.tsindex 1b891ce9259..5bd63ca8da5 100644--- a/apps/server/src/sourceControl/builtInDrivers.ts+++ b/apps/server/src/sourceControl/builtInDrivers.ts@@ -18,7 +18,7 @@ import * as ForgejoDriver from "@t3tools/source-control-forgejo/server/driver";import * as GitCafeApi from "@t3tools/source-control-gitcafe/server/GitCafeApi";import * as GitCafeCredentials from "@t3tools/source-control-gitcafe/server/GitCafeCredentials";import * as GitCafeDriver from "@t3tools/source-control-gitcafe/server/driver";-import * as GitHubApi from "@t3tools/source-control-github/server/GitHubApi";+import * as GitHubRest from "@t3tools/source-control-github/server/GitHubRest";import * as GitHubPullRequestApi from "@t3tools/source-control-github/server/GitHubPullRequestApi";import * as GitHubDriver from "@t3tools/source-control-github/server/driver";import * as GitLabCli from "@t3tools/source-control-gitlab/server/GitLabCli";@@ -49,9 +49,9 @@ export const BUILT_IN_SOURCE_CONTROL_DRIVERS: ReadonlyArray</** The services the built-in drivers' packages own, plus the host port they all run against. */export const layer = Layer.mergeAll(- // `GitHubApi.layerWithDependencies` carries the quota reserve and rate-limit pause every GitHub+ // `GitHubRest.layerWithDependencies` carries the quota reserve and rate-limit pause every GitHub// reader shares, so the server builds it once, here.- GitHubPullRequestApi.layer.pipe(Layer.provideMerge(GitHubApi.layerWithDependencies)),+ GitHubPullRequestApi.layer.pipe(Layer.provideMerge(GitHubRest.layerWithDependencies)),AzureDevOpsPullRequestCli.layer.pipe(Layer.provideMerge(AzureDevOpsCli.layer)),BitbucketPullRequestApi.layer.pipe(Layer.provideMerge(BitbucketApi.layer)),ForgejoCli.layer,diff --git a/apps/server/src/sourceControl/githubStackRebase.test.ts b/apps/server/src/sourceControl/githubStackRebase.test.tsindex 613c0016c65..921d499ff0b 100644--- a/apps/server/src/sourceControl/githubStackRebase.test.ts+++ b/apps/server/src/sourceControl/githubStackRebase.test.ts@@ -5,7 +5,7 @@ import * as FileSystem from "effect/FileSystem";import * as Layer from "effect/Layer";import * as Redacted from "effect/Redacted";-import * as GitHubApi from "@t3tools/source-control-github/server/GitHubApi";+import * as GitHubRest from "@t3tools/source-control-github/server/GitHubRest";import { cascadeRebaseStack } from "@t3tools/source-control-github/server/githubStackRebase";import * as ServerSettings from "../serverSettings.ts";@@ -15,7 +15,7 @@ import * as VcsProcess from "../vcs/VcsProcess.ts";import * as ServerSourceControlHost from "./ServerSourceControlHost.ts";const layer = Layer.mergeAll(- Layer.mock(GitHubApi.GitHubApi)({+ Layer.mock(GitHubRest.GitHubRest)({credential: () => Effect.succeed({ token: Redacted.make("token"), fingerprint: "fp" }),}),// The cascade runs real git through the server's host; the git driver itself is never asked.diff --git a/knip.jsonc b/knip.jsoncindex de3852398c4..6e16e4b25a1 100644--- a/knip.jsonc+++ b/knip.jsonc@@ -110,5 +110,10 @@"entry": ["test/fixtures/*.ts"],"ignoreIssues": { "src/_generated/**": ["exports", "types"] },},+ "packages/source-control-github": {+ // graphqlgen reads its config; the generated operations export every selection's class.+ "entry": ["graphql.config.ts"],+ "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },+ },},}diff --git a/packages/shared/src/nodeRuntime.ts b/packages/shared/src/nodeRuntime.tsindex ef7872e38ca..bfc7881c6ec 100644--- a/packages/shared/src/nodeRuntime.ts+++ b/packages/shared/src/nodeRuntime.ts@@ -100,8 +100,7 @@ export const resolveNodeExecutable = Effect.fn("nodeRuntime.resolveNodeExecutablhostInfo.value.dev === nodeInfo.value.dev &&Option.isSome(hostInfo.value.ino) &&Option.isSome(nodeInfo.value.ino) &&- Number.isSafeInteger(hostInfo.value.ino.value) &&- hostInfo.value.ino.value > 0 &&+ hostInfo.value.ino.value > 0n &&hostInfo.value.ino.value === nodeInfo.value.ino.value) {return yield* new NodeRuntimeUnavailableError({ feature });diff --git a/packages/source-control-github/graphql.config.ts b/packages/source-control-github/graphql.config.tsnew file mode 100644index 00000000000..f2db555177e--- /dev/null+++ b/packages/source-control-github/graphql.config.ts@@ -0,0 +1,16 @@+import { defineConfig } from "@effect/graphql-generator/Config";++// `schema/github.graphql` is github.com's public schema+// (https://docs.github.com/public/fpt/schema.docs.graphql). Enterprise Server lacks some of its+// fields, such as pull request stacks, so a document asks for those under `@include`.+export default defineConfig({+ schema: "./schema/github.graphql",+ documents: ["src/**/*.graphql"],+ scalars: {+ GitObjectID: "effect/Schema#String",+ // A fully qualified ref name such as `refs/heads/main`.+ GitRefname: "effect/Schema#String",+ // Kept as GitHub sends it: callers compare these strings with other reads of the same field.+ DateTime: "effect/Schema#String",+ },+});diff --git a/packages/source-control-github/package.json b/packages/source-control-github/package.jsonindex d7be6f20ce1..c779194b638 100644--- a/packages/source-control-github/package.json+++ b/packages/source-control-github/package.json@@ -11,9 +11,9 @@"types": "./src/server/driver.ts","import": "./src/server/driver.ts"},- "./server/GitHubApi": {- "types": "./src/server/GitHubApi.ts",- "import": "./src/server/GitHubApi.ts"+ "./server/GitHubRest": {+ "types": "./src/server/GitHubRest.ts",+ "import": "./src/server/GitHubRest.ts"},"./server/gitHubAuthStatus": {"types": "./src/server/gitHubAuthStatus.ts",@@ -31,9 +31,9 @@"types": "./src/server/GitHubCredentials.ts","import": "./src/server/GitHubCredentials.ts"},- "./server/githubGraphQl": {- "types": "./src/server/githubGraphQl.ts",- "import": "./src/server/githubGraphQl.ts"+ "./server/GitHubRequestPolicy": {+ "types": "./src/server/GitHubRequestPolicy.ts",+ "import": "./src/server/GitHubRequestPolicy.ts"},"./server/GitHubPullRequestApi": {"types": "./src/server/GitHubPullRequestApi.ts",@@ -74,7 +74,8 @@},"scripts": {"typecheck": "tsc-rs --noEmit",- "test": "vp test run --config ../../vite.config.ts --dir ."+ "test": "vp test run --config ../../vite.config.ts --dir .",+ "generate": "graphqlgen"},"dependencies": {"@t3tools/contracts": "workspace:*",@@ -84,6 +85,7 @@"effect": "catalog:"},"devDependencies": {+ "@effect/graphql-generator": "catalog:","@effect/platform-node": "catalog:","@effect/vitest": "catalog:","@t3tools/source-control-testing": "workspace:*",diff --git a/packages/source-control-github/schema/github.graphql b/packages/source-control-github/schema/github.graphqlnew file mode 100644index 00000000000..c77c99f24a7--- /dev/null+++ b/packages/source-control-github/schema/github.graphql@@ -0,0 +1,75217 @@+"""+Marks an element of a GraphQL schema as only available via a preview header+"""+directive @preview(+ """+ The identifier of the API preview that toggles this field.+ """+ toggledBy: String!+) on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION++"""+Defines what type of global IDs are accepted for a mutation argument of type ID.+"""+directive @possibleTypes(+ """+ Abstract type of accepted global ID+ """+ abstractType: String++ """+ Accepted types of global IDs.+ """+ concreteTypes: [String!]!+) on INPUT_FIELD_DEFINITION++"""+Assigns a documentation category for docs.github.com, aligned with REST API reference sections.+"""+directive @docsCategory(+ """+ The category slug (e.g. "issues", "pulls", "repos").+ """+ name: String!+) on ENUM | FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | UNION++"""+Autogenerated input type of AbortQueuedMigrations+"""+input AbortQueuedMigrationsInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the organization that is running the migrations.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of AbortQueuedMigrations.+"""+type AbortQueuedMigrationsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Did the operation succeed?+ """+ success: Boolean+}++"""+Autogenerated input type of AbortRepositoryMigration+"""+input AbortRepositoryMigrationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the migration to be aborted.+ """+ migrationId: ID! @possibleTypes(concreteTypes: ["RepositoryMigration"])+}++"""+Autogenerated return type of AbortRepositoryMigration.+"""+type AbortRepositoryMigrationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Did the operation succeed?+ """+ success: Boolean+}++"""+Autogenerated input type of AcceptEnterpriseAdministratorInvitation+"""+input AcceptEnterpriseAdministratorInvitationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the invitation being accepted+ """+ invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"])+}++"""+Autogenerated return type of AcceptEnterpriseAdministratorInvitation.+"""+type AcceptEnterpriseAdministratorInvitationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The invitation that was accepted.+ """+ invitation: EnterpriseAdministratorInvitation++ """+ A message confirming the result of accepting an administrator invitation.+ """+ message: String+}++"""+Autogenerated input type of AcceptEnterpriseMemberInvitation+"""+input AcceptEnterpriseMemberInvitationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the invitation being accepted+ """+ invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseMemberInvitation"])+}++"""+Autogenerated return type of AcceptEnterpriseMemberInvitation.+"""+type AcceptEnterpriseMemberInvitationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The invitation that was accepted.+ """+ invitation: EnterpriseMemberInvitation++ """+ A message confirming the result of accepting an unaffiliated member invitation.+ """+ message: String+}++"""+Autogenerated input type of AcceptTopicSuggestion+"""+input AcceptTopicSuggestionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of the suggested topic.++ **Upcoming Change on 2024-04-01 UTC**+ **Description:** `name` will be removed.+ **Reason:** Suggested topics are no longer supported+ """+ name: String++ """+ The Node ID of the repository.++ **Upcoming Change on 2024-04-01 UTC**+ **Description:** `repositoryId` will be removed.+ **Reason:** Suggested topics are no longer supported+ """+ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of AcceptTopicSuggestion.+"""+type AcceptTopicSuggestionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The accepted topic.+ """+ topic: Topic @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")+}++"""+Autogenerated input type of AccessUserNamespaceRepository+"""+input AccessUserNamespaceRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise owning the user namespace repository.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The ID of the user namespace repository to access.+ """+ repositoryId: ID!+}++"""+Autogenerated return type of AccessUserNamespaceRepository.+"""+type AccessUserNamespaceRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The time that repository access expires at+ """+ expiresAt: DateTime++ """+ The repository that is temporarily accessible.+ """+ repository: Repository+}++"""+Represents an object which can take actions on GitHub. Typically a User or Bot.+"""+interface Actor @docsCategory(name: "users") {+ """+ A URL pointing to the actor's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ The username of the actor.+ """+ login: String!++ """+ The HTTP path for this actor.+ """+ resourcePath: URI!++ """+ The HTTP URL for this actor.+ """+ url: URI!+}++"""+The connection type for Actor.+"""+type ActorConnection {+ """+ A list of edges.+ """+ edges: [ActorEdge]++ """+ A list of nodes.+ """+ nodes: [Actor]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ActorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Actor+}++"""+Location information for an actor+"""+type ActorLocation @docsCategory(name: "users") {+ """+ City+ """+ city: String++ """+ Country name+ """+ country: String++ """+ Country code+ """+ countryCode: String++ """+ Region name+ """+ region: String++ """+ Region or state code+ """+ regionCode: String+}++"""+The actor's type.+"""+enum ActorType @docsCategory(name: "users") {+ """+ Indicates a team actor.+ """+ TEAM++ """+ Indicates a user actor.+ """+ USER+}++"""+Autogenerated input type of AddAssigneesToAssignable+"""+input AddAssigneesToAssignableInput {+ """+ Configuration for assigning Copilot to this issue.+ """+ agentAssignment: AgentAssignmentInput++ """+ The id of the assignable object to add assignees to.+ """+ assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable")++ """+ The ids of actors (users or bots) to add as assignees. Mutually exclusive with `assignees`.+ """+ assigneeIds: [ID!]+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ An array of actors to add as assignees, each with optional rationale or+ suggest flag. Mutually exclusive with `assigneeIds`.+ """+ assignees: [AssigneeUpdateInput!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated return type of AddAssigneesToAssignable.+"""+type AddAssigneesToAssignablePayload {+ """+ The item that was assigned.+ """+ assignable: Assignable++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of AddBlockedBy+"""+input AddBlockedByInput {+ """+ The ID of the issue that blocks the given issue.+ """+ blockingIssueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue to be blocked.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of AddBlockedBy.+"""+type AddBlockedByPayload {+ """+ The issue that is blocking the given issue.+ """+ blockingIssue: Issue++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue that is blocked.+ """+ issue: Issue+}++"""+Autogenerated input type of AddCloseIssueReferences+"""+input AddCloseIssueReferencesInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the issue to add closing references to.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ IDs of the pull requests to link as closing references. Limit: 10.+ """+ pullRequestIds: [ID!]! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of AddCloseIssueReferences.+"""+type AddCloseIssueReferencesPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue the closing references were added to.+ """+ issue: Issue+}++"""+Autogenerated input type of AddComment+"""+input AddCommentInput {+ """+ The contents of the comment.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the subject to modify.+ """+ subjectId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest")+}++"""+Autogenerated return type of AddComment.+"""+type AddCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The edge from the subject's comment connection.+ """+ commentEdge: IssueCommentEdge++ """+ The subject+ """+ subject: Node++ """+ The edge from the subject's timeline connection.+ """+ timelineEdge: IssueTimelineItemEdge+}++"""+Autogenerated input type of AddDiscussionComment+"""+input AddDiscussionCommentInput {+ """+ The contents of the comment.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion to comment on.+ """+ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"])++ """+ The Node ID of the discussion comment within this discussion to reply to.+ """+ replyToId: ID @possibleTypes(concreteTypes: ["DiscussionComment"])+}++"""+Autogenerated return type of AddDiscussionComment.+"""+type AddDiscussionCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created discussion comment.+ """+ comment: DiscussionComment+}++"""+Autogenerated input type of AddDiscussionPollVote+"""+input AddDiscussionPollVoteInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion poll option to vote for.+ """+ pollOptionId: ID! @possibleTypes(concreteTypes: ["DiscussionPollOption"])+}++"""+Autogenerated return type of AddDiscussionPollVote.+"""+type AddDiscussionPollVotePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The poll option that a vote was added to.+ """+ pollOption: DiscussionPollOption+}++"""+Autogenerated input type of AddEnterpriseOrganizationMember+"""+input AddEnterpriseOrganizationMemberInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise which owns the organization.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The ID of the organization the users will be added to.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])++ """+ The role to assign the users in the organization+ """+ role: OrganizationMemberRole++ """+ The IDs of the enterprise members to add.+ """+ userIds: [ID!]!+}++"""+Autogenerated return type of AddEnterpriseOrganizationMember.+"""+type AddEnterpriseOrganizationMemberPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The users who were added to the organization.+ """+ users: [User!]+}++"""+Autogenerated input type of AddEnterpriseSupportEntitlement+"""+input AddEnterpriseSupportEntitlementInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Enterprise which the admin belongs to.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of a member who will receive the support entitlement.+ """+ login: String!+}++"""+Autogenerated return type of AddEnterpriseSupportEntitlement.+"""+type AddEnterpriseSupportEntitlementPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A message confirming the result of adding the support entitlement.+ """+ message: String+}++"""+Autogenerated input type of AddLabelsToLabelable+"""+input AddLabelsToLabelableInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ids of the labels to add.+ """+ labelIds: [ID!] @possibleTypes(concreteTypes: ["Label"])++ """+ The id of the labelable object to add labels to.+ """+ labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable")++ """+ The labels to add, each with optional `rationale` or a `suggest` flag that+ stores the addition as a pending suggestion. Mutually exclusive with `labelIds`.+ """+ labels: [LabelUpdateInput!]+}++"""+Autogenerated return type of AddLabelsToLabelable.+"""+type AddLabelsToLabelablePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item that was labeled.+ """+ labelable: Labelable+}++"""+Autogenerated input type of AddProjectCard+"""+input AddProjectCardInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The content of the card. Must be a member of the ProjectCardItem union+ """+ contentId: ID @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "ProjectCardItem")++ """+ The note on the card.+ """+ note: String++ """+ The Node ID of the ProjectColumn.+ """+ projectColumnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"])+}++"""+Autogenerated return type of AddProjectCard.+"""+type AddProjectCardPayload {+ """+ The edge from the ProjectColumn's card connection.+ """+ cardEdge: ProjectCardEdge++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ProjectColumn+ """+ projectColumn: ProjectColumn+}++"""+Autogenerated input type of AddProjectColumn+"""+input AddProjectColumnInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of the column.+ """+ name: String!++ """+ The Node ID of the project.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["Project"])+}++"""+Autogenerated return type of AddProjectColumn.+"""+type AddProjectColumnPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The edge from the project's column connection.+ """+ columnEdge: ProjectColumnEdge++ """+ The project+ """+ project: Project+}++"""+Autogenerated input type of AddProjectV2DraftIssue+"""+input AddProjectV2DraftIssueInput {+ """+ The IDs of the assignees of the draft issue.+ """+ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"])++ """+ The body of the draft issue.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Project to add the draft issue to.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The title of the draft issue. A project item can also be created by providing+ the URL of an Issue or Pull Request if you have access.+ """+ title: String!+}++"""+Autogenerated return type of AddProjectV2DraftIssue.+"""+type AddProjectV2DraftIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The draft issue added to the project.+ """+ projectItem: ProjectV2Item+}++"""+Autogenerated input type of AddProjectV2ItemById+"""+input AddProjectV2ItemByIdInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the Issue or Pull Request to add.+ """+ contentId: ID!+ @possibleTypes(concreteTypes: ["DraftIssue", "Issue", "PullRequest"], abstractType: "ProjectV2ItemContent")++ """+ The ID of the Project to add the item to.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of AddProjectV2ItemById.+"""+type AddProjectV2ItemByIdPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item added to the project.+ """+ item: ProjectV2Item+}++"""+Autogenerated input type of AddPullRequestCreationCapBypassUsers+"""+input AddPullRequestCreationCapBypassUsersInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The Node IDs of the users to add to the bypass list.+ """+ userIds: [ID!]! @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of AddPullRequestCreationCapBypassUsers.+"""+type AddPullRequestCreationCapBypassUsersPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository with the updated bypass list.+ """+ repository: Repository+}++"""+Autogenerated input type of AddPullRequestReviewComment+"""+input AddPullRequestReviewCommentInput {+ """+ The text of the comment. This field is required++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `body` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead+ **Reason:** We are deprecating the addPullRequestReviewComment mutation+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The SHA of the commit to comment on.++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `commitOID` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead+ **Reason:** We are deprecating the addPullRequestReviewComment mutation+ """+ commitOID: GitObjectID++ """+ The comment id to reply to.++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `inReplyTo` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead+ **Reason:** We are deprecating the addPullRequestReviewComment mutation+ """+ inReplyTo: ID @possibleTypes(concreteTypes: ["PullRequestReviewComment"])++ """+ The relative path of the file to comment on.++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `path` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead+ **Reason:** We are deprecating the addPullRequestReviewComment mutation+ """+ path: String++ """+ The line index in the diff to comment on.++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `position` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead+ **Reason:** We are deprecating the addPullRequestReviewComment mutation+ """+ position: Int++ """+ The node ID of the pull request reviewing++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `pullRequestId` will be removed. use+ addPullRequestReviewThread or addPullRequestReviewThreadReply instead+ **Reason:** We are deprecating the addPullRequestReviewComment mutation+ """+ pullRequestId: ID @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The Node ID of the review to modify.++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `pullRequestReviewId` will be removed. use+ addPullRequestReviewThread or addPullRequestReviewThreadReply instead+ **Reason:** We are deprecating the addPullRequestReviewComment mutation+ """+ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"])+}++"""+Autogenerated return type of AddPullRequestReviewComment.+"""+type AddPullRequestReviewCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created comment.+ """+ comment: PullRequestReviewComment++ """+ The edge from the review's comment connection.+ """+ commentEdge: PullRequestReviewCommentEdge+}++"""+Autogenerated input type of AddPullRequestReview+"""+input AddPullRequestReviewInput {+ """+ The contents of the review body comment.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The review line comments.++ **Upcoming Change on 2023-10-01 UTC**+ **Description:** `comments` will be removed. use the `threads` argument instead+ **Reason:** We are deprecating comment fields that use diff-relative positioning+ """+ comments: [DraftPullRequestReviewComment]++ """+ The commit OID the review pertains to.+ """+ commitOID: GitObjectID++ """+ The event to perform on the pull request review.+ """+ event: PullRequestReviewEvent++ """+ The Node ID of the pull request to modify.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The review line comment threads.+ """+ threads: [DraftPullRequestReviewThread]+}++"""+Autogenerated return type of AddPullRequestReview.+"""+type AddPullRequestReviewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created pull request review.+ """+ pullRequestReview: PullRequestReview++ """+ The edge from the pull request's review connection.+ """+ reviewEdge: PullRequestReviewEdge+}++"""+Autogenerated input type of AddPullRequestReviewThread+"""+input AddPullRequestReviewThreadInput {+ """+ Body of the thread's first comment.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The line of the blob to which the thread refers, required for line-level+ threads. The end of the line range for multi-line comments.+ """+ line: Int++ """+ Path to the file being commented on.+ """+ path: String++ """+ The node ID of the pull request reviewing+ """+ pullRequestId: ID @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The Node ID of the review to modify.+ """+ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"])++ """+ The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range.+ """+ side: DiffSide = RIGHT++ """+ The first line of the range to which the comment refers.+ """+ startLine: Int++ """+ The side of the diff on which the start line resides.+ """+ startSide: DiffSide = RIGHT++ """+ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file+ """+ subjectType: PullRequestReviewThreadSubjectType = LINE+}++"""+Autogenerated return type of AddPullRequestReviewThread.+"""+type AddPullRequestReviewThreadPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created thread.+ """+ thread: PullRequestReviewThread+}++"""+Autogenerated input type of AddPullRequestReviewThreadReply+"""+input AddPullRequestReviewThreadReplyInput {+ """+ The text of the reply.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pending review to which the reply will belong.+ """+ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"])++ """+ The Node ID of the thread to which this reply is being written.+ """+ pullRequestReviewThreadId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewThread"])+}++"""+Autogenerated return type of AddPullRequestReviewThreadReply.+"""+type AddPullRequestReviewThreadReplyPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created reply.+ """+ comment: PullRequestReviewComment+}++"""+Autogenerated input type of AddReaction+"""+input AddReactionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of the emoji to react with.+ """+ content: ReactionContent!++ """+ The Node ID of the subject to modify.+ """+ subjectId: ID!+ @possibleTypes(+ concreteTypes: [+ "CommitComment"+ "Discussion"+ "DiscussionComment"+ "Issue"+ "IssueComment"+ "PullRequest"+ "PullRequestReview"+ "PullRequestReviewComment"+ "Release"+ ]+ abstractType: "Reactable"+ )+}++"""+Autogenerated return type of AddReaction.+"""+type AddReactionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The reaction object.+ """+ reaction: Reaction++ """+ The reaction groups for the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ The reactable subject.+ """+ subject: Reactable+}++"""+Autogenerated input type of AddRelatesTo+"""+input AddRelatesToInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The ID of the related issue.+ """+ relatedIssueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of AddRelatesTo.+"""+type AddRelatesToPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The source issue.+ """+ issue: Issue++ """+ The related issue.+ """+ relatedIssue: Issue+}++"""+Autogenerated input type of AddStar+"""+input AddStarInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Starrable ID to star.+ """+ starrableId: ID! @possibleTypes(concreteTypes: ["Gist", "Repository", "Topic"], abstractType: "Starrable")+}++"""+Autogenerated return type of AddStar.+"""+type AddStarPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The starrable.+ """+ starrable: Starrable+}++"""+Autogenerated input type of AddSubIssue+"""+input AddSubIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ Option to replace parent issue if one already exists+ """+ replaceParent: Boolean++ """+ The id of the sub-issue.+ """+ subIssueId: ID @possibleTypes(concreteTypes: ["Issue"])++ """+ The url of the sub-issue.+ """+ subIssueUrl: String+}++"""+Autogenerated return type of AddSubIssue.+"""+type AddSubIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The parent issue that the sub-issue was added to.+ """+ issue: Issue++ """+ The sub-issue of the parent.+ """+ subIssue: Issue+}++"""+Autogenerated input type of AddUpvote+"""+input AddUpvoteInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion or comment to upvote.+ """+ subjectId: ID! @possibleTypes(concreteTypes: ["Discussion", "DiscussionComment"], abstractType: "Votable")+}++"""+Autogenerated return type of AddUpvote.+"""+type AddUpvotePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The votable subject.+ """+ subject: Votable+}++"""+Autogenerated input type of AddVerifiableDomain+"""+input AddVerifiableDomainInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The URL of the domain+ """+ domain: URI!++ """+ The ID of the owner to add the domain to+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization"], abstractType: "VerifiableDomainOwner")+}++"""+Autogenerated return type of AddVerifiableDomain.+"""+type AddVerifiableDomainPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The verifiable domain that was added.+ """+ domain: VerifiableDomain+}++"""+Represents an 'added_to_merge_queue' event on a given pull request.+"""+type AddedToMergeQueueEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The user who added this Pull Request to the merge queue+ """+ enqueuer: User++ """+ The Node ID of the AddedToMergeQueueEvent object+ """+ id: ID!++ """+ The merge queue where this pull request was added to.+ """+ mergeQueue: MergeQueue++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest+}++"""+Represents a 'added_to_project' event on a given issue or pull request.+"""+type AddedToProjectEvent implements Node @docsCategory(name: "projects-classic") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The Node ID of the AddedToProjectEvent object+ """+ id: ID!++ """+ Project referenced by event.+ """+ project: Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Project card referenced by this project event.+ """+ projectCard: ProjectCard+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Column name referenced by this project event.+ """+ projectColumnName: String!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+Represents a 'added_to_project_v2' event on a given issue or pull request.+"""+type AddedToProjectV2Event implements Node & ProjectV2Event @docsCategory(name: "projects") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the AddedToProjectV2Event object+ """+ id: ID!++ """+ Project referenced by event.+ """+ project: ProjectV2++ """+ Did this event result from workflow automation?+ """+ wasAutomated: Boolean!+}++"""+Represents an 'added_to_stack' event on a given pull request.+"""+type AddedToStackEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the AddedToStackEvent object+ """+ id: ID!++ """+ Pull request added to the stack.+ """+ pullRequest: PullRequest++ """+ Database ID of the stack.+ """+ stackId: BigInt++ """+ Number of the stack in its repository.+ """+ stackNumber: Int+}++"""+Represents configuration for assigning Copilot to an issue (public variant)+"""+input AgentAssignmentInput @docsCategory(name: "users") {+ """+ The base ref/branch for the repository. Defaults to the default branch if not provided.+ """+ baseRef: String++ """+ Custom agent for Copilot.+ """+ customAgent: String++ """+ Custom instructions for Copilot.+ """+ customInstructions: String++ """+ The Node ID of the target repository where Copilot should work. Defaults to the issue's repository if not provided.+ """+ targetRepositoryId: ID @possibleTypes(concreteTypes: ["Repository"])+}++"""+Copilot Agentic fields in context of the current viewer.+"""+interface Agentic @docsCategory(name: "copilot") {+ """+ Channel value for subscribing to live updates for session creations.+ """+ viewerCopilotAgentCreatesChannel: String++ """+ Channel value for subscribing to live updates for session log updates.+ """+ viewerCopilotAgentLogUpdatesChannel: String++ """+ Channel value for subscribing to live updates for task updates.+ """+ viewerCopilotAgentTaskUpdatesChannel: String++ """+ Channel value for subscribing to live updates for session updates.+ """+ viewerCopilotAgentUpdatesChannel: String+}++"""+An announcement banner for an enterprise or organization.+"""+type AnnouncementBanner @docsCategory(name: "enterprise-admin") {+ """+ The date the announcement was created+ """+ createdAt: DateTime!++ """+ The expiration date of the announcement, if any+ """+ expiresAt: DateTime++ """+ Whether the announcement can be dismissed by the user+ """+ isUserDismissible: Boolean!++ """+ The text of the announcement+ """+ message: String+}++"""+A GitHub App.+"""+type App implements Node @docsCategory(name: "apps") {+ """+ The client ID of the app.+ """+ clientId: String++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The description of the app.+ """+ description: String++ """+ The Node ID of the App object+ """+ id: ID!++ """+ The IP addresses of the app.+ """+ ipAllowListEntries(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for IP allow list entries returned.+ """+ orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC}+ ): IpAllowListEntryConnection!++ """+ The hex color code, without the leading '#', for the logo background.+ """+ logoBackgroundColor: String!++ """+ A URL pointing to the app's logo.+ """+ logoUrl(+ """+ The size of the resulting image.+ """+ size: Int+ ): URI!++ """+ The name of the app.+ """+ name: String!++ """+ A slug based on the name of the app for use in URLs.+ """+ slug: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The URL to the app's homepage.+ """+ url: URI!+}++"""+Autogenerated input type of ApplyPendingIssueSuggestions+"""+input ApplyPendingIssueSuggestionsInput {+ """+ The ID of the actor whose suggestions to apply.+ """+ actorId: ID!+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue the suggestions apply to.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The pending suggestions to apply.+ """+ suggestions: [PendingIssueSuggestionRef!]!+}++"""+Autogenerated return type of ApplyPendingIssueSuggestions.+"""+type ApplyPendingIssueSuggestionsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated issue.+ """+ issue: Issue+}++"""+Autogenerated input type of ApproveDeployments+"""+input ApproveDeploymentsInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Optional comment for approving deployments+ """+ comment: String = ""++ """+ The ids of environments to reject deployments+ """+ environmentIds: [ID!]!++ """+ The node ID of the workflow run containing the pending deployments.+ """+ workflowRunId: ID! @possibleTypes(concreteTypes: ["WorkflowRun"])+}++"""+Autogenerated return type of ApproveDeployments.+"""+type ApproveDeploymentsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The affected deployments.+ """+ deployments: [Deployment!]+}++"""+Autogenerated input type of ApproveVerifiableDomain+"""+input ApproveVerifiableDomainInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the verifiable domain to approve.+ """+ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"])+}++"""+Autogenerated return type of ApproveVerifiableDomain.+"""+type ApproveVerifiableDomainPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The verifiable domain that was approved.+ """+ domain: VerifiableDomain+}++"""+Autogenerated input type of ArchiveProjectV2Item+"""+input ArchiveProjectV2ItemInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the ProjectV2Item to archive.+ """+ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ The ID of the Project to archive the item from.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of ArchiveProjectV2Item.+"""+type ArchiveProjectV2ItemPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item archived from the project.+ """+ item: ProjectV2Item+}++"""+Autogenerated input type of ArchivePullRequest+"""+input ArchivePullRequestInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pull request to archive.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of ArchivePullRequest.+"""+type ArchivePullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that was archived.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of ArchiveRepository+"""+input ArchiveRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the repository to mark as archived.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of ArchiveRepository.+"""+type ArchiveRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository that was marked as archived.+ """+ repository: Repository+}++"""+An object that can have users assigned to it.+"""+interface Assignable @docsCategory(name: "issues") {+ """+ A list of actors assigned to this object.+ """+ assignedActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): AssigneeConnection!++ """+ A list of Users assigned to this object.+ """+ assignees(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ A list of suggested actors to assign to this object+ """+ suggestedActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ If provided, searches users by login or profile name+ """+ query: String+ ): AssigneeConnection!++ """+ Indicates if the viewer can edit assignees for this object.+ """+ viewerCanAssign: Boolean!+}++"""+Represents an 'assigned' event on any assignable object.+"""+type AssignedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the assignable associated with the event.+ """+ assignable: Assignable!++ """+ Identifies the user or mannequin that was assigned.+ """+ assignee: Assignee++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the AssignedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ Identifies the user who was assigned.+ """+ user: User+ @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.")+}++"""+Types that can be assigned to issues.+"""+union Assignee @docsCategory(name: "issues") = Bot | Mannequin | Organization | User++"""+The connection type for Assignee.+"""+type AssigneeConnection {+ """+ A list of edges.+ """+ edges: [AssigneeEdge]++ """+ A list of nodes.+ """+ nodes: [Assignee]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type AssigneeEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Assignee+}++"""+Specifies an actor (user or bot) to assign to an issue, with optional metadata such as a rationale.+"""+input AssigneeUpdateInput @docsCategory(name: "issues") {+ """+ The ID of the actor (user or bot) to assign.+ """+ actorId: ID!+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ The confidence level the agent had when selecting this value.+ """+ confidence: IssueEventConfidenceLevel++ """+ Optional rationale describing why this value was selected. Max 280 characters.+ """+ rationale: String++ """+ If true, the value is stored as a pending suggestion for human review rather than being applied directly.+ """+ suggest: Boolean+}++"""+An entry in the audit log.+"""+interface AuditEntry @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Types that can initiate an audit log event.+"""+union AuditEntryActor @docsCategory(name: "enterprise-admin") = Bot | Organization | User++"""+Ordering options for Audit Log connections.+"""+input AuditLogOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection++ """+ The field to order Audit Logs by.+ """+ field: AuditLogOrderField+}++"""+Properties by which Audit Log connections can be ordered.+"""+enum AuditLogOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order audit log entries by timestamp+ """+ CREATED_AT+}++"""+Represents a 'auto_merge_disabled' event on a given pull request.+"""+type AutoMergeDisabledEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The user who disabled auto-merge for this Pull Request+ """+ disabler: User++ """+ The Node ID of the AutoMergeDisabledEvent object+ """+ id: ID!++ """+ PullRequest referenced by event+ """+ pullRequest: PullRequest++ """+ The reason auto-merge was disabled+ """+ reason: String++ """+ The reason_code relating to why auto-merge was disabled+ """+ reasonCode: String+}++"""+Represents a 'auto_merge_enabled' event on a given pull request.+"""+type AutoMergeEnabledEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The user who enabled auto-merge for this Pull Request+ """+ enabler: User++ """+ The Node ID of the AutoMergeEnabledEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest+}++"""+Represents an auto-merge request for a pull request+"""+type AutoMergeRequest @docsCategory(name: "pulls") {+ """+ The email address of the author of this auto-merge request.+ """+ authorEmail: String++ """+ The commit message of the auto-merge request. If a merge queue is required by+ the base branch, this value will be set by the merge queue when merging.+ """+ commitBody: String++ """+ The commit title of the auto-merge request. If a merge queue is required by+ the base branch, this value will be set by the merge queue when merging+ """+ commitHeadline: String++ """+ When was this auto-merge request was enabled.+ """+ enabledAt: DateTime++ """+ The actor who created the auto-merge request.+ """+ enabledBy: Actor++ """+ The merge method of the auto-merge request. If a merge queue is required by+ the base branch, this value will be set by the merge queue when merging.+ """+ mergeMethod: PullRequestMergeMethod!++ """+ The pull request that this auto-merge request is set against.+ """+ pullRequest: PullRequest!+}++"""+Represents a 'auto_rebase_enabled' event on a given pull request.+"""+type AutoRebaseEnabledEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The user who enabled auto-merge (rebase) for this Pull Request+ """+ enabler: User++ """+ The Node ID of the AutoRebaseEnabledEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest+}++"""+Represents a 'auto_squash_enabled' event on a given pull request.+"""+type AutoSquashEnabledEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The user who enabled auto-merge (squash) for this Pull Request+ """+ enabler: User++ """+ The Node ID of the AutoSquashEnabledEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest+}++"""+Represents a 'automatic_base_change_failed' event on a given pull request.+"""+type AutomaticBaseChangeFailedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the AutomaticBaseChangeFailedEvent object+ """+ id: ID!++ """+ The new base for this PR+ """+ newBase: String!++ """+ The old base for this PR+ """+ oldBase: String!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!+}++"""+Represents a 'automatic_base_change_succeeded' event on a given pull request.+"""+type AutomaticBaseChangeSucceededEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the AutomaticBaseChangeSucceededEvent object+ """+ id: ID!++ """+ The new base for this PR+ """+ newBase: String!++ """+ The old base for this PR+ """+ oldBase: String!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!+}++"""+A (potentially binary) string encoded using base64.+"""+scalar Base64String++"""+Represents a 'base_ref_changed' event on a given issue or pull request.+"""+type BaseRefChangedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the name of the base ref for the pull request after it was changed.+ """+ currentRefName: String!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the BaseRefChangedEvent object+ """+ id: ID!++ """+ Identifies the name of the base ref for the pull request before it was changed.+ """+ previousRefName: String!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!+}++"""+Represents a 'base_ref_deleted' event on a given pull request.+"""+type BaseRefDeletedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the name of the Ref associated with the `base_ref_deleted` event.+ """+ baseRefName: String++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the BaseRefDeletedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest+}++"""+Represents a 'base_ref_force_pushed' event on a given pull request.+"""+type BaseRefForcePushedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the after commit SHA for the 'base_ref_force_pushed' event.+ """+ afterCommit: Commit++ """+ Identifies the before commit SHA for the 'base_ref_force_pushed' event.+ """+ beforeCommit: Commit++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the BaseRefForcePushedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ Identifies the fully qualified ref name for the 'base_ref_force_pushed' event.+ """+ ref: Ref+}++"""+Represents non-fractional signed whole numeric values. Since the value may+exceed the size of a 32-bit integer, it's encoded as a string.+"""+scalar BigInt++"""+Represents a Git blame.+"""+type Blame @docsCategory(name: "git") {+ """+ The list of ranges from a Git blame.+ """+ ranges: [BlameRange!]!+}++"""+Represents a range of information from a Git blame.+"""+type BlameRange @docsCategory(name: "git") {+ """+ Identifies the recency of the change, from 1 (new) to 10 (old). This is+ calculated as a 2-quantile and determines the length of distance between the+ median age of all the changes in the file and the recency of the current+ range's change.+ """+ age: Int!++ """+ Identifies the line author+ """+ commit: Commit!++ """+ The ending line for the range+ """+ endingLine: Int!++ """+ The starting line for the range+ """+ startingLine: Int!+}++"""+Represents a Git blob.+"""+type Blob implements GitObject & Node @docsCategory(name: "git") {+ """+ An abbreviated version of the Git object ID+ """+ abbreviatedOid: String!++ """+ Byte size of Blob object+ """+ byteSize: Int!++ """+ The HTTP path for this Git object+ """+ commitResourcePath: URI!++ """+ The HTTP URL for this Git object+ """+ commitUrl: URI!++ """+ The Node ID of the Blob object+ """+ id: ID!++ """+ Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding.+ """+ isBinary: Boolean++ """+ Indicates whether the contents is truncated+ """+ isTruncated: Boolean!++ """+ The Git object ID+ """+ oid: GitObjectID!++ """+ The Repository the Git object belongs to+ """+ repository: Repository!++ """+ UTF8 text data or null if the Blob is binary+ """+ text: String+}++"""+Represents a 'blocked_by_added' event on a given issue.+"""+type BlockedByAddedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ The blocking issue that was added.+ """+ blockingIssue: Issue++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the BlockedByAddedEvent object+ """+ id: ID!+}++"""+Represents a 'blocked_by_removed' event on a given issue.+"""+type BlockedByRemovedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ The blocking issue that was removed.+ """+ blockingIssue: Issue++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the BlockedByRemovedEvent object+ """+ id: ID!+}++"""+Represents a 'blocking_added' event on a given issue.+"""+type BlockingAddedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ The blocked issue that was added.+ """+ blockedIssue: Issue++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the BlockingAddedEvent object+ """+ id: ID!+}++"""+Represents a 'blocking_removed' event on a given issue.+"""+type BlockingRemovedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ The blocked issue that was removed.+ """+ blockedIssue: Issue++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the BlockingRemovedEvent object+ """+ id: ID!+}++"""+A special type of user which takes actions on behalf of GitHub Apps.+"""+type Bot implements Actor & Node & UniformResourceLocatable @docsCategory(name: "apps") {+ """+ A URL pointing to the GitHub App's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the Bot object+ """+ id: ID!++ """+ The username of the actor.+ """+ login: String!++ """+ The HTTP path for this bot+ """+ resourcePath: URI!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this bot+ """+ url: URI!+}++"""+Types which can be actors for `BranchActorAllowance` objects.+"""+union BranchActorAllowanceActor @docsCategory(name: "branches") = App | Team | User++"""+Parameters to be used for the branch_name_pattern rule+"""+type BranchNamePatternParameters @docsCategory(name: "branches") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean!++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+Parameters to be used for the branch_name_pattern rule+"""+input BranchNamePatternParametersInput @docsCategory(name: "branches") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+A branch protection rule.+"""+type BranchProtectionRule implements Node @docsCategory(name: "branches") {+ """+ Can this branch be deleted.+ """+ allowsDeletions: Boolean!++ """+ Are force pushes allowed on this branch.+ """+ allowsForcePushes: Boolean!++ """+ Is branch creation a protected operation.+ """+ blocksCreations: Boolean!++ """+ A list of conflicts matching branches protection rule and other branch protection rules+ """+ branchProtectionRuleConflicts(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): BranchProtectionRuleConflictConnection!++ """+ A list of actors able to force push for this branch protection rule.+ """+ bypassForcePushAllowances(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): BypassForcePushAllowanceConnection!++ """+ A list of actors able to bypass PRs for this branch protection rule.+ """+ bypassPullRequestAllowances(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): BypassPullRequestAllowanceConnection!++ """+ The actor who created this branch protection rule.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Will new commits pushed to matching branches dismiss pull request review approvals.+ """+ dismissesStaleReviews: Boolean!++ """+ The Node ID of the BranchProtectionRule object+ """+ id: ID!++ """+ Can admins override branch protection.+ """+ isAdminEnforced: Boolean!++ """+ Whether users can pull changes from upstream when the branch is locked. Set to+ `true` to allow fork syncing. Set to `false` to prevent fork syncing.+ """+ lockAllowsFetchAndMerge: Boolean!++ """+ Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.+ """+ lockBranch: Boolean!++ """+ Repository refs that are protected by this rule+ """+ matchingRefs(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filters refs with query on name+ """+ query: String+ ): RefConnection!++ """+ Identifies the protection rule pattern.+ """+ pattern: String!++ """+ A list push allowances for this branch protection rule.+ """+ pushAllowances(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PushAllowanceConnection!++ """+ The repository associated with this branch protection rule.+ """+ repository: Repository++ """+ Whether the most recent push must be approved by someone other than the person who pushed it+ """+ requireLastPushApproval: Boolean!++ """+ Number of approving reviews required to update matching branches.+ """+ requiredApprovingReviewCount: Int++ """+ List of required deployment environments that must be deployed successfully to update matching branches+ """+ requiredDeploymentEnvironments: [String]++ """+ List of required status check contexts that must pass for commits to be accepted to matching branches.+ """+ requiredStatusCheckContexts: [String]++ """+ List of required status checks that must pass for commits to be accepted to matching branches.+ """+ requiredStatusChecks: [RequiredStatusCheckDescription!]++ """+ Are approving reviews required to update matching branches.+ """+ requiresApprovingReviews: Boolean!++ """+ Are reviews from code owners required to update matching branches.+ """+ requiresCodeOwnerReviews: Boolean!++ """+ Are commits required to be signed.+ """+ requiresCommitSignatures: Boolean!++ """+ Are conversations required to be resolved before merging.+ """+ requiresConversationResolution: Boolean!++ """+ Does this branch require deployment to specific environments before merging+ """+ requiresDeployments: Boolean!++ """+ Are merge commits prohibited from being pushed to this branch.+ """+ requiresLinearHistory: Boolean!++ """+ Are status checks required to update matching branches.+ """+ requiresStatusChecks: Boolean!++ """+ Are branches required to be up to date before merging.+ """+ requiresStrictStatusChecks: Boolean!++ """+ Is pushing to matching branches restricted.+ """+ restrictsPushes: Boolean!++ """+ Is dismissal of pull request reviews restricted.+ """+ restrictsReviewDismissals: Boolean!++ """+ A list review dismissal allowances for this branch protection rule.+ """+ reviewDismissalAllowances(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ReviewDismissalAllowanceConnection!+}++"""+A conflict between two branch protection rules.+"""+type BranchProtectionRuleConflict @docsCategory(name: "branches") {+ """+ Identifies the branch protection rule.+ """+ branchProtectionRule: BranchProtectionRule++ """+ Identifies the conflicting branch protection rule.+ """+ conflictingBranchProtectionRule: BranchProtectionRule++ """+ Identifies the branch ref that has conflicting rules+ """+ ref: Ref+}++"""+The connection type for BranchProtectionRuleConflict.+"""+type BranchProtectionRuleConflictConnection {+ """+ A list of edges.+ """+ edges: [BranchProtectionRuleConflictEdge]++ """+ A list of nodes.+ """+ nodes: [BranchProtectionRuleConflict]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type BranchProtectionRuleConflictEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: BranchProtectionRuleConflict+}++"""+The connection type for BranchProtectionRule.+"""+type BranchProtectionRuleConnection {+ """+ A list of edges.+ """+ edges: [BranchProtectionRuleEdge]++ """+ A list of nodes.+ """+ nodes: [BranchProtectionRule]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type BranchProtectionRuleEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: BranchProtectionRule+}++"""+Information about a sponsorship to make for a user or organization with a GitHub+Sponsors profile, as part of sponsoring many users or organizations at once.+"""+input BulkSponsorship @docsCategory(name: "sponsors") {+ """+ The amount to pay to the sponsorable in US dollars. Valid values: 1-12000.+ """+ amount: Int!++ """+ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given.+ """+ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable")++ """+ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.+ """+ sponsorableLogin: String+}++"""+Types that can represent a repository ruleset bypass actor.+"""+union BypassActor @docsCategory(name: "repos") = App | EnterpriseTeam | Team | User++"""+A user, team, or app who has the ability to bypass a force push requirement on a protected branch.+"""+type BypassForcePushAllowance implements Node @docsCategory(name: "branches") {+ """+ The actor that can force push.+ """+ actor: BranchActorAllowanceActor++ """+ Identifies the branch protection rule associated with the allowed user, team, or app.+ """+ branchProtectionRule: BranchProtectionRule++ """+ The Node ID of the BypassForcePushAllowance object+ """+ id: ID!+}++"""+The connection type for BypassForcePushAllowance.+"""+type BypassForcePushAllowanceConnection {+ """+ A list of edges.+ """+ edges: [BypassForcePushAllowanceEdge]++ """+ A list of nodes.+ """+ nodes: [BypassForcePushAllowance]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type BypassForcePushAllowanceEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: BypassForcePushAllowance+}++"""+A user, team, or app who has the ability to bypass a pull request requirement on a protected branch.+"""+type BypassPullRequestAllowance implements Node @docsCategory(name: "branches") {+ """+ The actor that can bypass.+ """+ actor: BranchActorAllowanceActor++ """+ Identifies the branch protection rule associated with the allowed user, team, or app.+ """+ branchProtectionRule: BranchProtectionRule++ """+ The Node ID of the BypassPullRequestAllowance object+ """+ id: ID!+}++"""+The connection type for BypassPullRequestAllowance.+"""+type BypassPullRequestAllowanceConnection {+ """+ A list of edges.+ """+ edges: [BypassPullRequestAllowanceEdge]++ """+ A list of nodes.+ """+ nodes: [BypassPullRequestAllowance]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type BypassPullRequestAllowanceEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: BypassPullRequestAllowance+}++"""+The Common Vulnerability Scoring System+"""+type CVSS @docsCategory(name: "security-advisories") {+ """+ The CVSS score associated with this advisory+ """+ score: Float!++ """+ The CVSS vector string associated with this advisory+ """+ vectorString: String+}++"""+A common weakness enumeration+"""+type CWE implements Node @docsCategory(name: "security-advisories") {+ """+ The id of the CWE+ """+ cweId: String!++ """+ A detailed description of this CWE+ """+ description: String!++ """+ The Node ID of the CWE object+ """+ id: ID!++ """+ The name of this CWE+ """+ name: String!+}++"""+The connection type for CWE.+"""+type CWEConnection {+ """+ A list of edges.+ """+ edges: [CWEEdge]++ """+ A list of nodes.+ """+ nodes: [CWE]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CWEEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CWE+}++"""+Autogenerated input type of CancelEnterpriseAdminInvitation+"""+input CancelEnterpriseAdminInvitationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pending enterprise administrator invitation.+ """+ invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"])+}++"""+Autogenerated return type of CancelEnterpriseAdminInvitation.+"""+type CancelEnterpriseAdminInvitationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The invitation that was canceled.+ """+ invitation: EnterpriseAdministratorInvitation++ """+ A message confirming the result of canceling an administrator invitation.+ """+ message: String+}++"""+Autogenerated input type of CancelEnterpriseMemberInvitation+"""+input CancelEnterpriseMemberInvitationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pending enterprise member invitation.+ """+ invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseMemberInvitation"])+}++"""+Autogenerated return type of CancelEnterpriseMemberInvitation.+"""+type CancelEnterpriseMemberInvitationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The invitation that was canceled.+ """+ invitation: EnterpriseMemberInvitation++ """+ A message confirming the result of canceling an member invitation.+ """+ message: String+}++"""+Autogenerated input type of CancelSponsorship+"""+input CancelSponsorshipInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the user or organization who is acting as the sponsor, paying for+ the sponsorship. Required if sponsorLogin is not given.+ """+ sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor")++ """+ The username of the user or organization who is acting as the sponsor, paying+ for the sponsorship. Required if sponsorId is not given.+ """+ sponsorLogin: String++ """+ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given.+ """+ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable")++ """+ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.+ """+ sponsorableLogin: String+}++"""+Autogenerated return type of CancelSponsorship.+"""+type CancelSponsorshipPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The tier that was being used at the time of cancellation.+ """+ sponsorsTier: SponsorsTier+}++"""+Autogenerated input type of ChangeUserStatus+"""+input ChangeUserStatusInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., :grinning:.+ """+ emoji: String++ """+ If set, the user status will not be shown after this date.+ """+ expiresAt: DateTime++ """+ Whether this status should indicate you are not fully available on GitHub, e.g., you are away.+ """+ limitedAvailability: Boolean = false++ """+ A short description of your current status.+ """+ message: String++ """+ The ID of the organization whose members will be allowed to see the status. If+ omitted, the status will be publicly visible.+ """+ organizationId: ID @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of ChangeUserStatus.+"""+type ChangeUserStatusPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Your updated status.+ """+ status: UserStatus+}++"""+A single check annotation.+"""+type CheckAnnotation @docsCategory(name: "checks") {+ """+ The annotation's severity level.+ """+ annotationLevel: CheckAnnotationLevel++ """+ The path to the file that this annotation was made on.+ """+ blobUrl: URI!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2027-01-01 UTC."+ )++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The position of this annotation.+ """+ location: CheckAnnotationSpan!++ """+ The annotation's message.+ """+ message: String!++ """+ The path that this annotation was made on.+ """+ path: String!++ """+ Additional information about the annotation.+ """+ rawDetails: String++ """+ The annotation's title+ """+ title: String+}++"""+The connection type for CheckAnnotation.+"""+type CheckAnnotationConnection {+ """+ A list of edges.+ """+ edges: [CheckAnnotationEdge]++ """+ A list of nodes.+ """+ nodes: [CheckAnnotation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Information from a check run analysis to specific lines of code.+"""+input CheckAnnotationData @docsCategory(name: "checks") {+ """+ Represents an annotation's information level+ """+ annotationLevel: CheckAnnotationLevel!++ """+ The location of the annotation+ """+ location: CheckAnnotationRange!++ """+ A short description of the feedback for these lines of code.+ """+ message: String!++ """+ The path of the file to add an annotation to.+ """+ path: String!++ """+ Details about this annotation.+ """+ rawDetails: String++ """+ The title that represents the annotation.+ """+ title: String+}++"""+An edge in a connection.+"""+type CheckAnnotationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CheckAnnotation+}++"""+Represents an annotation's information level.+"""+enum CheckAnnotationLevel @docsCategory(name: "checks") {+ """+ An annotation indicating an inescapable error.+ """+ FAILURE++ """+ An annotation indicating some information.+ """+ NOTICE++ """+ An annotation indicating an ignorable error.+ """+ WARNING+}++"""+A character position in a check annotation.+"""+type CheckAnnotationPosition @docsCategory(name: "checks") {+ """+ Column number (1 indexed).+ """+ column: Int++ """+ Line number (1 indexed).+ """+ line: Int!+}++"""+Information from a check run analysis to specific lines of code.+"""+input CheckAnnotationRange @docsCategory(name: "checks") {+ """+ The ending column of the range.+ """+ endColumn: Int++ """+ The ending line of the range.+ """+ endLine: Int!++ """+ The starting column of the range.+ """+ startColumn: Int++ """+ The starting line of the range.+ """+ startLine: Int!+}++"""+An inclusive pair of positions for a check annotation.+"""+type CheckAnnotationSpan @docsCategory(name: "checks") {+ """+ End position (inclusive).+ """+ end: CheckAnnotationPosition!++ """+ Start position (inclusive).+ """+ start: CheckAnnotationPosition!+}++"""+The possible states for a check suite or run conclusion.+"""+enum CheckConclusionState @docsCategory(name: "checks") {+ """+ The check suite or run requires action.+ """+ ACTION_REQUIRED++ """+ The check suite or run has been cancelled.+ """+ CANCELLED++ """+ The check suite or run has failed.+ """+ FAILURE++ """+ The check suite or run was neutral.+ """+ NEUTRAL++ """+ The check suite or run was skipped.+ """+ SKIPPED++ """+ The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion.+ """+ STALE++ """+ The check suite or run has failed at startup.+ """+ STARTUP_FAILURE++ """+ The check suite or run has succeeded.+ """+ SUCCESS++ """+ The check suite or run has timed out.+ """+ TIMED_OUT+}++"""+A check run.+"""+type CheckRun implements Node & RequirableByPullRequest & UniformResourceLocatable @docsCategory(name: "checks") {+ """+ The check run's annotations+ """+ annotations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CheckAnnotationConnection++ """+ The check suite that this run is a part of.+ """+ checkSuite: CheckSuite!++ """+ Identifies the date and time when the check run was completed.+ """+ completedAt: DateTime++ """+ The conclusion of the check run.+ """+ conclusion: CheckConclusionState++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The corresponding deployment for this job, if any+ """+ deployment: Deployment++ """+ The URL from which to find full details of the check run on the integrator's site.+ """+ detailsUrl: URI++ """+ A reference for the check run on the integrator's system.+ """+ externalId: String++ """+ The Node ID of the CheckRun object+ """+ id: ID!++ """+ Whether this is required to pass before merging for a specific pull request.+ """+ isRequired(+ """+ The id of the pull request this is required for+ """+ pullRequestId: ID++ """+ The number of the pull request this is required for+ """+ pullRequestNumber: Int+ ): Boolean!++ """+ The name of the check for this check run.+ """+ name: String!++ """+ Information about a pending deployment, if any, in this check run+ """+ pendingDeploymentRequest: DeploymentRequest++ """+ The permalink to the check run summary.+ """+ permalink: URI!++ """+ The repository associated with this check run.+ """+ repository: Repository!++ """+ The HTTP path for this check run.+ """+ resourcePath: URI!++ """+ Identifies the date and time when the check run was started.+ """+ startedAt: DateTime++ """+ The current status of the check run.+ """+ status: CheckStatusState!++ """+ The check run's steps+ """+ steps(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Step number+ """+ number: Int+ ): CheckStepConnection++ """+ A string representing the check run's summary+ """+ summary: String++ """+ A string representing the check run's text+ """+ text: String++ """+ A string representing the check run+ """+ title: String++ """+ The HTTP URL for this check run.+ """+ url: URI!+}++"""+Possible further actions the integrator can perform.+"""+input CheckRunAction @docsCategory(name: "checks") {+ """+ A short explanation of what this action would do.+ """+ description: String!++ """+ A reference for the action on the integrator's system.+ """+ identifier: String!++ """+ The text to be displayed on a button in the web UI.+ """+ label: String!+}++"""+The connection type for CheckRun.+"""+type CheckRunConnection {+ """+ A list of edges.+ """+ edges: [CheckRunEdge]++ """+ A list of nodes.+ """+ nodes: [CheckRun]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CheckRunEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CheckRun+}++"""+The filters that are available when fetching check runs.+"""+input CheckRunFilter @docsCategory(name: "checks") {+ """+ Filters the check runs created by this application ID.+ """+ appId: Int++ """+ Filters the check runs by this name.+ """+ checkName: String++ """+ Filters the check runs by this type.+ """+ checkType: CheckRunType++ """+ Filters the check runs by these conclusions.+ """+ conclusions: [CheckConclusionState!]++ """+ Filters the check runs by this status. Superceded by statuses.+ """+ status: CheckStatusState++ """+ Filters the check runs by this status. Overrides status.+ """+ statuses: [CheckStatusState!]+}++"""+Descriptive details about the check run.+"""+input CheckRunOutput @docsCategory(name: "checks") {+ """+ The annotations that are made as part of the check run.+ """+ annotations: [CheckAnnotationData!]++ """+ Images attached to the check run output displayed in the GitHub pull request UI.+ """+ images: [CheckRunOutputImage!]++ """+ The summary of the check run (supports Commonmark).+ """+ summary: String!++ """+ The details of the check run (supports Commonmark).+ """+ text: String++ """+ A title to provide for this check run.+ """+ title: String!+}++"""+Images attached to the check run output displayed in the GitHub pull request UI.+"""+input CheckRunOutputImage @docsCategory(name: "checks") {+ """+ The alternative text for the image.+ """+ alt: String!++ """+ A short image description.+ """+ caption: String++ """+ The full URL of the image.+ """+ imageUrl: URI!+}++"""+The possible states of a check run in a status rollup.+"""+enum CheckRunState @docsCategory(name: "checks") {+ """+ The check run requires action.+ """+ ACTION_REQUIRED++ """+ The check run has been cancelled.+ """+ CANCELLED++ """+ The check run has been completed.+ """+ COMPLETED++ """+ The check run has failed.+ """+ FAILURE++ """+ The check run is in progress.+ """+ IN_PROGRESS++ """+ The check run was neutral.+ """+ NEUTRAL++ """+ The check run is in pending state.+ """+ PENDING++ """+ The check run has been queued.+ """+ QUEUED++ """+ The check run was skipped.+ """+ SKIPPED++ """+ The check run was marked stale by GitHub. Only GitHub can use this conclusion.+ """+ STALE++ """+ The check run has failed at startup.+ """+ STARTUP_FAILURE++ """+ The check run has succeeded.+ """+ SUCCESS++ """+ The check run has timed out.+ """+ TIMED_OUT++ """+ The check run is in waiting state.+ """+ WAITING+}++"""+Represents a count of the state of a check run.+"""+type CheckRunStateCount @docsCategory(name: "checks") {+ """+ The number of check runs with this state.+ """+ count: Int!++ """+ The state of a check run.+ """+ state: CheckRunState!+}++"""+The possible types of check runs.+"""+enum CheckRunType @docsCategory(name: "checks") {+ """+ Every check run available.+ """+ ALL++ """+ The latest check run.+ """+ LATEST+}++"""+The possible states for a check suite or run status.+"""+enum CheckStatusState @docsCategory(name: "checks") {+ """+ The check suite or run has been completed.+ """+ COMPLETED++ """+ The check suite or run is in progress.+ """+ IN_PROGRESS++ """+ The check suite or run is in pending state.+ """+ PENDING++ """+ The check suite or run has been queued.+ """+ QUEUED++ """+ The check suite or run has been requested.+ """+ REQUESTED++ """+ The check suite or run is in waiting state.+ """+ WAITING+}++"""+A single check step.+"""+type CheckStep @docsCategory(name: "checks") {+ """+ Identifies the date and time when the check step was completed.+ """+ completedAt: DateTime++ """+ The conclusion of the check step.+ """+ conclusion: CheckConclusionState++ """+ A reference for the check step on the integrator's system.+ """+ externalId: String++ """+ The step's name.+ """+ name: String!++ """+ The index of the step in the list of steps of the parent check run.+ """+ number: Int!++ """+ Number of seconds to completion.+ """+ secondsToCompletion: Int++ """+ Identifies the date and time when the check step was started.+ """+ startedAt: DateTime++ """+ The current status of the check step.+ """+ status: CheckStatusState!+}++"""+The connection type for CheckStep.+"""+type CheckStepConnection {+ """+ A list of edges.+ """+ edges: [CheckStepEdge]++ """+ A list of nodes.+ """+ nodes: [CheckStep]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CheckStepEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CheckStep+}++"""+A check suite.+"""+type CheckSuite implements Node @docsCategory(name: "checks") {+ """+ The GitHub App which created this check suite.+ """+ app: App++ """+ The name of the branch for this check suite.+ """+ branch: Ref++ """+ The check runs associated with a check suite.+ """+ checkRuns(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filters the check runs by this type.+ """+ filterBy: CheckRunFilter++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CheckRunConnection++ """+ The commit for this check suite+ """+ commit: Commit!++ """+ The conclusion of this check suite.+ """+ conclusion: CheckConclusionState++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The user who triggered the check suite.+ """+ creator: User++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the CheckSuite object+ """+ id: ID!++ """+ A list of open pull requests matching the check suite.+ """+ matchingPullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ The base ref name to filter the pull requests by.+ """+ baseRefName: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ The head ref name to filter the pull requests by.+ """+ headRefName: String++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the pull requests by.+ """+ states: [PullRequestState!]+ ): PullRequestConnection++ """+ The push that triggered this check suite.+ """+ push: Push++ """+ The repository associated with this check suite.+ """+ repository: Repository!++ """+ The HTTP path for this check suite+ """+ resourcePath: URI!++ """+ The status of this check suite.+ """+ status: CheckStatusState!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this check suite+ """+ url: URI!++ """+ The workflow run associated with this check suite.+ """+ workflowRun: WorkflowRun+}++"""+The auto-trigger preferences that are available for check suites.+"""+input CheckSuiteAutoTriggerPreference @docsCategory(name: "checks") {+ """+ The node ID of the application that owns the check suite.+ """+ appId: ID!++ """+ Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository.+ """+ setting: Boolean!+}++"""+The connection type for CheckSuite.+"""+type CheckSuiteConnection {+ """+ A list of edges.+ """+ edges: [CheckSuiteEdge]++ """+ A list of nodes.+ """+ nodes: [CheckSuite]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CheckSuiteEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CheckSuite+}++"""+The filters that are available when fetching check suites.+"""+input CheckSuiteFilter @docsCategory(name: "checks") {+ """+ Filters the check suites created by this application ID.+ """+ appId: Int++ """+ Filters the check suites by this name.+ """+ checkName: String+}++"""+An object which can have its data claimed or claim data from another.+"""+union Claimable @docsCategory(name: "users") = Mannequin | User++"""+Autogenerated input type of ClearLabelsFromLabelable+"""+input ClearLabelsFromLabelableInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the labelable object to clear the labels from.+ """+ labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable")+}++"""+Autogenerated return type of ClearLabelsFromLabelable.+"""+type ClearLabelsFromLabelablePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item that was unlabeled.+ """+ labelable: Labelable+}++"""+Autogenerated input type of ClearProjectV2ItemFieldValue+"""+input ClearProjectV2ItemFieldValueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the field to be cleared.+ """+ fieldId: ID!+ @possibleTypes(+ concreteTypes: [+ "ProjectV2Field"+ "ProjectV2IterationField"+ "ProjectV2MultiSelectField"+ "ProjectV2SingleSelectField"+ ]+ abstractType: "ProjectV2FieldConfiguration"+ )++ """+ The ID of the item to be cleared.+ """+ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ The ID of the Project.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of ClearProjectV2ItemFieldValue.+"""+type ClearProjectV2ItemFieldValuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated item.+ """+ projectV2Item: ProjectV2Item+}++"""+Autogenerated input type of CloneProject+"""+input CloneProjectInput {+ """+ The description of the project.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether or not to clone the source project's workflows.+ """+ includeWorkflows: Boolean!++ """+ The name of the project.+ """+ name: String!++ """+ The visibility of the project, defaults to false (private).+ """+ public: Boolean++ """+ The source project to clone.+ """+ sourceId: ID! @possibleTypes(concreteTypes: ["Project"])++ """+ The owner ID to create the project under.+ """+ targetOwnerId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository", "User"], abstractType: "ProjectOwner")+}++"""+Autogenerated return type of CloneProject.+"""+type CloneProjectPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the JobStatus for populating cloned fields.+ """+ jobStatusId: String++ """+ The new cloned project.+ """+ project: Project+}++"""+Autogenerated input type of CloneTemplateRepository+"""+input CloneTemplateRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A short description of the new repository.+ """+ description: String++ """+ Whether to copy all branches from the template to the new repository. Defaults+ to copying only the default branch of the template.+ """+ includeAllBranches: Boolean = false++ """+ The name of the new repository.+ """+ name: String!++ """+ The ID of the owner for the new repository.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "RepositoryOwner")++ """+ The Node ID of the template repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ Indicates the repository's visibility level.+ """+ visibility: RepositoryVisibility!+}++"""+Autogenerated return type of CloneTemplateRepository.+"""+type CloneTemplateRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new repository.+ """+ repository: Repository+}++"""+An object that can be closed+"""+interface Closable @docsCategory(name: "issues") {+ """+ Indicates if the object is closed (definition of closed may depend on type)+ """+ closed: Boolean!++ """+ Identifies the date and time when the object was closed.+ """+ closedAt: DateTime++ """+ Indicates if the object can be closed by the viewer.+ """+ viewerCanClose: Boolean!++ """+ Indicates if the object can be reopened by the viewer.+ """+ viewerCanReopen: Boolean!+}++"""+Autogenerated input type of CloseDiscussion+"""+input CloseDiscussionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the discussion to be closed.+ """+ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"])++ """+ The reason why the discussion is being closed.+ """+ reason: DiscussionCloseReason = RESOLVED+}++"""+Autogenerated return type of CloseDiscussion.+"""+type CloseDiscussionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The discussion that was closed.+ """+ discussion: Discussion+}++"""+Autogenerated input type of CloseIssue+"""+input CloseIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The confidence level the agent had when suggesting this close. Only meaningful when isSuggestion is true.+ """+ confidence: IssueEventConfidenceLevel++ """+ ID of the issue that this is a duplicate of.+ """+ duplicateIssueId: ID @possibleTypes(concreteTypes: ["Issue"])++ """+ If true, the close action is stored as a pending suggestion for human review rather than being applied directly.+ """+ isSuggestion: Boolean++ """+ ID of the issue to be closed.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ Optional rationale describing why the issue should be closed. Max 280 characters.+ """+ rationale: String++ """+ The reason the issue is to be closed.+ """+ stateReason: IssueClosedStateReason+}++"""+Autogenerated return type of CloseIssue.+"""+type CloseIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue that was closed.+ """+ issue: Issue+}++"""+Autogenerated input type of ClosePullRequest+"""+input ClosePullRequestInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the pull request to be closed.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of ClosePullRequest.+"""+type ClosePullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that was closed.+ """+ pullRequest: PullRequest+}++"""+Represents a 'closed' event on any `Closable`.+"""+type ClosedEvent implements Node & UniformResourceLocatable @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Object that was closed.+ """+ closable: Closable!++ """+ Object which triggered the creation of this event.+ """+ closer: Closer++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The issue or pull request that this issue was marked as a duplicate of.+ """+ duplicateOf: IssueOrPullRequest++ """+ The Node ID of the ClosedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ The HTTP path for this closed event.+ """+ resourcePath: URI!++ """+ The reason the issue state was changed to closed.+ """+ stateReason: IssueStateReason++ """+ The HTTP URL for this closed event.+ """+ url: URI!+}++"""+The object which triggered a `ClosedEvent`.+"""+union Closer @docsCategory(name: "issues") = Commit | ProjectV2 | PullRequest++"""+Enforce minimum line coverage thresholds on pull requests. This rule evaluates+uploaded coverage data but does not wait for coverage uploads. To ensure+coverage is evaluated before merging, make each status check associated with a+coverage upload a required status check.+"""+type CodeCoverageParameters {+ """+ The maximum percentage points that line coverage may drop relative to the+ default branch. Pull requests that reduce line coverage by more than this+ amount will be blocked.+ """+ maxCoverageDrop: Float++ """+ The absolute minimum line coverage percentage required. Pull requests with+ line coverage below this threshold will be blocked.+ """+ minimumCoverage: Float+}++"""+Enforce minimum line coverage thresholds on pull requests. This rule evaluates+uploaded coverage data but does not wait for coverage uploads. To ensure+coverage is evaluated before merging, make each status check associated with a+coverage upload a required status check.+"""+input CodeCoverageParametersInput {+ """+ The maximum percentage points that line coverage may drop relative to the+ default branch. Pull requests that reduce line coverage by more than this+ amount will be blocked.+ """+ maxCoverageDrop: Float++ """+ The absolute minimum line coverage percentage required. Pull requests with+ line coverage below this threshold will be blocked.+ """+ minimumCoverage: Float+}++"""+The Code of Conduct for a repository+"""+type CodeOfConduct implements Node @docsCategory(name: "meta") {+ """+ The body of the Code of Conduct+ """+ body: String++ """+ The Node ID of the CodeOfConduct object+ """+ id: ID!++ """+ The key for the Code of Conduct+ """+ key: String!++ """+ The formal name of the Code of Conduct+ """+ name: String!++ """+ The HTTP path for this Code of Conduct+ """+ resourcePath: URI++ """+ The HTTP URL for this Code of Conduct+ """+ url: URI+}++"""+Choose which severity levels of code quality results should block pull request+merges. When configured, a code quality analysis must be done on the pull+request before the changes can be merged.+"""+type CodeQualityParameters @docsCategory(name: "code-scanning") {+ """+ The lowest severity level at which code quality reviews need to be resolved before commits can be merged.+ """+ severity: CodeQualitySeverity!+}++"""+Choose which severity levels of code quality results should block pull request+merges. When configured, a code quality analysis must be done on the pull+request before the changes can be merged.+"""+input CodeQualityParametersInput @docsCategory(name: "code-scanning") {+ """+ The lowest severity level at which code quality reviews need to be resolved before commits can be merged.+ """+ severity: CodeQualitySeverity!+}++"""+The lowest severity level at which code quality reviews need to be resolved before commits can be merged.+"""+enum CodeQualitySeverity @docsCategory(name: "code-scanning") {+ """+ All+ """+ ALL++ """+ Errors+ """+ ERRORS++ """+ Notes and higher+ """+ NOTES++ """+ Warnings and higher+ """+ WARNINGS+}++"""+Choose which tools must provide code scanning results before the reference is+updated. When configured, code scanning must be enabled and have results for+both the commit and the reference being updated.+"""+type CodeScanningParameters @docsCategory(name: "repos") {+ """+ Tools that must provide code scanning results for this rule to pass.+ """+ codeScanningTools: [CodeScanningTool!]!+}++"""+Choose which tools must provide code scanning results before the reference is+updated. When configured, code scanning must be enabled and have results for+both the commit and the reference being updated.+"""+input CodeScanningParametersInput @docsCategory(name: "repos") {+ """+ Tools that must provide code scanning results for this rule to pass.+ """+ codeScanningTools: [CodeScanningToolInput!]!+}++"""+A tool that must provide code scanning results for this rule to pass.+"""+type CodeScanningTool @docsCategory(name: "repos") {+ """+ The severity level at which code scanning results that raise alerts block a+ reference update. For more information on alert severity levels, see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."+ """+ alertsThreshold: String!++ """+ The severity level at which code scanning results that raise security alerts+ block a reference update. For more information on security severity levels,+ see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."+ """+ securityAlertsThreshold: String!++ """+ The name of a code scanning tool+ """+ tool: String!+}++"""+A tool that must provide code scanning results for this rule to pass.+"""+input CodeScanningToolInput @docsCategory(name: "repos") {+ """+ The severity level at which code scanning results that raise alerts block a+ reference update. For more information on alert severity levels, see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."+ """+ alertsThreshold: String!++ """+ The severity level at which code scanning results that raise security alerts+ block a reference update. For more information on security severity levels,+ see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."+ """+ securityAlertsThreshold: String!++ """+ The name of a code scanning tool+ """+ tool: String!+}++"""+Collaborators affiliation level with a subject.+"""+enum CollaboratorAffiliation @docsCategory(name: "repos") {+ """+ All collaborators the authenticated user can see.+ """+ ALL++ """+ All collaborators with permissions to an organization-owned subject, regardless of organization membership status.+ """+ DIRECT++ """+ All outside collaborators of an organization-owned subject.+ """+ OUTSIDE+}++"""+Represents a comment.+"""+interface Comment @docsCategory(name: "issues") {+ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ The body as Markdown.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body rendered to text.+ """+ bodyText: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ The Node ID of the Comment object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!+}++"""+A comment author association with repository.+"""+enum CommentAuthorAssociation @docsCategory(name: "issues") {+ """+ Author has been invited to collaborate on the repository.+ """+ COLLABORATOR++ """+ Author has previously committed to the repository.+ """+ CONTRIBUTOR++ """+ Author has not previously committed to GitHub.+ """+ FIRST_TIMER++ """+ Author has not previously committed to the repository.+ """+ FIRST_TIME_CONTRIBUTOR++ """+ Author is a placeholder for an unclaimed user.+ """+ MANNEQUIN++ """+ Author is a member of the organization that owns the repository.+ """+ MEMBER++ """+ Author has no association with the repository.+ """+ NONE++ """+ Author is the owner of the repository.+ """+ OWNER+}++"""+The possible errors that will prevent a user from updating a comment.+"""+enum CommentCannotUpdateReason @docsCategory(name: "issues") {+ """+ Unable to create comment because repository is archived.+ """+ ARCHIVED++ """+ You cannot update this comment+ """+ DENIED++ """+ You must be the author or have write access to this repository to update this comment.+ """+ INSUFFICIENT_ACCESS++ """+ Unable to create comment because issue is locked.+ """+ LOCKED++ """+ You must be logged in to update this comment.+ """+ LOGIN_REQUIRED++ """+ Repository is under maintenance.+ """+ MAINTENANCE++ """+ At least one email address must be verified to update this comment.+ """+ VERIFIED_EMAIL_REQUIRED+}++"""+Represents a 'comment_deleted' event on a given issue or pull request.+"""+type CommentDeletedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The user who authored the deleted comment.+ """+ deletedCommentAuthor: Actor++ """+ The Node ID of the CommentDeletedEvent object+ """+ id: ID!+}++"""+Represents a Git commit.+"""+type Commit implements GitObject & Node & Subscribable & UniformResourceLocatable @docsCategory(name: "commits") {+ """+ An abbreviated version of the Git object ID+ """+ abbreviatedOid: String!++ """+ The number of additions in this commit.+ """+ additions: Int!++ """+ The merged Pull Request that introduced the commit to the repository. If the+ commit is not present in the default branch, additionally returns open Pull+ Requests associated with the commit+ """+ associatedPullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests.+ """+ orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC}+ ): PullRequestConnection++ """+ Authorship details of the commit.+ """+ author: GitActor++ """+ Check if the committer and the author match.+ """+ authoredByCommitter: Boolean!++ """+ The datetime when this commit was authored.+ """+ authoredDate: DateTime!++ """+ The list of authors for this commit based on the git author and the Co-authored-by+ message trailer. The git author will always be first.+ """+ authors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): GitActorConnection!++ """+ Fetches `git blame` information.+ """+ blame(+ """+ The file whose Git blame information you want.+ """+ path: String!+ ): Blame!++ """+ We recommend using the `changedFilesIfAvailable` field instead of+ `changedFiles`, as `changedFiles` will cause your request to return an error+ if GitHub is unable to calculate the number of changed files.+ """+ changedFiles: Int!+ @deprecated(+ reason: "`changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC."+ )++ """+ The number of changed files in this commit. If GitHub is unable to calculate+ the number of changed files (for example due to a timeout), this will return+ `null`. We recommend using this field instead of `changedFiles`.+ """+ changedFilesIfAvailable: Int++ """+ The check suites associated with a commit.+ """+ checkSuites(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filters the check suites by this type.+ """+ filterBy: CheckSuiteFilter++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CheckSuiteConnection++ """+ Comments made on the commit.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CommitCommentConnection!++ """+ The HTTP path for this Git object+ """+ commitResourcePath: URI!++ """+ The HTTP URL for this Git object+ """+ commitUrl: URI!++ """+ The datetime when this commit was committed.+ """+ committedDate: DateTime!++ """+ Check if committed via GitHub web UI.+ """+ committedViaWeb: Boolean!++ """+ Committer details of the commit.+ """+ committer: GitActor++ """+ The number of deletions in this commit.+ """+ deletions: Int!++ """+ The deployments associated with a commit.+ """+ deployments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Environments to list deployments for+ """+ environments: [String!]++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for deployments returned from the connection.+ """+ orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}+ ): DeploymentConnection++ """+ The tree entry representing the file located at the given path.+ """+ file(+ """+ The path for the file+ """+ path: String!+ ): TreeEntry++ """+ The linear commit history starting from (and including) this commit, in the same order as `git log`.+ """+ history(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ If non-null, filters history to only show commits with matching authorship.+ """+ author: CommitAuthor++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ If non-null, filters history to only show commits touching files under this path.+ """+ path: String++ """+ Allows specifying a beginning time or date for fetching commits. Unexpected+ results may be returned for dates not between 1970-01-01 and 2099-12-13 (inclusive).+ """+ since: GitTimestamp++ """+ Allows specifying an ending time or date for fetching commits. Unexpected+ results may be returned for dates not between 1970-01-01 and 2099-12-13 (inclusive).+ """+ until: GitTimestamp+ ): CommitHistoryConnection!++ """+ The Node ID of the Commit object+ """+ id: ID!++ """+ The Git commit message+ """+ message: String!++ """+ The Git commit message body+ """+ messageBody: String!++ """+ The commit message body rendered to HTML.+ """+ messageBodyHTML: HTML!++ """+ The Git commit message headline+ """+ messageHeadline: String!++ """+ The commit message headline rendered to HTML.+ """+ messageHeadlineHTML: HTML!++ """+ The Git object ID+ """+ oid: GitObjectID!++ """+ The organization this commit was made on behalf of.+ """+ onBehalfOf: Organization++ """+ The parents of a commit.+ """+ parents(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CommitConnection!++ """+ The datetime when this commit was pushed.+ """+ pushedDate: DateTime @deprecated(reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC.")++ """+ The Repository this commit belongs to+ """+ repository: Repository!++ """+ The HTTP path for this commit+ """+ resourcePath: URI!++ """+ Commit signing information, if present.+ """+ signature: GitSignature++ """+ Status information for this commit+ """+ status: Status++ """+ Check and Status rollup information for this commit.+ """+ statusCheckRollup: StatusCheckRollup++ """+ Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file.+ """+ submodules(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): SubmoduleConnection!++ """+ Returns a URL to download a tarball archive for a repository.+ Note: For private repositories, these links are temporary and expire after five minutes.+ """+ tarballUrl: URI!++ """+ Commit's root Tree+ """+ tree: Tree!++ """+ The HTTP path for the tree of this commit+ """+ treeResourcePath: URI!++ """+ The HTTP URL for the tree of this commit+ """+ treeUrl: URI!++ """+ The HTTP URL for this commit+ """+ url: URI!++ """+ Check if the viewer is able to change their subscription status for the repository.+ """+ viewerCanSubscribe: Boolean!++ """+ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.+ """+ viewerSubscription: SubscriptionState++ """+ Returns a URL to download a zipball archive for a repository.+ Note: For private repositories, these links are temporary and expire after five minutes.+ """+ zipballUrl: URI!+}++"""+Specifies an author for filtering Git commits.+"""+input CommitAuthor @docsCategory(name: "commits") {+ """+ Email addresses to filter by. Commits authored by any of the specified email addresses will be returned.+ """+ emails: [String!]++ """+ ID of a User to filter by. If non-null, only commits authored by this user+ will be returned. This field takes precedence over emails.+ """+ id: ID+}++"""+Parameters to be used for the commit_author_email_pattern rule+"""+type CommitAuthorEmailPatternParameters @docsCategory(name: "commits") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean!++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+Parameters to be used for the commit_author_email_pattern rule+"""+input CommitAuthorEmailPatternParametersInput @docsCategory(name: "commits") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+Represents a comment on a given Commit.+"""+type CommitComment implements Comment &+ Deletable &+ Minimizable &+ Node &+ Reactable &+ RepositoryNode &+ Updatable &+ UpdatableComment @docsCategory(name: "commits") {+ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ Identifies the comment body.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body rendered to text.+ """+ bodyText: String!++ """+ Identifies the commit associated with the comment, if the commit exists.+ """+ commit: Commit++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ The Node ID of the CommitComment object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Returns whether or not a comment has been minimized.+ """+ isMinimized: Boolean!++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ Returns why the comment was minimized. One of `abuse`, `off-topic`,+ `outdated`, `resolved`, `duplicate`, `spam`, and `low-quality`. Note that the+ case and formatting of these values differs from the inputs to the+ `MinimizeComment` mutation.+ """+ minimizedReason: String++ """+ Identifies the file path associated with the comment.+ """+ path: String++ """+ Identifies the line position associated with the comment.+ """+ position: Int++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The HTTP path permalink for this commit comment.+ """+ resourcePath: URI!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL permalink for this commit comment.+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Check if the current viewer can minimize this object.+ """+ viewerCanMinimize: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Check if the current viewer can unminimize this object.+ """+ viewerCanUnminimize: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!+}++"""+The connection type for CommitComment.+"""+type CommitCommentConnection {+ """+ A list of edges.+ """+ edges: [CommitCommentEdge]++ """+ A list of nodes.+ """+ nodes: [CommitComment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CommitCommentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CommitComment+}++"""+A thread of comments on a commit.+"""+type CommitCommentThread implements Node & RepositoryNode @docsCategory(name: "commits") {+ """+ The comments that exist in this thread.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CommitCommentConnection!++ """+ The commit the comments were made on.+ """+ commit: Commit++ """+ The Node ID of the CommitCommentThread object+ """+ id: ID!++ """+ The file the comments were made on.+ """+ path: String++ """+ The position in the diff for the commit that the comment was made on.+ """+ position: Int++ """+ The repository associated with this node.+ """+ repository: Repository!+}++"""+The connection type for Commit.+"""+type CommitConnection {+ """+ A list of edges.+ """+ edges: [CommitEdge]++ """+ A list of nodes.+ """+ nodes: [Commit]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Ordering options for commit contribution connections.+"""+input CommitContributionOrder @docsCategory(name: "commits") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field by which to order commit contributions.+ """+ field: CommitContributionOrderField!+}++"""+Properties by which commit contribution connections can be ordered.+"""+enum CommitContributionOrderField @docsCategory(name: "commits") {+ """+ Order commit contributions by how many commits they represent.+ """+ COMMIT_COUNT++ """+ Order commit contributions by when they were made.+ """+ OCCURRED_AT+}++"""+This aggregates commits made by a user within one repository.+"""+type CommitContributionsByRepository @docsCategory(name: "commits") {+ """+ The commit contributions, each representing a day.+ """+ contributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for commit contributions returned from the connection.+ """+ orderBy: CommitContributionOrder = {field: OCCURRED_AT, direction: DESC}+ ): CreatedCommitContributionConnection!++ """+ The repository in which the commits were made.+ """+ repository: Repository!++ """+ The HTTP path for the user's commits to the repository in this time range.+ """+ resourcePath: URI!++ """+ The HTTP URL for the user's commits to the repository in this time range.+ """+ url: URI!+}++"""+An edge in a connection.+"""+type CommitEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Commit+}++"""+The connection type for Commit.+"""+type CommitHistoryConnection {+ """+ A list of edges.+ """+ edges: [CommitEdge]++ """+ A list of nodes.+ """+ nodes: [Commit]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+A message to include with a new commit+"""+input CommitMessage @docsCategory(name: "commits") {+ """+ The body of the message.+ """+ body: String++ """+ The headline of the message.+ """+ headline: String!+}++"""+Parameters to be used for the commit_message_pattern rule+"""+type CommitMessagePatternParameters @docsCategory(name: "commits") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean!++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+Parameters to be used for the commit_message_pattern rule+"""+input CommitMessagePatternParametersInput @docsCategory(name: "commits") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+A git ref for a commit to be appended to.++The ref must be a branch, i.e. its fully qualified name must start+with `refs/heads/` (although the input is not required to be fully+qualified).++The Ref may be specified by its global node ID or by the+`repositoryNameWithOwner` and `branchName`.++### Examples++Specify a branch using a global node ID:++ { "id": "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" }++Specify a branch using `repositoryNameWithOwner` and `branchName`:++ {+ "repositoryNameWithOwner": "github/graphql-client",+ "branchName": "main"+ }+"""+input CommittableBranch @docsCategory(name: "git") {+ """+ The unqualified name of the branch to append the commit to.+ """+ branchName: String++ """+ The Node ID of the Ref to be updated.+ """+ id: ID++ """+ The nameWithOwner of the repository to commit to.+ """+ repositoryNameWithOwner: String+}++"""+Parameters to be used for the committer_email_pattern rule+"""+type CommitterEmailPatternParameters @docsCategory(name: "commits") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean!++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+Parameters to be used for the committer_email_pattern rule+"""+input CommitterEmailPatternParametersInput @docsCategory(name: "commits") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+Represents a comparison between two commit revisions.+"""+type Comparison implements Node @docsCategory(name: "commits") {+ """+ The number of commits ahead of the base branch.+ """+ aheadBy: Int!++ """+ The base revision of this comparison.+ """+ baseTarget: GitObject!++ """+ The number of commits behind the base branch.+ """+ behindBy: Int!++ """+ The commits which compose this comparison.+ """+ commits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ComparisonCommitConnection!++ """+ The head revision of this comparison.+ """+ headTarget: GitObject!++ """+ The Node ID of the Comparison object+ """+ id: ID!++ """+ The status of this comparison.+ """+ status: ComparisonStatus!+}++"""+The connection type for Commit.+"""+type ComparisonCommitConnection {+ """+ The total count of authors and co-authors across all commits.+ """+ authorCount: Int!++ """+ A list of edges.+ """+ edges: [CommitEdge]++ """+ A list of nodes.+ """+ nodes: [Commit]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+The status of a git comparison between two refs.+"""+enum ComparisonStatus @docsCategory(name: "commits") {+ """+ The head ref is ahead of the base ref.+ """+ AHEAD++ """+ The head ref is behind the base ref.+ """+ BEHIND++ """+ The head ref is both ahead and behind of the base ref, indicating git history has diverged.+ """+ DIVERGED++ """+ The head ref and base ref are identical.+ """+ IDENTICAL+}++"""+Represents a 'connected' event on a given issue or pull request.+"""+type ConnectedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ConnectedEvent object+ """+ id: ID!++ """+ Reference originated in a different repository.+ """+ isCrossRepository: Boolean!++ """+ Issue or pull request that made the reference.+ """+ source: ReferencedSubject!++ """+ Issue or pull request which was connected.+ """+ subject: ReferencedSubject!+}++"""+The content warning for a repository+"""+type ContentWarning @docsCategory(name: "meta") {+ """+ The content warning' category. E.g. 'mis_dis_information'+ """+ category: String!++ """+ The content warning's custom sub category text. E.g. 'dangerous stuff.'+ """+ customSubCategory: String++ """+ The content warning's sub category. E.g. 'medical_scientific'+ """+ subCategory: String++ """+ The content warning's sub title. E.g. 'The information contained in this page has not been verified.'+ """+ subTitle: String++ """+ The content warning's title. E.g. 'This page may contain false or misleading information.'+ """+ title: String!++ """+ The type of content warning. E.g. 'interstitial'+ """+ type: String!+}++"""+The Contributing Guidelines for a repository.+"""+type ContributingGuidelines @docsCategory(name: "repos") {+ """+ The body of the Contributing Guidelines.+ """+ body: String++ """+ The HTTP path for the Contributing Guidelines.+ """+ resourcePath: URI++ """+ The HTTP URL for the Contributing Guidelines.+ """+ url: URI+}++"""+Represents a contribution a user made on GitHub, such as opening an issue.+"""+interface Contribution @docsCategory(name: "users") {+ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+A calendar of contributions made on GitHub by a user.+"""+type ContributionCalendar @docsCategory(name: "users") {+ """+ A list of hex color codes used in this calendar. The darker the color, the more contributions it represents.+ """+ colors: [String!]!++ """+ Determine if the color set was chosen because it's currently Halloween.+ """+ isHalloween: Boolean!++ """+ A list of the months of contributions in this calendar.+ """+ months: [ContributionCalendarMonth!]!++ """+ The count of total contributions in the calendar.+ """+ totalContributions: Int!++ """+ A list of the weeks of contributions in this calendar.+ """+ weeks: [ContributionCalendarWeek!]!+}++"""+Represents a single day of contributions on GitHub by a user.+"""+type ContributionCalendarDay @docsCategory(name: "users") {+ """+ The hex color code that represents how many contributions were made on this day compared to others in the calendar.+ """+ color: String!++ """+ How many contributions were made by the user on this day.+ """+ contributionCount: Int!++ """+ Indication of contributions, relative to other days. Can be used to indicate+ which color to represent this day on a calendar.+ """+ contributionLevel: ContributionLevel!++ """+ The day this square represents.+ """+ date: Date!++ """+ A number representing which day of the week this square represents, e.g., 1 is Monday.+ """+ weekday: Int!+}++"""+A month of contributions in a user's contribution graph.+"""+type ContributionCalendarMonth @docsCategory(name: "users") {+ """+ The date of the first day of this month.+ """+ firstDay: Date!++ """+ The name of the month.+ """+ name: String!++ """+ How many weeks started in this month.+ """+ totalWeeks: Int!++ """+ The year the month occurred in.+ """+ year: Int!+}++"""+A week of contributions in a user's contribution graph.+"""+type ContributionCalendarWeek @docsCategory(name: "users") {+ """+ The days of contributions in this week.+ """+ contributionDays: [ContributionCalendarDay!]!++ """+ The date of the earliest square in this week.+ """+ firstDay: Date!+}++"""+Varying levels of contributions from none to many.+"""+enum ContributionLevel @docsCategory(name: "users") {+ """+ Lowest 25% of days of contributions.+ """+ FIRST_QUARTILE++ """+ Highest 25% of days of contributions. More contributions than the third quartile.+ """+ FOURTH_QUARTILE++ """+ No contributions occurred.+ """+ NONE++ """+ Second lowest 25% of days of contributions. More contributions than the first quartile.+ """+ SECOND_QUARTILE++ """+ Second highest 25% of days of contributions. More contributions than second quartile, less than the fourth quartile.+ """+ THIRD_QUARTILE+}++"""+Ordering options for contribution connections.+"""+input ContributionOrder @docsCategory(name: "users") {+ """+ The ordering direction.+ """+ direction: OrderDirection!+}++"""+A collection of contributions made by a user, including opened issues, commits, and pull requests.+Contributions in private and internal repositories are only included with the optional read:user scope.+"""+type ContributionsCollection @docsCategory(name: "users") {+ """+ Commit contributions made by the user, grouped by repository.+ """+ commitContributionsByRepository(+ """+ How many repositories should be included.+ """+ maxRepositories: Int = 25+ ): [CommitContributionsByRepository!]!++ """+ A calendar of this user's contributions on GitHub.+ """+ contributionCalendar: ContributionCalendar!++ """+ The years the user has been making contributions with the most recent year first.+ """+ contributionYears: [Int!]!++ """+ Determine if this collection's time span ends in the current month.+ """+ doesEndInCurrentMonth: Boolean!++ """+ The date of the first restricted contribution the user made in this time+ period. Can only be non-null when the user has enabled private contribution counts.+ """+ earliestRestrictedContributionDate: Date++ """+ The ending date and time of this collection.+ """+ endedAt: DateTime!++ """+ The first issue the user opened on GitHub. This will be null if that issue was+ opened outside the collection's time range and ignoreTimeRange is false. If+ the issue is not visible but the user has opted to show private contributions,+ a RestrictedContribution will be returned.+ """+ firstIssueContribution: CreatedIssueOrRestrictedContribution++ """+ The first pull request the user opened on GitHub. This will be null if that+ pull request was opened outside the collection's time range and+ ignoreTimeRange is not true. If the pull request is not visible but the user+ has opted to show private contributions, a RestrictedContribution will be returned.+ """+ firstPullRequestContribution: CreatedPullRequestOrRestrictedContribution++ """+ The first repository the user created on GitHub. This will be null if that+ first repository was created outside the collection's time range and+ ignoreTimeRange is false. If the repository is not visible, then a+ RestrictedContribution is returned.+ """+ firstRepositoryContribution: CreatedRepositoryOrRestrictedContribution++ """+ Does the user have any more activity in the timeline that occurred prior to the collection's time range?+ """+ hasActivityInThePast: Boolean!++ """+ Determine if there are any contributions in this collection.+ """+ hasAnyContributions: Boolean!++ """+ Determine if the user made any contributions in this time frame whose details+ are not visible because they were made in a private repository. Can only be+ true if the user enabled private contribution counts.+ """+ hasAnyRestrictedContributions: Boolean!++ """+ Whether or not the collector's time span is all within the same day.+ """+ isSingleDay: Boolean!++ """+ A list of issues the user opened.+ """+ issueContributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Should the user's first issue ever be excluded from the result.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented issue be excluded from the result.+ """+ excludePopular: Boolean = false++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for contributions returned from the connection.+ """+ orderBy: ContributionOrder = {direction: DESC}+ ): CreatedIssueContributionConnection!++ """+ Issue contributions made by the user, grouped by repository.+ """+ issueContributionsByRepository(+ """+ Should the user's first issue ever be excluded from the result.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented issue be excluded from the result.+ """+ excludePopular: Boolean = false++ """+ How many repositories should be included.+ """+ maxRepositories: Int = 25+ ): [IssueContributionsByRepository!]!++ """+ When the user signed up for GitHub. This will be null if that sign up date+ falls outside the collection's time range and ignoreTimeRange is false.+ """+ joinedGitHubContribution: JoinedGitHubContribution++ """+ The date of the most recent restricted contribution the user made in this time+ period. Can only be non-null when the user has enabled private contribution counts.+ """+ latestRestrictedContributionDate: Date++ """+ When this collection's time range does not include any activity from the user, use this+ to get a different collection from an earlier time range that does have activity.+ """+ mostRecentCollectionWithActivity: ContributionsCollection++ """+ Returns a different contributions collection from an earlier time range than this one+ that does not have any contributions.+ """+ mostRecentCollectionWithoutActivity: ContributionsCollection++ """+ The issue the user opened on GitHub that received the most comments in the specified+ time frame.+ """+ popularIssueContribution: CreatedIssueContribution++ """+ The pull request the user opened on GitHub that received the most comments in the+ specified time frame.+ """+ popularPullRequestContribution: CreatedPullRequestContribution++ """+ Pull request contributions made by the user.+ """+ pullRequestContributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Should the user's first pull request ever be excluded from the result.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented pull request be excluded from the result.+ """+ excludePopular: Boolean = false++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for contributions returned from the connection.+ """+ orderBy: ContributionOrder = {direction: DESC}+ ): CreatedPullRequestContributionConnection!++ """+ Pull request contributions made by the user, grouped by repository.+ """+ pullRequestContributionsByRepository(+ """+ Should the user's first pull request ever be excluded from the result.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented pull request be excluded from the result.+ """+ excludePopular: Boolean = false++ """+ How many repositories should be included.+ """+ maxRepositories: Int = 25+ ): [PullRequestContributionsByRepository!]!++ """+ Pull request review contributions made by the user. Returns the most recently+ submitted review for each PR reviewed by the user.+ """+ pullRequestReviewContributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for contributions returned from the connection.+ """+ orderBy: ContributionOrder = {direction: DESC}+ ): CreatedPullRequestReviewContributionConnection!++ """+ Pull request review contributions made by the user, grouped by repository.+ """+ pullRequestReviewContributionsByRepository(+ """+ How many repositories should be included.+ """+ maxRepositories: Int = 25+ ): [PullRequestReviewContributionsByRepository!]!++ """+ A list of repositories owned by the user that the user created in this time range.+ """+ repositoryContributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Should the user's first repository ever be excluded from the result.+ """+ excludeFirst: Boolean = false++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for contributions returned from the connection.+ """+ orderBy: ContributionOrder = {direction: DESC}+ ): CreatedRepositoryContributionConnection!++ """+ A count of contributions made by the user that the viewer cannot access. Only+ non-zero when the user has chosen to share their private contribution counts.+ """+ restrictedContributionsCount: Int!++ """+ The beginning date and time of this collection.+ """+ startedAt: DateTime!++ """+ How many commits were made by the user in this time span.+ """+ totalCommitContributions: Int!++ """+ How many issues the user opened.+ """+ totalIssueContributions(+ """+ Should the user's first issue ever be excluded from this count.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented issue be excluded from this count.+ """+ excludePopular: Boolean = false+ ): Int!++ """+ How many pull requests the user opened.+ """+ totalPullRequestContributions(+ """+ Should the user's first pull request ever be excluded from this count.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented pull request be excluded from this count.+ """+ excludePopular: Boolean = false+ ): Int!++ """+ How many pull request reviews the user left.+ """+ totalPullRequestReviewContributions: Int!++ """+ How many different repositories the user committed to.+ """+ totalRepositoriesWithContributedCommits: Int!++ """+ How many different repositories the user opened issues in.+ """+ totalRepositoriesWithContributedIssues(+ """+ Should the user's first issue ever be excluded from this count.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented issue be excluded from this count.+ """+ excludePopular: Boolean = false+ ): Int!++ """+ How many different repositories the user left pull request reviews in.+ """+ totalRepositoriesWithContributedPullRequestReviews: Int!++ """+ How many different repositories the user opened pull requests in.+ """+ totalRepositoriesWithContributedPullRequests(+ """+ Should the user's first pull request ever be excluded from this count.+ """+ excludeFirst: Boolean = false++ """+ Should the user's most commented pull request be excluded from this count.+ """+ excludePopular: Boolean = false+ ): Int!++ """+ How many repositories the user created.+ """+ totalRepositoryContributions(+ """+ Should the user's first repository ever be excluded from this count.+ """+ excludeFirst: Boolean = false+ ): Int!++ """+ The user who made the contributions in this collection.+ """+ user: User!+}++"""+Autogenerated input type of ConvertProjectCardNoteToIssue+"""+input ConvertProjectCardNoteToIssueInput {+ """+ The body of the newly created issue.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ProjectCard ID to convert.+ """+ projectCardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"])++ """+ The ID of the repository to create the issue in.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The title of the newly created issue. Defaults to the card's note text.+ """+ title: String+}++"""+Autogenerated return type of ConvertProjectCardNoteToIssue.+"""+type ConvertProjectCardNoteToIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated ProjectCard.+ """+ projectCard: ProjectCard+}++"""+Autogenerated input type of ConvertProjectV2DraftIssueItemToIssue+"""+input ConvertProjectV2DraftIssueItemToIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the draft issue ProjectV2Item to convert.+ """+ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ The ID of the repository to create the issue in.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of ConvertProjectV2DraftIssueItemToIssue.+"""+type ConvertProjectV2DraftIssueItemToIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated project item.+ """+ item: ProjectV2Item+}++"""+Autogenerated input type of ConvertPullRequestToDraft+"""+input ConvertPullRequestToDraftInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the pull request to convert to draft+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of ConvertPullRequestToDraft.+"""+type ConvertPullRequestToDraftPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that is now a draft.+ """+ pullRequest: PullRequest+}++"""+Represents a 'convert_to_draft' event on a given pull request.+"""+type ConvertToDraftEvent implements Node & UniformResourceLocatable @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ConvertToDraftEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ The HTTP path for this convert to draft event.+ """+ resourcePath: URI!++ """+ The HTTP URL for this convert to draft event.+ """+ url: URI!+}++"""+Represents a 'converted_from_draft' event on a given issue or pull request.+"""+type ConvertedFromDraftEvent implements Node & ProjectV2Event @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ConvertedFromDraftEvent object+ """+ id: ID!++ """+ Project referenced by event.+ """+ project: ProjectV2++ """+ Did this event result from workflow automation?+ """+ wasAutomated: Boolean!+}++"""+Represents a 'converted_note_to_issue' event on a given issue or pull request.+"""+type ConvertedNoteToIssueEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the ConvertedNoteToIssueEvent object+ """+ id: ID!++ """+ Project referenced by event.+ """+ project: Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Project card referenced by this project event.+ """+ projectCard: ProjectCard+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Column name referenced by this project event.+ """+ projectColumnName: String!+}++"""+Represents a 'converted_to_discussion' event on a given issue.+"""+type ConvertedToDiscussionEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The discussion that the issue was converted into.+ """+ discussion: Discussion++ """+ The Node ID of the ConvertedToDiscussionEvent object+ """+ id: ID!+}++"""+Request Copilot code review for new pull requests automatically if the author+has access to Copilot code review and their premium requests quota has not+reached the limit.+"""+type CopilotCodeReviewParameters @docsCategory(name: "pulls") {+ """+ Copilot automatically reviews draft pull requests before they are marked as ready for review.+ """+ reviewDraftPullRequests: Boolean!++ """+ Copilot automatically reviews each new push to the pull request.+ """+ reviewOnPush: Boolean!+}++"""+Request Copilot code review for new pull requests automatically if the author+has access to Copilot code review and their premium requests quota has not+reached the limit.+"""+input CopilotCodeReviewParametersInput @docsCategory(name: "pulls") {+ """+ Copilot automatically reviews draft pull requests before they are marked as ready for review.+ """+ reviewDraftPullRequests: Boolean++ """+ Copilot automatically reviews each new push to the pull request.+ """+ reviewOnPush: Boolean+}++"""+Copilot endpoint information+"""+type CopilotEndpoints @docsCategory(name: "copilot") {+ """+ Copilot API endpoint+ """+ api: String!++ """+ Copilot experimentation (edge TAS) endpoint+ """+ exp: String++ """+ Copilot origin tracker endpoint+ """+ originTracker: String!++ """+ Copilot proxy endpoint+ """+ proxy: String!++ """+ Copilot telemetry endpoint+ """+ telemetry: String!+}++"""+Autogenerated input type of CopyProjectV2+"""+input CopyProjectV2Input {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Include draft issues in the new project+ """+ includeDraftIssues: Boolean = false++ """+ The owner ID of the new project.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"])++ """+ The ID of the source Project to copy.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The title of the project.+ """+ title: String!+}++"""+Autogenerated return type of CopyProjectV2.+"""+type CopyProjectV2Payload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The copied project.+ """+ projectV2: ProjectV2+}++"""+Autogenerated input type of CreateAttributionInvitation+"""+input CreateAttributionInvitationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the owner scoping the reattributable data.+ """+ ownerId: ID!+ @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"], abstractType: "Account")++ """+ The Node ID of the account owning the data to reattribute.+ """+ sourceId: ID!+ @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"], abstractType: "Account")++ """+ The Node ID of the account which may claim the data.+ """+ targetId: ID!+ @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"], abstractType: "Account")+}++"""+Autogenerated return type of CreateAttributionInvitation.+"""+type CreateAttributionInvitationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The owner scoping the reattributable data.+ """+ owner: Organization++ """+ The account owning the data to reattribute.+ """+ source: Claimable++ """+ The account which may claim the data.+ """+ target: Claimable+}++"""+Autogenerated input type of CreateBranchProtectionRule+"""+input CreateBranchProtectionRuleInput {+ """+ Can this branch be deleted.+ """+ allowsDeletions: Boolean++ """+ Are force pushes allowed on this branch.+ """+ allowsForcePushes: Boolean++ """+ Is branch creation a protected operation.+ """+ blocksCreations: Boolean++ """+ A list of User, Team, or App IDs allowed to bypass force push targeting matching branches.+ """+ bypassForcePushActorIds: [ID!]++ """+ A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches.+ """+ bypassPullRequestActorIds: [ID!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Will new commits pushed to matching branches dismiss pull request review approvals.+ """+ dismissesStaleReviews: Boolean++ """+ Can admins override branch protection.+ """+ isAdminEnforced: Boolean++ """+ Whether users can pull changes from upstream when the branch is locked. Set to+ `true` to allow fork syncing. Set to `false` to prevent fork syncing.+ """+ lockAllowsFetchAndMerge: Boolean++ """+ Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.+ """+ lockBranch: Boolean++ """+ The glob-like pattern used to determine matching branches.+ """+ pattern: String!++ """+ A list of User, Team, or App IDs allowed to push to matching branches.+ """+ pushActorIds: [ID!]++ """+ The global relay id of the repository in which a new branch protection rule should be created in.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ Whether the most recent push must be approved by someone other than the person who pushed it+ """+ requireLastPushApproval: Boolean++ """+ Number of approving reviews required to update matching branches.+ """+ requiredApprovingReviewCount: Int++ """+ The list of required deployment environments+ """+ requiredDeploymentEnvironments: [String!]++ """+ List of required status check contexts that must pass for commits to be accepted to matching branches.+ """+ requiredStatusCheckContexts: [String!]++ """+ The list of required status checks+ """+ requiredStatusChecks: [RequiredStatusCheckInput!]++ """+ Are approving reviews required to update matching branches.+ """+ requiresApprovingReviews: Boolean++ """+ Are reviews from code owners required to update matching branches.+ """+ requiresCodeOwnerReviews: Boolean++ """+ Are commits required to be signed.+ """+ requiresCommitSignatures: Boolean++ """+ Are conversations required to be resolved before merging.+ """+ requiresConversationResolution: Boolean++ """+ Are successful deployments required before merging.+ """+ requiresDeployments: Boolean++ """+ Are merge commits prohibited from being pushed to this branch.+ """+ requiresLinearHistory: Boolean++ """+ Are status checks required to update matching branches.+ """+ requiresStatusChecks: Boolean++ """+ Are branches required to be up to date before merging.+ """+ requiresStrictStatusChecks: Boolean++ """+ Is pushing to matching branches restricted.+ """+ restrictsPushes: Boolean++ """+ Is dismissal of pull request reviews restricted.+ """+ restrictsReviewDismissals: Boolean++ """+ A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches.+ """+ reviewDismissalActorIds: [ID!]+}++"""+Autogenerated return type of CreateBranchProtectionRule.+"""+type CreateBranchProtectionRulePayload {+ """+ The newly created BranchProtectionRule.+ """+ branchProtectionRule: BranchProtectionRule++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of CreateCheckRun+"""+input CreateCheckRunInput {+ """+ Possible further actions the integrator can perform, which a user may trigger.+ """+ actions: [CheckRunAction!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The time that the check run finished.+ """+ completedAt: DateTime++ """+ The final conclusion of the check.+ """+ conclusion: CheckConclusionState++ """+ The URL of the integrator's site that has the full details of the check.+ """+ detailsUrl: URI++ """+ A reference for the run on the integrator's system.+ """+ externalId: String++ """+ The SHA of the head commit.+ """+ headSha: GitObjectID!++ """+ The name of the check.+ """+ name: String!++ """+ Descriptive details about the run.+ """+ output: CheckRunOutput++ """+ The node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The time that the check run began.+ """+ startedAt: DateTime++ """+ The current status.+ """+ status: RequestableCheckStatusState+}++"""+Autogenerated return type of CreateCheckRun.+"""+type CreateCheckRunPayload {+ """+ The newly created check run.+ """+ checkRun: CheckRun++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of CreateCheckSuite+"""+input CreateCheckSuiteInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The SHA of the head commit.+ """+ headSha: GitObjectID!++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of CreateCheckSuite.+"""+type CreateCheckSuitePayload {+ """+ The newly created check suite.+ """+ checkSuite: CheckSuite++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of CreateCommitOnBranch+"""+input CreateCommitOnBranchInput {+ """+ The Ref to be updated. Must be a branch.+ """+ branch: CommittableBranch!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The git commit oid expected at the head of the branch prior to the commit+ """+ expectedHeadOid: GitObjectID!++ """+ A description of changes to files in this commit.+ """+ fileChanges: FileChanges++ """+ The commit message the be included with the commit.+ """+ message: CommitMessage!+}++"""+Autogenerated return type of CreateCommitOnBranch.+"""+type CreateCommitOnBranchPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new commit.+ """+ commit: Commit++ """+ The ref which has been updated to point to the new commit.+ """+ ref: Ref+}++"""+Autogenerated input type of CreateDeployment+"""+input CreateDeploymentInput {+ """+ Attempt to automatically merge the default branch into the requested ref, defaults to true.+ """+ autoMerge: Boolean = true++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Short description of the deployment.+ """+ description: String = ""++ """+ Name for the target deployment environment.+ """+ environment: String = "production"++ """+ JSON payload with extra information about the deployment.+ """+ payload: String = "{}"++ """+ The node ID of the ref to be deployed.+ """+ refId: ID! @possibleTypes(concreteTypes: ["Ref"])++ """+ The node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The status contexts to verify against commit status checks. To bypass required+ contexts, pass an empty array. Defaults to all unique contexts.+ """+ requiredContexts: [String!]++ """+ Specifies a task to execute.+ """+ task: String = "deploy"+}++"""+Autogenerated return type of CreateDeployment.+"""+type CreateDeploymentPayload {+ """+ True if the default branch has been auto-merged into the deployment ref.+ """+ autoMerged: Boolean++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new deployment.+ """+ deployment: Deployment+}++"""+Autogenerated input type of CreateDeploymentStatus+"""+input CreateDeploymentStatusInput {+ """+ Adds a new inactive status to all non-transient, non-production environment+ deployments with the same repository and environment name as the created+ status's deployment.+ """+ autoInactive: Boolean = true++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The node ID of the deployment.+ """+ deploymentId: ID! @possibleTypes(concreteTypes: ["Deployment"])++ """+ A short description of the status. Maximum length of 140 characters.+ """+ description: String = ""++ """+ If provided, updates the environment of the deploy. Otherwise, does not modify the environment.+ """+ environment: String++ """+ Sets the URL for accessing your environment.+ """+ environmentUrl: String = ""++ """+ The log URL to associate with this status. This URL should contain+ output to keep the user updated while the task is running or serve as+ historical information for what happened in the deployment.+ """+ logUrl: String = ""++ """+ The state of the deployment.+ """+ state: DeploymentStatusState!+}++"""+Autogenerated return type of CreateDeploymentStatus.+"""+type CreateDeploymentStatusPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new deployment status.+ """+ deploymentStatus: DeploymentStatus+}++"""+Autogenerated input type of CreateDiscussion+"""+input CreateDiscussionInput {+ """+ The body of the discussion.+ """+ body: String!++ """+ The id of the discussion category to associate with this discussion.+ """+ categoryId: ID! @possibleTypes(concreteTypes: ["DiscussionCategory"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the repository on which to create the discussion.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The title of the discussion.+ """+ title: String!+}++"""+Autogenerated return type of CreateDiscussion.+"""+type CreateDiscussionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The discussion that was just created.+ """+ discussion: Discussion+}++"""+Autogenerated input type of CreateEnterpriseOrganization+"""+input CreateEnterpriseOrganizationInput {+ """+ The logins of additional organization owners. Listed users are invited unless+ owner invitations are disabled, in which case they are added directly.+ Installation requests also add existing enterprise members directly.+ """+ adminLogins: [String!]!++ """+ The email used for sending billing receipts.+ """+ billingEmail: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise owning the new organization.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of the new organization.+ """+ login: String!++ """+ The profile name of the new organization.+ """+ profileName: String!+}++"""+Autogenerated return type of CreateEnterpriseOrganization.+"""+type CreateEnterpriseOrganizationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise that owns the created organization.+ """+ enterprise: Enterprise++ """+ The organization that was created.+ """+ organization: Organization+}++"""+Autogenerated input type of CreateEnvironment+"""+input CreateEnvironmentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of the environment.+ """+ name: String!++ """+ The node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of CreateEnvironment.+"""+type CreateEnvironmentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new or existing environment.+ """+ environment: Environment+}++"""+Autogenerated input type of CreateIpAllowListEntry+"""+input CreateIpAllowListEntryInput {+ """+ An IP address or range of addresses in CIDR notation. Ranges that cover the+ entire address space, such as `0.0.0.0/0` or `::/0`, are not accepted for+ organizations or enterprises.+ """+ allowListValue: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether the IP allow list entry is active when an IP allow list is enabled.+ """+ isActive: Boolean!++ """+ An optional name for the IP allow list entry.+ """+ name: String++ """+ The ID of the owner for which to create the new IP allow list entry.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner")+}++"""+Autogenerated return type of CreateIpAllowListEntry.+"""+type CreateIpAllowListEntryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The IP allow list entry that was created.+ """+ ipAllowListEntry: IpAllowListEntry+}++"""+Autogenerated input type of CreateIssueField+"""+input CreateIssueFieldInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The data type of the issue field.+ """+ dataType: IssueFieldDataType!++ """+ A description of the issue field.+ """+ description: String++ """+ The name of the issue field.+ """+ name: String!++ """+ The options for the issue field if applicable.+ """+ options: [IssueFieldSingleSelectOptionInput!]++ """+ The ID of the organization where the issue field will be created.+ """+ ownerId: ID!++ """+ The visibility of the issue field.+ """+ visibility: IssueFieldVisibility+}++"""+Autogenerated return type of CreateIssueField.+"""+type CreateIssueFieldPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created issue field.+ """+ issueField: IssueFields+}++"""+Autogenerated input type of CreateIssueFieldValue+"""+input CreateIssueFieldValueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The field value to create.+ """+ issueField: IssueFieldCreateOrUpdateInput!++ """+ The ID of the issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of CreateIssueFieldValue.+"""+type CreateIssueFieldValuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue object.+ """+ issue: Issue++ """+ The newly created issue field value.+ """+ issueFieldValue: IssueFieldValue+}++"""+Autogenerated input type of CreateIssue+"""+input CreateIssueInput {+ """+ Configuration for assigning Copilot to this issue.+ """+ agentAssignment: AgentAssignmentInput++ """+ The Node ID of assignees for this issue.+ """+ assigneeIds: [ID!]+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ The body for the issue description.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ An array of issue fields to set on the issue during creation+ """+ issueFields: [IssueFieldCreateOrUpdateInput!]++ """+ The name of an issue template in the repository, assigns labels and assignees from the template to the issue+ """+ issueTemplate: String++ """+ The Node ID of the issue type for this issue+ """+ issueTypeId: ID++ """+ An array of Node IDs of labels for this issue.+ """+ labelIds: [ID!] @possibleTypes(concreteTypes: ["Label"])++ """+ The Node ID of the milestone for this issue.+ """+ milestoneId: ID @possibleTypes(concreteTypes: ["Milestone"])++ """+ The Node ID of the parent issue to add this new issue to+ """+ parentIssueId: ID @possibleTypes(concreteTypes: ["Issue"])++ """+ An array of Node IDs for projects associated with this issue.+ """+ projectIds: [ID!] @possibleTypes(concreteTypes: ["Project"])++ """+ An array of Node IDs for Projects V2 associated with this issue.+ """+ projectV2Ids: [ID!] @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The title for the issue.+ """+ title: String!+}++"""+Autogenerated return type of CreateIssue.+"""+type CreateIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new issue.+ """+ issue: Issue+}++"""+Autogenerated input type of CreateIssueType+"""+input CreateIssueTypeInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Color for the issue type+ """+ color: IssueTypeColor++ """+ Description of the new issue type+ """+ description: String++ """+ Whether or not the issue type is enabled on the org level+ """+ isEnabled: Boolean!++ """+ Name of the new issue type+ """+ name: String!++ """+ The ID for the organization on which the issue type is created+ """+ ownerId: ID!+}++"""+Autogenerated return type of CreateIssueType.+"""+type CreateIssueTypePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created issue type+ """+ issueType: IssueType+}++"""+Autogenerated input type of CreateLabel+"""+input CreateLabelInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A 6 character hex code, without the leading #, identifying the color of the label.+ """+ color: String!++ """+ A brief description of the label, such as its purpose.+ """+ description: String++ """+ The name of the label.+ """+ name: String!++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of CreateLabel.+"""+type CreateLabelPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new label.+ """+ label: Label+}++"""+Autogenerated input type of CreateLinkedBranch+"""+input CreateLinkedBranchInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the issue to link to.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The name of the new branch. Defaults to issue number and title.+ """+ name: String++ """+ The commit SHA to base the new branch on.+ """+ oid: GitObjectID!++ """+ ID of the repository to create the branch in. Defaults to the issue repository.+ """+ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of CreateLinkedBranch.+"""+type CreateLinkedBranchPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue that was linked to.+ """+ issue: Issue++ """+ The new branch issue reference.+ """+ linkedBranch: LinkedBranch+}++"""+Autogenerated input type of CreateMigrationSource+"""+input CreateMigrationSourceInput {+ """+ The migration source access token.+ """+ accessToken: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The GitHub personal access token of the user importing to the target repository.+ """+ githubPat: String++ """+ The migration source name.+ """+ name: String!++ """+ The ID of the organization that will own the migration source.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Organization"])++ """+ The migration source type.+ """+ type: MigrationSourceType!++ """+ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`.+ """+ url: String+}++"""+Autogenerated return type of CreateMigrationSource.+"""+type CreateMigrationSourcePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The created migration source.+ """+ migrationSource: MigrationSource+}++"""+Autogenerated input type of CreateProject+"""+input CreateProjectInput {+ """+ The description of project.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of project.+ """+ name: String!++ """+ The owner ID to create the project under.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository", "User"], abstractType: "ProjectOwner")++ """+ A list of repository IDs to create as linked repositories for the project+ """+ repositoryIds: [ID!] @possibleTypes(concreteTypes: ["Repository"])++ """+ The name of the GitHub-provided template.+ """+ template: ProjectTemplate+}++"""+Autogenerated return type of CreateProject.+"""+type CreateProjectPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new project.+ """+ project: Project+}++"""+Autogenerated input type of CreateProjectV2Field+"""+input CreateProjectV2FieldInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The data type of the field.+ """+ dataType: ProjectV2CustomFieldType!++ """+ Configuration for an iteration field.+ """+ iterationConfiguration: ProjectV2IterationFieldConfigurationInput++ """+ Options for a multi select field. At least one value is required if data_type is MULTI_SELECT+ """+ multiSelectOptions: [ProjectV2MultiSelectFieldOptionInput!]++ """+ The name of the field.+ """+ name: String!++ """+ The ID of the Project to create the field in.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ Options for a single select field. At least one value is required if data_type is SINGLE_SELECT+ """+ singleSelectOptions: [ProjectV2SingleSelectFieldOptionInput!]+}++"""+Autogenerated return type of CreateProjectV2Field.+"""+type CreateProjectV2FieldPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new field.+ """+ projectV2Field: ProjectV2FieldConfiguration+}++"""+Autogenerated input type of CreateProjectV2+"""+input CreateProjectV2Input {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The owner ID to create the project under.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"])++ """+ The repository to link the project to.+ """+ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"])++ """+ The team to link the project to. The team will be granted read permissions.+ """+ teamId: ID @possibleTypes(concreteTypes: ["Team"])++ """+ The title of the project.+ """+ title: String!+}++"""+Autogenerated input type of CreateProjectV2IssueField+"""+input CreateProjectV2IssueFieldInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the IssueField to create the field for.+ """+ issueFieldId: ID!+ @possibleTypes(+ concreteTypes: [+ "IssueFieldDate"+ "IssueFieldMultiSelect"+ "IssueFieldNumber"+ "IssueFieldSingleSelect"+ "IssueFieldText"+ ]+ abstractType: "IssueFields"+ )++ """+ The ID of the Project to create the field in.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of CreateProjectV2IssueField.+"""+type CreateProjectV2IssueFieldPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new field.+ """+ projectV2Field: ProjectV2FieldConfiguration+}++"""+Autogenerated return type of CreateProjectV2.+"""+type CreateProjectV2Payload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new project.+ """+ projectV2: ProjectV2+}++"""+Autogenerated input type of CreateProjectV2StatusUpdate+"""+input CreateProjectV2StatusUpdateInput {+ """+ The body of the status update.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Project to create the status update in.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The start date of the status update.+ """+ startDate: Date++ """+ The status of the status update.+ """+ status: ProjectV2StatusUpdateStatus++ """+ The target date of the status update.+ """+ targetDate: Date+}++"""+Autogenerated return type of CreateProjectV2StatusUpdate.+"""+type CreateProjectV2StatusUpdatePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The status update updated in the project.+ """+ statusUpdate: ProjectV2StatusUpdate+}++"""+Autogenerated input type of CreateProjectV2View+"""+input CreateProjectV2ViewInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The configuration for the view.+ """+ configuration: ProjectV2ViewConfigurationInput++ """+ The layout of the view.+ """+ layout: ProjectV2ViewLayout!++ """+ The name of the view.+ """+ name: String!++ """+ The ID of the project to create a view in.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of CreateProjectV2View.+"""+type CreateProjectV2ViewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new view.+ """+ projectV2View: ProjectV2View+}++"""+Autogenerated input type of CreatePullRequest+"""+input CreatePullRequestInput {+ """+ The name of the branch you want your changes pulled into. This should be an existing branch+ on the current repository. You cannot update the base branch on a pull request to point+ to another repository.+ """+ baseRefName: String!++ """+ The contents of the pull request.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Indicates whether this pull request should be a draft.+ """+ draft: Boolean = false++ """+ The name of the branch where your changes are implemented. For cross-repository pull requests+ in the same network, namespace `head_ref_name` with a user like this: `username:branch`.+ """+ headRefName: String!++ """+ The Node ID of the head repository.+ """+ headRepositoryId: ID @possibleTypes(concreteTypes: ["Repository"])++ """+ Indicates whether maintainers can modify the pull request.+ """+ maintainerCanModify: Boolean = true++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The title of the pull request.+ """+ title: String!+}++"""+Autogenerated return type of CreatePullRequest.+"""+type CreatePullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new pull request.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of CreateRef+"""+input CreateRefInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The fully qualified name of the new Ref (ie: `refs/heads/my_new_branch`).+ """+ name: String!++ """+ The GitObjectID that the new Ref shall target. Must point to a commit.+ """+ oid: GitObjectID!++ """+ The Node ID of the Repository to create the Ref in.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of CreateRef.+"""+type CreateRefPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created ref.+ """+ ref: Ref+}++"""+Autogenerated input type of CreateRepositoryCustomProperty+"""+input CreateRepositoryCustomPropertyInput {+ """+ The allowed values for the custom property.+ """+ allowedValues: [String!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The default value for the custom property if the property is required.+ """+ defaultValue: String++ """+ The description of the custom property.+ """+ description: String++ """+ The name of the custom property.+ """+ propertyName: String!++ """+ The regex pattern that the value of the custom property must match, if the `value_type` is `string`.+ """+ regex: String++ """+ Whether this repository custom property requires explicit values.+ """+ requireExplicitValues: Boolean++ """+ Whether the custom property is required.+ """+ required: Boolean++ """+ The global relay id of the source in which a new custom property should be created in.+ """+ sourceId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization"], abstractType: "CustomPropertySource")++ """+ The value type for the custom property.+ """+ valueType: CustomPropertyValueType!++ """+ The allowed actors who can edit the values of a custom property.+ """+ valuesEditableBy: RepositoryCustomPropertyValuesEditableBy+}++"""+Autogenerated return type of CreateRepositoryCustomProperty.+"""+type CreateRepositoryCustomPropertyPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created repository custom property.+ """+ repositoryCustomProperty: RepositoryCustomProperty+}++"""+Autogenerated input type of CreateRepository+"""+input CreateRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A short description of the new repository.+ """+ description: String++ """+ Indicates if the repository should have the issues feature enabled.+ """+ hasIssuesEnabled: Boolean = true++ """+ Indicates if the repository should have the wiki feature enabled.+ """+ hasWikiEnabled: Boolean = false++ """+ The URL for a web page about this repository.+ """+ homepageUrl: URI++ """+ The name of the new repository.+ """+ name: String!++ """+ The ID of the owner for the new repository.+ """+ ownerId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "RepositoryOwner")++ """+ When an organization is specified as the owner, this ID identifies the team+ that should be granted access to the new repository.+ """+ teamId: ID @possibleTypes(concreteTypes: ["Team"])++ """+ Whether this repository should be marked as a template such that anyone who+ can access it can create new repositories with the same files and directory structure.+ """+ template: Boolean = false++ """+ Indicates the repository's visibility level.+ """+ visibility: RepositoryVisibility!+}++"""+Autogenerated return type of CreateRepository.+"""+type CreateRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new repository.+ """+ repository: Repository+}++"""+Autogenerated input type of CreateRepositoryRuleset+"""+input CreateRepositoryRulesetInput {+ """+ A list of actors that are allowed to bypass rules in this ruleset.+ """+ bypassActors: [RepositoryRulesetBypassActorInput!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The set of conditions for this ruleset+ """+ conditions: RepositoryRuleConditionsInput!++ """+ The enforcement level for this ruleset+ """+ enforcement: RuleEnforcement!++ """+ The name of the ruleset.+ """+ name: String!++ """+ The list of rules for this ruleset+ """+ rules: [RepositoryRuleInput!]++ """+ The global relay id of the source in which a new ruleset should be created in.+ """+ sourceId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization", "Repository"], abstractType: "RuleSource")++ """+ The target of the ruleset.+ """+ target: RepositoryRulesetTarget+}++"""+Autogenerated return type of CreateRepositoryRuleset.+"""+type CreateRepositoryRulesetPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created Ruleset.+ """+ ruleset: RepositoryRuleset+}++"""+Autogenerated input type of CreateSponsorsListing+"""+input CreateSponsorsListingInput {+ """+ The country or region where the sponsorable's bank account is located.+ Required if fiscalHostLogin is not specified, ignored when fiscalHostLogin is specified.+ """+ billingCountryOrRegionCode: SponsorsCountryOrRegionCode++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The email address we should use to contact you about the GitHub Sponsors+ profile being created. This will not be shared publicly. Must be a verified+ email address already on your GitHub account. Only relevant when the+ sponsorable is yourself. Defaults to your primary email address on file if omitted.+ """+ contactEmail: String++ """+ The username of the supported fiscal host's GitHub organization, if you want+ to receive sponsorship payouts through a fiscal host rather than directly to a+ bank account. For example, 'Open-Source-Collective' for Open Source Collective+ or 'numfocus' for numFOCUS. Case insensitive. See https://docs.github.com/sponsors/receiving-sponsorships-through-github-sponsors/using-a-fiscal-host-to-receive-github-sponsors-payouts+ for more information.+ """+ fiscalHostLogin: String++ """+ The URL for your profile page on the fiscal host's website, e.g.,+ https://opencollective.com/babel or https://numfocus.org/project/bokeh.+ Required if fiscalHostLogin is specified.+ """+ fiscallyHostedProjectProfileUrl: String++ """+ Provide an introduction to serve as the main focus that appears on your GitHub+ Sponsors profile. It's a great opportunity to help potential sponsors learn+ more about you, your work, and why their sponsorship is important to you.+ GitHub-flavored Markdown is supported.+ """+ fullDescription: String++ """+ The country or region where the sponsorable resides. This is for tax purposes.+ Required if the sponsorable is yourself, ignored when sponsorableLogin+ specifies an organization.+ """+ residenceCountryOrRegionCode: SponsorsCountryOrRegionCode++ """+ The username of the organization to create a GitHub Sponsors profile for, if+ desired. Defaults to creating a GitHub Sponsors profile for the authenticated+ user if omitted.+ """+ sponsorableLogin: String+}++"""+Autogenerated return type of CreateSponsorsListing.+"""+type CreateSponsorsListingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new GitHub Sponsors profile.+ """+ sponsorsListing: SponsorsListing+}++"""+Autogenerated input type of CreateSponsorsTier+"""+input CreateSponsorsTierInput {+ """+ The value of the new tier in US dollars. Valid values: 1-12000.+ """+ amount: Int!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A description of what this tier is, what perks sponsors might receive, what a sponsorship at this tier means for you, etc.+ """+ description: String!++ """+ Whether sponsorships using this tier should happen monthly/yearly or just once.+ """+ isRecurring: Boolean = true++ """+ Whether to make the tier available immediately for sponsors to choose.+ Defaults to creating a draft tier that will not be publicly visible.+ """+ publish: Boolean = false++ """+ Optional ID of the private repository that sponsors at this tier should gain+ read-only access to. Must be owned by an organization.+ """+ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"])++ """+ Optional name of the private repository that sponsors at this tier should gain+ read-only access to. Must be owned by an organization. Necessary if+ repositoryOwnerLogin is given. Will be ignored if repositoryId is given.+ """+ repositoryName: String++ """+ Optional login of the organization owner of the private repository that+ sponsors at this tier should gain read-only access to. Necessary if+ repositoryName is given. Will be ignored if repositoryId is given.+ """+ repositoryOwnerLogin: String++ """+ The ID of the user or organization who owns the GitHub Sponsors profile.+ Defaults to the current user if omitted and sponsorableLogin is not given.+ """+ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable")++ """+ The username of the user or organization who owns the GitHub Sponsors profile.+ Defaults to the current user if omitted and sponsorableId is not given.+ """+ sponsorableLogin: String++ """+ Optional message new sponsors at this tier will receive.+ """+ welcomeMessage: String+}++"""+Autogenerated return type of CreateSponsorsTier.+"""+type CreateSponsorsTierPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new tier.+ """+ sponsorsTier: SponsorsTier+}++"""+Autogenerated input type of CreateSponsorship+"""+input CreateSponsorshipInput {+ """+ The amount to pay to the sponsorable in US dollars. Required if a tierId is not specified. Valid values: 1-12000.+ """+ amount: Int++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether the sponsorship should happen monthly/yearly or just this one time. Required if a tierId is not specified.+ """+ isRecurring: Boolean++ """+ Specify whether others should be able to see that the sponsor is sponsoring+ the sponsorable. Public visibility still does not reveal which tier is used.+ """+ privacyLevel: SponsorshipPrivacy = PUBLIC++ """+ Whether the sponsor should receive email updates from the sponsorable.+ """+ receiveEmails: Boolean = true++ """+ The ID of the user or organization who is acting as the sponsor, paying for+ the sponsorship. Required if sponsorLogin is not given.+ """+ sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor")++ """+ The username of the user or organization who is acting as the sponsor, paying+ for the sponsorship. Required if sponsorId is not given.+ """+ sponsorLogin: String++ """+ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given.+ """+ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable")++ """+ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.+ """+ sponsorableLogin: String++ """+ The ID of one of sponsorable's existing tiers to sponsor at. Required if amount is not specified.+ """+ tierId: ID @possibleTypes(concreteTypes: ["SponsorsTier"])+}++"""+Autogenerated return type of CreateSponsorship.+"""+type CreateSponsorshipPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The sponsorship that was started.+ """+ sponsorship: Sponsorship+}++"""+Autogenerated input type of CreateSponsorships+"""+input CreateSponsorshipsInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Specify whether others should be able to see that the sponsor is sponsoring+ the sponsorables. Public visibility still does not reveal the dollar value of+ the sponsorship.+ """+ privacyLevel: SponsorshipPrivacy = PUBLIC++ """+ Whether the sponsor should receive email updates from the sponsorables.+ """+ receiveEmails: Boolean = false++ """+ Whether the sponsorships created should continue each billing cycle for the+ sponsor (monthly or annually), versus lasting only a single month. Defaults to+ one-time sponsorships.+ """+ recurring: Boolean = false++ """+ The username of the user or organization who is acting as the sponsor, paying for the sponsorships.+ """+ sponsorLogin: String!++ """+ The list of maintainers to sponsor and for how much apiece.+ """+ sponsorships: [BulkSponsorship!]!+}++"""+Autogenerated return type of CreateSponsorships.+"""+type CreateSponsorshipsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The users and organizations who received a sponsorship.+ """+ sponsorables: [Sponsorable!]+}++"""+Autogenerated input type of CreateUserList+"""+input CreateUserListInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A description of the list+ """+ description: String++ """+ Whether or not the list is private+ """+ isPrivate: Boolean = false++ """+ The name of the new list+ """+ name: String!+}++"""+Autogenerated return type of CreateUserList.+"""+type CreateUserListPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The list that was just created+ """+ list: UserList++ """+ The user who created the list+ """+ viewer: User+}++"""+Represents the contribution a user made by committing to a repository.+"""+type CreatedCommitContribution implements Contribution @docsCategory(name: "users") {+ """+ How many commits were made on this day to this repository by the user.+ """+ commitCount: Int!++ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The repository the user made a commit in.+ """+ repository: Repository!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+The connection type for CreatedCommitContribution.+"""+type CreatedCommitContributionConnection {+ """+ A list of edges.+ """+ edges: [CreatedCommitContributionEdge]++ """+ A list of nodes.+ """+ nodes: [CreatedCommitContribution]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of commits across days and repositories in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CreatedCommitContributionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CreatedCommitContribution+}++"""+Represents the contribution a user made on GitHub by opening an issue.+"""+type CreatedIssueContribution implements Contribution @docsCategory(name: "users") {+ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ The issue that was opened.+ """+ issue: Issue!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+The connection type for CreatedIssueContribution.+"""+type CreatedIssueContributionConnection {+ """+ A list of edges.+ """+ edges: [CreatedIssueContributionEdge]++ """+ A list of nodes.+ """+ nodes: [CreatedIssueContribution]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CreatedIssueContributionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CreatedIssueContribution+}++"""+Represents either a issue the viewer can access or a restricted contribution.+"""+union CreatedIssueOrRestrictedContribution @docsCategory(name: "users") =+ | CreatedIssueContribution+ | RestrictedContribution++"""+Represents the contribution a user made on GitHub by opening a pull request.+"""+type CreatedPullRequestContribution implements Contribution @docsCategory(name: "users") {+ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The pull request that was opened.+ """+ pullRequest: PullRequest!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+The connection type for CreatedPullRequestContribution.+"""+type CreatedPullRequestContributionConnection {+ """+ A list of edges.+ """+ edges: [CreatedPullRequestContributionEdge]++ """+ A list of nodes.+ """+ nodes: [CreatedPullRequestContribution]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CreatedPullRequestContributionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CreatedPullRequestContribution+}++"""+Represents either a pull request the viewer can access or a restricted contribution.+"""+union CreatedPullRequestOrRestrictedContribution @docsCategory(name: "users") =+ | CreatedPullRequestContribution+ | RestrictedContribution++"""+Represents the contribution a user made by leaving a review on a pull request.+"""+type CreatedPullRequestReviewContribution implements Contribution @docsCategory(name: "users") {+ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The pull request the user reviewed.+ """+ pullRequest: PullRequest!++ """+ The review the user left on the pull request.+ """+ pullRequestReview: PullRequestReview!++ """+ The repository containing the pull request that the user reviewed.+ """+ repository: Repository!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+The connection type for CreatedPullRequestReviewContribution.+"""+type CreatedPullRequestReviewContributionConnection {+ """+ A list of edges.+ """+ edges: [CreatedPullRequestReviewContributionEdge]++ """+ A list of nodes.+ """+ nodes: [CreatedPullRequestReviewContribution]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CreatedPullRequestReviewContributionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CreatedPullRequestReviewContribution+}++"""+Represents the contribution a user made on GitHub by creating a repository.+"""+type CreatedRepositoryContribution implements Contribution @docsCategory(name: "users") {+ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The repository that was created.+ """+ repository: Repository!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+The connection type for CreatedRepositoryContribution.+"""+type CreatedRepositoryContributionConnection {+ """+ A list of edges.+ """+ edges: [CreatedRepositoryContributionEdge]++ """+ A list of nodes.+ """+ nodes: [CreatedRepositoryContribution]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type CreatedRepositoryContributionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: CreatedRepositoryContribution+}++"""+Represents either a repository the viewer can access or a restricted contribution.+"""+union CreatedRepositoryOrRestrictedContribution @docsCategory(name: "users") =+ | CreatedRepositoryContribution+ | RestrictedContribution++"""+Represents a mention made by one issue or pull request to another.+"""+type CrossReferencedEvent implements Node & UniformResourceLocatable @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the CrossReferencedEvent object+ """+ id: ID!++ """+ Reference originated in a different repository.+ """+ isCrossRepository: Boolean!++ """+ Identifies when the reference was made.+ """+ referencedAt: DateTime!++ """+ The HTTP path for this pull request.+ """+ resourcePath: URI!++ """+ Issue or pull request that made the reference.+ """+ source: ReferencedSubject!++ """+ Issue or pull request to which the reference was made.+ """+ target: ReferencedSubject!++ """+ The HTTP URL for this pull request.+ """+ url: URI!++ """+ Checks if the target will be closed when the source is merged.+ """+ willCloseTarget: Boolean!+}++"""+Sources which can have custom properties defined.+"""+union CustomPropertySource @docsCategory(name: "repos") = Enterprise | Organization++"""+A custom property value can be either a string or an array of strings. All+property types support only a single string value, except for the multi-select+type, which supports only a string array.+"""+scalar CustomPropertyValue++"""+The custom property name and value to be set.+"""+input CustomPropertyValueInput @docsCategory(name: "repos") {+ """+ The name of the custom property.+ """+ propertyName: String!++ """+ The value to set for the custom property. Using a value of null will unset the+ property value, reverting to the default value if the property is required.+ """+ value: CustomPropertyValue+}++"""+The allowed value types for a custom property definition.+"""+enum CustomPropertyValueType @docsCategory(name: "repos") {+ """+ A multi-select value.+ """+ MULTI_SELECT++ """+ A single-select value.+ """+ SINGLE_SELECT++ """+ A string value.+ """+ STRING++ """+ A true/false value.+ """+ TRUE_FALSE++ """+ A URL value.+ """+ URL+}++"""+The Common Vulnerability Scoring System+"""+type CvssSeverities @docsCategory(name: "security-advisories") {+ """+ The CVSS v3 severity associated with this advisory+ """+ cvssV3: CVSS++ """+ The CVSS v4 severity associated with this advisory+ """+ cvssV4: CVSS+}++"""+An ISO-8601 encoded date string.+"""+scalar Date++"""+An ISO-8601 encoded UTC date string.+"""+scalar DateTime++"""+Autogenerated input type of DeclineTopicSuggestion+"""+input DeclineTopicSuggestionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of the suggested topic.++ **Upcoming Change on 2024-04-01 UTC**+ **Description:** `name` will be removed.+ **Reason:** Suggested topics are no longer supported+ """+ name: String++ """+ The reason why the suggested topic is declined.++ **Upcoming Change on 2024-04-01 UTC**+ **Description:** `reason` will be removed.+ **Reason:** Suggested topics are no longer supported+ """+ reason: TopicSuggestionDeclineReason++ """+ The Node ID of the repository.++ **Upcoming Change on 2024-04-01 UTC**+ **Description:** `repositoryId` will be removed.+ **Reason:** Suggested topics are no longer supported+ """+ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of DeclineTopicSuggestion.+"""+type DeclineTopicSuggestionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The declined topic.+ """+ topic: Topic @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")+}++"""+The possible base permissions for repositories.+"""+enum DefaultRepositoryPermissionField @docsCategory(name: "repos") {+ """+ Can read, write, and administrate repos by default+ """+ ADMIN++ """+ No access+ """+ NONE++ """+ Can read repos by default+ """+ READ++ """+ Can read and write repos by default+ """+ WRITE+}++"""+Entities that can be deleted.+"""+interface Deletable @docsCategory(name: "issues") {+ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!+}++"""+Autogenerated input type of DeleteBranchProtectionRule+"""+input DeleteBranchProtectionRuleInput {+ """+ The global relay id of the branch protection rule to be deleted.+ """+ branchProtectionRuleId: ID! @possibleTypes(concreteTypes: ["BranchProtectionRule"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated return type of DeleteBranchProtectionRule.+"""+type DeleteBranchProtectionRulePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of DeleteDeployment+"""+input DeleteDeploymentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the deployment to be deleted.+ """+ id: ID! @possibleTypes(concreteTypes: ["Deployment"])+}++"""+Autogenerated return type of DeleteDeployment.+"""+type DeleteDeploymentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of DeleteDiscussionComment+"""+input DeleteDiscussionCommentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node id of the discussion comment to delete.+ """+ id: ID! @possibleTypes(concreteTypes: ["DiscussionComment"])+}++"""+Autogenerated return type of DeleteDiscussionComment.+"""+type DeleteDiscussionCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The discussion comment that was just deleted.+ """+ comment: DiscussionComment+}++"""+Autogenerated input type of DeleteDiscussion+"""+input DeleteDiscussionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the discussion to delete.+ """+ id: ID! @possibleTypes(concreteTypes: ["Discussion"])+}++"""+Autogenerated return type of DeleteDiscussion.+"""+type DeleteDiscussionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The discussion that was just deleted.+ """+ discussion: Discussion+}++"""+Autogenerated input type of DeleteEnvironment+"""+input DeleteEnvironmentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the environment to be deleted.+ """+ id: ID! @possibleTypes(concreteTypes: ["Environment"])+}++"""+Autogenerated return type of DeleteEnvironment.+"""+type DeleteEnvironmentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of DeleteIpAllowListEntry+"""+input DeleteIpAllowListEntryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the IP allow list entry to delete.+ """+ ipAllowListEntryId: ID! @possibleTypes(concreteTypes: ["IpAllowListEntry"])+}++"""+Autogenerated return type of DeleteIpAllowListEntry.+"""+type DeleteIpAllowListEntryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The IP allow list entry that was deleted.+ """+ ipAllowListEntry: IpAllowListEntry+}++"""+Autogenerated input type of DeleteIssueComment+"""+input DeleteIssueCommentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the comment to delete.+ """+ id: ID! @possibleTypes(concreteTypes: ["IssueComment"])+}++"""+Autogenerated return type of DeleteIssueComment.+"""+type DeleteIssueCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of DeleteIssueField+"""+input DeleteIssueFieldInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the field to delete.+ """+ fieldId: ID!+ @possibleTypes(+ concreteTypes: [+ "IssueFieldDate"+ "IssueFieldMultiSelect"+ "IssueFieldNumber"+ "IssueFieldSingleSelect"+ "IssueFieldText"+ ]+ abstractType: "IssueFields"+ )+}++"""+Autogenerated return type of DeleteIssueField.+"""+type DeleteIssueFieldPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The deleted issue field.+ """+ issueField: IssueFields+}++"""+Autogenerated input type of DeleteIssueFieldValue+"""+input DeleteIssueFieldValueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the field to delete.+ """+ fieldId: ID!++ """+ The ID of the issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of DeleteIssueFieldValue.+"""+type DeleteIssueFieldValuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue object.+ """+ issue: Issue++ """+ Whether the field value was successfully deleted.+ """+ success: Boolean+}++"""+Autogenerated input type of DeleteIssue+"""+input DeleteIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue to delete.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of DeleteIssue.+"""+type DeleteIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository the issue belonged to+ """+ repository: Repository+}++"""+Autogenerated input type of DeleteIssueType+"""+input DeleteIssueTypeInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue type to delete+ """+ issueTypeId: ID! @possibleTypes(concreteTypes: ["IssueType"])+}++"""+Autogenerated return type of DeleteIssueType.+"""+type DeleteIssueTypePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the deleted issue type+ """+ deletedIssueTypeId: ID+}++"""+Autogenerated input type of DeleteLabel+"""+input DeleteLabelInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the label to be deleted.+ """+ id: ID! @possibleTypes(concreteTypes: ["Label"])+}++"""+Autogenerated return type of DeleteLabel.+"""+type DeleteLabelPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of DeleteLinkedBranch+"""+input DeleteLinkedBranchInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the linked branch+ """+ linkedBranchId: ID! @possibleTypes(concreteTypes: ["LinkedBranch"])+}++"""+Autogenerated return type of DeleteLinkedBranch.+"""+type DeleteLinkedBranchPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue the linked branch was unlinked from.+ """+ issue: Issue+}++"""+Autogenerated input type of DeletePackageVersion+"""+input DeletePackageVersionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the package version to be deleted.+ """+ packageVersionId: ID! @possibleTypes(concreteTypes: ["PackageVersion"])+}++"""+Autogenerated return type of DeletePackageVersion.+"""+type DeletePackageVersionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether or not the operation succeeded.+ """+ success: Boolean+}++"""+Autogenerated input type of DeleteProjectCard+"""+input DeleteProjectCardInput {+ """+ The id of the card to delete.+ """+ cardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated return type of DeleteProjectCard.+"""+type DeleteProjectCardPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The column the deleted card was in.+ """+ column: ProjectColumn++ """+ The deleted card ID.+ """+ deletedCardId: ID+}++"""+Autogenerated input type of DeleteProjectColumn+"""+input DeleteProjectColumnInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the column to delete.+ """+ columnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"])+}++"""+Autogenerated return type of DeleteProjectColumn.+"""+type DeleteProjectColumnPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The deleted column ID.+ """+ deletedColumnId: ID++ """+ The project the deleted column was in.+ """+ project: Project+}++"""+Autogenerated input type of DeleteProject+"""+input DeleteProjectInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Project ID to update.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["Project"])+}++"""+Autogenerated return type of DeleteProject.+"""+type DeleteProjectPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository or organization the project was removed from.+ """+ owner: ProjectOwner+}++"""+Autogenerated input type of DeleteProjectV2Field+"""+input DeleteProjectV2FieldInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the field to delete.+ """+ fieldId: ID!+ @possibleTypes(+ concreteTypes: [+ "ProjectV2Field"+ "ProjectV2IterationField"+ "ProjectV2MultiSelectField"+ "ProjectV2SingleSelectField"+ ]+ abstractType: "ProjectV2FieldConfiguration"+ )+}++"""+Autogenerated return type of DeleteProjectV2Field.+"""+type DeleteProjectV2FieldPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The deleted field.+ """+ projectV2Field: ProjectV2FieldConfiguration+}++"""+Autogenerated input type of DeleteProjectV2+"""+input DeleteProjectV2Input {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Project to delete.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated input type of DeleteProjectV2Item+"""+input DeleteProjectV2ItemInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the item to be removed.+ """+ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ The ID of the Project from which the item should be removed.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of DeleteProjectV2Item.+"""+type DeleteProjectV2ItemPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the deleted item.+ """+ deletedItemId: ID+}++"""+Autogenerated return type of DeleteProjectV2.+"""+type DeleteProjectV2Payload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The deleted Project.+ """+ projectV2: ProjectV2+}++"""+Autogenerated input type of DeleteProjectV2StatusUpdate+"""+input DeleteProjectV2StatusUpdateInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the status update to be removed.+ """+ statusUpdateId: ID! @possibleTypes(concreteTypes: ["ProjectV2StatusUpdate"])+}++"""+Autogenerated return type of DeleteProjectV2StatusUpdate.+"""+type DeleteProjectV2StatusUpdatePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the deleted status update.+ """+ deletedStatusUpdateId: ID++ """+ The project the deleted status update was in.+ """+ projectV2: ProjectV2+}++"""+Autogenerated input type of DeleteProjectV2View+"""+input DeleteProjectV2ViewInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the view to delete.+ """+ viewId: ID! @possibleTypes(concreteTypes: ["ProjectV2View"])+}++"""+Autogenerated return type of DeleteProjectV2View.+"""+type DeleteProjectV2ViewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The deleted view.+ """+ projectV2View: ProjectV2View+}++"""+Autogenerated input type of DeleteProjectV2Workflow+"""+input DeleteProjectV2WorkflowInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the workflow to be removed.+ """+ workflowId: ID! @possibleTypes(concreteTypes: ["ProjectV2Workflow"])+}++"""+Autogenerated return type of DeleteProjectV2Workflow.+"""+type DeleteProjectV2WorkflowPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the deleted workflow.+ """+ deletedWorkflowId: ID++ """+ The project the deleted workflow was in.+ """+ projectV2: ProjectV2+}++"""+Autogenerated input type of DeletePullRequestReviewComment+"""+input DeletePullRequestReviewCommentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the comment to delete.+ """+ id: ID! @possibleTypes(concreteTypes: ["PullRequestReviewComment"])+}++"""+Autogenerated return type of DeletePullRequestReviewComment.+"""+type DeletePullRequestReviewCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request review the deleted comment belonged to.+ """+ pullRequestReview: PullRequestReview++ """+ The deleted pull request review comment.+ """+ pullRequestReviewComment: PullRequestReviewComment+}++"""+Autogenerated input type of DeletePullRequestReview+"""+input DeletePullRequestReviewInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pull request review to delete.+ """+ pullRequestReviewId: ID! @possibleTypes(concreteTypes: ["PullRequestReview"])+}++"""+Autogenerated return type of DeletePullRequestReview.+"""+type DeletePullRequestReviewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The deleted pull request review.+ """+ pullRequestReview: PullRequestReview+}++"""+Autogenerated input type of DeleteRef+"""+input DeleteRefInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the Ref to be deleted.+ """+ refId: ID! @possibleTypes(concreteTypes: ["Ref"])+}++"""+Autogenerated return type of DeleteRef.+"""+type DeleteRefPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of DeleteRepositoryCustomProperty+"""+input DeleteRepositoryCustomPropertyInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The global relay id of the custom property to be deleted.+ """+ id: ID! @possibleTypes(concreteTypes: ["RepositoryCustomProperty"])+}++"""+Autogenerated return type of DeleteRepositoryCustomProperty.+"""+type DeleteRepositoryCustomPropertyPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The deleted custom property.+ """+ repositoryCustomProperty: RepositoryCustomProperty+}++"""+Autogenerated input type of DeleteRepositoryRuleset+"""+input DeleteRepositoryRulesetInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The global relay id of the repository ruleset to be deleted.+ """+ repositoryRulesetId: ID! @possibleTypes(concreteTypes: ["RepositoryRuleset"])+}++"""+Autogenerated return type of DeleteRepositoryRuleset.+"""+type DeleteRepositoryRulesetPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of DeleteUserList+"""+input DeleteUserListInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the list to delete.+ """+ listId: ID! @possibleTypes(concreteTypes: ["UserList"])+}++"""+Autogenerated return type of DeleteUserList.+"""+type DeleteUserListPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The owner of the list that will be deleted+ """+ user: User+}++"""+Autogenerated input type of DeleteVerifiableDomain+"""+input DeleteVerifiableDomainInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the verifiable domain to delete.+ """+ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"])+}++"""+Autogenerated return type of DeleteVerifiableDomain.+"""+type DeleteVerifiableDomainPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The owning account from which the domain was deleted.+ """+ owner: VerifiableDomainOwner+}++"""+Represents a 'demilestoned' event on a given issue or pull request.+"""+type DemilestonedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the DemilestonedEvent object+ """+ id: ID!++ """+ Identifies the milestone title associated with the 'demilestoned' event.+ """+ milestoneTitle: String!++ """+ Object referenced by event.+ """+ subject: MilestoneItem!+}++"""+A Dependabot Update for a dependency in a repository+"""+type DependabotUpdate implements RepositoryNode @docsCategory(name: "dependabot") {+ """+ The error from a dependency update+ """+ error: DependabotUpdateError++ """+ The associated pull request+ """+ pullRequest: PullRequest++ """+ The repository associated with this node.+ """+ repository: Repository!+}++"""+An error produced from a Dependabot Update+"""+type DependabotUpdateError @docsCategory(name: "dependabot") {+ """+ The body of the error+ """+ body: String!++ """+ The error code+ """+ errorType: String!++ """+ The title of the error+ """+ title: String!+}++"""+A dependency manifest entry+"""+type DependencyGraphDependency @docsCategory(name: "dependency-graph") {+ """+ Does the dependency itself have dependencies?+ """+ hasDependencies: Boolean!++ """+ The original name of the package, as it appears in the manifest.+ """+ packageLabel: String!+ @deprecated(+ reason: "`packageLabel` will be removed. Use normalized `packageName` field instead. Removal on 2022-10-01 UTC."+ )++ """+ The dependency package manager+ """+ packageManager: String++ """+ The name of the package in the canonical form used by the package manager.+ """+ packageName: String!++ """+ Public preview: The dependency package URL+ """+ packageUrl: URI++ """+ Public preview: The relationship of the dependency. Can be direct, transitive, or unknown+ """+ relationship: String!++ """+ The repository containing the package+ """+ repository: Repository++ """+ The dependency version requirements+ """+ requirements: String!+}++"""+The connection type for DependencyGraphDependency.+"""+type DependencyGraphDependencyConnection {+ """+ A list of edges.+ """+ edges: [DependencyGraphDependencyEdge]++ """+ A list of nodes.+ """+ nodes: [DependencyGraphDependency]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DependencyGraphDependencyEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DependencyGraphDependency+}++"""+The possible ecosystems of a dependency graph package.+"""+enum DependencyGraphEcosystem @docsCategory(name: "dependency-graph") {+ """+ GitHub Actions+ """+ ACTIONS++ """+ PHP packages hosted at packagist.org+ """+ COMPOSER++ """+ Go modules+ """+ GO++ """+ Java artifacts hosted at the Maven central repository+ """+ MAVEN++ """+ JavaScript packages hosted at npmjs.com+ """+ NPM++ """+ .NET packages hosted at the NuGet Gallery+ """+ NUGET++ """+ Python packages hosted at PyPI.org+ """+ PIP++ """+ Dart packages hosted at pub.dev+ """+ PUB++ """+ Ruby gems hosted at RubyGems.org+ """+ RUBYGEMS++ """+ Rust crates+ """+ RUST++ """+ Swift packages+ """+ SWIFT+}++"""+Dependency manifest for a repository+"""+type DependencyGraphManifest implements Node @docsCategory(name: "dependency-graph") {+ """+ Path to view the manifest file blob+ """+ blobPath: String!++ """+ A list of manifest dependencies+ """+ dependencies(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DependencyGraphDependencyConnection++ """+ The number of dependencies listed in the manifest+ """+ dependenciesCount: Int++ """+ Is the manifest too big to parse?+ """+ exceedsMaxSize: Boolean!++ """+ Fully qualified manifest filename+ """+ filename: String!++ """+ The Node ID of the DependencyGraphManifest object+ """+ id: ID!++ """+ Were we able to parse the manifest?+ """+ parseable: Boolean!++ """+ The repository containing the manifest+ """+ repository: Repository!+}++"""+The connection type for DependencyGraphManifest.+"""+type DependencyGraphManifestConnection {+ """+ A list of edges.+ """+ edges: [DependencyGraphManifestEdge]++ """+ A list of nodes.+ """+ nodes: [DependencyGraphManifest]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DependencyGraphManifestEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DependencyGraphManifest+}++"""+A repository deploy key.+"""+type DeployKey implements Node @docsCategory(name: "deploy-keys") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Whether or not the deploy key is enabled by policy at the Enterprise or Organization level.+ """+ enabled: Boolean!++ """+ The Node ID of the DeployKey object+ """+ id: ID!++ """+ The deploy key.+ """+ key: String!++ """+ Whether or not the deploy key is read only.+ """+ readOnly: Boolean!++ """+ The deploy key title.+ """+ title: String!++ """+ Whether or not the deploy key has been verified.+ """+ verified: Boolean!+}++"""+The connection type for DeployKey.+"""+type DeployKeyConnection {+ """+ A list of edges.+ """+ edges: [DeployKeyEdge]++ """+ A list of nodes.+ """+ nodes: [DeployKey]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DeployKeyEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DeployKey+}++"""+Represents a 'deployed' event on a given pull request.+"""+type DeployedEvent implements Node @docsCategory(name: "deployments") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The deployment associated with the 'deployed' event.+ """+ deployment: Deployment!++ """+ The Node ID of the DeployedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ The ref associated with the 'deployed' event.+ """+ ref: Ref+}++"""+Represents triggered deployment instance.+"""+type Deployment implements Node @docsCategory(name: "deployments") {+ """+ Identifies the commit sha of the deployment.+ """+ commit: Commit++ """+ Identifies the oid of the deployment commit, even if the commit has been deleted.+ """+ commitOid: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the actor who triggered the deployment.+ """+ creator: Actor!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The deployment description.+ """+ description: String++ """+ The latest environment to which this deployment was made.+ """+ environment: String++ """+ The Node ID of the Deployment object+ """+ id: ID!++ """+ The latest environment to which this deployment was made.+ """+ latestEnvironment: String++ """+ The latest status of this deployment.+ """+ latestStatus: DeploymentStatus++ """+ The original environment to which this deployment was made.+ """+ originalEnvironment: String++ """+ Extra information that a deployment system might need.+ """+ payload: String++ """+ Identifies the Ref of the deployment, if the deployment was created by ref.+ """+ ref: Ref++ """+ Identifies the repository associated with the deployment.+ """+ repository: Repository!++ """+ The current state of the deployment.+ """+ state: DeploymentState++ """+ A list of statuses associated with the deployment.+ """+ statuses(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DeploymentStatusConnection++ """+ The deployment task.+ """+ task: String++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for Deployment.+"""+type DeploymentConnection {+ """+ A list of edges.+ """+ edges: [DeploymentEdge]++ """+ A list of nodes.+ """+ nodes: [Deployment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DeploymentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Deployment+}++"""+Represents a 'deployment_environment_changed' event on a given pull request.+"""+type DeploymentEnvironmentChangedEvent implements Node @docsCategory(name: "deployments") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The deployment status that updated the deployment environment.+ """+ deploymentStatus: DeploymentStatus!++ """+ The Node ID of the DeploymentEnvironmentChangedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!+}++"""+Ordering options for deployment connections+"""+input DeploymentOrder @docsCategory(name: "deployments") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order deployments by.+ """+ field: DeploymentOrderField!+}++"""+Properties by which deployment connections can be ordered.+"""+enum DeploymentOrderField @docsCategory(name: "deployments") {+ """+ Order collection by creation time+ """+ CREATED_AT+}++"""+A protection rule.+"""+type DeploymentProtectionRule @docsCategory(name: "deployments") {+ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Whether deployments to this environment can be approved by the user who created the deployment.+ """+ preventSelfReview: Boolean++ """+ The teams or users that can review the deployment+ """+ reviewers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DeploymentReviewerConnection!++ """+ The timeout in minutes for this protection rule.+ """+ timeout: Int!++ """+ The type of protection rule.+ """+ type: DeploymentProtectionRuleType!+}++"""+The connection type for DeploymentProtectionRule.+"""+type DeploymentProtectionRuleConnection {+ """+ A list of edges.+ """+ edges: [DeploymentProtectionRuleEdge]++ """+ A list of nodes.+ """+ nodes: [DeploymentProtectionRule]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DeploymentProtectionRuleEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DeploymentProtectionRule+}++"""+The possible protection rule types.+"""+enum DeploymentProtectionRuleType @docsCategory(name: "deployments") {+ """+ Branch policy+ """+ BRANCH_POLICY++ """+ Required reviewers+ """+ REQUIRED_REVIEWERS++ """+ Wait timer+ """+ WAIT_TIMER+}++"""+A request to deploy a workflow run to an environment.+"""+type DeploymentRequest @docsCategory(name: "deployments") {+ """+ Whether or not the current user can approve the deployment+ """+ currentUserCanApprove: Boolean!++ """+ The target environment of the deployment+ """+ environment: Environment!++ """+ The teams or users that can review the deployment+ """+ reviewers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DeploymentReviewerConnection!++ """+ The wait timer in minutes configured in the environment+ """+ waitTimer: Int!++ """+ The wait timer in minutes configured in the environment+ """+ waitTimerStartedAt: DateTime+}++"""+The connection type for DeploymentRequest.+"""+type DeploymentRequestConnection {+ """+ A list of edges.+ """+ edges: [DeploymentRequestEdge]++ """+ A list of nodes.+ """+ nodes: [DeploymentRequest]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DeploymentRequestEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DeploymentRequest+}++"""+A deployment review.+"""+type DeploymentReview implements Node @docsCategory(name: "deployments") {+ """+ The comment the user left.+ """+ comment: String!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The environments approved or rejected+ """+ environments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): EnvironmentConnection!++ """+ The Node ID of the DeploymentReview object+ """+ id: ID!++ """+ The decision of the user.+ """+ state: DeploymentReviewState!++ """+ The user that reviewed the deployment.+ """+ user: User!+}++"""+The connection type for DeploymentReview.+"""+type DeploymentReviewConnection {+ """+ A list of edges.+ """+ edges: [DeploymentReviewEdge]++ """+ A list of nodes.+ """+ nodes: [DeploymentReview]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DeploymentReviewEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DeploymentReview+}++"""+The possible states for a deployment review.+"""+enum DeploymentReviewState @docsCategory(name: "deployments") {+ """+ The deployment was approved.+ """+ APPROVED++ """+ The deployment was rejected.+ """+ REJECTED+}++"""+Users and teams.+"""+union DeploymentReviewer @docsCategory(name: "deployments") = Team | User++"""+The connection type for DeploymentReviewer.+"""+type DeploymentReviewerConnection {+ """+ A list of edges.+ """+ edges: [DeploymentReviewerEdge]++ """+ A list of nodes.+ """+ nodes: [DeploymentReviewer]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DeploymentReviewerEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DeploymentReviewer+}++"""+The possible states in which a deployment can be.+"""+enum DeploymentState @docsCategory(name: "deployments") {+ """+ The pending deployment was not updated after 30 minutes.+ """+ ABANDONED++ """+ The deployment is currently active.+ """+ ACTIVE++ """+ An inactive transient deployment.+ """+ DESTROYED++ """+ The deployment experienced an error.+ """+ ERROR++ """+ The deployment has failed.+ """+ FAILURE++ """+ The deployment is inactive.+ """+ INACTIVE++ """+ The deployment is in progress.+ """+ IN_PROGRESS++ """+ The deployment is pending.+ """+ PENDING++ """+ The deployment has queued+ """+ QUEUED++ """+ The deployment was successful.+ """+ SUCCESS++ """+ The deployment is waiting.+ """+ WAITING+}++"""+Describes the status of a given deployment attempt.+"""+type DeploymentStatus implements Node @docsCategory(name: "deployments") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the actor who triggered the deployment.+ """+ creator: Actor!++ """+ Identifies the deployment associated with status.+ """+ deployment: Deployment!++ """+ Identifies the description of the deployment.+ """+ description: String++ """+ Identifies the environment of the deployment at the time of this deployment status+ """+ environment: String++ """+ Identifies the environment URL of the deployment.+ """+ environmentUrl: URI++ """+ The Node ID of the DeploymentStatus object+ """+ id: ID!++ """+ Identifies the log URL of the deployment.+ """+ logUrl: URI++ """+ Identifies the current state of the deployment.+ """+ state: DeploymentStatusState!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for DeploymentStatus.+"""+type DeploymentStatusConnection {+ """+ A list of edges.+ """+ edges: [DeploymentStatusEdge]++ """+ A list of nodes.+ """+ nodes: [DeploymentStatus]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DeploymentStatusEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DeploymentStatus+}++"""+The possible states for a deployment status.+"""+enum DeploymentStatusState @docsCategory(name: "deployments") {+ """+ The deployment experienced an error.+ """+ ERROR++ """+ The deployment has failed.+ """+ FAILURE++ """+ The deployment is inactive.+ """+ INACTIVE++ """+ The deployment is in progress.+ """+ IN_PROGRESS++ """+ The deployment is pending.+ """+ PENDING++ """+ The deployment is queued+ """+ QUEUED++ """+ The deployment was successful.+ """+ SUCCESS++ """+ The deployment is waiting.+ """+ WAITING+}++"""+Autogenerated input type of DequeuePullRequest+"""+input DequeuePullRequestInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the pull request to be dequeued.+ """+ id: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of DequeuePullRequest.+"""+type DequeuePullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The merge queue entry of the dequeued pull request.+ """+ mergeQueueEntry: MergeQueueEntry+}++"""+The possible sides of a diff.+"""+enum DiffSide @docsCategory(name: "pulls") {+ """+ The left side of the diff.+ """+ LEFT++ """+ The right side of the diff.+ """+ RIGHT+}++"""+Autogenerated input type of DisablePullRequestAutoMerge+"""+input DisablePullRequestAutoMergeInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the pull request to disable auto merge on.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of DisablePullRequestAutoMerge.+"""+type DisablePullRequestAutoMergePayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request auto merge was disabled on.+ """+ pullRequest: PullRequest+}++"""+Represents a 'disconnected' event on a given issue or pull request.+"""+type DisconnectedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the DisconnectedEvent object+ """+ id: ID!++ """+ Reference originated in a different repository.+ """+ isCrossRepository: Boolean!++ """+ Issue or pull request from which the issue was disconnected.+ """+ source: ReferencedSubject!++ """+ Issue or pull request which was disconnected.+ """+ subject: ReferencedSubject!+}++"""+A discussion in a repository.+"""+type Discussion implements Closable &+ Comment &+ Deletable &+ Labelable &+ Lockable &+ Node &+ Reactable &+ RepositoryNode &+ Subscribable &+ Updatable &+ Votable @docsCategory(name: "discussions") {+ """+ Reason that the conversation was locked.+ """+ activeLockReason: LockReason++ """+ The comment chosen as this discussion's answer, if any.+ """+ answer: DiscussionComment++ """+ The time when a user chose this discussion's answer, if answered.+ """+ answerChosenAt: DateTime++ """+ The user who chose this discussion's answer, if answered.+ """+ answerChosenBy: Actor++ """+ The actor who authored the discussion.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ The main text of the discussion post.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body rendered to text.+ """+ bodyText: String!++ """+ The category for this discussion.+ """+ category: DiscussionCategory!++ """+ Indicates if the object is closed (definition of closed may depend on type)+ """+ closed: Boolean!++ """+ Identifies the date and time when the object was closed.+ """+ closedAt: DateTime++ """+ The replies to the discussion.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DiscussionCommentConnection!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ The Node ID of the Discussion object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Only return answered/unanswered discussions+ """+ isAnswered: Boolean++ """+ A list of labels associated with the object.+ """+ labels(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for labels returned from the connection.+ """+ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}+ ): LabelConnection++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ `true` if the object is locked+ """+ locked: Boolean!++ """+ The number identifying this discussion within the repository.+ """+ number: Int!++ """+ The poll associated with this discussion, if one exists.+ """+ poll: DiscussionPoll++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The path for this discussion.+ """+ resourcePath: URI!++ """+ Identifies the reason for the discussion's state.+ """+ stateReason: DiscussionStateReason++ """+ The title of this discussion.+ """+ title: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ Number of upvotes that this subject has received.+ """+ upvoteCount: Int!++ """+ The URL for this discussion.+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Indicates if the object can be closed by the viewer.+ """+ viewerCanClose: Boolean!++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Indicates if the viewer can edit labels for this object.+ """+ viewerCanLabel: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Indicates if the object can be reopened by the viewer.+ """+ viewerCanReopen: Boolean!++ """+ Check if the viewer is able to change their subscription status for the repository.+ """+ viewerCanSubscribe: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Whether or not the current user can add or remove an upvote on this subject.+ """+ viewerCanUpvote: Boolean!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!++ """+ Whether or not the current user has already upvoted this subject.+ """+ viewerHasUpvoted: Boolean!++ """+ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.+ """+ viewerSubscription: SubscriptionState+}++"""+A category for discussions in a repository.+"""+type DiscussionCategory implements Node & RepositoryNode @docsCategory(name: "discussions") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ A description of this category.+ """+ description: String++ """+ An emoji representing this category.+ """+ emoji: String!++ """+ This category's emoji rendered as HTML.+ """+ emojiHTML: HTML!++ """+ The Node ID of the DiscussionCategory object+ """+ id: ID!++ """+ Whether or not discussions in this category support choosing an answer with the markDiscussionCommentAsAnswer mutation.+ """+ isAnswerable: Boolean!++ """+ The name of this category.+ """+ name: String!++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The slug of this category.+ """+ slug: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for DiscussionCategory.+"""+type DiscussionCategoryConnection {+ """+ A list of edges.+ """+ edges: [DiscussionCategoryEdge]++ """+ A list of nodes.+ """+ nodes: [DiscussionCategory]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DiscussionCategoryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DiscussionCategory+}++"""+The possible reasons for closing a discussion.+"""+enum DiscussionCloseReason @docsCategory(name: "discussions") {+ """+ The discussion is a duplicate of another+ """+ DUPLICATE++ """+ The discussion is no longer relevant+ """+ OUTDATED++ """+ The discussion has been resolved+ """+ RESOLVED+}++"""+A comment on a discussion.+"""+type DiscussionComment implements Comment &+ Deletable &+ Minimizable &+ Node &+ Reactable &+ Updatable &+ UpdatableComment &+ Votable @docsCategory(name: "discussions") {+ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ The body as Markdown.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body rendered to text.+ """+ bodyText: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The time when this replied-to comment was deleted+ """+ deletedAt: DateTime++ """+ The discussion this comment was created in+ """+ discussion: Discussion++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ The Node ID of the DiscussionComment object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Has this comment been chosen as the answer of its discussion?+ """+ isAnswer: Boolean!++ """+ Returns whether or not a comment has been minimized.+ """+ isMinimized: Boolean!++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ Returns why the comment was minimized. One of `abuse`, `off-topic`,+ `outdated`, `resolved`, `duplicate`, `spam`, and `low-quality`. Note that the+ case and formatting of these values differs from the inputs to the+ `MinimizeComment` mutation.+ """+ minimizedReason: String++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ The threaded replies to this comment.+ """+ replies(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DiscussionCommentConnection!++ """+ The discussion comment this comment is a reply to+ """+ replyTo: DiscussionComment++ """+ The path for this discussion comment.+ """+ resourcePath: URI!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ Number of upvotes that this subject has received.+ """+ upvoteCount: Int!++ """+ The URL for this discussion comment.+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Can the current user mark this comment as an answer?+ """+ viewerCanMarkAsAnswer: Boolean!++ """+ Check if the current viewer can minimize this object.+ """+ viewerCanMinimize: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Can the current user unmark this comment as an answer?+ """+ viewerCanUnmarkAsAnswer: Boolean!++ """+ Check if the current viewer can unminimize this object.+ """+ viewerCanUnminimize: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Whether or not the current user can add or remove an upvote on this subject.+ """+ viewerCanUpvote: Boolean!++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!++ """+ Whether or not the current user has already upvoted this subject.+ """+ viewerHasUpvoted: Boolean!+}++"""+The connection type for DiscussionComment.+"""+type DiscussionCommentConnection {+ """+ A list of edges.+ """+ edges: [DiscussionCommentEdge]++ """+ A list of nodes.+ """+ nodes: [DiscussionComment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DiscussionCommentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DiscussionComment+}++"""+The connection type for Discussion.+"""+type DiscussionConnection {+ """+ A list of edges.+ """+ edges: [DiscussionEdge]++ """+ A list of nodes.+ """+ nodes: [Discussion]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DiscussionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Discussion+}++"""+Ways in which lists of discussions can be ordered upon return.+"""+input DiscussionOrder @docsCategory(name: "discussions") {+ """+ The direction in which to order discussions by the specified field.+ """+ direction: OrderDirection!++ """+ The field by which to order discussions.+ """+ field: DiscussionOrderField!+}++"""+Properties by which discussion connections can be ordered.+"""+enum DiscussionOrderField @docsCategory(name: "discussions") {+ """+ Order discussions by creation time.+ """+ CREATED_AT++ """+ Order discussions by most recent modification time.+ """+ UPDATED_AT+}++"""+A poll for a discussion.+"""+type DiscussionPoll implements Node @docsCategory(name: "discussions") {+ """+ The discussion that this poll belongs to.+ """+ discussion: Discussion++ """+ The Node ID of the DiscussionPoll object+ """+ id: ID!++ """+ The options for this poll.+ """+ options(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ How to order the options for the discussion poll.+ """+ orderBy: DiscussionPollOptionOrder = {field: AUTHORED_ORDER, direction: ASC}+ ): DiscussionPollOptionConnection++ """+ The question that is being asked by this poll.+ """+ question: String!++ """+ The total number of votes that have been cast for this poll.+ """+ totalVoteCount: Int!++ """+ Indicates if the viewer has permission to vote in this poll.+ """+ viewerCanVote: Boolean!++ """+ Indicates if the viewer has voted for any option in this poll.+ """+ viewerHasVoted: Boolean!+}++"""+An option for a discussion poll.+"""+type DiscussionPollOption implements Node @docsCategory(name: "discussions") {+ """+ The Node ID of the DiscussionPollOption object+ """+ id: ID!++ """+ The text for this option.+ """+ option: String!++ """+ The discussion poll that this option belongs to.+ """+ poll: DiscussionPoll++ """+ The total number of votes that have been cast for this option.+ """+ totalVoteCount: Int!++ """+ Indicates if the viewer has voted for this option in the poll.+ """+ viewerHasVoted: Boolean!+}++"""+The connection type for DiscussionPollOption.+"""+type DiscussionPollOptionConnection {+ """+ A list of edges.+ """+ edges: [DiscussionPollOptionEdge]++ """+ A list of nodes.+ """+ nodes: [DiscussionPollOption]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type DiscussionPollOptionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: DiscussionPollOption+}++"""+Ordering options for discussion poll option connections.+"""+input DiscussionPollOptionOrder @docsCategory(name: "discussions") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order poll options by.+ """+ field: DiscussionPollOptionOrderField!+}++"""+Properties by which discussion poll option connections can be ordered.+"""+enum DiscussionPollOptionOrderField @docsCategory(name: "discussions") {+ """+ Order poll options by the order that the poll author specified when creating the poll.+ """+ AUTHORED_ORDER++ """+ Order poll options by the number of votes it has.+ """+ VOTE_COUNT+}++"""+The possible states of a discussion.+"""+enum DiscussionState @docsCategory(name: "discussions") {+ """+ A discussion that has been closed+ """+ CLOSED++ """+ A discussion that is open+ """+ OPEN+}++"""+The possible state reasons of a discussion.+"""+enum DiscussionStateReason @docsCategory(name: "discussions") {+ """+ The discussion is a duplicate of another+ """+ DUPLICATE++ """+ The discussion is no longer relevant+ """+ OUTDATED++ """+ The discussion was reopened+ """+ REOPENED++ """+ The discussion has been resolved+ """+ RESOLVED+}++"""+Autogenerated input type of DismissPullRequestReview+"""+input DismissPullRequestReviewInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The contents of the pull request review dismissal message.+ """+ message: String!++ """+ The Node ID of the pull request review to modify.+ """+ pullRequestReviewId: ID! @possibleTypes(concreteTypes: ["PullRequestReview"])+}++"""+Autogenerated return type of DismissPullRequestReview.+"""+type DismissPullRequestReviewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The dismissed pull request review.+ """+ pullRequestReview: PullRequestReview+}++"""+The possible reasons that a Dependabot alert was dismissed.+"""+enum DismissReason @docsCategory(name: "dependabot") {+ """+ A fix has already been started+ """+ FIX_STARTED++ """+ This alert is inaccurate or incorrect+ """+ INACCURATE++ """+ Vulnerable code is not actually used+ """+ NOT_USED++ """+ No bandwidth to fix this+ """+ NO_BANDWIDTH++ """+ Risk is tolerable to this project+ """+ TOLERABLE_RISK+}++"""+Autogenerated input type of DismissRepositoryVulnerabilityAlert+"""+input DismissRepositoryVulnerabilityAlertInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The reason the Dependabot alert is being dismissed.+ """+ dismissReason: DismissReason!++ """+ The Dependabot alert ID to dismiss.+ """+ repositoryVulnerabilityAlertId: ID! @possibleTypes(concreteTypes: ["RepositoryVulnerabilityAlert"])+}++"""+Autogenerated return type of DismissRepositoryVulnerabilityAlert.+"""+type DismissRepositoryVulnerabilityAlertPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Dependabot alert that was dismissed+ """+ repositoryVulnerabilityAlert: RepositoryVulnerabilityAlert+}++"""+Specify people, teams, or apps allowed to dismiss pull request reviews.+"""+type DismissalRestriction @docsCategory(name: "pulls") {+ """+ Specify people, teams, or apps allowed to dismiss pull request reviews.+ """+ allowedActors: [ID!]++ """+ Whether to restrict review dismissal to specific actors.+ """+ enabled: Boolean!+}++"""+Specify people, teams, or apps allowed to dismiss pull request reviews.+"""+input DismissalRestrictionInput @docsCategory(name: "pulls") {+ """+ Specify people, teams, or apps allowed to dismiss pull request reviews.+ """+ allowedActors: [ID!]++ """+ Whether to restrict review dismissal to specific actors.+ """+ enabled: Boolean!+}++"""+A draft issue within a project.+"""+type DraftIssue implements Node @docsCategory(name: "projects") {+ """+ A list of users to assigned to this draft issue.+ """+ assignees(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ The body of the draft issue.+ """+ body: String!++ """+ The body of the draft issue rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body of the draft issue rendered to text.+ """+ bodyText: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created this draft issue.+ """+ creator: Actor++ """+ The Node ID of the DraftIssue object+ """+ id: ID!++ """+ List of items linked with the draft issue (currently draft issue can be linked to only one item).+ """+ projectV2Items(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2ItemConnection!++ """+ Projects that link to this draft issue (currently draft issue can be linked to only one project).+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2Connection!++ """+ The title of the draft issue+ """+ title: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Specifies a review comment to be left with a Pull Request Review.+"""+input DraftPullRequestReviewComment @docsCategory(name: "pulls") {+ """+ Body of the comment to leave.+ """+ body: String!++ """+ Path to the file being commented on.+ """+ path: String!++ """+ Position in the file to leave a comment on.+ """+ position: Int!+}++"""+Specifies a review comment thread to be left with a Pull Request Review.+"""+input DraftPullRequestReviewThread @docsCategory(name: "pulls") {+ """+ Body of the comment to leave.+ """+ body: String!++ """+ The line of the blob to which the thread refers. The end of the line range for+ multi-line comments. Required if not using positioning.+ """+ line: Int++ """+ Path to the file being commented on. Required if not using positioning.+ """+ path: String++ """+ The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range.+ """+ side: DiffSide = RIGHT++ """+ The first line of the range to which the comment refers.+ """+ startLine: Int++ """+ The side of the diff on which the start line resides.+ """+ startSide: DiffSide = RIGHT+}++"""+The Exploit Prediction Scoring System+"""+type EPSS @docsCategory(name: "security-advisories") {+ """+ The EPSS percentage represents the likelihood of a CVE being exploited.+ """+ percentage: Float++ """+ The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.+ """+ percentile: Float+}++"""+Autogenerated input type of EnablePullRequestAutoMerge+"""+input EnablePullRequestAutoMergeInput {+ """+ The email address to associate with this merge.+ """+ authorEmail: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Commit body to use for the commit when the PR is mergable; if omitted, a+ default message will be used. NOTE: when merging with a merge queue any input+ value for commit message is ignored.+ """+ commitBody: String++ """+ Commit headline to use for the commit when the PR is mergable; if omitted, a+ default message will be used. NOTE: when merging with a merge queue any input+ value for commit headline is ignored.+ """+ commitHeadline: String++ """+ The expected head OID of the pull request.+ """+ expectedHeadOid: GitObjectID++ """+ The merge method to use. If omitted, defaults to `MERGE`. NOTE: when merging+ with a merge queue any input value for merge method is ignored.+ """+ mergeMethod: PullRequestMergeMethod = MERGE++ """+ ID of the pull request to enable auto-merge on.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of EnablePullRequestAutoMerge.+"""+type EnablePullRequestAutoMergePayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request auto-merge was enabled on.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of EnqueuePullRequest+"""+input EnqueuePullRequestInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The expected head OID of the pull request.+ """+ expectedHeadOid: GitObjectID++ """+ Add the pull request to the front of the queue.+ """+ jump: Boolean++ """+ The ID of the pull request to enqueue.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of EnqueuePullRequest.+"""+type EnqueuePullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The merge queue entry for the enqueued pull request.+ """+ mergeQueueEntry: MergeQueueEntry+}++"""+An account to manage multiple organizations with consolidated policy and billing.+"""+type Enterprise implements Node @docsCategory(name: "enterprise-admin") {+ """+ The announcement banner set on this enterprise, if any. Only visible to members of the enterprise.+ """+ announcementBanner: AnnouncementBanner++ """+ A URL pointing to the enterprise's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ The enterprise's billing email.+ """+ billingEmail: String++ """+ Enterprise billing information visible to enterprise billing managers.+ """+ billingInfo: EnterpriseBillingInfo++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The description of the enterprise.+ """+ description: String++ """+ The description of the enterprise as HTML.+ """+ descriptionHTML: HTML!++ """+ Find an enterprise team by its slug.+ """+ enterpriseTeam(+ """+ The slug of the enterprise team to find.+ """+ slug: String!+ ): EnterpriseTeam++ """+ A list of enterprise teams in this enterprise.+ """+ enterpriseTeams(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for enterprise teams returned from the connection.+ """+ orderBy: EnterpriseTeamOrder = {field: ID, direction: ASC}++ """+ The search string to look for.+ """+ query: String++ """+ User logins to filter by. A maximum of 3 logins can be passed.+ """+ userLogins: [String!]+ ): EnterpriseTeamConnection!++ """+ The Node ID of the Enterprise object+ """+ id: ID!++ """+ Innersource security vulnerabilities scoped to this enterprise.+ """+ innersourceVulnerabilities(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ An ecosystem to filter vulnerabilities by.+ """+ ecosystem: SecurityAdvisoryEcosystem++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the returned vulnerabilities.+ """+ orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}++ """+ A package name to filter vulnerabilities by.+ """+ package: String++ """+ A list of severities to filter vulnerabilities by.+ """+ severities: [SecurityAdvisorySeverity!]+ ): SecurityVulnerabilityConnection!++ """+ The location of the enterprise.+ """+ location: String++ """+ A list of users who are members of this enterprise.+ """+ members(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Only return members within the selected GitHub Enterprise deployment+ """+ deployment: EnterpriseUserDeployment++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Only return members with this two-factor authentication status. Does not+ include members who only have an account on a GitHub Enterprise Server instance.++ **Upcoming Change on 2025-04-01 UTC**+ **Description:** `hasTwoFactorEnabled` will be removed. Use `two_factor_method_security` instead.+ **Reason:** `has_two_factor_enabled` will be removed.+ """+ hasTwoFactorEnabled: Boolean = null++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for members returned from the connection.+ """+ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}++ """+ Only return members within the organizations with these logins+ """+ organizationLogins: [String!]++ """+ The search string to look for.+ """+ query: String++ """+ The role of the user in the enterprise organization or server.+ """+ role: EnterpriseUserAccountMembershipRole++ """+ Only return members with this type of two-factor authentication method. Does+ not include members who only have an account on a GitHub Enterprise Server instance.+ """+ twoFactorMethodSecurity: TwoFactorCredentialSecurityType = null+ ): EnterpriseMemberConnection!++ """+ The name of the enterprise.+ """+ name: String!++ """+ A list of organizations that belong to this enterprise.+ """+ organizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations returned from the connection.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The search string to look for.+ """+ query: String++ """+ The viewer's role in an organization.+ """+ viewerOrganizationRole: RoleInOrganization+ ): OrganizationConnection!++ """+ Enterprise information visible to enterprise owners or enterprise owners'+ personal access tokens (classic) with read:enterprise or admin:enterprise scope.+ """+ ownerInfo: EnterpriseOwnerInfo++ """+ The raw content of the enterprise README.+ """+ readme: String++ """+ The content of the enterprise README as HTML.+ """+ readmeHTML: HTML!++ """+ A list of repository custom properties for this enterprise.+ """+ repositoryCustomProperties(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): RepositoryCustomPropertyConnection++ """+ Returns a single repository custom property for the current enterprise by name.+ """+ repositoryCustomProperty(+ """+ The name of the repository custom property to be returned.+ """+ propertyName: String!+ ): RepositoryCustomProperty++ """+ The HTTP path for this enterprise.+ """+ resourcePath: URI!++ """+ Returns a single ruleset from the current enterprise by ID.+ """+ ruleset(+ """+ The ID of the ruleset to be returned.+ """+ databaseId: Int!+ ): RepositoryRuleset++ """+ A list of rulesets for this enterprise.+ """+ rulesets(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): RepositoryRulesetConnection++ """+ The enterprise's security contact email address.+ """+ securityContactEmail: String++ """+ The URL-friendly identifier for the enterprise.+ """+ slug: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this enterprise.+ """+ url: URI!++ """+ A list of repositories that belong to users. Only available for enterprises with Enterprise Managed Users.+ """+ userNamespaceRepositories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection.+ """+ orderBy: RepositoryOrder = {field: NAME, direction: ASC}++ """+ The search string to look for.+ """+ query: String+ ): UserNamespaceRepositoryConnection!++ """+ Is the current viewer an admin of this enterprise?+ """+ viewerIsAdmin: Boolean!++ """+ The URL of the enterprise website.+ """+ websiteUrl: URI+}++"""+The connection type for User.+"""+type EnterpriseAdministratorConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseAdministratorEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+A User who is an administrator of an enterprise.+"""+type EnterpriseAdministratorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: User++ """+ The role of the administrator.+ """+ role: EnterpriseAdministratorRole!+}++"""+An invitation for a user to become an owner or billing manager of an enterprise.+"""+type EnterpriseAdministratorInvitation implements Node @docsCategory(name: "enterprise-admin") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The email of the person who was invited to the enterprise.+ """+ email: String++ """+ The enterprise the invitation is for.+ """+ enterprise: Enterprise!++ """+ The Node ID of the EnterpriseAdministratorInvitation object+ """+ id: ID!++ """+ The user who was invited to the enterprise.+ """+ invitee: User++ """+ The user who created the invitation.+ """+ inviter: User++ """+ The invitee's pending role in the enterprise (owner or billing_manager).+ """+ role: EnterpriseAdministratorRole!+}++"""+The connection type for EnterpriseAdministratorInvitation.+"""+type EnterpriseAdministratorInvitationConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseAdministratorInvitationEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseAdministratorInvitation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseAdministratorInvitationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseAdministratorInvitation+}++"""+Ordering options for enterprise administrator invitation connections+"""+input EnterpriseAdministratorInvitationOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order enterprise administrator invitations by.+ """+ field: EnterpriseAdministratorInvitationOrderField!+}++"""+Properties by which enterprise administrator invitation connections can be ordered.+"""+enum EnterpriseAdministratorInvitationOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order enterprise administrator member invitations by creation time+ """+ CREATED_AT+}++"""+The possible administrator roles in an enterprise account.+"""+enum EnterpriseAdministratorRole @docsCategory(name: "enterprise-admin") {+ """+ Represents a billing manager of the enterprise account.+ """+ BILLING_MANAGER++ """+ Represents an owner of the enterprise account.+ """+ OWNER++ """+ Unaffiliated member of the enterprise account without an admin role.+ """+ UNAFFILIATED+}++"""+The possible values for the enterprise allow private repository forking policy value.+"""+enum EnterpriseAllowPrivateRepositoryForkingPolicyValue @docsCategory(name: "enterprise-admin") {+ """+ Members can fork a repository to an organization within this enterprise.+ """+ ENTERPRISE_ORGANIZATIONS++ """+ Members can fork a repository to their enterprise-managed user account or an organization inside this enterprise.+ """+ ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS++ """+ Members can fork a repository to their user account or an organization, either+ inside or outside of this enterprise. Internal repositories can only be forked+ inside of this enterprise.+ """+ EVERYWHERE++ """+ Members can fork a repository only within the same organization (intra-org).+ """+ SAME_ORGANIZATION++ """+ Members can fork a repository to their user account or within the same organization.+ """+ SAME_ORGANIZATION_USER_ACCOUNTS++ """+ Members can fork a repository to their user account.+ """+ USER_ACCOUNTS+}++"""+Metadata for an audit entry containing enterprise account information.+"""+interface EnterpriseAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI+}++"""+Enterprise billing information visible to enterprise billing managers and owners.+"""+type EnterpriseBillingInfo @docsCategory(name: "enterprise-admin") {+ """+ The number of licenseable users/emails across the enterprise.+ """+ allLicensableUsersCount: Int!++ """+ The number of data packs used by all organizations owned by the enterprise. Data packs are deprecated, always returns 0.+ """+ assetPacks: Int! @deprecated(reason: "LFS data packs have been removed. Always returns 0.")++ """+ The bandwidth quota in GB for all organizations owned by the enterprise.+ """+ bandwidthQuota: Float!++ """+ The bandwidth usage in GB for all organizations owned by the enterprise.+ """+ bandwidthUsage: Float!++ """+ The bandwidth usage as a percentage of the bandwidth quota.+ """+ bandwidthUsagePercentage: Int!++ """+ The storage quota in GB for all organizations owned by the enterprise.+ """+ storageQuota: Float!++ """+ The storage usage in GB for all organizations owned by the enterprise.+ """+ storageUsage: Float!++ """+ The storage usage as a percentage of the storage quota.+ """+ storageUsagePercentage: Int!++ """+ The number of available licenses across all owned organizations based on the unique number of billable users.+ """+ totalAvailableLicenses: Int!++ """+ The total number of licenses allocated.+ """+ totalLicenses: Int!+}++"""+The connection type for Enterprise.+"""+type EnterpriseConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseEdge]++ """+ A list of nodes.+ """+ nodes: [Enterprise]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+The possible values for the enterprise base repository permission setting.+"""+enum EnterpriseDefaultRepositoryPermissionSettingValue @docsCategory(name: "enterprise-admin") {+ """+ Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories.+ """+ ADMIN++ """+ Organization members will only be able to clone and pull public repositories.+ """+ NONE++ """+ Organizations in the enterprise choose base repository permissions for their members.+ """+ NO_POLICY++ """+ Organization members will be able to clone and pull all organization repositories.+ """+ READ++ """+ Organization members will be able to clone, pull, and push all organization repositories.+ """+ WRITE+}++"""+The possible values for an enabled/no policy enterprise setting.+"""+enum EnterpriseDisallowedMethodsSettingValue @docsCategory(name: "enterprise-admin") {+ """+ The setting prevents insecure 2FA methods from being used by members of the enterprise.+ """+ INSECURE++ """+ There is no policy set for preventing insecure 2FA methods from being used by members of the enterprise.+ """+ NO_POLICY+}++"""+An edge in a connection.+"""+type EnterpriseEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Enterprise+}++"""+The possible values for an enabled/disabled enterprise setting.+"""+enum EnterpriseEnabledDisabledSettingValue @docsCategory(name: "enterprise-admin") {+ """+ The setting is disabled for organizations in the enterprise.+ """+ DISABLED++ """+ The setting is enabled for organizations in the enterprise.+ """+ ENABLED++ """+ There is no policy set for organizations in the enterprise.+ """+ NO_POLICY+}++"""+The possible values for an enabled/no policy enterprise setting.+"""+enum EnterpriseEnabledSettingValue @docsCategory(name: "enterprise-admin") {+ """+ The setting is enabled for organizations in the enterprise.+ """+ ENABLED++ """+ There is no policy set for organizations in the enterprise.+ """+ NO_POLICY+}++"""+The connection type for OrganizationInvitation.+"""+type EnterpriseFailedInvitationConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseFailedInvitationEdge]++ """+ A list of nodes.+ """+ nodes: [OrganizationInvitation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ Identifies the total count of unique users in the connection.+ """+ totalUniqueUserCount: Int!+}++"""+A failed invitation to be a member in an enterprise organization.+"""+type EnterpriseFailedInvitationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: OrganizationInvitation+}++"""+An identity provider configured to provision identities for an enterprise.+Visible to enterprise owners or enterprise owners' personal access tokens+(classic) with read:enterprise or admin:enterprise scope.+"""+type EnterpriseIdentityProvider implements Node @docsCategory(name: "enterprise-admin") {+ """+ The digest algorithm used to sign SAML requests for the identity provider.+ """+ digestMethod: SamlDigestAlgorithm++ """+ The enterprise this identity provider belongs to.+ """+ enterprise: Enterprise++ """+ ExternalIdentities provisioned by this identity provider.+ """+ externalIdentities(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter to external identities with the users login+ """+ login: String++ """+ Filter to external identities with valid org membership only+ """+ membersOnly: Boolean++ """+ Filter to external identities with the users userName/NameID attribute+ """+ userName: String+ ): ExternalIdentityConnection!++ """+ The Node ID of the EnterpriseIdentityProvider object+ """+ id: ID!++ """+ The x509 certificate used by the identity provider to sign assertions and responses.+ """+ idpCertificate: X509Certificate++ """+ The Issuer Entity ID for the SAML identity provider.+ """+ issuer: String++ """+ Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable.+ """+ recoveryCodes: [String!]++ """+ The signature algorithm used to sign SAML requests for the identity provider.+ """+ signatureMethod: SamlSignatureAlgorithm++ """+ The URL endpoint for the identity provider's SAML SSO.+ """+ ssoUrl: URI+}++"""+An object that is a member of an enterprise.+"""+union EnterpriseMember @docsCategory(name: "enterprise-admin") = EnterpriseUserAccount | User++"""+The connection type for EnterpriseMember.+"""+type EnterpriseMemberConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseMemberEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseMember]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+A User who is a member of an enterprise through one or more organizations.+"""+type EnterpriseMemberEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseMember+}++"""+An invitation for a user to become an unaffiliated member of an enterprise.+"""+type EnterpriseMemberInvitation implements Node @docsCategory(name: "enterprise-admin") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The email of the person who was invited to the enterprise.+ """+ email: String++ """+ The enterprise the invitation is for.+ """+ enterprise: Enterprise!++ """+ The Node ID of the EnterpriseMemberInvitation object+ """+ id: ID!++ """+ The user who was invited to the enterprise.+ """+ invitee: User++ """+ The user who created the invitation.+ """+ inviter: User+}++"""+The connection type for EnterpriseMemberInvitation.+"""+type EnterpriseMemberInvitationConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseMemberInvitationEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseMemberInvitation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseMemberInvitationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseMemberInvitation+}++"""+Ordering options for enterprise administrator invitation connections+"""+input EnterpriseMemberInvitationOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order enterprise member invitations by.+ """+ field: EnterpriseMemberInvitationOrderField!+}++"""+Properties by which enterprise member invitation connections can be ordered.+"""+enum EnterpriseMemberInvitationOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order enterprise member invitations by creation time+ """+ CREATED_AT+}++"""+Ordering options for enterprise member connections.+"""+input EnterpriseMemberOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order enterprise members by.+ """+ field: EnterpriseMemberOrderField!+}++"""+Properties by which enterprise member connections can be ordered.+"""+enum EnterpriseMemberOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order enterprise members by creation time+ """+ CREATED_AT++ """+ Order enterprise members by login+ """+ LOGIN+}++"""+The possible values for the enterprise members can create repositories setting.+"""+enum EnterpriseMembersCanCreateRepositoriesSettingValue @docsCategory(name: "enterprise-admin") {+ """+ Members will be able to create public and private repositories.+ """+ ALL++ """+ Members will not be able to create public or private repositories.+ """+ DISABLED++ """+ Organization owners choose whether to allow members to create repositories.+ """+ NO_POLICY++ """+ Members will be able to create only private repositories.+ """+ PRIVATE++ """+ Members will be able to create only public repositories.+ """+ PUBLIC+}++"""+The possible values for the members can make purchases setting.+"""+enum EnterpriseMembersCanMakePurchasesSettingValue @docsCategory(name: "enterprise-admin") {+ """+ The setting is disabled for organizations in the enterprise.+ """+ DISABLED++ """+ The setting is enabled for organizations in the enterprise.+ """+ ENABLED+}++"""+The possible values we have for filtering Platform::Objects::User#enterprises.+"""+enum EnterpriseMembershipType @docsCategory(name: "enterprise-admin") {+ """+ Returns all enterprises in which the user is an admin.+ """+ ADMIN++ """+ Returns all enterprises in which the user is a member, admin, or billing manager.+ """+ ALL++ """+ Returns all enterprises in which the user is a billing manager.+ """+ BILLING_MANAGER++ """+ Returns all enterprises in which the user is a member of an org that is owned by the enterprise.+ """+ ORG_MEMBERSHIP+}++"""+Ordering options for enterprises.+"""+input EnterpriseOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order enterprises by.+ """+ field: EnterpriseOrderField!+}++"""+Properties by which enterprise connections can be ordered.+"""+enum EnterpriseOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order enterprises by name+ """+ NAME+}++"""+The connection type for Organization.+"""+type EnterpriseOrganizationMembershipConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseOrganizationMembershipEdge]++ """+ A list of nodes.+ """+ nodes: [Organization]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An enterprise organization that a user is a member of.+"""+type EnterpriseOrganizationMembershipEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Organization++ """+ The role of the user in the enterprise membership.+ """+ role: EnterpriseUserAccountMembershipRole!+}++"""+The connection type for User.+"""+type EnterpriseOutsideCollaboratorConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseOutsideCollaboratorEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+A User who is an outside collaborator of an enterprise through one or more organizations.+"""+type EnterpriseOutsideCollaboratorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: User++ """+ The enterprise organization repositories this user is a member of.+ """+ repositories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories.+ """+ orderBy: RepositoryOrder = {field: NAME, direction: ASC}+ ): EnterpriseRepositoryInfoConnection!+}++"""+Enterprise information visible to enterprise owners or enterprise owners'+personal access tokens (classic) with read:enterprise or admin:enterprise scope.+"""+type EnterpriseOwnerInfo @docsCategory(name: "enterprise-admin") {+ """+ A list of all of the administrators for this enterprise.+ """+ admins(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Only return administrators with this two-factor authentication status.++ **Upcoming Change on 2025-04-01 UTC**+ **Description:** `hasTwoFactorEnabled` will be removed. Use `two_factor_method_security` instead.+ **Reason:** `has_two_factor_enabled` will be removed.+ """+ hasTwoFactorEnabled: Boolean = null++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for administrators returned from the connection.+ """+ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}++ """+ Only return members within the organizations with these logins+ """+ organizationLogins: [String!]++ """+ The search string to look for.+ """+ query: String++ """+ The role to filter by.+ """+ role: EnterpriseAdministratorRole++ """+ Only return outside collaborators with this type of two-factor authentication method.+ """+ twoFactorMethodSecurity: TwoFactorCredentialSecurityType = null+ ): EnterpriseAdministratorConnection!++ """+ A list of users in the enterprise who currently have two-factor authentication disabled.+ """+ affiliatedUsersWithTwoFactorDisabled(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ Whether or not affiliated users with two-factor authentication disabled exist in the enterprise.+ """+ affiliatedUsersWithTwoFactorDisabledExist: Boolean!++ """+ The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise.+ """+ allowPrivateRepositoryForkingSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided private repository forking setting value.+ """+ allowPrivateRepositoryForkingSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ The value for the allow private repository forking policy on the enterprise.+ """+ allowPrivateRepositoryForkingSettingPolicyValue: EnterpriseAllowPrivateRepositoryForkingPolicyValue++ """+ The setting value for base repository permissions for organizations in this enterprise.+ """+ defaultRepositoryPermissionSetting: EnterpriseDefaultRepositoryPermissionSettingValue!++ """+ A list of enterprise organizations configured with the provided base repository permission.+ """+ defaultRepositoryPermissionSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The permission to find organizations for.+ """+ value: DefaultRepositoryPermissionField!+ ): OrganizationConnection!++ """+ A list of domains owned by the enterprise. Visible to enterprise owners or+ enterprise owners' personal access tokens (classic) with admin:enterprise scope.+ """+ domains(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Filter whether or not the domain is approved.+ """+ isApproved: Boolean = null++ """+ Filter whether or not the domain is verified.+ """+ isVerified: Boolean = null++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for verifiable domains returned.+ """+ orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC}+ ): VerifiableDomainConnection!++ """+ Enterprise Server installations owned by the enterprise.+ """+ enterpriseServerInstallations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Whether or not to only return installations discovered via GitHub Connect.+ """+ connectedOnly: Boolean = false++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for Enterprise Server installations returned.+ """+ orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC}+ ): EnterpriseServerInstallationConnection!++ """+ A list of failed invitations in the enterprise.+ """+ failedInvitations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ The search string to look for.+ """+ query: String+ ): EnterpriseFailedInvitationConnection!++ """+ The setting value for whether the enterprise has an IP allow list enabled.+ """+ ipAllowListEnabledSetting: IpAllowListEnabledSettingValue!++ """+ The IP addresses that are allowed to access resources owned by the enterprise.+ Visible to enterprise owners or enterprise owners' personal access tokens+ (classic) with admin:enterprise scope.+ """+ ipAllowListEntries(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for IP allow list entries returned.+ """+ orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC}+ ): IpAllowListEntryConnection!++ """+ The setting value for whether the enterprise has IP allow list configuration for installed GitHub Apps enabled.+ """+ ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue!++ """+ The setting value for whether the enterprise has IP allow list user-level enforcement enabled.+ """+ ipAllowListUserLevelEnforcementEnabledSetting: IpAllowListUserLevelEnforcementEnabledSettingValue!++ """+ Whether or not the base repository permission is currently being updated.+ """+ isUpdatingDefaultRepositoryPermission: Boolean!++ """+ Whether the two-factor authentication requirement is currently being enforced.+ """+ isUpdatingTwoFactorRequirement: Boolean!++ """+ The setting value for whether organization members with admin permissions on a+ repository can change repository visibility.+ """+ membersCanChangeRepositoryVisibilitySetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided can change repository visibility setting value.+ """+ membersCanChangeRepositoryVisibilitySettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ The setting value for whether members of organizations in the enterprise can create internal repositories.+ """+ membersCanCreateInternalRepositoriesSetting: Boolean++ """+ The setting value for whether members of organizations in the enterprise can create private repositories.+ """+ membersCanCreatePrivateRepositoriesSetting: Boolean++ """+ The setting value for whether members of organizations in the enterprise can create public repositories.+ """+ membersCanCreatePublicRepositoriesSetting: Boolean++ """+ The setting value for whether members of organizations in the enterprise can create repositories.+ """+ membersCanCreateRepositoriesSetting: EnterpriseMembersCanCreateRepositoriesSettingValue++ """+ A list of enterprise organizations configured with the provided repository creation setting value.+ """+ membersCanCreateRepositoriesSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting to find organizations for.+ """+ value: OrganizationMembersCanCreateRepositoriesSettingValue!+ ): OrganizationConnection!++ """+ The setting value for whether members with admin permissions for repositories can delete issues.+ """+ membersCanDeleteIssuesSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided members can delete issues setting value.+ """+ membersCanDeleteIssuesSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ The setting value for whether members with admin permissions for repositories can delete or transfer repositories.+ """+ membersCanDeleteRepositoriesSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided members can delete repositories setting value.+ """+ membersCanDeleteRepositoriesSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ The setting value for whether members of organizations in the enterprise can invite outside collaborators.+ """+ membersCanInviteCollaboratorsSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided members can invite collaborators setting value.+ """+ membersCanInviteCollaboratorsSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ Indicates whether members of this enterprise's organizations can purchase additional services for those organizations.+ """+ membersCanMakePurchasesSetting: EnterpriseMembersCanMakePurchasesSettingValue!++ """+ The setting value for whether members with admin permissions for repositories can update protected branches.+ """+ membersCanUpdateProtectedBranchesSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided members can update protected branches setting value.+ """+ membersCanUpdateProtectedBranchesSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ The setting value for whether members can view dependency insights.+ """+ membersCanViewDependencyInsightsSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided members can view dependency insights setting value.+ """+ membersCanViewDependencyInsightsSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ Indicates if email notification delivery for this enterprise is restricted to verified or approved domains.+ """+ notificationDeliveryRestrictionEnabledSetting: NotificationRestrictionSettingValue!++ """+ The OIDC Identity Provider for the enterprise.+ """+ oidcProvider: OIDCProvider++ """+ The setting value for whether organization projects are enabled for organizations in this enterprise.+ """+ organizationProjectsSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided organization projects setting value.+ """+ organizationProjectsSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ A list of outside collaborators across the repositories in the enterprise.+ """+ outsideCollaborators(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Only return outside collaborators with this two-factor authentication status.++ **Upcoming Change on 2025-04-01 UTC**+ **Description:** `hasTwoFactorEnabled` will be removed. Use `two_factor_method_security` instead.+ **Reason:** `has_two_factor_enabled` will be removed.+ """+ hasTwoFactorEnabled: Boolean = null++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ The login of one specific outside collaborator.+ """+ login: String++ """+ Ordering options for outside collaborators returned from the connection.+ """+ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}++ """+ Only return outside collaborators within the organizations with these logins+ """+ organizationLogins: [String!]++ """+ The search string to look for.+ """+ query: String++ """+ Only return outside collaborators with this type of two-factor authentication method.+ """+ twoFactorMethodSecurity: TwoFactorCredentialSecurityType = null++ """+ Only return outside collaborators on repositories with this visibility.+ """+ visibility: RepositoryVisibility+ ): EnterpriseOutsideCollaboratorConnection!++ """+ A list of pending administrator invitations for the enterprise.+ """+ pendingAdminInvitations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pending enterprise administrator invitations returned from the connection.+ """+ orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC}++ """+ The search string to look for.+ """+ query: String++ """+ The role to filter by.+ """+ role: EnterpriseAdministratorRole+ ): EnterpriseAdministratorInvitationConnection!++ """+ A list of pending collaborator invitations across the repositories in the enterprise.+ """+ pendingCollaboratorInvitations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pending repository collaborator invitations returned from the connection.+ """+ orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC}++ """+ The search string to look for.+ """+ query: String+ ): RepositoryInvitationConnection!++ """+ A list of pending member invitations for organizations in the enterprise.+ """+ pendingMemberInvitations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Only return invitations matching this invitation source+ """+ invitationSource: OrganizationInvitationSource++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Only return invitations within the organizations with these logins+ """+ organizationLogins: [String!]++ """+ The search string to look for.+ """+ query: String+ ): EnterprisePendingMemberInvitationConnection!++ """+ A list of pending unaffiliated member invitations for the enterprise.+ """+ pendingUnaffiliatedMemberInvitations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pending enterprise member invitations returned from the connection.+ """+ orderBy: EnterpriseMemberInvitationOrder = {field: CREATED_AT, direction: DESC}++ """+ The search string to look for.+ """+ query: String+ ): EnterpriseMemberInvitationConnection!++ """+ The setting value for whether deploy keys are enabled for repositories in organizations in this enterprise.+ """+ repositoryDeployKeySetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided deploy keys setting value.+ """+ repositoryDeployKeySettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ The setting value for whether repository projects are enabled in this enterprise.+ """+ repositoryProjectsSetting: EnterpriseEnabledDisabledSettingValue!++ """+ A list of enterprise organizations configured with the provided repository projects setting value.+ """+ repositoryProjectsSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!++ """+ The SAML Identity Provider for the enterprise.+ """+ samlIdentityProvider: EnterpriseIdentityProvider++ """+ A list of enterprise organizations configured with the SAML single sign-on setting value.+ """+ samlIdentityProviderSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: IdentityProviderConfigurationState!+ ): OrganizationConnection!++ """+ A list of members with a support entitlement.+ """+ supportEntitlements(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for support entitlement users returned from the connection.+ """+ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}+ ): EnterpriseMemberConnection!++ """+ The setting value for whether team discussions are enabled for organizations in this enterprise.+ """+ teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue!+ @deprecated(+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."+ )++ """+ The setting value for what methods of two-factor authentication the enterprise prevents its users from having.+ """+ twoFactorDisallowedMethodsSetting: EnterpriseDisallowedMethodsSettingValue!++ """+ The setting value for whether the enterprise requires two-factor authentication for its organizations and users.+ """+ twoFactorRequiredSetting: EnterpriseEnabledSettingValue!++ """+ A list of enterprise organizations configured with the two-factor authentication setting value.+ """+ twoFactorRequiredSettingOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations with this setting.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The setting value to find organizations for.+ """+ value: Boolean!+ ): OrganizationConnection!+}++"""+The connection type for OrganizationInvitation.+"""+type EnterprisePendingMemberInvitationConnection {+ """+ A list of edges.+ """+ edges: [EnterprisePendingMemberInvitationEdge]++ """+ A list of nodes.+ """+ nodes: [OrganizationInvitation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ Identifies the total count of unique users in the connection.+ """+ totalUniqueUserCount: Int!+}++"""+An invitation to be a member in an enterprise organization.+"""+type EnterprisePendingMemberInvitationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: OrganizationInvitation+}++"""+A subset of repository information queryable from an enterprise.+"""+type EnterpriseRepositoryInfo implements Node @docsCategory(name: "enterprise-admin") {+ """+ The Node ID of the EnterpriseRepositoryInfo object+ """+ id: ID!++ """+ Identifies if the repository is private or internal.+ """+ isPrivate: Boolean!++ """+ The repository's name.+ """+ name: String!++ """+ The repository's name with owner.+ """+ nameWithOwner: String!+}++"""+The connection type for EnterpriseRepositoryInfo.+"""+type EnterpriseRepositoryInfoConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseRepositoryInfoEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseRepositoryInfo]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseRepositoryInfoEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseRepositoryInfo+}++"""+An Enterprise Server installation.+"""+type EnterpriseServerInstallation implements Node @docsCategory(name: "enterprise-admin") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The customer name to which the Enterprise Server installation belongs.+ """+ customerName: String!++ """+ The host name of the Enterprise Server installation.+ """+ hostName: String!++ """+ The Node ID of the EnterpriseServerInstallation object+ """+ id: ID!++ """+ Whether or not the installation is connected to an Enterprise Server installation via GitHub Connect.+ """+ isConnected: Boolean!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ User accounts on this Enterprise Server installation.+ """+ userAccounts(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for Enterprise Server user accounts returned from the connection.+ """+ orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC}+ ): EnterpriseServerUserAccountConnection!++ """+ User accounts uploads for the Enterprise Server installation.+ """+ userAccountsUploads(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for Enterprise Server user accounts uploads returned from the connection.+ """+ orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC}+ ): EnterpriseServerUserAccountsUploadConnection!+}++"""+The connection type for EnterpriseServerInstallation.+"""+type EnterpriseServerInstallationConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseServerInstallationEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseServerInstallation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseServerInstallationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseServerInstallation+}++"""+The connection type for EnterpriseServerInstallation.+"""+type EnterpriseServerInstallationMembershipConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseServerInstallationMembershipEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseServerInstallation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An Enterprise Server installation that a user is a member of.+"""+type EnterpriseServerInstallationMembershipEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseServerInstallation++ """+ The role of the user in the enterprise membership.+ """+ role: EnterpriseUserAccountMembershipRole!+}++"""+Ordering options for Enterprise Server installation connections.+"""+input EnterpriseServerInstallationOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order Enterprise Server installations by.+ """+ field: EnterpriseServerInstallationOrderField!+}++"""+Properties by which Enterprise Server installation connections can be ordered.+"""+enum EnterpriseServerInstallationOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order Enterprise Server installations by creation time+ """+ CREATED_AT++ """+ Order Enterprise Server installations by customer name+ """+ CUSTOMER_NAME++ """+ Order Enterprise Server installations by host name+ """+ HOST_NAME+}++"""+A user account on an Enterprise Server installation.+"""+type EnterpriseServerUserAccount implements Node @docsCategory(name: "enterprise-admin") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ User emails belonging to this user account.+ """+ emails(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for Enterprise Server user account emails returned from the connection.+ """+ orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC}+ ): EnterpriseServerUserAccountEmailConnection!++ """+ The Enterprise Server installation on which this user account exists.+ """+ enterpriseServerInstallation: EnterpriseServerInstallation!++ """+ The Node ID of the EnterpriseServerUserAccount object+ """+ id: ID!++ """+ Whether the user account is a site administrator on the Enterprise Server installation.+ """+ isSiteAdmin: Boolean!++ """+ The login of the user account on the Enterprise Server installation.+ """+ login: String!++ """+ The profile name of the user account on the Enterprise Server installation.+ """+ profileName: String++ """+ The date and time when the user account was created on the Enterprise Server installation.+ """+ remoteCreatedAt: DateTime!++ """+ The ID of the user account on the Enterprise Server installation.+ """+ remoteUserId: Int!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for EnterpriseServerUserAccount.+"""+type EnterpriseServerUserAccountConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseServerUserAccountEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseServerUserAccount]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseServerUserAccountEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseServerUserAccount+}++"""+An email belonging to a user account on an Enterprise Server installation.+"""+type EnterpriseServerUserAccountEmail implements Node @docsCategory(name: "enterprise-admin") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The email address.+ """+ email: String!++ """+ The Node ID of the EnterpriseServerUserAccountEmail object+ """+ id: ID!++ """+ Indicates whether this is the primary email of the associated user account.+ """+ isPrimary: Boolean!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The user account to which the email belongs.+ """+ userAccount: EnterpriseServerUserAccount!+}++"""+The connection type for EnterpriseServerUserAccountEmail.+"""+type EnterpriseServerUserAccountEmailConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseServerUserAccountEmailEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseServerUserAccountEmail]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseServerUserAccountEmailEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseServerUserAccountEmail+}++"""+Ordering options for Enterprise Server user account email connections.+"""+input EnterpriseServerUserAccountEmailOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order emails by.+ """+ field: EnterpriseServerUserAccountEmailOrderField!+}++"""+Properties by which Enterprise Server user account email connections can be ordered.+"""+enum EnterpriseServerUserAccountEmailOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order emails by email+ """+}++"""+Ordering options for Enterprise Server user account connections.+"""+input EnterpriseServerUserAccountOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order user accounts by.+ """+ field: EnterpriseServerUserAccountOrderField!+}++"""+Properties by which Enterprise Server user account connections can be ordered.+"""+enum EnterpriseServerUserAccountOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order user accounts by login+ """+ LOGIN++ """+ Order user accounts by creation time on the Enterprise Server installation+ """+ REMOTE_CREATED_AT+}++"""+A user accounts upload from an Enterprise Server installation.+"""+type EnterpriseServerUserAccountsUpload implements Node @docsCategory(name: "enterprise-admin") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The enterprise to which this upload belongs.+ """+ enterprise: Enterprise!++ """+ The Enterprise Server installation for which this upload was generated.+ """+ enterpriseServerInstallation: EnterpriseServerInstallation!++ """+ The Node ID of the EnterpriseServerUserAccountsUpload object+ """+ id: ID!++ """+ The name of the file uploaded.+ """+ name: String!++ """+ The synchronization state of the upload+ """+ syncState: EnterpriseServerUserAccountsUploadSyncState!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for EnterpriseServerUserAccountsUpload.+"""+type EnterpriseServerUserAccountsUploadConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseServerUserAccountsUploadEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseServerUserAccountsUpload]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseServerUserAccountsUploadEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseServerUserAccountsUpload+}++"""+Ordering options for Enterprise Server user accounts upload connections.+"""+input EnterpriseServerUserAccountsUploadOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order user accounts uploads by.+ """+ field: EnterpriseServerUserAccountsUploadOrderField!+}++"""+Properties by which Enterprise Server user accounts upload connections can be ordered.+"""+enum EnterpriseServerUserAccountsUploadOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order user accounts uploads by creation time+ """+ CREATED_AT+}++"""+Synchronization state of the Enterprise Server user accounts upload+"""+enum EnterpriseServerUserAccountsUploadSyncState @docsCategory(name: "enterprise-admin") {+ """+ The synchronization of the upload failed.+ """+ FAILURE++ """+ The synchronization of the upload is pending.+ """+ PENDING++ """+ The synchronization of the upload succeeded.+ """+ SUCCESS+}++"""+A team that belongs to an enterprise and can be assigned to multiple organizations.+"""+type EnterpriseTeam implements Node & TeamReviewRequestable @docsCategory(name: "enterprise-admin") {+ """+ Organizations this team is assigned to.+ """+ assignedOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations returned from the connection.+ """+ orderBy: EnterpriseTeamOrganizationOrder = {field: ID, direction: ASC}+ ): EnterpriseTeamAssignedOrganizationConnection!++ """+ The human-readable, unique identifier for the enterprise and team.+ """+ combinedSlug: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The description of the team.+ """+ description: String++ """+ The enterprise this team belongs to.+ """+ enterprise: Enterprise++ """+ A list of users who are members of this enterprise team.+ """+ enterpriseTeamMembers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for the connection.+ """+ orderBy: EnterpriseTeamMemberOrder = {field: ID, direction: ASC}++ """+ The search string to look for.+ """+ query: String+ ): EnterpriseTeamMemberConnection!++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the EnterpriseTeam object+ """+ id: ID!++ """+ Whether the viewer is a member of this team.+ """+ isViewerMember: Boolean!++ """+ The name of the team.+ """+ name: String!++ """+ Whether the team will receive notifications when mentioned.+ """+ notificationSetting: TeamNotificationSetting!++ """+ How this team selects its associated organizations.+ """+ organizationSelectionType: EnterpriseTeamOrganizationSelectionType!++ """+ The level of privacy the team has.+ """+ privacy: TeamPrivacy!++ """+ The slug corresponding to the team.+ """+ slug: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ Whether the viewer can administer this team.+ """+ viewerCanAdminister: Boolean!+}++"""+The connection type for Organization.+"""+type EnterpriseTeamAssignedOrganizationConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseTeamAssignedOrganizationEdge]++ """+ A list of nodes.+ """+ nodes: [Organization]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents an organization that an enterprise team is assigned to.+"""+type EnterpriseTeamAssignedOrganizationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!+ node: Organization+}++"""+A list of enterprise teams owned by the enterprise.+"""+type EnterpriseTeamConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseTeamEdge]++ """+ A list of nodes.+ """+ nodes: [EnterpriseTeam]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnterpriseTeamEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: EnterpriseTeam+}++"""+The connection type for User.+"""+type EnterpriseTeamMemberConnection {+ """+ A list of edges.+ """+ edges: [EnterpriseTeamMemberEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a user who is a member of an enterprise team.+"""+type EnterpriseTeamMemberEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!+ node: User+}++"""+Ordering options for enterprise team member connections.+"""+input EnterpriseTeamMemberOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order enterprise team members by.+ """+ field: EnterpriseTeamMemberOrderField!+}++"""+Properties by which enterprise team member connections can be ordered.+"""+enum EnterpriseTeamMemberOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order enterprise team members by creation time.+ """+ CREATED_AT++ """+ Order enterprise team members by ID.+ """+ ID++ """+ Order enterprise team members by login.+ """+ LOGIN+}++"""+Ordering options for enterprise team connections.+"""+input EnterpriseTeamOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order enterprise teams by.+ """+ field: EnterpriseTeamOrderField!+}++"""+Properties by which enterprise team connections can be ordered.+"""+enum EnterpriseTeamOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order enterprise teams by creation time.+ """+ CREATED_AT++ """+ Order enterprise teams by ID.+ """+ ID++ """+ Order enterprise teams by name.+ """+ NAME+}++"""+Ordering options for enterprise team organization connections.+"""+input EnterpriseTeamOrganizationOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order organizations by.+ """+ field: EnterpriseTeamOrganizationOrderField!+}++"""+Properties by which enterprise team organization connections can be ordered.+"""+enum EnterpriseTeamOrganizationOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order enterprise team organizations by creation time.+ """+ CREATED_AT++ """+ Order enterprise team organizations by ID.+ """+ ID++ """+ Order enterprise team organizations by login.+ """+ LOGIN+}++"""+The possible organization selection types for an enterprise team.+"""+enum EnterpriseTeamOrganizationSelectionType @docsCategory(name: "enterprise-admin") {+ """+ The team is associated with all organizations in the enterprise.+ """+ ALL++ """+ The team is not associated with any organizations.+ """+ DISABLED++ """+ The team is associated with selected organizations.+ """+ SELECTED+}++"""+An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations.+"""+type EnterpriseUserAccount implements Actor & Node @docsCategory(name: "enterprise-admin") {+ """+ A URL pointing to the enterprise user account's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The enterprise in which this user account exists.+ """+ enterprise: Enterprise!++ """+ A list of Enterprise Server installations this user is a member of.+ """+ enterpriseInstallations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for installations returned from the connection.+ """+ orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC}++ """+ The search string to look for.+ """+ query: String++ """+ The role of the user in the installation.+ """+ role: EnterpriseUserAccountMembershipRole+ ): EnterpriseServerInstallationMembershipConnection!++ """+ The Node ID of the EnterpriseUserAccount object+ """+ id: ID!++ """+ An identifier for the enterprise user account, a login or email address+ """+ login: String!++ """+ The name of the enterprise user account+ """+ name: String++ """+ A list of enterprise organizations this user is a member of.+ """+ organizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for organizations returned from the connection.+ """+ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}++ """+ The search string to look for.+ """+ query: String++ """+ The role of the user in the enterprise organization.+ """+ role: EnterpriseUserAccountMembershipRole+ ): EnterpriseOrganizationMembershipConnection!++ """+ The HTTP path for this user.+ """+ resourcePath: URI!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this user.+ """+ url: URI!++ """+ The user within the enterprise.+ """+ user: User+}++"""+The possible roles for enterprise membership.+"""+enum EnterpriseUserAccountMembershipRole @docsCategory(name: "enterprise-admin") {+ """+ The user is a member of an organization in the enterprise.+ """+ MEMBER++ """+ The user is an owner of an organization in the enterprise.+ """+ OWNER++ """+ The user is not an owner of the enterprise, and not a member or owner of any+ organizations in the enterprise; only for EMU-enabled enterprises.+ """+ UNAFFILIATED+}++"""+The possible GitHub Enterprise deployments where this user can exist.+"""+enum EnterpriseUserDeployment @docsCategory(name: "enterprise-admin") {+ """+ The user is part of a GitHub Enterprise Cloud deployment.+ """+ CLOUD++ """+ The user is part of a GitHub Enterprise Server deployment.+ """+ SERVER+}++"""+An environment.+"""+type Environment implements Node @docsCategory(name: "deployments") {+ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the Environment object+ """+ id: ID!++ """+ Indicates whether or not this environment is currently pinned to the repository+ """+ isPinned: Boolean++ """+ The latest completed deployment with status success, failure, or error if it exists+ """+ latestCompletedDeployment: Deployment++ """+ The name of the environment+ """+ name: String!++ """+ The position of the environment if it is pinned, null if it is not pinned+ """+ pinnedPosition: Int++ """+ The protection rules defined for this environment+ """+ protectionRules(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DeploymentProtectionRuleConnection!+}++"""+The connection type for Environment.+"""+type EnvironmentConnection {+ """+ A list of edges.+ """+ edges: [EnvironmentEdge]++ """+ A list of nodes.+ """+ nodes: [Environment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type EnvironmentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Environment+}++"""+Properties by which environments connections can be ordered+"""+enum EnvironmentOrderField @docsCategory(name: "deployments") {+ """+ Order environments by name.+ """+ NAME+}++"""+Properties by which environments connections can be ordered+"""+enum EnvironmentPinnedFilterField @docsCategory(name: "deployments") {+ """+ All environments will be returned.+ """+ ALL++ """+ Environments exclude pinned will be returned+ """+ NONE++ """+ Only pinned environment will be returned+ """+ ONLY+}++"""+Ordering options for environments+"""+input Environments @docsCategory(name: "deployments") {+ """+ The direction in which to order environments by the specified field.+ """+ direction: OrderDirection!++ """+ The field to order environments by.+ """+ field: EnvironmentOrderField!+}++"""+An external identity provisioned by SAML SSO or SCIM. If SAML is configured on+the organization, the external identity is visible to (1) organization owners,+(2) organization owners' personal access tokens (classic) with read:org or+admin:org scope, (3) GitHub App with an installation token with read or write+access to members. If SAML is configured on the enterprise, the external+identity is visible to (1) enterprise owners, (2) enterprise owners' personal+access tokens (classic) with read:enterprise or admin:enterprise scope.+"""+type ExternalIdentity implements Node @docsCategory(name: "enterprise-admin") {+ """+ The GUID for this identity+ """+ guid: String!++ """+ The Node ID of the ExternalIdentity object+ """+ id: ID!++ """+ Organization invitation for this SCIM-provisioned external identity+ """+ organizationInvitation: OrganizationInvitation++ """+ SAML Identity attributes+ """+ samlIdentity: ExternalIdentitySamlAttributes++ """+ SCIM Identity attributes+ """+ scimIdentity: ExternalIdentityScimAttributes++ """+ User linked to this external identity. Will be NULL if this identity has not been claimed by an organization member.+ """+ user: User+}++"""+An attribute for the External Identity attributes collection+"""+type ExternalIdentityAttribute @docsCategory(name: "enterprise-admin") {+ """+ The attribute metadata as JSON+ """+ metadata: String++ """+ The attribute name+ """+ name: String!++ """+ The attribute value+ """+ value: String!+}++"""+The connection type for ExternalIdentity.+"""+type ExternalIdentityConnection {+ """+ A list of edges.+ """+ edges: [ExternalIdentityEdge]++ """+ A list of nodes.+ """+ nodes: [ExternalIdentity]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ExternalIdentityEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ExternalIdentity+}++"""+SAML attributes for the External Identity+"""+type ExternalIdentitySamlAttributes @docsCategory(name: "enterprise-admin") {+ """+ SAML Identity attributes+ """+ attributes: [ExternalIdentityAttribute!]!++ """+ The emails associated with the SAML identity+ """+ emails: [UserEmailMetadata!]++ """+ Family name of the SAML identity+ """+ familyName: String++ """+ Given name of the SAML identity+ """+ givenName: String++ """+ The groups linked to this identity in IDP+ """+ groups: [String!]++ """+ The NameID of the SAML identity+ """+ nameId: String++ """+ The userName of the SAML identity+ """+ username: String+}++"""+SCIM attributes for the External Identity+"""+type ExternalIdentityScimAttributes @docsCategory(name: "enterprise-admin") {+ """+ The emails associated with the SCIM identity+ """+ emails: [UserEmailMetadata!]++ """+ Family name of the SCIM identity+ """+ familyName: String++ """+ Given name of the SCIM identity+ """+ givenName: String++ """+ The groups linked to this identity in IDP+ """+ groups: [String!]++ """+ The userName of the SCIM identity+ """+ username: String+}++"""+A command to add a file at the given path with the given contents as part of a+commit. Any existing file at that that path will be replaced.+"""+input FileAddition @docsCategory(name: "git") {+ """+ The base64 encoded contents of the file+ """+ contents: Base64String!++ """+ The path in the repository where the file will be located+ """+ path: String!+}++"""+A description of a set of changes to a file tree to be made as part of+a git commit, modeled as zero or more file `additions` and zero or more+file `deletions`.++Both fields are optional; omitting both will produce a commit with no+file changes.++`deletions` and `additions` describe changes to files identified+by their path in the git tree using unix-style path separators, i.e.+`/`. The root of a git tree is an empty string, so paths are not+slash-prefixed.++`path` values must be unique across all `additions` and `deletions`+provided. Any duplication will result in a validation error.++### Encoding++File contents must be provided in full for each `FileAddition`.++The `contents` of a `FileAddition` must be encoded using RFC 4648+compliant base64, i.e. correct padding is required and no characters+outside the standard alphabet may be used. Invalid base64+encoding will be rejected with a validation error.++The encoded contents may be binary.++For text files, no assumptions are made about the character encoding of+the file contents (after base64 decoding). No charset transcoding or+line-ending normalization will be performed; it is the client's+responsibility to manage the character encoding of files they provide.+However, for maximum compatibility we recommend using UTF-8 encoding+and ensuring that all files in a repository use a consistent+line-ending convention (`\n` or `\r\n`), and that all files end+with a newline.++### Modeling file changes++Each of the the five types of conceptual changes that can be made in a+git commit can be described using the `FileChanges` type as follows:++1. New file addition: create file `hello world\n` at path `docs/README.txt`:++ {+ "additions" [+ {+ "path": "docs/README.txt",+ "contents": base64encode("hello world\n")+ }+ ]+ }++2. Existing file modification: change existing `docs/README.txt` to have new+ content `new content here\n`:++ {+ "additions" [+ {+ "path": "docs/README.txt",+ "contents": base64encode("new content here\n")+ }+ ]+ }++3. Existing file deletion: remove existing file `docs/README.txt`.+ Note that the path is required to exist -- specifying a+ path that does not exist on the given branch will abort the+ commit and return an error.++ {+ "deletions" [+ {+ "path": "docs/README.txt"+ }+ ]+ }+++4. File rename with no changes: rename `docs/README.txt` with+ previous content `hello world\n` to the same content at+ `newdocs/README.txt`:++ {+ "deletions" [+ {+ "path": "docs/README.txt",+ }+ ],+ "additions" [+ {+ "path": "newdocs/README.txt",+ "contents": base64encode("hello world\n")+ }+ ]+ }+++5. File rename with changes: rename `docs/README.txt` with+ previous content `hello world\n` to a file at path+ `newdocs/README.txt` with content `new contents\n`:++ {+ "deletions" [+ {+ "path": "docs/README.txt",+ }+ ],+ "additions" [+ {+ "path": "newdocs/README.txt",+ "contents": base64encode("new contents\n")+ }+ ]+ }+"""+input FileChanges @docsCategory(name: "git") {+ """+ File to add or change.+ """+ additions: [FileAddition!] = []++ """+ Files to delete.+ """+ deletions: [FileDeletion!] = []+}++"""+A command to delete the file at the given path as part of a commit.+"""+input FileDeletion @docsCategory(name: "git") {+ """+ The path to delete+ """+ path: String!+}++"""+Prevent commits that include files with specified file extensions from being pushed to the commit graph.+"""+type FileExtensionRestrictionParameters @docsCategory(name: "repos") {+ """+ The file extensions that are restricted from being pushed to the commit graph.+ """+ restrictedFileExtensions: [String!]!+}++"""+Prevent commits that include files with specified file extensions from being pushed to the commit graph.+"""+input FileExtensionRestrictionParametersInput @docsCategory(name: "repos") {+ """+ The file extensions that are restricted from being pushed to the commit graph.+ """+ restrictedFileExtensions: [String!]!+}++"""+Prevent commits that include changes in specified file and folder paths from+being pushed to the commit graph. This includes absolute paths that contain file names.+"""+type FilePathRestrictionParameters @docsCategory(name: "repos") {+ """+ The file paths that are restricted from being pushed to the commit graph.+ """+ restrictedFilePaths: [String!]!+}++"""+Prevent commits that include changes in specified file and folder paths from+being pushed to the commit graph. This includes absolute paths that contain file names.+"""+input FilePathRestrictionParametersInput @docsCategory(name: "repos") {+ """+ The file paths that are restricted from being pushed to the commit graph.+ """+ restrictedFilePaths: [String!]!+}++"""+The possible viewed states of a file .+"""+enum FileViewedState @docsCategory(name: "pulls") {+ """+ The file has new changes since last viewed.+ """+ DISMISSED++ """+ The file has not been marked as viewed.+ """+ UNVIEWED++ """+ The file has been marked as viewed.+ """+ VIEWED+}++"""+Autogenerated input type of FollowOrganization+"""+input FollowOrganizationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the organization to follow.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of FollowOrganization.+"""+type FollowOrganizationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The organization that was followed.+ """+ organization: Organization+}++"""+Autogenerated input type of FollowUser+"""+input FollowUserInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the user to follow.+ """+ userId: ID! @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of FollowUser.+"""+type FollowUserPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The user that was followed.+ """+ user: User+}++"""+The connection type for User.+"""+type FollowerConnection {+ """+ A list of edges.+ """+ edges: [UserEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+The connection type for User.+"""+type FollowingConnection {+ """+ A list of edges.+ """+ edges: [UserEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+A funding platform link for a repository.+"""+type FundingLink @docsCategory(name: "repos") {+ """+ The funding platform this link is for.+ """+ platform: FundingPlatform!++ """+ The configured URL for this funding link.+ """+ url: URI!+}++"""+The possible funding platforms for repository funding links.+"""+enum FundingPlatform @docsCategory(name: "repos") {+ """+ Buy Me a Coffee funding platform.+ """+ BUY_ME_A_COFFEE++ """+ Community Bridge funding platform.+ """+ COMMUNITY_BRIDGE++ """+ Custom funding platform.+ """+ CUSTOM++ """+ GitHub funding platform.+ """+ GITHUB++ """+ IssueHunt funding platform.+ """+ ISSUEHUNT++ """+ Ko-fi funding platform.+ """+ KO_FI++ """+ LFX Crowdfunding funding platform.+ """+ LFX_CROWDFUNDING++ """+ Liberapay funding platform.+ """+ LIBERAPAY++ """+ Open Collective funding platform.+ """+ OPEN_COLLECTIVE++ """+ Patreon funding platform.+ """+ PATREON++ """+ Polar funding platform.+ """+ POLAR++ """+ thanks.dev funding platform.+ """+ THANKS_DEV++ """+ Tidelift funding platform.+ """+ TIDELIFT+}++"""+A generic hovercard context with a message and icon+"""+type GenericHovercardContext implements HovercardContext @docsCategory(name: "users") {+ """+ A string describing this context+ """+ message: String!++ """+ An octicon to accompany this context+ """+ octicon: String!+}++"""+A Gist.+"""+type Gist implements Node & Starrable & UniformResourceLocatable @docsCategory(name: "gists") {+ """+ A list of comments associated with the gist+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): GistCommentConnection!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The gist description.+ """+ description: String++ """+ The files in this gist.+ """+ files(+ """+ The maximum number of files to return.+ """+ limit: Int = 10++ """+ The oid of the files to return+ """+ oid: GitObjectID+ ): [GistFile]++ """+ A list of forks associated with the gist+ """+ forks(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for gists returned from the connection+ """+ orderBy: GistOrder+ ): GistConnection!++ """+ The Node ID of the Gist object+ """+ id: ID!++ """+ Identifies if the gist is a fork.+ """+ isFork: Boolean!++ """+ Whether the gist is public or not.+ """+ isPublic: Boolean!++ """+ The gist name.+ """+ name: String!++ """+ The gist owner.+ """+ owner: RepositoryOwner++ """+ Identifies when the gist was last pushed to.+ """+ pushedAt: DateTime++ """+ The HTML path to this resource.+ """+ resourcePath: URI!++ """+ Returns a count of how many stargazers there are on this object+ """+ stargazerCount: Int!++ """+ A list of users who have starred this starrable.+ """+ stargazers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: StarOrder+ ): StargazerConnection!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this Gist.+ """+ url: URI!++ """+ Returns a boolean indicating whether the viewing user has starred this starrable.+ """+ viewerHasStarred: Boolean!+}++"""+Represents a comment on an Gist.+"""+type GistComment implements Comment & Deletable & Minimizable & Node & Updatable & UpdatableComment+ @docsCategory(name: "gists") {+ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the gist.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ Identifies the comment body.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body rendered to text.+ """+ bodyText: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ The associated gist.+ """+ gist: Gist!++ """+ The Node ID of the GistComment object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Returns whether or not a comment has been minimized.+ """+ isMinimized: Boolean!++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ Returns why the comment was minimized. One of `abuse`, `off-topic`,+ `outdated`, `resolved`, `duplicate`, `spam`, and `low-quality`. Note that the+ case and formatting of these values differs from the inputs to the+ `MinimizeComment` mutation.+ """+ minimizedReason: String++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Check if the current viewer can minimize this object.+ """+ viewerCanMinimize: Boolean!++ """+ Check if the current viewer can unminimize this object.+ """+ viewerCanUnminimize: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!+}++"""+The connection type for GistComment.+"""+type GistCommentConnection {+ """+ A list of edges.+ """+ edges: [GistCommentEdge]++ """+ A list of nodes.+ """+ nodes: [GistComment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type GistCommentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: GistComment+}++"""+The connection type for Gist.+"""+type GistConnection {+ """+ A list of edges.+ """+ edges: [GistEdge]++ """+ A list of nodes.+ """+ nodes: [Gist]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type GistEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Gist+}++"""+A file in a gist.+"""+type GistFile @docsCategory(name: "gists") {+ """+ The file name encoded to remove characters that are invalid in URL paths.+ """+ encodedName: String++ """+ The gist file encoding.+ """+ encoding: String++ """+ The file extension from the file name.+ """+ extension: String++ """+ Indicates if this file is an image.+ """+ isImage: Boolean!++ """+ Whether the file's contents were truncated.+ """+ isTruncated: Boolean!++ """+ The programming language this file is written in.+ """+ language: Language++ """+ The gist file name.+ """+ name: String++ """+ The gist file size in bytes.+ """+ size: Int++ """+ UTF8 text data or null if the file is binary+ """+ text(+ """+ Optionally truncate the returned file to this length.+ """+ truncate: Int+ ): String+}++"""+Ordering options for gist connections+"""+input GistOrder @docsCategory(name: "gists") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order repositories by.+ """+ field: GistOrderField!+}++"""+Properties by which gist connections can be ordered.+"""+enum GistOrderField @docsCategory(name: "gists") {+ """+ Order gists by creation time+ """+ CREATED_AT++ """+ Order gists by push time+ """+ PUSHED_AT++ """+ Order gists by update time+ """+ UPDATED_AT+}++"""+The privacy of a Gist+"""+enum GistPrivacy @docsCategory(name: "gists") {+ """+ Gists that are public and secret+ """+ ALL++ """+ Public+ """+ PUBLIC++ """+ Secret+ """+ SECRET+}++"""+Represents an actor in a Git commit (ie. an author or committer).+"""+type GitActor @docsCategory(name: "git") {+ """+ A URL pointing to the author's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ The timestamp of the Git action (authoring or committing).+ """+ date: GitTimestamp++ """+ The email in the Git commit.+ """+ email: String++ """+ The name in the Git commit.+ """+ name: String++ """+ The GitHub user corresponding to the email field. Null if no such user exists.+ """+ user: User+}++"""+The connection type for GitActor.+"""+type GitActorConnection {+ """+ A list of edges.+ """+ edges: [GitActorEdge]++ """+ A list of nodes.+ """+ nodes: [GitActor]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type GitActorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: GitActor+}++"""+Represents information about the GitHub instance.+"""+type GitHubMetadata @docsCategory(name: "meta") {+ """+ Returns a String that's a SHA of `github-services`+ """+ gitHubServicesSha: GitObjectID!++ """+ IP addresses that users connect to for git operations+ """+ gitIpAddresses: [String!]++ """+ IP addresses that GitHub Enterprise Importer uses for outbound connections+ """+ githubEnterpriseImporterIpAddresses: [String!]++ """+ IP addresses that service hooks are sent from+ """+ hookIpAddresses: [String!]++ """+ IP addresses that the importer connects from+ """+ importerIpAddresses: [String!]++ """+ Whether or not users are verified+ """+ isPasswordAuthenticationVerifiable: Boolean!++ """+ IP addresses for GitHub Pages' A records+ """+ pagesIpAddresses: [String!]+}++"""+Represents a Git object.+"""+interface GitObject @docsCategory(name: "git") {+ """+ An abbreviated version of the Git object ID+ """+ abbreviatedOid: String!++ """+ The HTTP path for this Git object+ """+ commitResourcePath: URI!++ """+ The HTTP URL for this Git object+ """+ commitUrl: URI!++ """+ The Node ID of the GitObject object+ """+ id: ID!++ """+ The Git object ID+ """+ oid: GitObjectID!++ """+ The Repository the Git object belongs to+ """+ repository: Repository!+}++"""+A Git object ID.+"""+scalar GitObjectID++"""+A fully qualified reference name (e.g. `refs/heads/master`).+"""+scalar GitRefname++"""+Git SSH string+"""+scalar GitSSHRemote++"""+Information about a signature (GPG or S/MIME) on a Commit or Tag.+"""+interface GitSignature @docsCategory(name: "git") {+ """+ Email used to sign this object.+ """+ email: String!++ """+ True if the signature is valid and verified by GitHub.+ """+ isValid: Boolean!++ """+ Payload for GPG signing object. Raw ODB object without the signature header.+ """+ payload: String!++ """+ ASCII-armored signature header from object.+ """+ signature: String!++ """+ GitHub user corresponding to the email signing this commit.+ """+ signer: User++ """+ The state of this signature. `VALID` if signature is valid and verified by+ GitHub, otherwise represents reason why signature is considered invalid.+ """+ state: GitSignatureState!++ """+ The date the signature was verified, if valid+ """+ verifiedAt: DateTime++ """+ True if the signature was made with GitHub's signing key.+ """+ wasSignedByGitHub: Boolean!+}++"""+The state of a Git signature.+"""+enum GitSignatureState @docsCategory(name: "git") {+ """+ The signing certificate or its chain could not be verified+ """+ BAD_CERT++ """+ Invalid email used for signing+ """+ BAD_EMAIL++ """+ Signing key expired+ """+ EXPIRED_KEY++ """+ Internal error - the GPG verification service misbehaved+ """+ GPGVERIFY_ERROR++ """+ Internal error - the GPG verification service is unavailable at the moment+ """+ GPGVERIFY_UNAVAILABLE++ """+ Invalid signature+ """+ INVALID++ """+ Malformed signature+ """+ MALFORMED_SIG++ """+ The usage flags for the key that signed this don't allow signing+ """+ NOT_SIGNING_KEY++ """+ Email used for signing not known to GitHub+ """+ NO_USER++ """+ Valid signature, though certificate revocation check failed+ """+ OCSP_ERROR++ """+ Valid signature, pending certificate revocation checking+ """+ OCSP_PENDING++ """+ One or more certificates in chain has been revoked+ """+ OCSP_REVOKED++ """+ Key used for signing not known to GitHub+ """+ UNKNOWN_KEY++ """+ Unknown signature type+ """+ UNKNOWN_SIG_TYPE++ """+ Unsigned+ """+ UNSIGNED++ """+ Email used for signing unverified on GitHub+ """+ UNVERIFIED_EMAIL++ """+ Valid signature and verified by GitHub+ """+ VALID+}++"""+An ISO-8601 encoded date string. Unlike the DateTime type, GitTimestamp is not converted in UTC.+"""+scalar GitTimestamp++"""+Represents a GPG signature on a Commit or Tag.+"""+type GpgSignature implements GitSignature @docsCategory(name: "git") {+ """+ Email used to sign this object.+ """+ email: String!++ """+ True if the signature is valid and verified by GitHub.+ """+ isValid: Boolean!++ """+ Hex-encoded ID of the key that signed this object.+ """+ keyId: String++ """+ Payload for GPG signing object. Raw ODB object without the signature header.+ """+ payload: String!++ """+ ASCII-armored signature header from object.+ """+ signature: String!++ """+ GitHub user corresponding to the email signing this commit.+ """+ signer: User++ """+ The state of this signature. `VALID` if signature is valid and verified by+ GitHub, otherwise represents reason why signature is considered invalid.+ """+ state: GitSignatureState!++ """+ The date the signature was verified, if valid+ """+ verifiedAt: DateTime++ """+ True if the signature was made with GitHub's signing key.+ """+ wasSignedByGitHub: Boolean!+}++"""+Autogenerated input type of GrantEnterpriseOrganizationsMigratorRole+"""+input GrantEnterpriseOrganizationsMigratorRoleInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise to which all organizations managed by it will be granted the migrator role.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of the user to grant the migrator role+ """+ login: String!+}++"""+Autogenerated return type of GrantEnterpriseOrganizationsMigratorRole.+"""+type GrantEnterpriseOrganizationsMigratorRolePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The organizations that had the migrator role applied to for the given user.+ """+ organizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): OrganizationConnection+}++"""+Autogenerated input type of GrantMigratorRole+"""+input GrantMigratorRoleInput {+ """+ The user login or Team slug to grant the migrator role.+ """+ actor: String!++ """+ Specifies the type of the actor, can be either USER or TEAM.+ """+ actorType: ActorType!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the organization that the user/team belongs to.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of GrantMigratorRole.+"""+type GrantMigratorRolePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Did the operation succeed?+ """+ success: Boolean+}++"""+A string containing HTML code.+"""+scalar HTML++"""+Represents a 'head_ref_deleted' event on a given pull request.+"""+type HeadRefDeletedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the Ref associated with the `head_ref_deleted` event.+ """+ headRef: Ref++ """+ Identifies the name of the Ref associated with the `head_ref_deleted` event.+ """+ headRefName: String!++ """+ The Node ID of the HeadRefDeletedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!+}++"""+Represents a 'head_ref_force_pushed' event on a given pull request.+"""+type HeadRefForcePushedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the after commit SHA for the 'head_ref_force_pushed' event.+ """+ afterCommit: Commit++ """+ Identifies the before commit SHA for the 'head_ref_force_pushed' event.+ """+ beforeCommit: Commit++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the HeadRefForcePushedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ Identifies the fully qualified ref name for the 'head_ref_force_pushed' event.+ """+ ref: Ref+}++"""+Represents a 'head_ref_restored' event on a given pull request.+"""+type HeadRefRestoredEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the HeadRefRestoredEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!+}++"""+Detail needed to display a hovercard for a user+"""+type Hovercard @docsCategory(name: "users") {+ """+ Each of the contexts for this hovercard+ """+ contexts: [HovercardContext!]!+}++"""+An individual line of a hovercard+"""+interface HovercardContext @docsCategory(name: "users") {+ """+ A string describing this context+ """+ message: String!++ """+ An octicon to accompany this context+ """+ octicon: String!+}++"""+The possible states in which authentication can be configured with an identity provider.+"""+enum IdentityProviderConfigurationState @docsCategory(name: "enterprise-admin") {+ """+ Authentication with an identity provider is configured but not enforced.+ """+ CONFIGURED++ """+ Authentication with an identity provider is configured and enforced.+ """+ ENFORCED++ """+ Authentication with an identity provider is not configured.+ """+ UNCONFIGURED+}++"""+Autogenerated input type of ImportProject+"""+input ImportProjectInput {+ """+ The description of Project.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A list of columns containing issues and pull requests.+ """+ columnImports: [ProjectColumnImport!]!++ """+ The name of Project.+ """+ name: String!++ """+ The name of the Organization or User to create the Project under.+ """+ ownerName: String!++ """+ Whether the Project is public or not.+ """+ public: Boolean = false+}++"""+Autogenerated return type of ImportProject.+"""+type ImportProjectPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new Project!+ """+ project: Project+}++"""+Autogenerated input type of InviteEnterpriseAdmin+"""+input InviteEnterpriseAdminInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The email of the person to invite as an administrator.+ """+ email: String++ """+ The ID of the enterprise to which you want to invite an administrator.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of a user to invite as an administrator.+ """+ invitee: String++ """+ The role of the administrator.+ """+ role: EnterpriseAdministratorRole+}++"""+Autogenerated return type of InviteEnterpriseAdmin.+"""+type InviteEnterpriseAdminPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The created enterprise administrator invitation.+ """+ invitation: EnterpriseAdministratorInvitation+}++"""+Autogenerated input type of InviteEnterpriseMember+"""+input InviteEnterpriseMemberInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The email of the person to invite as an unaffiliated member.+ """+ email: String++ """+ The ID of the enterprise to which you want to invite an unaffiliated member.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of a user to invite as an unaffiliated member.+ """+ invitee: String+}++"""+Autogenerated return type of InviteEnterpriseMember.+"""+type InviteEnterpriseMemberPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The created enterprise member invitation.+ """+ invitation: EnterpriseMemberInvitation+}++"""+The possible values for the IP allow list enabled setting.+"""+enum IpAllowListEnabledSettingValue @docsCategory(name: "enterprise-admin") {+ """+ The setting is disabled for the owner.+ """+ DISABLED++ """+ The setting is enabled for the owner.+ """+ ENABLED+}++"""+An IP address or range of addresses that is allowed to access an owner's resources.+"""+type IpAllowListEntry implements Node @docsCategory(name: "enterprise-admin") {+ """+ A single IP address or range of IP addresses in CIDR notation.+ """+ allowListValue: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IpAllowListEntry object+ """+ id: ID!++ """+ Whether the entry is currently active.+ """+ isActive: Boolean!++ """+ The name of the IP allow list entry.+ """+ name: String++ """+ The owner of the IP allow list entry.+ """+ owner: IpAllowListOwner!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for IpAllowListEntry.+"""+type IpAllowListEntryConnection {+ """+ A list of edges.+ """+ edges: [IpAllowListEntryEdge]++ """+ A list of nodes.+ """+ nodes: [IpAllowListEntry]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type IpAllowListEntryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: IpAllowListEntry+}++"""+Ordering options for IP allow list entry connections.+"""+input IpAllowListEntryOrder @docsCategory(name: "enterprise-admin") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order IP allow list entries by.+ """+ field: IpAllowListEntryOrderField!+}++"""+Properties by which IP allow list entry connections can be ordered.+"""+enum IpAllowListEntryOrderField @docsCategory(name: "enterprise-admin") {+ """+ Order IP allow list entries by the allow list value.+ """+ ALLOW_LIST_VALUE++ """+ Order IP allow list entries by creation time.+ """+ CREATED_AT+}++"""+The possible values for the IP allow list configuration for installed GitHub Apps setting.+"""+enum IpAllowListForInstalledAppsEnabledSettingValue @docsCategory(name: "enterprise-admin") {+ """+ The setting is disabled for the owner.+ """+ DISABLED++ """+ The setting is enabled for the owner.+ """+ ENABLED+}++"""+Types that can own an IP allow list.+"""+union IpAllowListOwner @docsCategory(name: "enterprise-admin") = App | Enterprise | Organization++"""+The possible values for the IP allow list user-level enforcement enabled setting.+"""+enum IpAllowListUserLevelEnforcementEnabledSettingValue @docsCategory(name: "enterprise-admin") {+ """+ The setting is disabled for the owner.+ """+ DISABLED++ """+ The setting is enabled for the owner.+ """+ ENABLED+}++"""+An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.+"""+type Issue implements Assignable &+ Closable &+ Comment &+ Deletable &+ Labelable &+ Lockable &+ Node &+ ProjectV2Owner &+ Reactable &+ RepositoryNode &+ Subscribable &+ SubscribableThread &+ UniformResourceLocatable &+ Updatable &+ UpdatableComment @docsCategory(name: "issues") {+ """+ Reason that the conversation was locked.+ """+ activeLockReason: LockReason++ """+ A list of actors assigned to this object.+ """+ assignedActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): AssigneeConnection!++ """+ A list of Users assigned to this object.+ """+ assignees(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ A list of issues that are blocking this issue.+ """+ blockedBy(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for dependencies+ """+ orderBy: IssueDependencyOrder = {field: DEPENDENCY_ADDED_AT, direction: DESC}+ ): IssueConnection!++ """+ A list of issues that this issue is blocking.+ """+ blocking(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for dependencies+ """+ orderBy: IssueDependencyOrder = {field: DEPENDENCY_ADDED_AT, direction: DESC}+ ): IssueConnection!++ """+ Identifies the body of the issue.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The http path for this issue body+ """+ bodyResourcePath: URI!++ """+ Identifies the body of the issue rendered to text.+ """+ bodyText: String!++ """+ The http URL for this issue body+ """+ bodyUrl: URI!++ """+ Indicates if the object is closed (definition of closed may depend on type)+ """+ closed: Boolean!++ """+ Identifies the date and time when the object was closed.+ """+ closedAt: DateTime++ """+ List of open pull requests referenced from this issue+ """+ closedByPullRequestsReferences(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Exclude manually linked PRs+ """+ excludeUserLinked: Boolean = false++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Include closed PRs in results+ """+ includeClosedPrs: Boolean = false++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Return results ordered by state+ """+ orderByState: Boolean = false++ """+ Return only manually linked PRs+ """+ userLinkedOnly: Boolean = false+ ): PullRequestConnection++ """+ A list of comments associated with the Issue.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issue comments returned from the connection.+ """+ orderBy: IssueCommentOrder+ ): IssueCommentConnection!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ A reference to the original issue that this issue has been marked as a duplicate of.+ """+ duplicateOf: Issue++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The hovercard information for this issue+ """+ hovercard(+ """+ Whether or not to include notification contexts+ """+ includeNotificationContexts: Boolean = true+ ): Hovercard!++ """+ The Node ID of the Issue object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Indicates whether or not this issue is currently pinned to the repository issues list+ """+ isPinned: Boolean++ """+ Is this issue read by the viewer+ """+ isReadByViewer: Boolean++ """+ Summary of the state of an issue's dependencies+ """+ issueDependenciesSummary: IssueDependenciesSummary!++ """+ Fields that are set on this issue+ """+ issueFieldValues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): IssueFieldValueConnection++ """+ The issue type for this Issue+ """+ issueType: IssueType++ """+ A list of labels associated with the object.+ """+ labels(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for labels returned from the connection.+ """+ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}+ ): LabelConnection++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ Branches linked to this issue.+ """+ linkedBranches(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): LinkedBranchConnection!++ """+ `true` if the object is locked+ """+ locked: Boolean!++ """+ Identifies the milestone associated with the issue.+ """+ milestone: Milestone++ """+ Identifies the issue number.+ """+ number: Int!++ """+ The parent entity of the issue.+ """+ parent: Issue++ """+ A list of Users that are participating in the Issue conversation.+ """+ participants(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ All pending suggestions on this issue.+ """+ pendingSuggestions: [PendingIssueSuggestion!]++ """+ The pinned comment for this issue.+ """+ pinnedIssueComment: PinnedIssueComment++ """+ List of project cards associated with this issue.+ """+ projectCards(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ A list of archived states to filter the cards by+ """+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectCardConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ List of project items associated with this issue.+ """+ projectItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Include archived items.+ """+ includeArchived: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2ItemConnection++ """+ Find a project by number.+ """+ projectV2(+ """+ The project number.+ """+ number: Int!+ ): ProjectV2++ """+ A list of projects under the owner.+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter projects based on user role.+ """+ minPermissionLevel: ProjectV2PermissionLevel = READ++ """+ How to order the returned projects.+ """+ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}++ """+ A project to search for under the owner.+ """+ query: String+ ): ProjectV2Connection!++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ A list of issues related to this issue.+ """+ relatesTo(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for related issues+ """+ orderBy: IssueRelatesToOrder = {field: RELATES_TO_ADDED_AT, direction: DESC}+ ): IssueConnection!++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The HTTP path for this issue+ """+ resourcePath: URI!++ """+ Identifies the state of the issue.+ """+ state: IssueState!++ """+ Identifies the reason for the issue state.+ """+ stateReason(+ """+ Whether or not to return state reason for duplicates++ **Upcoming Change on 2025-10-01 UTC**+ **Description:** `enableDuplicate` will be removed.+ **Reason:** The state reason for duplicate issue is now returned by default.+ """+ enableDuplicate: Boolean = false+ ): IssueStateReason++ """+ A list of sub-issues associated with the Issue.+ """+ subIssues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): IssueConnection!++ """+ Summary of the state of an issue's sub-issues+ """+ subIssuesSummary: SubIssuesSummary!++ """+ A list of suggested actors to assign to this object+ """+ suggestedActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ If provided, searches users by login or profile name+ """+ query: String+ ): AssigneeConnection!++ """+ A list of events, comments, commits, etc. associated with the issue.+ """+ timeline(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows filtering timeline events by a `since` timestamp.+ """+ since: DateTime+ ): IssueTimelineConnection!+ @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.")++ """+ A list of events, comments, commits, etc. associated with the issue.+ """+ timelineItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Filter timeline items by type.+ """+ itemTypes: [IssueTimelineItemsItemType!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter timeline items by a `since` timestamp.+ """+ since: DateTime++ """+ Skips the first _n_ elements in the list.+ """+ skip: Int+ ): IssueTimelineItemsConnection!++ """+ Identifies the issue title.+ """+ title: String!++ """+ Identifies the issue title rendered to HTML.+ """+ titleHTML: String!++ """+ A list of issues that track this issue+ """+ trackedInIssues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): IssueConnection!++ """+ A list of issues tracked inside the current issue+ """+ trackedIssues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): IssueConnection!++ """+ The number of tracked issues for this issue+ """+ trackedIssuesCount(+ """+ Limit the count to tracked issues with the specified states.+ """+ states: [TrackedIssueStates]+ ): Int!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this issue+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Indicates if the viewer can edit assignees for this object.+ """+ viewerCanAssign: Boolean!++ """+ Indicates if the object can be closed by the viewer.+ """+ viewerCanClose: Boolean!++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Indicates if the viewer can edit labels for this object.+ """+ viewerCanLabel: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Indicates if the object can be reopened by the viewer.+ """+ viewerCanReopen: Boolean!++ """+ Check if the current viewer can set fields on the issue.+ """+ viewerCanSetFields: Boolean++ """+ Indicates if the viewer can edit the milestone of the issue.+ """+ viewerCanSetMilestone: Boolean!++ """+ Check if the viewer is able to change their subscription status for the repository.+ """+ viewerCanSubscribe: Boolean!++ """+ Check if the current viewer can set the issue type of this issue.+ """+ viewerCanType: Boolean++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Check if the viewer has triage-level (or higher) access to update this issue's+ metadata. Note: this reflects the viewer's base repository role and does not+ account for individual fine-grained permissions granted via custom repository roles.+ """+ viewerCanUpdateMetadata: Boolean++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!++ """+ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.+ """+ viewerSubscription: SubscriptionState++ """+ Identifies the viewer's thread subscription form action.+ """+ viewerThreadSubscriptionFormAction: ThreadSubscriptionFormAction++ """+ Identifies the viewer's thread subscription status.+ """+ viewerThreadSubscriptionStatus: ThreadSubscriptionState+}++"""+The possible state reasons of a closed issue.+"""+enum IssueClosedStateReason @docsCategory(name: "issues") {+ """+ An issue that has been closed as completed+ """+ COMPLETED++ """+ An issue that has been closed as a duplicate+ """+ DUPLICATE++ """+ An issue that has been closed as not planned+ """+ NOT_PLANNED+}++"""+Represents a comment on an Issue.+"""+type IssueComment implements Comment &+ Deletable &+ Minimizable &+ Node &+ Pinnable &+ Reactable &+ RepositoryNode &+ Updatable &+ UpdatableComment @docsCategory(name: "issues") {+ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ The body as Markdown.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body rendered to text.+ """+ bodyText: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the IssueComment object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Returns whether or not a comment has been minimized.+ """+ isMinimized: Boolean!++ """+ Indicates whether or not this entity is currently pinned.+ """+ isPinned: Boolean++ """+ Identifies the issue associated with the comment.+ """+ issue: Issue!++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ Returns why the comment was minimized. One of `abuse`, `off-topic`,+ `outdated`, `resolved`, `duplicate`, `spam`, and `low-quality`. Note that the+ case and formatting of these values differs from the inputs to the+ `MinimizeComment` mutation.+ """+ minimizedReason: String++ """+ Identifies the date and time when this entity was pinned.+ """+ pinnedAt: DateTime++ """+ The user who pinned this entity.+ """+ pinnedBy: User++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ Returns the pull request associated with the comment, if this comment was made on a+ pull request.+ """+ pullRequest: PullRequest++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The HTTP path for this issue comment+ """+ resourcePath: URI!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this issue comment+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Check if the current viewer can minimize this object.+ """+ viewerCanMinimize: Boolean!++ """+ Check if the current viewer can pin this entity.+ """+ viewerCanPin: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Check if the current viewer can unminimize this object.+ """+ viewerCanUnminimize: Boolean!++ """+ Check if the current viewer can unpin this entity.+ """+ viewerCanUnpin: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!+}++"""+The connection type for IssueComment.+"""+type IssueCommentConnection {+ """+ A list of edges.+ """+ edges: [IssueCommentEdge]++ """+ A list of nodes.+ """+ nodes: [IssueComment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type IssueCommentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: IssueComment+}++"""+Ways in which lists of issue comments can be ordered upon return.+"""+input IssueCommentOrder @docsCategory(name: "issues") {+ """+ The direction in which to order issue comments by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order issue comments by.+ """+ field: IssueCommentOrderField!+}++"""+Properties by which issue comment connections can be ordered.+"""+enum IssueCommentOrderField @docsCategory(name: "issues") {+ """+ Order issue comments by update time+ """+ UPDATED_AT+}++"""+Represents a 'issue_comment_pinned' event on a given issue.+"""+type IssueCommentPinnedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueCommentPinnedEvent object+ """+ id: ID!++ """+ Identifies the issue comment associated with the 'issue_comment_pinned' event.+ """+ issueComment: IssueComment+}++"""+Represents a 'issue_comment_unpinned' event on a given issue.+"""+type IssueCommentUnpinnedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueCommentUnpinnedEvent object+ """+ id: ID!++ """+ Identifies the issue comment associated with the 'issue_comment_unpinned' event.+ """+ issueComment: IssueComment+}++"""+The connection type for Issue.+"""+type IssueConnection {+ """+ A list of edges.+ """+ edges: [IssueEdge]++ """+ A list of nodes.+ """+ nodes: [Issue]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+This aggregates issues opened by a user within one repository.+"""+type IssueContributionsByRepository @docsCategory(name: "issues") {+ """+ The issue contributions.+ """+ contributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for contributions returned from the connection.+ """+ orderBy: ContributionOrder = {direction: DESC}+ ): CreatedIssueContributionConnection!++ """+ The repository in which the issues were opened.+ """+ repository: Repository!+}++"""+The policy controlling who can create issues in a repository.+"""+enum IssueCreationPolicy @docsCategory(name: "issues") {+ """+ Anyone can create issues.+ """+ ALL++ """+ Only collaborators can create issues.+ """+ COLLABORATORS_ONLY+}++"""+Summary of the state of an issue's dependencies+"""+type IssueDependenciesSummary @docsCategory(name: "issues") {+ """+ Count of issues this issue is blocked by+ """+ blockedBy: Int!++ """+ Count of issues this issue is blocking+ """+ blocking: Int!++ """+ Total count of issues this issue is blocked by (open and closed)+ """+ totalBlockedBy: Int!++ """+ Total count of issues this issue is blocking (open and closed)+ """+ totalBlocking: Int!+}++"""+Ordering options issue dependencies+"""+input IssueDependencyOrder @docsCategory(name: "issues") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order issue dependencies by.+ """+ field: IssueDependencyOrderField!+}++"""+Properties by which issue dependencies can be ordered.+"""+enum IssueDependencyOrderField @docsCategory(name: "issues") {+ """+ Order issue dependencies by the creation time of the dependent issue+ """+ CREATED_AT++ """+ Order issue dependencies by time of when the dependency relationship was added+ """+ DEPENDENCY_ADDED_AT+}++"""+An edge in a connection.+"""+type IssueEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Issue+}++"""+The confidence level associated with an agent's issue event action.+"""+enum IssueEventConfidenceLevel @docsCategory(name: "issues") {+ """+ High confidence.+ """+ HIGH++ """+ Low confidence.+ """+ LOW++ """+ Medium confidence.+ """+ MEDIUM+}++"""+Represents a 'issue_field_added' event on a given issue.+"""+type IssueFieldAddedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ The color if it is a single-select field.+ """+ color: String++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueFieldAddedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ The issue field added.+ """+ issueField: IssueFields++ """+ The selected options for option-backed fields; single-select returns one option and multi-select returns many.+ """+ options: [IssueFieldTimelineOption!]++ """+ The value of the added field.+ """+ value: String+}++"""+Represents a 'issue_field_changed' event on a given issue.+"""+type IssueFieldChangedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueFieldChangedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ The issue field changed.+ """+ issueField: IssueFields++ """+ The new color if it is a single-select field.+ """+ newColor: String++ """+ The new options for option-backed fields; single-select returns one option and multi-select returns many.+ """+ newOptions: [IssueFieldTimelineOption!]++ """+ The new value of the field.+ """+ newValue: String++ """+ The previous color if it was a single-select field.+ """+ previousColor: String++ """+ The previous options for option-backed fields; single-select returns one option and multi-select returns many.+ """+ previousOptions: [IssueFieldTimelineOption!]++ """+ The previous value of the field.+ """+ previousValue: String+}++"""+Common fields across different issue field types+"""+interface IssueFieldCommon @docsCategory(name: "issues") {+ """+ The issue field's creation timestamp.+ """+ createdAt: DateTime!++ """+ The issue field's data type.+ """+ dataType: IssueFieldDataType!++ """+ The issue field's description.+ """+ description: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The issue field's name.+ """+ name: String!++ """+ The issue field's visibility.+ """+ visibility: IssueFieldVisibility!+}++"""+Represents an issue field value that must be set on an issue during issue creation+"""+input IssueFieldCreateOrUpdateInput @docsCategory(name: "issues") {+ """+ The confidence level the agent had when selecting this value.+ """+ confidence: IssueEventConfidenceLevel++ """+ The date value, for a date field+ """+ dateValue: String++ """+ Set to true to delete the field value+ """+ delete: Boolean++ """+ The ID of the issue field+ """+ fieldId: ID!++ """+ The IDs of the selected options, for a multi select field+ """+ multiSelectOptionIds: [ID!]++ """+ The numeric value, for a number field+ """+ numberValue: Float++ """+ Optional rationale describing why this value was selected. Max 280 characters.+ """+ rationale: String++ """+ The ID of the selected option, for a single select field+ """+ singleSelectOptionId: ID++ """+ If true, the value is stored as a pending suggestion for human review rather than being applied directly.+ """+ suggest: Boolean++ """+ The text value, for a text field+ """+ textValue: String+}++"""+The type of an issue field.+"""+enum IssueFieldDataType @docsCategory(name: "issues") {+ """+ Date+ """+ DATE++ """+ Multi Select+ """+ MULTI_SELECT++ """+ Number+ """+ NUMBER++ """+ Single Select+ """+ SINGLE_SELECT++ """+ Text+ """+ TEXT+}++"""+Represents a date issue field.+"""+type IssueFieldDate implements IssueFieldCommon & Node @docsCategory(name: "issues") {+ """+ The issue field's creation timestamp.+ """+ createdAt: DateTime!++ """+ The issue field's data type.+ """+ dataType: IssueFieldDataType!++ """+ The issue field's description.+ """+ description: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the IssueFieldDate object+ """+ id: ID!++ """+ The issue field's name.+ """+ name: String!++ """+ The issue field's visibility.+ """+ visibility: IssueFieldVisibility!+}++"""+The value of a date field in an Issue item.+"""+type IssueFieldDateValue implements IssueFieldValueCommon & Node @docsCategory(name: "issues") {+ """+ The issue field that contains this value.+ """+ field: IssueFields++ """+ The Node ID of the IssueFieldDateValue object+ """+ id: ID!++ """+ Value of the field.+ """+ value: String!+}++"""+Represents a multi select issue field.+"""+type IssueFieldMultiSelect implements IssueFieldCommon & Node @docsCategory(name: "issues") {+ """+ The issue field's creation timestamp.+ """+ createdAt: DateTime!++ """+ The issue field's data type.+ """+ dataType: IssueFieldDataType!++ """+ The issue field's description.+ """+ description: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the IssueFieldMultiSelect object+ """+ id: ID!++ """+ The issue field's name.+ """+ name: String!++ """+ Options for the multi select field+ """+ options: [IssueFieldSingleSelectOption!]!++ """+ The issue field's visibility.+ """+ visibility: IssueFieldVisibility!+}++"""+The value of a multi select field in an Issue item.+"""+type IssueFieldMultiSelectValue implements IssueFieldValueCommon & Node @docsCategory(name: "issues") {+ """+ The issue field that contains this value.+ """+ field: IssueFields++ """+ The Node ID of the IssueFieldMultiSelectValue object+ """+ id: ID!++ """+ The selected options.+ """+ options: [IssueFieldSingleSelectOption!]!++ """+ Comma-separated names of the selected options.+ """+ value: String+}++"""+Represents a number issue field.+"""+type IssueFieldNumber implements IssueFieldCommon & Node @docsCategory(name: "issues") {+ """+ The issue field's creation timestamp.+ """+ createdAt: DateTime!++ """+ The issue field's data type.+ """+ dataType: IssueFieldDataType!++ """+ The issue field's description.+ """+ description: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the IssueFieldNumber object+ """+ id: ID!++ """+ The issue field's name.+ """+ name: String!++ """+ The issue field's visibility.+ """+ visibility: IssueFieldVisibility!+}++"""+The value of a number field in an Issue item.+"""+type IssueFieldNumberValue implements IssueFieldValueCommon & Node @docsCategory(name: "issues") {+ """+ The issue field that contains this value.+ """+ field: IssueFields++ """+ The Node ID of the IssueFieldNumberValue object+ """+ id: ID!++ """+ Value of the field.+ """+ value: Float!+}++"""+Ordering options for issue field connections+"""+input IssueFieldOrder @docsCategory(name: "issues") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order issue fields by.+ """+ field: IssueFieldOrderField!+}++"""+Properties by which issue field connections can be ordered.+"""+enum IssueFieldOrderField @docsCategory(name: "issues") {+ """+ Order issue fields by creation time+ """+ CREATED_AT++ """+ Order issue fields by name+ """+ NAME+}++"""+Represents a 'issue_field_removed' event on a given issue.+"""+type IssueFieldRemovedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueFieldRemovedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ The issue field removed.+ """+ issueField: IssueFields++ """+ The removed options for option-backed fields; single-select returns one option and multi-select returns many.+ """+ options: [IssueFieldTimelineOption!]+}++"""+Represents a single select issue field.+"""+type IssueFieldSingleSelect implements IssueFieldCommon & Node @docsCategory(name: "issues") {+ """+ The issue field's creation timestamp.+ """+ createdAt: DateTime!++ """+ The issue field's data type.+ """+ dataType: IssueFieldDataType!++ """+ The issue field's description.+ """+ description: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the IssueFieldSingleSelect object+ """+ id: ID!++ """+ The issue field's name.+ """+ name: String!++ """+ Options for the single select field+ """+ options: [IssueFieldSingleSelectOption!]!++ """+ The issue field's visibility.+ """+ visibility: IssueFieldVisibility!+}++"""+Represents an option in a single-select issue field.+"""+type IssueFieldSingleSelectOption implements Node @docsCategory(name: "issues") {+ """+ The option's display color.+ """+ color: IssueFieldSingleSelectOptionColor!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The option's plain-text description.+ """+ description: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the IssueFieldSingleSelectOption object+ """+ id: ID!++ """+ The option's name.+ """+ name: String!++ """+ The option's priority order.+ """+ priority: Int+}++"""+The display color of a single-select field option.+"""+enum IssueFieldSingleSelectOptionColor @docsCategory(name: "issues") {+ """+ blue+ """+ BLUE++ """+ gray+ """+ GRAY++ """+ green+ """+ GREEN++ """+ orange+ """+ ORANGE++ """+ pink+ """+ PINK++ """+ purple+ """+ PURPLE++ """+ red+ """+ RED++ """+ yellow+ """+ YELLOW+}++"""+A single selection option for an issue field.+"""+input IssueFieldSingleSelectOptionInput @docsCategory(name: "issues") {+ """+ The color associated with the option.+ """+ color: IssueFieldSingleSelectOptionColor!++ """+ A description of the option.+ """+ description: String++ """+ The name of the option.+ """+ name: String!++ """+ The priority of the option in the list.+ """+ priority: Int!+}++"""+The value of a single select field in an Issue item.+"""+type IssueFieldSingleSelectValue implements IssueFieldValueCommon & Node @docsCategory(name: "issues") {+ """+ The option's display color.+ """+ color: IssueFieldSingleSelectOptionColor!++ """+ The option's plain-text description.+ """+ description: String++ """+ The issue field that contains this value.+ """+ field: IssueFields++ """+ The Node ID of the IssueFieldSingleSelectValue object+ """+ id: ID!++ """+ The option's name.+ """+ name: String!++ """+ The selected option's global relay ID.+ """+ optionId: String++ """+ The option's name text (alias for `name`, for consistency with other field value types).+ """+ value: String!+}++"""+Represents a text issue field.+"""+type IssueFieldText implements IssueFieldCommon & Node @docsCategory(name: "issues") {+ """+ The issue field's creation timestamp.+ """+ createdAt: DateTime!++ """+ The issue field's data type.+ """+ dataType: IssueFieldDataType!++ """+ The issue field's description.+ """+ description: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the IssueFieldText object+ """+ id: ID!++ """+ The issue field's name.+ """+ name: String!++ """+ The issue field's visibility.+ """+ visibility: IssueFieldVisibility!+}++"""+The value of a text field in an Issue item.+"""+type IssueFieldTextValue implements IssueFieldValueCommon & Node @docsCategory(name: "issues") {+ """+ The issue field that contains this value.+ """+ field: IssueFields++ """+ The Node ID of the IssueFieldTextValue object+ """+ id: ID!++ """+ Value of the field.+ """+ value: String!+}++"""+Represents a selected option for a timeline issue field event.+"""+type IssueFieldTimelineOption @docsCategory(name: "issues") {+ """+ The option color.+ """+ color: String++ """+ The option name.+ """+ name: String!+}++"""+Updates an issue field using its user-facing name.+"""+input IssueFieldUpdateInput @docsCategory(name: "issues") {+ """+ The name of the issue field.+ """+ fieldName: String!++ """+ The operation to perform.+ """+ operation: IssueFieldUpdateOperation!++ """+ The value or comma-separated option names for the operation.+ """+ value: String+}++"""+The operation to perform on an issue field value.+"""+enum IssueFieldUpdateOperation @docsCategory(name: "issues") {+ """+ Sets a scalar field or adds options to a multi-select field.+ """+ ADD++ """+ Clears the field value.+ """+ CLEAR++ """+ Removes options from a multi-select field.+ """+ REMOVE++ """+ Replaces the field value.+ """+ SET+}++"""+Issue field values+"""+union IssueFieldValue @docsCategory(name: "issues") =+ | IssueFieldDateValue+ | IssueFieldMultiSelectValue+ | IssueFieldNumberValue+ | IssueFieldSingleSelectValue+ | IssueFieldTextValue++"""+Common fields across different issue field value types+"""+interface IssueFieldValueCommon @docsCategory(name: "issues") {+ """+ The issue field that contains this value.+ """+ field: IssueFields+}++"""+The connection type for IssueFieldValue.+"""+type IssueFieldValueConnection {+ """+ A list of edges.+ """+ edges: [IssueFieldValueEdge]++ """+ A list of nodes.+ """+ nodes: [IssueFieldValue]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type IssueFieldValueEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: IssueFieldValue+}++"""+A filter for matching an issue field value. Exactly one value argument should be provided.+"""+input IssueFieldValueFilter {+ """+ Matches a date issue field value (YYYY-MM-DD).+ """+ dateValue: String++ """+ The ID of the issue field to filter by. Exactly one of `fieldId` or `fieldName` must be provided.+ """+ fieldId: ID++ """+ The name of the issue field to filter by. Exactly one of `fieldId` or `fieldName` must be provided.+ """+ fieldName: String++ """+ Matches issues containing all of the multi-select issue field option IDs.+ """+ multiSelectOptionIds: [ID!]++ """+ Matches issues containing all of the multi-select issue field option names.+ """+ multiSelectOptionValues: [String!]++ """+ Matches a numeric issue field value.+ """+ numberValue: Float++ """+ Matches a single-select issue field option by ID.+ """+ singleSelectOptionId: ID++ """+ Matches a single-select issue field option by name.+ """+ singleSelectOptionValue: String++ """+ Matches a text issue field value.+ """+ textValue: String+}++"""+The visibility of an issue field.+"""+enum IssueFieldVisibility @docsCategory(name: "issues") {+ """+ All+ """+ ALL++ """+ Org Only+ """+ ORG_ONLY+}++"""+Possible issue fields.+"""+union IssueFields @docsCategory(name: "issues") =+ | IssueFieldDate+ | IssueFieldMultiSelect+ | IssueFieldNumber+ | IssueFieldSingleSelect+ | IssueFieldText++"""+The connection type for IssueFields.+"""+type IssueFieldsConnection {+ """+ A list of edges.+ """+ edges: [IssueFieldsEdge]++ """+ A list of nodes.+ """+ nodes: [IssueFields]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type IssueFieldsEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: IssueFields+}++"""+Ways in which to filter lists of issues.+"""+input IssueFilters @docsCategory(name: "issues") {+ """+ List issues assigned to given name. Pass in `null` for issues with no assigned+ user, and `*` for issues assigned to any user.+ """+ assignee: String++ """+ List issues created by given name.+ """+ createdBy: String++ """+ List issues where each supplied issue field value filter matches.+ """+ issueFieldValues: [IssueFieldValueFilter!]++ """+ List issues where the list of label names exist on the issue.+ """+ labels: [String!]++ """+ List issues where the given name is mentioned in the issue.+ """+ mentioned: String++ """+ List issues by given milestone argument. If an string representation of an+ integer is passed, it should refer to a milestone by its database ID. Pass in+ `null` for issues with no milestone, and `*` for issues that are assigned to any milestone.+ """+ milestone: String++ """+ List issues by given milestone argument. If an string representation of an+ integer is passed, it should refer to a milestone by its number field. Pass in+ `null` for issues with no milestone, and `*` for issues that are assigned to any milestone.+ """+ milestoneNumber: String++ """+ List issues that have been updated at or after the given date.+ """+ since: DateTime++ """+ List issues filtered by the list of states given.+ """+ states: [IssueState!]++ """+ List issues filtered by the type given, only supported by searches on repositories.+ """+ type: String++ """+ List issues subscribed to by viewer.+ """+ viewerSubscribed: Boolean = false+}++"""+Used for return value of Repository.issueOrPullRequest.+"""+union IssueOrPullRequest @docsCategory(name: "issues") = Issue | PullRequest++"""+Ways in which lists of issues can be ordered upon return.+"""+input IssueOrder @docsCategory(name: "issues") {+ """+ The direction in which to order issues by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order issues by.+ """+ field: IssueOrderField!+}++"""+Properties by which issue connections can be ordered.+"""+enum IssueOrderField @docsCategory(name: "issues") {+ """+ Order issues by comment count+ """+ COMMENTS++ """+ Order issues by creation time+ """+ CREATED_AT++ """+ Order issues by update time+ """+ UPDATED_AT+}++"""+Ordering options for related issues+"""+input IssueRelatesToOrder @docsCategory(name: "issues") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order related issues by.+ """+ field: IssueRelatesToOrderField!+}++"""+Properties by which related issues can be ordered.+"""+enum IssueRelatesToOrderField @docsCategory(name: "issues") {+ """+ Order related issues by the creation time of the related issue+ """+ CREATED_AT++ """+ Order related issues by time of when the relates-to relationship was added+ """+ RELATES_TO_ADDED_AT+}++"""+Type of issue search performed+"""+enum IssueSearchType @docsCategory(name: "issues") {+ """+ Hybrid search combining lexical and semantic approaches+ """+ HYBRID++ """+ Lexical (keyword-based) search+ """+ LEXICAL++ """+ Semantic (meaning-based) search using embeddings+ """+ SEMANTIC+}++"""+The possible states of an issue.+"""+enum IssueState @docsCategory(name: "issues") {+ """+ An issue that has been closed+ """+ CLOSED++ """+ An issue that is still open+ """+ OPEN+}++"""+The possible state reasons of an issue.+"""+enum IssueStateReason @docsCategory(name: "issues") {+ """+ An issue that has been closed as completed+ """+ COMPLETED++ """+ An issue that has been closed as a duplicate.+ """+ DUPLICATE++ """+ An issue that has been closed as not planned+ """+ NOT_PLANNED++ """+ An issue that has been reopened+ """+ REOPENED+}++"""+Specifies a target state for an issue, with optional metadata such as a+rationale, close reason, or duplicate reference. Suggestion metadata+(`rationale`, `confidence`, `suggest`) is only meaningful when `value` is+`CLOSED`; it is silently ignored otherwise.+"""+input IssueStateUpdateInput @docsCategory(name: "issues") {+ """+ The confidence level the agent had when suggesting this close. Only meaningful when `value` is `CLOSED`.+ """+ confidence: IssueEventConfidenceLevel++ """+ The ID of the issue that this is a duplicate of. Only meaningful when `value`+ is `CLOSED` and `stateReason` is `DUPLICATE`.+ """+ duplicateIssueId: ID @possibleTypes(concreteTypes: ["Issue"])++ """+ Optional rationale describing why the issue is being closed. Only meaningful when `value` is `CLOSED`. Max 280 characters.+ """+ rationale: String++ """+ The reason for closing the issue. Only meaningful when `value` is `CLOSED`.+ """+ stateReason: IssueClosedStateReason++ """+ If true, the close is stored as a pending suggestion for human review rather+ than being applied directly. Only meaningful when `value` is `CLOSED`;+ silently ignored otherwise.+ """+ suggest: Boolean++ """+ The target state.+ """+ value: IssueState!+}++"""+A repository issue template.+"""+type IssueTemplate @docsCategory(name: "issues") {+ """+ The template purpose.+ """+ about: String++ """+ The suggested assignees.+ """+ assignees(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ The suggested issue body.+ """+ body: String++ """+ The template filename.+ """+ filename: String!++ """+ The suggested issue labels+ """+ labels(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for labels returned from the connection.+ """+ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}+ ): LabelConnection++ """+ The template name.+ """+ name: String!++ """+ The suggested issue title.+ """+ title: String++ """+ The suggested issue type+ """+ type: IssueType+}++"""+The connection type for IssueTimelineItem.+"""+type IssueTimelineConnection {+ """+ A list of edges.+ """+ edges: [IssueTimelineItemEdge]++ """+ A list of nodes.+ """+ nodes: [IssueTimelineItem]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An item in an issue timeline+"""+union IssueTimelineItem @docsCategory(name: "issues") =+ | AssignedEvent+ | ClosedEvent+ | Commit+ | CrossReferencedEvent+ | DemilestonedEvent+ | IssueComment+ | LabeledEvent+ | LockedEvent+ | MilestonedEvent+ | ReferencedEvent+ | RenamedTitleEvent+ | ReopenedEvent+ | SubscribedEvent+ | TransferredEvent+ | UnassignedEvent+ | UnlabeledEvent+ | UnlockedEvent+ | UnsubscribedEvent+ | UserBlockedEvent++"""+An edge in a connection.+"""+type IssueTimelineItemEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: IssueTimelineItem+}++"""+An item in an issue timeline+"""+union IssueTimelineItems @docsCategory(name: "issues") =+ | AddedToProjectEvent+ | AddedToProjectV2Event+ | AssignedEvent+ | BlockedByAddedEvent+ | BlockedByRemovedEvent+ | BlockingAddedEvent+ | BlockingRemovedEvent+ | ClosedEvent+ | CommentDeletedEvent+ | ConnectedEvent+ | ConvertedFromDraftEvent+ | ConvertedNoteToIssueEvent+ | ConvertedToDiscussionEvent+ | CrossReferencedEvent+ | DemilestonedEvent+ | DisconnectedEvent+ | IssueComment+ | IssueCommentPinnedEvent+ | IssueCommentUnpinnedEvent+ | IssueFieldAddedEvent+ | IssueFieldChangedEvent+ | IssueFieldRemovedEvent+ | IssueTypeAddedEvent+ | IssueTypeChangedEvent+ | IssueTypeRemovedEvent+ | LabeledEvent+ | LockedEvent+ | MarkedAsDuplicateEvent+ | MentionedEvent+ | MilestonedEvent+ | MovedColumnsInProjectEvent+ | ParentIssueAddedEvent+ | ParentIssueRemovedEvent+ | PinnedEvent+ | ProjectV2ItemStatusChangedEvent+ | ReferencedEvent+ | RemovedFromProjectEvent+ | RemovedFromProjectV2Event+ | RenamedTitleEvent+ | ReopenedEvent+ | SubIssueAddedEvent+ | SubIssueRemovedEvent+ | SubscribedEvent+ | TransferredEvent+ | UnassignedEvent+ | UnlabeledEvent+ | UnlockedEvent+ | UnmarkedAsDuplicateEvent+ | UnpinnedEvent+ | UnsubscribedEvent+ | UserBlockedEvent++"""+The connection type for IssueTimelineItems.+"""+type IssueTimelineItemsConnection {+ """+ A list of edges.+ """+ edges: [IssueTimelineItemsEdge]++ """+ Identifies the count of items after applying `before` and `after` filters.+ """+ filteredCount: Int!++ """+ A list of nodes.+ """+ nodes: [IssueTimelineItems]++ """+ Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing.+ """+ pageCount: Int!++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ Identifies the date and time when the timeline was last updated.+ """+ updatedAt: DateTime!+}++"""+An edge in a connection.+"""+type IssueTimelineItemsEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: IssueTimelineItems+}++"""+The possible item types found in a timeline.+"""+enum IssueTimelineItemsItemType {+ """+ Represents a 'added_to_project' event on a given issue or pull request.+ """+ ADDED_TO_PROJECT_EVENT++ """+ Represents a 'added_to_project_v2' event on a given issue or pull request.+ """+ ADDED_TO_PROJECT_V2_EVENT++ """+ Represents an 'assigned' event on any assignable object.+ """+ ASSIGNED_EVENT++ """+ Represents a 'blocked_by_added' event on a given issue.+ """+ BLOCKED_BY_ADDED_EVENT++ """+ Represents a 'blocked_by_removed' event on a given issue.+ """+ BLOCKED_BY_REMOVED_EVENT++ """+ Represents a 'blocking_added' event on a given issue.+ """+ BLOCKING_ADDED_EVENT++ """+ Represents a 'blocking_removed' event on a given issue.+ """+ BLOCKING_REMOVED_EVENT++ """+ Represents a 'closed' event on any `Closable`.+ """+ CLOSED_EVENT++ """+ Represents a 'comment_deleted' event on a given issue or pull request.+ """+ COMMENT_DELETED_EVENT++ """+ Represents a 'connected' event on a given issue or pull request.+ """+ CONNECTED_EVENT++ """+ Represents a 'converted_from_draft' event on a given issue or pull request.+ """+ CONVERTED_FROM_DRAFT_EVENT++ """+ Represents a 'converted_note_to_issue' event on a given issue or pull request.+ """+ CONVERTED_NOTE_TO_ISSUE_EVENT++ """+ Represents a 'converted_to_discussion' event on a given issue.+ """+ CONVERTED_TO_DISCUSSION_EVENT++ """+ Represents a mention made by one issue or pull request to another.+ """+ CROSS_REFERENCED_EVENT++ """+ Represents a 'demilestoned' event on a given issue or pull request.+ """+ DEMILESTONED_EVENT++ """+ Represents a 'disconnected' event on a given issue or pull request.+ """+ DISCONNECTED_EVENT++ """+ Represents a comment on an Issue.+ """+ ISSUE_COMMENT++ """+ Represents a 'issue_comment_pinned' event on a given issue.+ """+ ISSUE_COMMENT_PINNED_EVENT++ """+ Represents a 'issue_comment_unpinned' event on a given issue.+ """+ ISSUE_COMMENT_UNPINNED_EVENT++ """+ Represents a 'issue_field_added' event on a given issue.+ """+ ISSUE_FIELD_ADDED_EVENT++ """+ Represents a 'issue_field_changed' event on a given issue.+ """+ ISSUE_FIELD_CHANGED_EVENT++ """+ Represents a 'issue_field_removed' event on a given issue.+ """+ ISSUE_FIELD_REMOVED_EVENT++ """+ Represents a 'issue_type_added' event on a given issue.+ """+ ISSUE_TYPE_ADDED_EVENT++ """+ Represents a 'issue_type_changed' event on a given issue.+ """+ ISSUE_TYPE_CHANGED_EVENT++ """+ Represents a 'issue_type_removed' event on a given issue.+ """+ ISSUE_TYPE_REMOVED_EVENT++ """+ Represents a 'labeled' event on a given issue or pull request.+ """+ LABELED_EVENT++ """+ Represents a 'locked' event on a given issue or pull request.+ """+ LOCKED_EVENT++ """+ Represents a 'marked_as_duplicate' event on a given issue or pull request.+ """+ MARKED_AS_DUPLICATE_EVENT++ """+ Represents a 'mentioned' event on a given issue or pull request.+ """+ MENTIONED_EVENT++ """+ Represents a 'milestoned' event on a given issue or pull request.+ """+ MILESTONED_EVENT++ """+ Represents a 'moved_columns_in_project' event on a given issue or pull request.+ """+ MOVED_COLUMNS_IN_PROJECT_EVENT++ """+ Represents a 'parent_issue_added' event on a given issue.+ """+ PARENT_ISSUE_ADDED_EVENT++ """+ Represents a 'parent_issue_removed' event on a given issue.+ """+ PARENT_ISSUE_REMOVED_EVENT++ """+ Represents a 'pinned' event on a given issue or pull request.+ """+ PINNED_EVENT++ """+ Represents a 'project_v2_item_status_changed' event on a given issue or pull request.+ """+ PROJECT_V2_ITEM_STATUS_CHANGED_EVENT++ """+ Represents a 'referenced' event on a given `ReferencedSubject`.+ """+ REFERENCED_EVENT++ """+ Represents a 'removed_from_project' event on a given issue or pull request.+ """+ REMOVED_FROM_PROJECT_EVENT++ """+ Represents a 'removed_from_project_v2' event on a given issue or pull request.+ """+ REMOVED_FROM_PROJECT_V2_EVENT++ """+ Represents a 'renamed' event on a given issue or pull request+ """+ RENAMED_TITLE_EVENT++ """+ Represents a 'reopened' event on any `Closable`.+ """+ REOPENED_EVENT++ """+ Represents a 'subscribed' event on a given `Subscribable`.+ """+ SUBSCRIBED_EVENT++ """+ Represents a 'sub_issue_added' event on a given issue.+ """+ SUB_ISSUE_ADDED_EVENT++ """+ Represents a 'sub_issue_removed' event on a given issue.+ """+ SUB_ISSUE_REMOVED_EVENT++ """+ Represents a 'transferred' event on a given issue or pull request.+ """+ TRANSFERRED_EVENT++ """+ Represents an 'unassigned' event on any assignable object.+ """+ UNASSIGNED_EVENT++ """+ Represents an 'unlabeled' event on a given issue or pull request.+ """+ UNLABELED_EVENT++ """+ Represents an 'unlocked' event on a given issue or pull request.+ """+ UNLOCKED_EVENT++ """+ Represents an 'unmarked_as_duplicate' event on a given issue or pull request.+ """+ UNMARKED_AS_DUPLICATE_EVENT++ """+ Represents an 'unpinned' event on a given issue or pull request.+ """+ UNPINNED_EVENT++ """+ Represents an 'unsubscribed' event on a given `Subscribable`.+ """+ UNSUBSCRIBED_EVENT++ """+ Represents a 'user_blocked' event on a given user.+ """+ USER_BLOCKED_EVENT+}++"""+Represents the type of Issue.+"""+type IssueType implements Node @docsCategory(name: "issues") {+ """+ The issue type's color.+ """+ color: IssueTypeColor!++ """+ The issue type's description.+ """+ description: String++ """+ The Node ID of the IssueType object+ """+ id: ID!++ """+ The issue type's enabled state.+ """+ isEnabled: Boolean!++ """+ Whether the issue type is publicly visible.+ """+ isPrivate: Boolean!+ @deprecated(+ reason: "Private issue types are being deprecated and can no longer be created. Removal on 2025-04-01 UTC."+ )++ """+ The issues with this issue type in the given repository.+ """+ issues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filtering options for issues returned from the connection.+ """+ filterBy: IssueFilters++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issues returned from the connection.+ """+ orderBy: IssueOrder++ """+ Target repository to load the issues from.+ """+ repositoryId: ID!++ """+ A list of states to filter the issues by.+ """+ states: [IssueState!]+ ): IssueConnection!++ """+ The issue type's name.+ """+ name: String!++ """+ An ordered list of issue fields pinned to this type.+ """+ pinnedFields: [IssueFields!]+}++"""+Represents a 'issue_type_added' event on a given issue.+"""+type IssueTypeAddedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueTypeAddedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ The issue type added.+ """+ issueType: IssueType+}++"""+Represents a 'issue_type_changed' event on a given issue.+"""+type IssueTypeChangedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueTypeChangedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ The issue type added.+ """+ issueType: IssueType++ """+ The issue type removed.+ """+ prevIssueType: IssueType+}++"""+The possible color for an issue type+"""+enum IssueTypeColor @docsCategory(name: "issues") {+ """+ blue+ """+ BLUE++ """+ gray+ """+ GRAY++ """+ green+ """+ GREEN++ """+ orange+ """+ ORANGE++ """+ pink+ """+ PINK++ """+ purple+ """+ PURPLE++ """+ red+ """+ RED++ """+ yellow+ """+ YELLOW+}++"""+The connection type for IssueType.+"""+type IssueTypeConnection {+ """+ A list of edges.+ """+ edges: [IssueTypeEdge]++ """+ A list of nodes.+ """+ nodes: [IssueType]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type IssueTypeEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: IssueType+}++"""+Ordering options for issue types connections+"""+input IssueTypeOrder @docsCategory(name: "issues") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order issue types by.+ """+ field: IssueTypeOrderField!+}++"""+Properties by which issue type connections can be ordered.+"""+enum IssueTypeOrderField @docsCategory(name: "issues") {+ """+ Order issue types by creation time+ """+ CREATED_AT++ """+ Order issue types by name+ """+ NAME+}++"""+Represents a 'issue_type_removed' event on a given issue.+"""+type IssueTypeRemovedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the IssueTypeRemovedEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ The issue type removed.+ """+ issueType: IssueType+}++"""+Specifies an Issue Type to set on an issue, with optional metadata such as a rationale.+"""+input IssueTypeUpdateInput @docsCategory(name: "issues") {+ """+ The confidence level the agent had when selecting this value.+ """+ confidence: IssueEventConfidenceLevel++ """+ The ID of the Issue Type to set on this issue. Pass null to clear the issue type.+ """+ issueTypeId: ID++ """+ Optional rationale describing why this value was selected. Max 280 characters.+ """+ rationale: String++ """+ If true, the value is stored as a pending suggestion for human review rather than being applied directly.+ """+ suggest: Boolean+}++"""+The intent behind an agent's issue event action, including rationale and confidence.+"""+type IssueUpdateIntent @docsCategory(name: "issues") {+ """+ The confidence level the agent had when performing this action.+ """+ confidence: IssueEventConfidenceLevel++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Opaque identifier for the underlying intent. Carries the DB bigint as a String.+ """+ intentId: String++ """+ The reasoning or explanation text for the event.+ """+ rationale: String+}++"""+Represents a user signing up for a GitHub account.+"""+type JoinedGitHubContribution implements Contribution @docsCategory(name: "users") {+ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository.+"""+type Label implements Node @docsCategory(name: "issues") {+ """+ Identifies the label color.+ """+ color: String!++ """+ Identifies the date and time when the label was created.+ """+ createdAt: DateTime++ """+ A brief description of this label.+ """+ description: String++ """+ The Node ID of the Label object+ """+ id: ID!++ """+ Indicates whether or not this is a default label.+ """+ isDefault: Boolean!++ """+ A list of issues associated with this label.+ """+ issues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filtering options for issues returned from the connection.+ """+ filterBy: IssueFilters++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issues returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the issues by.+ """+ states: [IssueState!]+ ): IssueConnection!++ """+ Identifies the label name.+ """+ name: String!++ """+ A list of pull requests associated with this label.+ """+ pullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ The base ref name to filter the pull requests by.+ """+ baseRefName: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ The head ref name to filter the pull requests by.+ """+ headRefName: String++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the pull requests by.+ """+ states: [PullRequestState!]+ ): PullRequestConnection!++ """+ The repository associated with this label.+ """+ repository: Repository!++ """+ The HTTP path for this label.+ """+ resourcePath: URI!++ """+ Identifies the date and time when the label was last updated.+ """+ updatedAt: DateTime++ """+ The HTTP URL for this label.+ """+ url: URI!+}++"""+The connection type for Label.+"""+type LabelConnection {+ """+ A list of edges.+ """+ edges: [LabelEdge]++ """+ A list of nodes.+ """+ nodes: [Label]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type LabelEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Label+}++"""+Ways in which lists of labels can be ordered upon return.+"""+input LabelOrder @docsCategory(name: "issues") {+ """+ The direction in which to order labels by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order labels by.+ """+ field: LabelOrderField!+}++"""+Properties by which label connections can be ordered.+"""+enum LabelOrderField @docsCategory(name: "issues") {+ """+ Order labels by creation time+ """+ CREATED_AT++ """+ Order labels by issue count+ """+ ISSUE_COUNT++ """+ Order labels by name+ """+ NAME+}++"""+Specifies a Label to set on an issue, with optional metadata such as a rationale.+"""+input LabelUpdateInput @docsCategory(name: "issues") {+ """+ The confidence level the agent had when selecting this value.+ """+ confidence: IssueEventConfidenceLevel++ """+ The ID of the Label.+ """+ labelId: ID! @possibleTypes(concreteTypes: ["Label"])++ """+ Optional rationale describing why this value was selected. Max 280 characters.+ """+ rationale: String++ """+ If true, the value is stored as a pending suggestion for human review rather than being applied directly.+ """+ suggest: Boolean+}++"""+An object that can have labels assigned to it.+"""+interface Labelable @docsCategory(name: "issues") {+ """+ A list of labels associated with the object.+ """+ labels(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for labels returned from the connection.+ """+ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}+ ): LabelConnection++ """+ Indicates if the viewer can edit labels for this object.+ """+ viewerCanLabel: Boolean!+}++"""+Represents a 'labeled' event on a given issue or pull request.+"""+type LabeledEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the LabeledEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ Identifies the label associated with the 'labeled' event.+ """+ label: Label!++ """+ Identifies the `Labelable` associated with the event.+ """+ labelable: Labelable!+}++"""+Represents a given language found in repositories.+"""+type Language implements Node @docsCategory(name: "repos") {+ """+ The color defined for the current language.+ """+ color: String++ """+ The Node ID of the Language object+ """+ id: ID!++ """+ The name of the current language.+ """+ name: String!+}++"""+A list of languages associated with the parent.+"""+type LanguageConnection {+ """+ A list of edges.+ """+ edges: [LanguageEdge]++ """+ A list of nodes.+ """+ nodes: [Language]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ The total size in bytes of files written in that language.+ """+ totalSize: Int!+}++"""+Represents the language of a repository.+"""+type LanguageEdge {+ cursor: String!+ node: Language!++ """+ The number of bytes of code written in the language.+ """+ size: Int!+}++"""+Ordering options for language connections.+"""+input LanguageOrder @docsCategory(name: "repos") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order languages by.+ """+ field: LanguageOrderField!+}++"""+Properties by which language connections can be ordered.+"""+enum LanguageOrderField @docsCategory(name: "repos") {+ """+ Order languages by the size of all files containing the language+ """+ SIZE+}++"""+Reason why a semantic or hybrid issue search fell back to lexical search+"""+enum LexicalFallbackReason @docsCategory(name: "search") {+ """+ Query targets non-issue types (e.g., pull requests)+ """+ NON_ISSUE_TARGET++ """+ Scoped query resolved to zero accessible repositories+ """+ NO_ACCESSIBLE_REPOS++ """+ Query has only qualifiers and no free text terms+ """+ NO_TEXT_TERMS++ """+ Query uses an in: qualifier targeting non-semantic fields+ """+ ONLY_NON_SEMANTIC_FIELDS_REQUESTED++ """+ Query contains OR operators (nested boolean qualifiers)+ """+ OR_BOOLEAN_NOT_SUPPORTED++ """+ Query contains quoted text requiring exact matches+ """+ QUOTED_TEXT++ """+ Embedding generation failed or timed out+ """+ SERVER_ERROR+}++"""+A repository's open source license+"""+type License implements Node @docsCategory(name: "licenses") {+ """+ The full text of the license+ """+ body: String!++ """+ The conditions set by the license+ """+ conditions: [LicenseRule]!++ """+ A human-readable description of the license+ """+ description: String++ """+ Whether the license should be featured+ """+ featured: Boolean!++ """+ Whether the license should be displayed in license pickers+ """+ hidden: Boolean!++ """+ The Node ID of the License object+ """+ id: ID!++ """+ Instructions on how to implement the license+ """+ implementation: String++ """+ The lowercased SPDX ID of the license+ """+ key: String!++ """+ The limitations set by the license+ """+ limitations: [LicenseRule]!++ """+ The license full name specified by <https://spdx.org/licenses>+ """+ name: String!++ """+ Customary short name if applicable (e.g, GPLv3)+ """+ nickname: String++ """+ The permissions set by the license+ """+ permissions: [LicenseRule]!++ """+ Whether the license is a pseudo-license placeholder (e.g., other, no-license)+ """+ pseudoLicense: Boolean!++ """+ Short identifier specified by <https://spdx.org/licenses>+ """+ spdxId: String++ """+ URL to the license on <https://choosealicense.com>+ """+ url: URI+}++"""+Describes a License's conditions, permissions, and limitations+"""+type LicenseRule @docsCategory(name: "licenses") {+ """+ A description of the rule+ """+ description: String!++ """+ The machine-readable rule key+ """+ key: String!++ """+ The human-readable rule label+ """+ label: String!+}++"""+Autogenerated input type of LinkProjectV2ToRepository+"""+input LinkProjectV2ToRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the project to link to the repository.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The ID of the repository to link to the project.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of LinkProjectV2ToRepository.+"""+type LinkProjectV2ToRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository the project is linked to.+ """+ repository: Repository+}++"""+Autogenerated input type of LinkProjectV2ToTeam+"""+input LinkProjectV2ToTeamInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the project to link to the team.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The ID of the team to link to the project.+ """+ teamId: ID! @possibleTypes(concreteTypes: ["Team"])+}++"""+Autogenerated return type of LinkProjectV2ToTeam.+"""+type LinkProjectV2ToTeamPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The team the project is linked to+ """+ team: Team+}++"""+Autogenerated input type of LinkRepositoryToProject+"""+input LinkRepositoryToProjectInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Project to link to a Repository+ """+ projectId: ID! @possibleTypes(concreteTypes: ["Project"])++ """+ The ID of the Repository to link to a Project.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of LinkRepositoryToProject.+"""+type LinkRepositoryToProjectPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The linked Project.+ """+ project: Project++ """+ The linked Repository.+ """+ repository: Repository+}++"""+A branch linked to an issue.+"""+type LinkedBranch implements Node @docsCategory(name: "issues") {+ """+ The Node ID of the LinkedBranch object+ """+ id: ID!++ """+ The branch's ref.+ """+ ref: Ref+}++"""+A list of branches linked to an issue.+"""+type LinkedBranchConnection {+ """+ A list of edges.+ """+ edges: [LinkedBranchEdge]++ """+ A list of nodes.+ """+ nodes: [LinkedBranch]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type LinkedBranchEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: LinkedBranch+}++"""+Autogenerated input type of LockLockable+"""+input LockLockableInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A reason for why the item will be locked.+ """+ lockReason: LockReason++ """+ ID of the item to be locked.+ """+ lockableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Lockable")+}++"""+Autogenerated return type of LockLockable.+"""+type LockLockablePayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item that was locked.+ """+ lockedRecord: Lockable+}++"""+The possible reasons that an issue or pull request was locked.+"""+enum LockReason @docsCategory(name: "issues") {+ """+ The issue or pull request was locked because the conversation was off-topic.+ """+ OFF_TOPIC++ """+ The issue or pull request was locked because the conversation was resolved.+ """+ RESOLVED++ """+ The issue or pull request was locked because the conversation was spam.+ """+ SPAM++ """+ The issue or pull request was locked because the conversation was too heated.+ """+ TOO_HEATED+}++"""+An object that can be locked.+"""+interface Lockable @docsCategory(name: "issues") {+ """+ Reason that the conversation was locked.+ """+ activeLockReason: LockReason++ """+ `true` if the object is locked+ """+ locked: Boolean!+}++"""+Represents a 'locked' event on a given issue or pull request.+"""+type LockedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the LockedEvent object+ """+ id: ID!++ """+ Reason that the conversation was locked (optional).+ """+ lockReason: LockReason++ """+ Object that was locked.+ """+ lockable: Lockable!+}++"""+A placeholder user for attribution of imported data on GitHub.+"""+type Mannequin implements Actor & Node & UniformResourceLocatable @docsCategory(name: "migrations") {+ """+ A URL pointing to the GitHub App's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ The user that has claimed the data attributed to this mannequin.+ """+ claimant: User++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The mannequin's email on the source instance.+ """+ email: String++ """+ The Node ID of the Mannequin object+ """+ id: ID!++ """+ The username of the actor.+ """+ login: String!++ """+ The display name of the imported mannequin.+ """+ name: String++ """+ The HTML path to this resource.+ """+ resourcePath: URI!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The URL to this resource.+ """+ url: URI!+}++"""+A list of mannequins.+"""+type MannequinConnection {+ """+ A list of edges.+ """+ edges: [MannequinEdge]++ """+ A list of nodes.+ """+ nodes: [Mannequin]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a mannequin.+"""+type MannequinEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Mannequin+}++"""+Ordering options for mannequins.+"""+input MannequinOrder @docsCategory(name: "migrations") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order mannequins by.+ """+ field: MannequinOrderField!+}++"""+Properties by which mannequins can be ordered.+"""+enum MannequinOrderField @docsCategory(name: "migrations") {+ """+ Order mannequins why when they were created.+ """+ CREATED_AT++ """+ Order mannequins alphabetically by their source login.+ """+ LOGIN+}++"""+Autogenerated input type of MarkDiscussionCommentAsAnswer+"""+input MarkDiscussionCommentAsAnswerInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion comment to mark as an answer.+ """+ id: ID! @possibleTypes(concreteTypes: ["DiscussionComment"])+}++"""+Autogenerated return type of MarkDiscussionCommentAsAnswer.+"""+type MarkDiscussionCommentAsAnswerPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The discussion that includes the chosen comment.+ """+ discussion: Discussion+}++"""+Autogenerated input type of MarkFileAsViewed+"""+input MarkFileAsViewedInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The path of the file to mark as viewed+ """+ path: String!++ """+ The Node ID of the pull request.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of MarkFileAsViewed.+"""+type MarkFileAsViewedPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated pull request.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of MarkProjectV2AsTemplate+"""+input MarkProjectV2AsTemplateInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Project to mark as a template.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of MarkProjectV2AsTemplate.+"""+type MarkProjectV2AsTemplatePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The project.+ """+ projectV2: ProjectV2+}++"""+Autogenerated input type of MarkPullRequestReadyForReview+"""+input MarkPullRequestReadyForReviewInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the pull request to be marked as ready for review.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of MarkPullRequestReadyForReview.+"""+type MarkPullRequestReadyForReviewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that is ready for review.+ """+ pullRequest: PullRequest+}++"""+Represents a 'marked_as_duplicate' event on a given issue or pull request.+"""+type MarkedAsDuplicateEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ The authoritative issue or pull request which has been duplicated by another.+ """+ canonical: IssueOrPullRequest++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The issue or pull request which has been marked as a duplicate of another.+ """+ duplicate: IssueOrPullRequest++ """+ The Node ID of the MarkedAsDuplicateEvent object+ """+ id: ID!++ """+ Canonical and duplicate belong to different repositories.+ """+ isCrossRepository: Boolean!+}++"""+A public description of a Marketplace category.+"""+type MarketplaceCategory implements Node @docsCategory(name: "apps") {+ """+ The category's description.+ """+ description: String++ """+ The technical description of how apps listed in this category work with GitHub.+ """+ howItWorks: String++ """+ The Node ID of the MarketplaceCategory object+ """+ id: ID!++ """+ The category's name.+ """+ name: String!++ """+ How many Marketplace listings have this as their primary category.+ """+ primaryListingCount: Int!++ """+ The HTTP path for this Marketplace category.+ """+ resourcePath: URI!++ """+ How many Marketplace listings have this as their secondary category.+ """+ secondaryListingCount: Int!++ """+ The short name of the category used in its URL.+ """+ slug: String!++ """+ The HTTP URL for this Marketplace category.+ """+ url: URI!+}++"""+A listing in the GitHub integration marketplace.+"""+type MarketplaceListing implements Node @docsCategory(name: "apps") {+ """+ The GitHub App this listing represents.+ """+ app: App++ """+ URL to the listing owner's company site.+ """+ companyUrl: URI++ """+ The HTTP path for configuring access to the listing's integration or OAuth app+ """+ configurationResourcePath: URI!++ """+ The HTTP URL for configuring access to the listing's integration or OAuth app+ """+ configurationUrl: URI!++ """+ URL to the listing's documentation.+ """+ documentationUrl: URI++ """+ The listing's detailed description.+ """+ extendedDescription: String++ """+ The listing's detailed description rendered to HTML.+ """+ extendedDescriptionHTML: HTML!++ """+ The listing's introductory description.+ """+ fullDescription: String!++ """+ The listing's introductory description rendered to HTML.+ """+ fullDescriptionHTML: HTML!++ """+ Does this listing have any plans with a free trial?+ """+ hasPublishedFreeTrialPlans: Boolean!++ """+ Does this listing have a terms of service link?+ """+ hasTermsOfService: Boolean!++ """+ Whether the creator of the app is a verified org+ """+ hasVerifiedOwner: Boolean!++ """+ A technical description of how this app works with GitHub.+ """+ howItWorks: String++ """+ The listing's technical description rendered to HTML.+ """+ howItWorksHTML: HTML!++ """+ The Node ID of the MarketplaceListing object+ """+ id: ID!++ """+ URL to install the product to the viewer's account or organization.+ """+ installationUrl: URI++ """+ Whether this listing's app has been installed for the current viewer+ """+ installedForViewer: Boolean!++ """+ Whether this listing has been removed from the Marketplace.+ """+ isArchived: Boolean!++ """+ Whether this listing is still an editable draft that has not been submitted+ for review and is not publicly visible in the Marketplace.+ """+ isDraft: Boolean!++ """+ Whether the product this listing represents is available as part of a paid plan.+ """+ isPaid: Boolean!++ """+ Whether this listing has been approved for display in the Marketplace.+ """+ isPublic: Boolean!++ """+ Whether this listing has been rejected by GitHub for display in the Marketplace.+ """+ isRejected: Boolean!++ """+ Whether this listing has been approved for unverified display in the Marketplace.+ """+ isUnverified: Boolean!++ """+ Whether this draft listing has been submitted for review for approval to be unverified in the Marketplace.+ """+ isUnverifiedPending: Boolean!++ """+ Whether this draft listing has been submitted for review from GitHub for approval to be verified in the Marketplace.+ """+ isVerificationPendingFromDraft: Boolean!++ """+ Whether this unverified listing has been submitted for review from GitHub for approval to be verified in the Marketplace.+ """+ isVerificationPendingFromUnverified: Boolean!++ """+ Whether this listing has been approved for verified display in the Marketplace.+ """+ isVerified: Boolean!++ """+ The hex color code, without the leading '#', for the logo background.+ """+ logoBackgroundColor: String!++ """+ URL for the listing's logo image.+ """+ logoUrl(+ """+ The size in pixels of the resulting square image.+ """+ size: Int = 400+ ): URI++ """+ The listing's full name.+ """+ name: String!++ """+ The listing's very short description without a trailing period or ampersands.+ """+ normalizedShortDescription: String!++ """+ URL to the listing's detailed pricing.+ """+ pricingUrl: URI++ """+ The category that best describes the listing.+ """+ primaryCategory: MarketplaceCategory!++ """+ URL to the listing's privacy policy, may return an empty string for listings that do not require a privacy policy URL.+ """+ privacyPolicyUrl: URI!++ """+ The HTTP path for the Marketplace listing.+ """+ resourcePath: URI!++ """+ The URLs for the listing's screenshots.+ """+ screenshotUrls: [String]!++ """+ An alternate category that describes the listing.+ """+ secondaryCategory: MarketplaceCategory++ """+ The listing's very short description.+ """+ shortDescription: String!++ """+ The short name of the listing used in its URL.+ """+ slug: String!++ """+ URL to the listing's status page.+ """+ statusUrl: URI++ """+ An email address for support for this listing's app.+ """+ supportEmail: String++ """+ Either a URL or an email address for support for this listing's app, may+ return an empty string for listings that do not require a support URL.+ """+ supportUrl: URI!++ """+ URL to the listing's terms of service.+ """+ termsOfServiceUrl: URI++ """+ The HTTP URL for the Marketplace listing.+ """+ url: URI!++ """+ Can the current viewer add plans for this Marketplace listing.+ """+ viewerCanAddPlans: Boolean!++ """+ Can the current viewer approve this Marketplace listing.+ """+ viewerCanApprove: Boolean!++ """+ Can the current viewer delist this Marketplace listing.+ """+ viewerCanDelist: Boolean!++ """+ Can the current viewer edit this Marketplace listing.+ """+ viewerCanEdit: Boolean!++ """+ Can the current viewer edit the primary and secondary category of this+ Marketplace listing.+ """+ viewerCanEditCategories: Boolean!++ """+ Can the current viewer edit the plans for this Marketplace listing.+ """+ viewerCanEditPlans: Boolean!++ """+ Can the current viewer return this Marketplace listing to draft state+ so it becomes editable again.+ """+ viewerCanRedraft: Boolean!++ """+ Can the current viewer reject this Marketplace listing by returning it to+ an editable draft state or rejecting it entirely.+ """+ viewerCanReject: Boolean!++ """+ Can the current viewer request this listing be reviewed for display in+ the Marketplace as verified.+ """+ viewerCanRequestApproval: Boolean!++ """+ Indicates whether the current user has an active subscription to this Marketplace listing.+ """+ viewerHasPurchased: Boolean!++ """+ Indicates if the current user has purchased a subscription to this Marketplace listing+ for all of the organizations the user owns.+ """+ viewerHasPurchasedForAllOrganizations: Boolean!++ """+ Does the current viewer role allow them to administer this Marketplace listing.+ """+ viewerIsListingAdmin: Boolean!+}++"""+Look up Marketplace Listings+"""+type MarketplaceListingConnection {+ """+ A list of edges.+ """+ edges: [MarketplaceListingEdge]++ """+ A list of nodes.+ """+ nodes: [MarketplaceListing]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type MarketplaceListingEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: MarketplaceListing+}++"""+Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.+"""+type MaxFilePathLengthParameters @docsCategory(name: "repos") {+ """+ The maximum amount of characters allowed in file paths.+ """+ maxFilePathLength: Int!+}++"""+Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.+"""+input MaxFilePathLengthParametersInput @docsCategory(name: "repos") {+ """+ The maximum amount of characters allowed in file paths.+ """+ maxFilePathLength: Int!+}++"""+Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.+"""+type MaxFileSizeParameters @docsCategory(name: "repos") {+ """+ The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).+ """+ maxFileSize: Int!+}++"""+Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.+"""+input MaxFileSizeParametersInput @docsCategory(name: "repos") {+ """+ The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).+ """+ maxFileSize: Int!+}++"""+Represents a member feature request notification+"""+type MemberFeatureRequestNotification implements Node @docsCategory(name: "orgs") {+ """+ Represents member feature request body containing entity name and the number of feature requests+ """+ body: String!++ """+ The Node ID of the MemberFeatureRequestNotification object+ """+ id: ID!++ """+ Represents member feature request notification title+ """+ title: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Entities that have members who can set status messages.+"""+interface MemberStatusable @docsCategory(name: "users") {+ """+ Get the status messages members of this entity have set that are either public or visible only to the organization.+ """+ memberStatuses(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for user statuses returned from the connection.+ """+ orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC}+ ): UserStatusConnection!+}++"""+Audit log entry for a members_can_delete_repos.clear event.+"""+type MembersCanDeleteReposClearAuditEntry implements AuditEntry &+ EnterpriseAuditEntryData &+ Node &+ OrganizationAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the MembersCanDeleteReposClearAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a members_can_delete_repos.disable event.+"""+type MembersCanDeleteReposDisableAuditEntry implements AuditEntry &+ EnterpriseAuditEntryData &+ Node &+ OrganizationAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the MembersCanDeleteReposDisableAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a members_can_delete_repos.enable event.+"""+type MembersCanDeleteReposEnableAuditEntry implements AuditEntry &+ EnterpriseAuditEntryData &+ Node &+ OrganizationAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the MembersCanDeleteReposEnableAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Represents a 'mentioned' event on a given issue or pull request.+"""+type MentionedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the MentionedEvent object+ """+ id: ID!+}++"""+Autogenerated input type of MergeBranch+"""+input MergeBranchInput {+ """+ The email address to associate with this commit.+ """+ authorEmail: String++ """+ The name of the base branch that the provided head will be merged into.+ """+ base: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Message to use for the merge commit. If omitted, a default will be used.+ """+ commitMessage: String++ """+ The head to merge into the base branch. This can be a branch name or a commit GitObjectID.+ """+ head: String!++ """+ The Node ID of the Repository containing the base branch that will be modified.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of MergeBranch.+"""+type MergeBranchPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The resulting merge Commit.+ """+ mergeCommit: Commit+}++"""+The possible default commit messages for merges.+"""+enum MergeCommitMessage @docsCategory(name: "repos") {+ """+ Default to a blank commit message.+ """+ BLANK++ """+ Default to the pull request's body.+ """+ PR_BODY++ """+ Default to the pull request's title.+ """+ PR_TITLE+}++"""+The possible default commit titles for merges.+"""+enum MergeCommitTitle @docsCategory(name: "repos") {+ """+ Default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).+ """+ MERGE_MESSAGE++ """+ Default to the pull request's title.+ """+ PR_TITLE+}++"""+Autogenerated input type of MergePullRequest+"""+input MergePullRequestInput {+ """+ The email address to associate with this merge.+ """+ authorEmail: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Commit body to use for the merge commit; if omitted, a default message will be used+ """+ commitBody: String++ """+ Commit headline to use for the merge commit; if omitted, a default message will be used.+ """+ commitHeadline: String++ """+ OID that the pull request head ref must match to allow merge; if omitted, no check is performed.+ """+ expectedHeadOid: GitObjectID++ """+ The merge method to use. If omitted, defaults to 'MERGE'+ """+ mergeMethod: PullRequestMergeMethod = MERGE++ """+ ID of the pull request to be merged.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of MergePullRequest.+"""+type MergePullRequestPayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that was merged.+ """+ pullRequest: PullRequest+}++"""+The queue of pull request entries to be merged into a protected branch in a repository.+"""+type MergeQueue implements Node @docsCategory(name: "pulls") {+ """+ The configuration for this merge queue+ """+ configuration: MergeQueueConfiguration++ """+ The entries in the queue+ """+ entries(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): MergeQueueEntryConnection++ """+ The Node ID of the MergeQueue object+ """+ id: ID!++ """+ The estimated time in seconds until a newly added entry would be merged+ """+ nextEntryEstimatedTimeToMerge: Int++ """+ The repository this merge queue belongs to+ """+ repository: Repository++ """+ The HTTP path for this merge queue+ """+ resourcePath: URI!++ """+ The HTTP URL for this merge queue+ """+ url: URI!+}++"""+Configuration for a MergeQueue+"""+type MergeQueueConfiguration @docsCategory(name: "pulls") {+ """+ The amount of time in minutes to wait for a check response before considering it a failure.+ """+ checkResponseTimeout: Int++ """+ The maximum number of entries to build at once.+ """+ maximumEntriesToBuild: Int++ """+ The maximum number of entries to merge at once.+ """+ maximumEntriesToMerge: Int++ """+ The merge method to use for this queue.+ """+ mergeMethod: PullRequestMergeMethod++ """+ The strategy to use when merging entries.+ """+ mergingStrategy: MergeQueueMergingStrategy++ """+ The minimum number of entries required to merge at once.+ """+ minimumEntriesToMerge: Int++ """+ The amount of time in minutes to wait before ignoring the minumum number of+ entries in the queue requirement and merging a collection of entries+ """+ minimumEntriesToMergeWaitTime: Int+}++"""+Entries in a MergeQueue+"""+type MergeQueueEntry implements Node @docsCategory(name: "pulls") {+ """+ The base commit for this entry+ """+ baseCommit: Commit++ """+ The date and time this entry was added to the merge queue+ """+ enqueuedAt: DateTime!++ """+ The actor that enqueued this entry+ """+ enqueuer: Actor!++ """+ The estimated time in seconds until this entry will be merged+ """+ estimatedTimeToMerge: Int++ """+ The head commit for this entry+ """+ headCommit: Commit++ """+ The Node ID of the MergeQueueEntry object+ """+ id: ID!++ """+ Whether this pull request should jump the queue+ """+ jump: Boolean!++ """+ The merge queue that this entry belongs to+ """+ mergeQueue: MergeQueue++ """+ The position of this entry in the queue+ """+ position: Int!++ """+ The pull request that will be added to a merge group+ """+ pullRequest: PullRequest++ """+ Does this pull request need to be deployed on its own+ """+ solo: Boolean!++ """+ The state of this entry in the queue+ """+ state: MergeQueueEntryState!+}++"""+The connection type for MergeQueueEntry.+"""+type MergeQueueEntryConnection {+ """+ A list of edges.+ """+ edges: [MergeQueueEntryEdge]++ """+ A list of nodes.+ """+ nodes: [MergeQueueEntry]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type MergeQueueEntryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: MergeQueueEntry+}++"""+The possible states for a merge queue entry.+"""+enum MergeQueueEntryState @docsCategory(name: "pulls") {+ """+ The entry is currently waiting for checks to pass.+ """+ AWAITING_CHECKS++ """+ The entry is currently locked.+ """+ LOCKED++ """+ The entry is currently mergeable.+ """+ MERGEABLE++ """+ The entry is currently queued.+ """+ QUEUED++ """+ The entry is currently unmergeable.+ """+ UNMERGEABLE+}++"""+When set to ALLGREEN, the merge commit created by merge queue for each PR in the+group must pass all required checks to merge. When set to HEADGREEN, only the+commit at the head of the merge group, i.e. the commit containing changes from+all of the PRs in the group, must pass its required checks to merge.+"""+enum MergeQueueGroupingStrategy @docsCategory(name: "pulls") {+ """+ The merge commit created by merge queue for each PR in the group must pass all required checks to merge+ """+ ALLGREEN++ """+ Only the commit at the head of the merge group must pass its required checks to merge.+ """+ HEADGREEN+}++"""+Method to use when merging changes from queued pull requests.+"""+enum MergeQueueMergeMethod @docsCategory(name: "pulls") {+ """+ Merge commit+ """+ MERGE++ """+ Rebase and merge+ """+ REBASE++ """+ Squash and merge+ """+ SQUASH+}++"""+The possible merging strategies for a merge queue.+"""+enum MergeQueueMergingStrategy @docsCategory(name: "pulls") {+ """+ Entries only allowed to merge if they are passing.+ """+ ALLGREEN++ """+ Failing Entires are allowed to merge if they are with a passing entry.+ """+ HEADGREEN+}++"""+Merges must be performed via a merge queue.+"""+type MergeQueueParameters @docsCategory(name: "pulls") {+ """+ Maximum time for a required status check to report a conclusion. After this+ much time has elapsed, checks that have not reported a conclusion will be+ assumed to have failed+ """+ checkResponseTimeoutMinutes: Int!++ """+ When set to ALLGREEN, the merge commit created by merge queue for each PR in+ the group must pass all required checks to merge. When set to HEADGREEN, only+ the commit at the head of the merge group, i.e. the commit containing changes+ from all of the PRs in the group, must pass its required checks to merge.+ """+ groupingStrategy: MergeQueueGroupingStrategy!++ """+ Limit the number of queued pull requests requesting checks and workflow runs at the same time.+ """+ maxEntriesToBuild: Int!++ """+ The maximum number of PRs that will be merged together in a group.+ """+ maxEntriesToMerge: Int!++ """+ Method to use when merging changes from queued pull requests.+ """+ mergeMethod: MergeQueueMergeMethod!++ """+ The minimum number of PRs that will be merged together in a group.+ """+ minEntriesToMerge: Int!++ """+ The time merge queue should wait after the first PR is added to the queue for+ the minimum group size to be met. After this time has elapsed, the minimum+ group size will be ignored and a smaller group will be merged.+ """+ minEntriesToMergeWaitMinutes: Int!+}++"""+Merges must be performed via a merge queue.+"""+input MergeQueueParametersInput @docsCategory(name: "pulls") {+ """+ Maximum time for a required status check to report a conclusion. After this+ much time has elapsed, checks that have not reported a conclusion will be+ assumed to have failed+ """+ checkResponseTimeoutMinutes: Int!++ """+ When set to ALLGREEN, the merge commit created by merge queue for each PR in+ the group must pass all required checks to merge. When set to HEADGREEN, only+ the commit at the head of the merge group, i.e. the commit containing changes+ from all of the PRs in the group, must pass its required checks to merge.+ """+ groupingStrategy: MergeQueueGroupingStrategy!++ """+ Limit the number of queued pull requests requesting checks and workflow runs at the same time.+ """+ maxEntriesToBuild: Int!++ """+ The maximum number of PRs that will be merged together in a group.+ """+ maxEntriesToMerge: Int!++ """+ Method to use when merging changes from queued pull requests.+ """+ mergeMethod: MergeQueueMergeMethod!++ """+ The minimum number of PRs that will be merged together in a group.+ """+ minEntriesToMerge: Int!++ """+ The time merge queue should wait after the first PR is added to the queue for+ the minimum group size to be met. After this time has elapsed, the minimum+ group size will be ignored and a smaller group will be merged.+ """+ minEntriesToMergeWaitMinutes: Int!+}++"""+Detailed status information about a pull request merge.+"""+enum MergeStateStatus @docsCategory(name: "pulls") {+ """+ The head ref is out of date.+ """+ BEHIND++ """+ The merge is blocked.+ """+ BLOCKED++ """+ Mergeable and passing commit status.+ """+ CLEAN++ """+ The merge commit cannot be cleanly created.+ """+ DIRTY++ """+ The merge is blocked due to the pull request being a draft.+ """+ DRAFT+ @deprecated(+ reason: "DRAFT state will be removed from this enum and `isDraft` should be used instead Use PullRequest.isDraft instead. Removal on 2021-01-01 UTC."+ )++ """+ Mergeable with passing commit status and pre-receive hooks.+ """+ HAS_HOOKS++ """+ The state cannot currently be determined.+ """+ UNKNOWN++ """+ Mergeable with non-passing commit status.+ """+ UNSTABLE+}++"""+Whether or not a PullRequest can be merged.+"""+enum MergeableState @docsCategory(name: "pulls") {+ """+ The pull request cannot be merged due to merge conflicts.+ """+ CONFLICTING++ """+ The pull request can be merged.+ """+ MERGEABLE++ """+ The mergeability of the pull request is still being calculated.+ """+ UNKNOWN+}++"""+Represents a 'merged' event on a given pull request.+"""+type MergedEvent implements Node & UniformResourceLocatable @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the commit associated with the `merge` event.+ """+ commit: Commit++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the MergedEvent object+ """+ id: ID!++ """+ Identifies the Ref associated with the `merge` event.+ """+ mergeRef: Ref++ """+ Identifies the name of the Ref associated with the `merge` event.+ """+ mergeRefName: String!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ The HTTP path for this merged event.+ """+ resourcePath: URI!++ """+ The HTTP URL for this merged event.+ """+ url: URI!+}++"""+Represents a GitHub Enterprise Importer (GEI) migration.+"""+interface Migration @docsCategory(name: "migrations") {+ """+ The migration flag to continue on error.+ """+ continueOnError: Boolean!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: String++ """+ The reason the migration failed.+ """+ failureReason: String++ """+ The Node ID of the Migration object+ """+ id: ID!++ """+ The URL for the migration log (expires 1 day after migration completes).+ """+ migrationLogUrl: URI++ """+ The migration source.+ """+ migrationSource: MigrationSource!++ """+ The target repository name.+ """+ repositoryName: String!++ """+ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`.+ """+ sourceUrl: URI!++ """+ The migration state.+ """+ state: MigrationState!++ """+ The number of warnings encountered for this migration. To review the warnings,+ check the [Migration Log](https://docs.github.com/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/accessing-your-migration-logs-for-github-enterprise-importer).+ """+ warningsCount: Int!+}++"""+A GitHub Enterprise Importer (GEI) migration source.+"""+type MigrationSource implements Node @docsCategory(name: "migrations") {+ """+ The Node ID of the MigrationSource object+ """+ id: ID!++ """+ The migration source name.+ """+ name: String!++ """+ The migration source type.+ """+ type: MigrationSourceType!++ """+ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`.+ """+ url: URI!+}++"""+Represents the different GitHub Enterprise Importer (GEI) migration sources.+"""+enum MigrationSourceType @docsCategory(name: "migrations") {+ """+ An Azure DevOps migration source.+ """+ AZURE_DEVOPS++ """+ A Bitbucket Server migration source.+ """+ BITBUCKET_SERVER++ """+ A GitHub Migration API source.+ """+ GITHUB_ARCHIVE++ """+ A GitLab migration source.+ """+ GITLAB+}++"""+The GitHub Enterprise Importer (GEI) migration state.+"""+enum MigrationState @docsCategory(name: "migrations") {+ """+ The migration has failed.+ """+ FAILED++ """+ The migration has invalid credentials.+ """+ FAILED_VALIDATION++ """+ The migration is in progress.+ """+ IN_PROGRESS++ """+ The migration has not started.+ """+ NOT_STARTED++ """+ The migration needs to have its credentials validated.+ """+ PENDING_VALIDATION++ """+ The migration has been queued.+ """+ QUEUED++ """+ The migration has succeeded.+ """+ SUCCEEDED+}++"""+Represents a Milestone object on a given repository.+"""+type Milestone implements Closable & Node & UniformResourceLocatable @docsCategory(name: "issues") {+ """+ Indicates if the object is closed (definition of closed may depend on type)+ """+ closed: Boolean!++ """+ Identifies the date and time when the object was closed.+ """+ closedAt: DateTime++ """+ Identifies the number of closed issues associated with the milestone.+ """+ closedIssueCount: Int!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the actor who created the milestone.+ """+ creator: Actor++ """+ Identifies the description of the milestone.+ """+ description: String++ """+ The HTML rendered description of the milestone using GitHub Flavored Markdown.+ """+ descriptionHTML: String++ """+ Identifies the due date of the milestone.+ """+ dueOn: DateTime++ """+ The Node ID of the Milestone object+ """+ id: ID!++ """+ A list of issues associated with the milestone.+ """+ issues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filtering options for issues returned from the connection.+ """+ filterBy: IssueFilters++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issues returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the issues by.+ """+ states: [IssueState!]+ ): IssueConnection!++ """+ Identifies the number of the milestone.+ """+ number: Int!++ """+ Identifies the number of open issues associated with the milestone.+ """+ openIssueCount: Int!++ """+ Identifies the percentage complete for the milestone+ """+ progressPercentage: Float!++ """+ A list of pull requests associated with the milestone.+ """+ pullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ The base ref name to filter the pull requests by.+ """+ baseRefName: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ The head ref name to filter the pull requests by.+ """+ headRefName: String++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the pull requests by.+ """+ states: [PullRequestState!]+ ): PullRequestConnection!++ """+ The repository associated with this milestone.+ """+ repository: Repository!++ """+ The HTTP path for this milestone+ """+ resourcePath: URI!++ """+ Identifies the state of the milestone.+ """+ state: MilestoneState!++ """+ Identifies the title of the milestone.+ """+ title: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this milestone+ """+ url: URI!++ """+ Indicates if the object can be closed by the viewer.+ """+ viewerCanClose: Boolean!++ """+ Indicates if the object can be reopened by the viewer.+ """+ viewerCanReopen: Boolean!+}++"""+The connection type for Milestone.+"""+type MilestoneConnection {+ """+ A list of edges.+ """+ edges: [MilestoneEdge]++ """+ A list of nodes.+ """+ nodes: [Milestone]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type MilestoneEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Milestone+}++"""+Types that can be inside a Milestone.+"""+union MilestoneItem @docsCategory(name: "issues") = Issue | PullRequest++"""+Ordering options for milestone connections.+"""+input MilestoneOrder @docsCategory(name: "issues") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order milestones by.+ """+ field: MilestoneOrderField!+}++"""+Properties by which milestone connections can be ordered.+"""+enum MilestoneOrderField @docsCategory(name: "issues") {+ """+ Order milestones by when they were created.+ """+ CREATED_AT++ """+ Order milestones by when they are due.+ """+ DUE_DATE++ """+ Order milestones by their number.+ """+ NUMBER++ """+ Order milestones by when they were last updated.+ """+ UPDATED_AT+}++"""+The possible states of a milestone.+"""+enum MilestoneState @docsCategory(name: "issues") {+ """+ A milestone that has been closed.+ """+ CLOSED++ """+ A milestone that is still open.+ """+ OPEN+}++"""+Represents a 'milestoned' event on a given issue or pull request.+"""+type MilestonedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the MilestonedEvent object+ """+ id: ID!++ """+ Identifies the milestone title associated with the 'milestoned' event.+ """+ milestoneTitle: String!++ """+ Object referenced by event.+ """+ subject: MilestoneItem!+}++"""+Entities that can be minimized.+"""+interface Minimizable @docsCategory(name: "issues") {+ """+ Returns whether or not a comment has been minimized.+ """+ isMinimized: Boolean!++ """+ Returns why the comment was minimized. One of `abuse`, `off-topic`,+ `outdated`, `resolved`, `duplicate`, `spam`, and `low-quality`. Note that the+ case and formatting of these values differs from the inputs to the+ `MinimizeComment` mutation.+ """+ minimizedReason: String++ """+ Check if the current viewer can minimize this object.+ """+ viewerCanMinimize: Boolean!++ """+ Check if the current viewer can unminimize this object.+ """+ viewerCanUnminimize: Boolean!+}++"""+Autogenerated input type of MinimizeComment+"""+input MinimizeCommentInput {+ """+ The classification of comment+ """+ classifier: ReportedContentClassifiers!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the subject to modify.+ """+ subjectId: ID!+ @possibleTypes(+ concreteTypes: [+ "CommitComment"+ "DiscussionComment"+ "GistComment"+ "IssueComment"+ "PullRequestReview"+ "PullRequestReviewComment"+ ]+ abstractType: "Minimizable"+ )+}++"""+Autogenerated return type of MinimizeComment.+"""+type MinimizeCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The comment that was minimized.+ """+ minimizedComment: Minimizable+}++"""+Autogenerated input type of MoveProjectCard+"""+input MoveProjectCardInput {+ """+ Place the new card after the card with this id. Pass null to place it at the top.+ """+ afterCardId: ID @possibleTypes(concreteTypes: ["ProjectCard"])++ """+ The id of the card to move.+ """+ cardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the column to move it into.+ """+ columnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"])+}++"""+Autogenerated return type of MoveProjectCard.+"""+type MoveProjectCardPayload {+ """+ The new edge of the moved card.+ """+ cardEdge: ProjectCardEdge++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of MoveProjectColumn+"""+input MoveProjectColumnInput {+ """+ Place the new column after the column with this id. Pass null to place it at the front.+ """+ afterColumnId: ID @possibleTypes(concreteTypes: ["ProjectColumn"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the column to move.+ """+ columnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"])+}++"""+Autogenerated return type of MoveProjectColumn.+"""+type MoveProjectColumnPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new edge of the moved column.+ """+ columnEdge: ProjectColumnEdge+}++"""+Represents a 'moved_columns_in_project' event on a given issue or pull request.+"""+type MovedColumnsInProjectEvent implements Node @docsCategory(name: "projects-classic") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The Node ID of the MovedColumnsInProjectEvent object+ """+ id: ID!++ """+ Column name the issue or pull request was moved from.+ """+ previousProjectColumnName: String!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Project referenced by event.+ """+ project: Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Project card referenced by this project event.+ """+ projectCard: ProjectCard+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Column name the issue or pull request was moved to.+ """+ projectColumnName: String!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+The root query for implementing GraphQL mutations.+"""+type Mutation @docsCategory(name: "meta") {+ """+ Clear all of a customer's queued migrations+ """+ abortQueuedMigrations(+ """+ Parameters for AbortQueuedMigrations+ """+ input: AbortQueuedMigrationsInput!+ ): AbortQueuedMigrationsPayload @docsCategory(name: "migrations")++ """+ Abort a repository migration queued or in progress.+ """+ abortRepositoryMigration(+ """+ Parameters for AbortRepositoryMigration+ """+ input: AbortRepositoryMigrationInput!+ ): AbortRepositoryMigrationPayload @docsCategory(name: "migrations")++ """+ Accepts a pending invitation for a user to become an administrator of an enterprise.+ """+ acceptEnterpriseAdministratorInvitation(+ """+ Parameters for AcceptEnterpriseAdministratorInvitation+ """+ input: AcceptEnterpriseAdministratorInvitationInput!+ ): AcceptEnterpriseAdministratorInvitationPayload @docsCategory(name: "enterprise-admin")++ """+ Accepts a pending invitation for a user to become an unaffiliated member of an enterprise.+ """+ acceptEnterpriseMemberInvitation(+ """+ Parameters for AcceptEnterpriseMemberInvitation+ """+ input: AcceptEnterpriseMemberInvitationInput!+ ): AcceptEnterpriseMemberInvitationPayload @docsCategory(name: "enterprise-admin")++ """+ Applies a suggested topic to the repository.+ """+ acceptTopicSuggestion(+ """+ Parameters for AcceptTopicSuggestion+ """+ input: AcceptTopicSuggestionInput!+ ): AcceptTopicSuggestionPayload @docsCategory(name: "repos")++ """+ Access user namespace repository for a temporary duration.+ """+ accessUserNamespaceRepository(+ """+ Parameters for AccessUserNamespaceRepository+ """+ input: AccessUserNamespaceRepositoryInput!+ ): AccessUserNamespaceRepositoryPayload @docsCategory(name: "enterprise-admin")++ """+ Adds assignees to an assignable object.+ """+ addAssigneesToAssignable(+ """+ Parameters for AddAssigneesToAssignable+ """+ input: AddAssigneesToAssignableInput!+ ): AddAssigneesToAssignablePayload @docsCategory(name: "issues")++ """+ Adds a 'blocked by' relationship to an issue.+ """+ addBlockedBy(+ """+ Parameters for AddBlockedBy+ """+ input: AddBlockedByInput!+ ): AddBlockedByPayload @docsCategory(name: "issues")++ """+ Adds one or more pull requests as manually linked closing references on an+ issue. The target must be an issue, not a pull request.+ """+ addCloseIssueReferences(+ """+ Parameters for AddCloseIssueReferences+ """+ input: AddCloseIssueReferencesInput!+ ): AddCloseIssueReferencesPayload @docsCategory(name: "issues")++ """+ Adds a comment to an Issue or Pull Request.+ """+ addComment(+ """+ Parameters for AddComment+ """+ input: AddCommentInput!+ ): AddCommentPayload @docsCategory(name: "issues")++ """+ Adds a comment to a Discussion, possibly as a reply to another comment.+ """+ addDiscussionComment(+ """+ Parameters for AddDiscussionComment+ """+ input: AddDiscussionCommentInput!+ ): AddDiscussionCommentPayload @docsCategory(name: "discussions")++ """+ Vote for an option in a discussion poll.+ """+ addDiscussionPollVote(+ """+ Parameters for AddDiscussionPollVote+ """+ input: AddDiscussionPollVoteInput!+ ): AddDiscussionPollVotePayload @docsCategory(name: "discussions")++ """+ Adds enterprise members to an organization within the enterprise.+ """+ addEnterpriseOrganizationMember(+ """+ Parameters for AddEnterpriseOrganizationMember+ """+ input: AddEnterpriseOrganizationMemberInput!+ ): AddEnterpriseOrganizationMemberPayload @docsCategory(name: "enterprise-admin")++ """+ Adds a support entitlement to an enterprise member.+ """+ addEnterpriseSupportEntitlement(+ """+ Parameters for AddEnterpriseSupportEntitlement+ """+ input: AddEnterpriseSupportEntitlementInput!+ ): AddEnterpriseSupportEntitlementPayload @docsCategory(name: "enterprise-admin")++ """+ Adds labels to a labelable object.+ """+ addLabelsToLabelable(+ """+ Parameters for AddLabelsToLabelable+ """+ input: AddLabelsToLabelableInput!+ ): AddLabelsToLabelablePayload @docsCategory(name: "issues")++ """+ Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both.+ """+ addProjectCard(+ """+ Parameters for AddProjectCard+ """+ input: AddProjectCardInput!+ ): AddProjectCardPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Adds a column to a Project.+ """+ addProjectColumn(+ """+ Parameters for AddProjectColumn+ """+ input: AddProjectColumnInput!+ ): AddProjectColumnPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Creates a new draft issue and add it to a Project.+ """+ addProjectV2DraftIssue(+ """+ Parameters for AddProjectV2DraftIssue+ """+ input: AddProjectV2DraftIssueInput!+ ): AddProjectV2DraftIssuePayload @docsCategory(name: "projects")++ """+ Links an existing content instance to a Project.+ """+ addProjectV2ItemById(+ """+ Parameters for AddProjectV2ItemById+ """+ input: AddProjectV2ItemByIdInput!+ ): AddProjectV2ItemByIdPayload @docsCategory(name: "projects")++ """+ Add users to the pull request creation cap bypass list. Bypassed users can+ create pull requests regardless of the configured cap. Only users with+ maintainer permissions can manage the bypass list. You can add a maximum of+ 100 users per request. The bypass list can only hold a maximum of 100 users.+ """+ addPullRequestCreationCapBypassUsers(+ """+ Parameters for AddPullRequestCreationCapBypassUsers+ """+ input: AddPullRequestCreationCapBypassUsersInput!+ ): AddPullRequestCreationCapBypassUsersPayload @docsCategory(name: "pulls")++ """+ Adds a review to a Pull Request.+ """+ addPullRequestReview(+ """+ Parameters for AddPullRequestReview+ """+ input: AddPullRequestReviewInput!+ ): AddPullRequestReviewPayload @docsCategory(name: "pulls")++ """+ Adds a comment to a review.+ """+ addPullRequestReviewComment(+ """+ Parameters for AddPullRequestReviewComment+ """+ input: AddPullRequestReviewCommentInput!+ ): AddPullRequestReviewCommentPayload @docsCategory(name: "pulls")++ """+ Adds a new thread to a pending Pull Request Review.+ """+ addPullRequestReviewThread(+ """+ Parameters for AddPullRequestReviewThread+ """+ input: AddPullRequestReviewThreadInput!+ ): AddPullRequestReviewThreadPayload @docsCategory(name: "pulls")++ """+ Adds a reply to an existing Pull Request Review Thread.+ """+ addPullRequestReviewThreadReply(+ """+ Parameters for AddPullRequestReviewThreadReply+ """+ input: AddPullRequestReviewThreadReplyInput!+ ): AddPullRequestReviewThreadReplyPayload @docsCategory(name: "pulls")++ """+ Adds a reaction to a subject.+ """+ addReaction(+ """+ Parameters for AddReaction+ """+ input: AddReactionInput!+ ): AddReactionPayload @docsCategory(name: "reactions")++ """+ Adds a 'relates to' relationship between two issues.+ """+ addRelatesTo(+ """+ Parameters for AddRelatesTo+ """+ input: AddRelatesToInput!+ ): AddRelatesToPayload @docsCategory(name: "issues")++ """+ Adds a star to a Starrable.+ """+ addStar(+ """+ Parameters for AddStar+ """+ input: AddStarInput!+ ): AddStarPayload @docsCategory(name: "activity")++ """+ Adds a sub-issue to a given issue+ """+ addSubIssue(+ """+ Parameters for AddSubIssue+ """+ input: AddSubIssueInput!+ ): AddSubIssuePayload @docsCategory(name: "issues")++ """+ Add an upvote to a discussion or discussion comment.+ """+ addUpvote(+ """+ Parameters for AddUpvote+ """+ input: AddUpvoteInput!+ ): AddUpvotePayload @docsCategory(name: "discussions")++ """+ Adds a verifiable domain to an owning account.+ """+ addVerifiableDomain(+ """+ Parameters for AddVerifiableDomain+ """+ input: AddVerifiableDomainInput!+ ): AddVerifiableDomainPayload @docsCategory(name: "orgs")++ """+ Applies a batch of pending issue suggestions to an issue.+ """+ applyPendingIssueSuggestions(+ """+ Parameters for ApplyPendingIssueSuggestions+ """+ input: ApplyPendingIssueSuggestionsInput!+ ): ApplyPendingIssueSuggestionsPayload @docsCategory(name: "issues")++ """+ Approve all pending deployments under one or more environments+ """+ approveDeployments(+ """+ Parameters for ApproveDeployments+ """+ input: ApproveDeploymentsInput!+ ): ApproveDeploymentsPayload @docsCategory(name: "deployments")++ """+ Approve a verifiable domain for notification delivery.+ """+ approveVerifiableDomain(+ """+ Parameters for ApproveVerifiableDomain+ """+ input: ApproveVerifiableDomainInput!+ ): ApproveVerifiableDomainPayload @docsCategory(name: "orgs")++ """+ Archives a ProjectV2Item+ """+ archiveProjectV2Item(+ """+ Parameters for ArchiveProjectV2Item+ """+ input: ArchiveProjectV2ItemInput!+ ): ArchiveProjectV2ItemPayload @docsCategory(name: "projects")++ """+ Archive a pull request. Closes and marks the pull request as archived. Users+ with the triage role or higher can archive pull requests.+ """+ archivePullRequest(+ """+ Parameters for ArchivePullRequest+ """+ input: ArchivePullRequestInput!+ ): ArchivePullRequestPayload @docsCategory(name: "pulls")++ """+ Marks a repository as archived.+ """+ archiveRepository(+ """+ Parameters for ArchiveRepository+ """+ input: ArchiveRepositoryInput!+ ): ArchiveRepositoryPayload @docsCategory(name: "repos")++ """+ Cancels a pending invitation for an administrator to join an enterprise.+ """+ cancelEnterpriseAdminInvitation(+ """+ Parameters for CancelEnterpriseAdminInvitation+ """+ input: CancelEnterpriseAdminInvitationInput!+ ): CancelEnterpriseAdminInvitationPayload @docsCategory(name: "enterprise-admin")++ """+ Cancels a pending invitation for an unaffiliated member to join an enterprise.+ """+ cancelEnterpriseMemberInvitation(+ """+ Parameters for CancelEnterpriseMemberInvitation+ """+ input: CancelEnterpriseMemberInvitationInput!+ ): CancelEnterpriseMemberInvitationPayload @docsCategory(name: "enterprise-admin")++ """+ Cancel an active sponsorship.+ """+ cancelSponsorship(+ """+ Parameters for CancelSponsorship+ """+ input: CancelSponsorshipInput!+ ): CancelSponsorshipPayload @docsCategory(name: "sponsors")++ """+ Update your status on GitHub.+ """+ changeUserStatus(+ """+ Parameters for ChangeUserStatus+ """+ input: ChangeUserStatusInput!+ ): ChangeUserStatusPayload @docsCategory(name: "users")++ """+ Clears all labels from a labelable object.+ """+ clearLabelsFromLabelable(+ """+ Parameters for ClearLabelsFromLabelable+ """+ input: ClearLabelsFromLabelableInput!+ ): ClearLabelsFromLabelablePayload @docsCategory(name: "issues")++ """+ This mutation clears the value of a field for an item in a Project. Currently+ only text, number, date, assignees, labels, single-select, multi-select,+ iteration and milestone fields are supported.+ """+ clearProjectV2ItemFieldValue(+ """+ Parameters for ClearProjectV2ItemFieldValue+ """+ input: ClearProjectV2ItemFieldValueInput!+ ): ClearProjectV2ItemFieldValuePayload @docsCategory(name: "projects")++ """+ Creates a new project by cloning configuration from an existing project.+ """+ cloneProject(+ """+ Parameters for CloneProject+ """+ input: CloneProjectInput!+ ): CloneProjectPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Create a new repository with the same files and directory structure as a template repository.+ """+ cloneTemplateRepository(+ """+ Parameters for CloneTemplateRepository+ """+ input: CloneTemplateRepositoryInput!+ ): CloneTemplateRepositoryPayload @docsCategory(name: "repos")++ """+ Close a discussion.+ """+ closeDiscussion(+ """+ Parameters for CloseDiscussion+ """+ input: CloseDiscussionInput!+ ): CloseDiscussionPayload @docsCategory(name: "discussions")++ """+ Close an issue.+ """+ closeIssue(+ """+ Parameters for CloseIssue+ """+ input: CloseIssueInput!+ ): CloseIssuePayload @docsCategory(name: "issues")++ """+ Close a pull request.+ """+ closePullRequest(+ """+ Parameters for ClosePullRequest+ """+ input: ClosePullRequestInput!+ ): ClosePullRequestPayload @docsCategory(name: "pulls")++ """+ Convert a project note card to one associated with a newly created issue.+ """+ convertProjectCardNoteToIssue(+ """+ Parameters for ConvertProjectCardNoteToIssue+ """+ input: ConvertProjectCardNoteToIssueInput!+ ): ConvertProjectCardNoteToIssuePayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Converts a projectV2 draft issue item to an issue.+ """+ convertProjectV2DraftIssueItemToIssue(+ """+ Parameters for ConvertProjectV2DraftIssueItemToIssue+ """+ input: ConvertProjectV2DraftIssueItemToIssueInput!+ ): ConvertProjectV2DraftIssueItemToIssuePayload @docsCategory(name: "projects")++ """+ Converts a pull request to draft+ """+ convertPullRequestToDraft(+ """+ Parameters for ConvertPullRequestToDraft+ """+ input: ConvertPullRequestToDraftInput!+ ): ConvertPullRequestToDraftPayload @docsCategory(name: "pulls")++ """+ Copy a project.+ """+ copyProjectV2(+ """+ Parameters for CopyProjectV2+ """+ input: CopyProjectV2Input!+ ): CopyProjectV2Payload @docsCategory(name: "projects")++ """+ Invites a user to claim reattributable data+ """+ createAttributionInvitation(+ """+ Parameters for CreateAttributionInvitation+ """+ input: CreateAttributionInvitationInput!+ ): CreateAttributionInvitationPayload @docsCategory(name: "migrations")++ """+ Create a new branch protection rule+ """+ createBranchProtectionRule(+ """+ Parameters for CreateBranchProtectionRule+ """+ input: CreateBranchProtectionRuleInput!+ ): CreateBranchProtectionRulePayload @docsCategory(name: "branches")++ """+ Create a check run.+ """+ createCheckRun(+ """+ Parameters for CreateCheckRun+ """+ input: CreateCheckRunInput!+ ): CreateCheckRunPayload @docsCategory(name: "checks")++ """+ Create a check suite+ """+ createCheckSuite(+ """+ Parameters for CreateCheckSuite+ """+ input: CreateCheckSuiteInput!+ ): CreateCheckSuitePayload @docsCategory(name: "checks")++ """+ Appends a commit to the given branch as the authenticated user.++ This mutation creates a commit whose parent is the HEAD of the provided+ branch and also updates that branch to point to the new commit.+ It can be thought of as similar to `git commit`.++ ### Locating a Branch++ Commits are appended to a `branch` of type `Ref`.+ This must refer to a git branch (i.e. the fully qualified path must+ begin with `refs/heads/`, although including this prefix is optional.++ Callers may specify the `branch` to commit to either by its global node+ ID or by passing both of `repositoryNameWithOwner` and `refName`. For+ more details see the documentation for `CommittableBranch`.++ ### Describing Changes++ `fileChanges` are specified as a `FilesChanges` object describing+ `FileAdditions` and `FileDeletions`.++ Please see the documentation for `FileChanges` for more information on+ how to use this argument to describe any set of file changes.++ ### Authorship++ Similar to the web commit interface, this mutation does not support+ specifying the author or committer of the commit and will not add+ support for this in the future.++ A commit created by a successful execution of this mutation will be+ authored by the owner of the credential which authenticates the API+ request. The committer will be identical to that of commits authored+ using the web interface.++ If you need full control over author and committer information, please+ use the Git Database REST API instead.++ ### Commit Signing++ Commits made using this mutation are automatically signed by GitHub if+ supported and will be marked as verified in the user interface.+ """+ createCommitOnBranch(+ """+ Parameters for CreateCommitOnBranch+ """+ input: CreateCommitOnBranchInput!+ ): CreateCommitOnBranchPayload @docsCategory(name: "commits")++ """+ Creates a new deployment event.+ """+ createDeployment(+ """+ Parameters for CreateDeployment+ """+ input: CreateDeploymentInput!+ ): CreateDeploymentPayload @docsCategory(name: "deployments")++ """+ Create a deployment status.+ """+ createDeploymentStatus(+ """+ Parameters for CreateDeploymentStatus+ """+ input: CreateDeploymentStatusInput!+ ): CreateDeploymentStatusPayload @docsCategory(name: "deployments")++ """+ Create a discussion.+ """+ createDiscussion(+ """+ Parameters for CreateDiscussion+ """+ input: CreateDiscussionInput!+ ): CreateDiscussionPayload @docsCategory(name: "discussions")++ """+ Creates an organization as part of an enterprise account. User-authenticated+ requests make the viewer an owner. Users listed in `adminLogins` are invited+ as owners unless owner invitations are disabled, in which case they are added+ directly. Installation requests also add existing enterprise members directly.+ Invitation failures do not roll back organization creation. A personal access+ token used to create an organization is implicitly permitted to update the+ organization it created, if the organization is part of an enterprise that has+ SAML enabled or uses Enterprise Managed Users. If the organization is not part+ of such an enterprise, and instead has SAML enabled for it individually, the+ token will then require SAML authorization to continue working against that organization.+ """+ createEnterpriseOrganization(+ """+ Parameters for CreateEnterpriseOrganization+ """+ input: CreateEnterpriseOrganizationInput!+ ): CreateEnterpriseOrganizationPayload @docsCategory(name: "enterprise-admin")++ """+ Creates an environment or simply returns it if already exists.+ """+ createEnvironment(+ """+ Parameters for CreateEnvironment+ """+ input: CreateEnvironmentInput!+ ): CreateEnvironmentPayload @docsCategory(name: "deployments")++ """+ Creates a new IP allow list entry.+ """+ createIpAllowListEntry(+ """+ Parameters for CreateIpAllowListEntry+ """+ input: CreateIpAllowListEntryInput!+ ): CreateIpAllowListEntryPayload @docsCategory(name: "enterprise-admin")++ """+ Creates a new issue.+ """+ createIssue(+ """+ Parameters for CreateIssue+ """+ input: CreateIssueInput!+ ): CreateIssuePayload @docsCategory(name: "issues")++ """+ Creates a new issue field.+ """+ createIssueField(+ """+ Parameters for CreateIssueField+ """+ input: CreateIssueFieldInput!+ ): CreateIssueFieldPayload @docsCategory(name: "issues")++ """+ Creates a new issue field value for an issue.+ """+ createIssueFieldValue(+ """+ Parameters for CreateIssueFieldValue+ """+ input: CreateIssueFieldValueInput!+ ): CreateIssueFieldValuePayload @docsCategory(name: "issues")++ """+ Creates a new issue type+ """+ createIssueType(+ """+ Parameters for CreateIssueType+ """+ input: CreateIssueTypeInput!+ ): CreateIssueTypePayload @docsCategory(name: "issues")++ """+ Creates a new label.+ """+ createLabel(+ """+ Parameters for CreateLabel+ """+ input: CreateLabelInput!+ ): CreateLabelPayload @docsCategory(name: "issues")++ """+ Create a branch linked to an issue.+ """+ createLinkedBranch(+ """+ Parameters for CreateLinkedBranch+ """+ input: CreateLinkedBranchInput!+ ): CreateLinkedBranchPayload @docsCategory(name: "issues")++ """+ Creates a GitHub Enterprise Importer (GEI) migration source.+ """+ createMigrationSource(+ """+ Parameters for CreateMigrationSource+ """+ input: CreateMigrationSourceInput!+ ): CreateMigrationSourcePayload @docsCategory(name: "migrations")++ """+ Creates a new project.+ """+ createProject(+ """+ Parameters for CreateProject+ """+ input: CreateProjectInput!+ ): CreateProjectPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Creates a new project.+ """+ createProjectV2(+ """+ Parameters for CreateProjectV2+ """+ input: CreateProjectV2Input!+ ): CreateProjectV2Payload @docsCategory(name: "projects")++ """+ Create a new project field.+ """+ createProjectV2Field(+ """+ Parameters for CreateProjectV2Field+ """+ input: CreateProjectV2FieldInput!+ ): CreateProjectV2FieldPayload @docsCategory(name: "projects")++ """+ Create a new project issue field.+ """+ createProjectV2IssueField(+ """+ Parameters for CreateProjectV2IssueField+ """+ input: CreateProjectV2IssueFieldInput!+ ): CreateProjectV2IssueFieldPayload @docsCategory(name: "projects")++ """+ Creates a status update within a Project.+ """+ createProjectV2StatusUpdate(+ """+ Parameters for CreateProjectV2StatusUpdate+ """+ input: CreateProjectV2StatusUpdateInput!+ ): CreateProjectV2StatusUpdatePayload @docsCategory(name: "projects")++ """+ Creates a new view in a project.+ """+ createProjectV2View(+ """+ Parameters for CreateProjectV2View+ """+ input: CreateProjectV2ViewInput!+ ): CreateProjectV2ViewPayload @docsCategory(name: "projects")++ """+ Create a new pull request+ """+ createPullRequest(+ """+ Parameters for CreatePullRequest+ """+ input: CreatePullRequestInput!+ ): CreatePullRequestPayload @docsCategory(name: "pulls")++ """+ Create a new Git Ref.+ """+ createRef(+ """+ Parameters for CreateRef+ """+ input: CreateRefInput!+ ): CreateRefPayload @docsCategory(name: "git")++ """+ Create a new repository.+ """+ createRepository(+ """+ Parameters for CreateRepository+ """+ input: CreateRepositoryInput!+ ): CreateRepositoryPayload @docsCategory(name: "repos")++ """+ Create a repository custom property.+ """+ createRepositoryCustomProperty(+ """+ Parameters for CreateRepositoryCustomProperty+ """+ input: CreateRepositoryCustomPropertyInput!+ ): CreateRepositoryCustomPropertyPayload @docsCategory(name: "repos")++ """+ Create a repository ruleset+ """+ createRepositoryRuleset(+ """+ Parameters for CreateRepositoryRuleset+ """+ input: CreateRepositoryRulesetInput!+ ): CreateRepositoryRulesetPayload @docsCategory(name: "repos")++ """+ Create a GitHub Sponsors profile to allow others to sponsor you or your organization.+ """+ createSponsorsListing(+ """+ Parameters for CreateSponsorsListing+ """+ input: CreateSponsorsListingInput!+ ): CreateSponsorsListingPayload @docsCategory(name: "sponsors")++ """+ Create a new payment tier for your GitHub Sponsors profile.+ """+ createSponsorsTier(+ """+ Parameters for CreateSponsorsTier+ """+ input: CreateSponsorsTierInput!+ ): CreateSponsorsTierPayload @docsCategory(name: "sponsors")++ """+ Start a new sponsorship of a maintainer in GitHub Sponsors, or reactivate a past sponsorship.+ """+ createSponsorship(+ """+ Parameters for CreateSponsorship+ """+ input: CreateSponsorshipInput!+ ): CreateSponsorshipPayload @docsCategory(name: "sponsors")++ """+ Make many sponsorships for different sponsorable users or organizations at+ once. Can only sponsor those who have a public GitHub Sponsors profile.+ """+ createSponsorships(+ """+ Parameters for CreateSponsorships+ """+ input: CreateSponsorshipsInput!+ ): CreateSponsorshipsPayload @docsCategory(name: "sponsors")++ """+ Creates a new user list.+ """+ createUserList(+ """+ Parameters for CreateUserList+ """+ input: CreateUserListInput!+ ): CreateUserListPayload @docsCategory(name: "users")++ """+ Rejects a suggested topic for the repository.+ """+ declineTopicSuggestion(+ """+ Parameters for DeclineTopicSuggestion+ """+ input: DeclineTopicSuggestionInput!+ ): DeclineTopicSuggestionPayload @docsCategory(name: "repos")++ """+ Delete a branch protection rule+ """+ deleteBranchProtectionRule(+ """+ Parameters for DeleteBranchProtectionRule+ """+ input: DeleteBranchProtectionRuleInput!+ ): DeleteBranchProtectionRulePayload @docsCategory(name: "branches")++ """+ Deletes a deployment.+ """+ deleteDeployment(+ """+ Parameters for DeleteDeployment+ """+ input: DeleteDeploymentInput!+ ): DeleteDeploymentPayload @docsCategory(name: "deployments")++ """+ Delete a discussion and all of its replies.+ """+ deleteDiscussion(+ """+ Parameters for DeleteDiscussion+ """+ input: DeleteDiscussionInput!+ ): DeleteDiscussionPayload @docsCategory(name: "discussions")++ """+ Delete a discussion comment. If it has replies, wipe it instead.+ """+ deleteDiscussionComment(+ """+ Parameters for DeleteDiscussionComment+ """+ input: DeleteDiscussionCommentInput!+ ): DeleteDiscussionCommentPayload @docsCategory(name: "discussions")++ """+ Deletes an environment+ """+ deleteEnvironment(+ """+ Parameters for DeleteEnvironment+ """+ input: DeleteEnvironmentInput!+ ): DeleteEnvironmentPayload @docsCategory(name: "deployments")++ """+ Deletes an IP allow list entry.+ """+ deleteIpAllowListEntry(+ """+ Parameters for DeleteIpAllowListEntry+ """+ input: DeleteIpAllowListEntryInput!+ ): DeleteIpAllowListEntryPayload @docsCategory(name: "enterprise-admin")++ """+ Deletes an Issue object.+ """+ deleteIssue(+ """+ Parameters for DeleteIssue+ """+ input: DeleteIssueInput!+ ): DeleteIssuePayload @docsCategory(name: "issues")++ """+ Deletes an IssueComment object.+ """+ deleteIssueComment(+ """+ Parameters for DeleteIssueComment+ """+ input: DeleteIssueCommentInput!+ ): DeleteIssueCommentPayload @docsCategory(name: "issues")++ """+ Deletes an issue field.+ """+ deleteIssueField(+ """+ Parameters for DeleteIssueField+ """+ input: DeleteIssueFieldInput!+ ): DeleteIssueFieldPayload @docsCategory(name: "issues")++ """+ Deletes an issue field value from an issue.+ """+ deleteIssueFieldValue(+ """+ Parameters for DeleteIssueFieldValue+ """+ input: DeleteIssueFieldValueInput!+ ): DeleteIssueFieldValuePayload @docsCategory(name: "issues")++ """+ Delete an issue type+ """+ deleteIssueType(+ """+ Parameters for DeleteIssueType+ """+ input: DeleteIssueTypeInput!+ ): DeleteIssueTypePayload @docsCategory(name: "issues")++ """+ Deletes a label.+ """+ deleteLabel(+ """+ Parameters for DeleteLabel+ """+ input: DeleteLabelInput!+ ): DeleteLabelPayload @docsCategory(name: "issues")++ """+ Unlink a branch from an issue.+ """+ deleteLinkedBranch(+ """+ Parameters for DeleteLinkedBranch+ """+ input: DeleteLinkedBranchInput!+ ): DeleteLinkedBranchPayload @docsCategory(name: "issues")++ """+ Delete a package version.+ """+ deletePackageVersion(+ """+ Parameters for DeletePackageVersion+ """+ input: DeletePackageVersionInput!+ ): DeletePackageVersionPayload @docsCategory(name: "packages")++ """+ Deletes a project.+ """+ deleteProject(+ """+ Parameters for DeleteProject+ """+ input: DeleteProjectInput!+ ): DeleteProjectPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Deletes a project card.+ """+ deleteProjectCard(+ """+ Parameters for DeleteProjectCard+ """+ input: DeleteProjectCardInput!+ ): DeleteProjectCardPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Deletes a project column.+ """+ deleteProjectColumn(+ """+ Parameters for DeleteProjectColumn+ """+ input: DeleteProjectColumnInput!+ ): DeleteProjectColumnPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Delete a project.+ """+ deleteProjectV2(+ """+ Parameters for DeleteProjectV2+ """+ input: DeleteProjectV2Input!+ ): DeleteProjectV2Payload @docsCategory(name: "projects")++ """+ Delete a project field.+ """+ deleteProjectV2Field(+ """+ Parameters for DeleteProjectV2Field+ """+ input: DeleteProjectV2FieldInput!+ ): DeleteProjectV2FieldPayload @docsCategory(name: "projects")++ """+ Deletes an item from a Project.+ """+ deleteProjectV2Item(+ """+ Parameters for DeleteProjectV2Item+ """+ input: DeleteProjectV2ItemInput!+ ): DeleteProjectV2ItemPayload @docsCategory(name: "projects")++ """+ Deletes a project status update.+ """+ deleteProjectV2StatusUpdate(+ """+ Parameters for DeleteProjectV2StatusUpdate+ """+ input: DeleteProjectV2StatusUpdateInput!+ ): DeleteProjectV2StatusUpdatePayload @docsCategory(name: "projects")++ """+ Deletes a view from a project.+ """+ deleteProjectV2View(+ """+ Parameters for DeleteProjectV2View+ """+ input: DeleteProjectV2ViewInput!+ ): DeleteProjectV2ViewPayload @docsCategory(name: "projects")++ """+ Deletes a project workflow.+ """+ deleteProjectV2Workflow(+ """+ Parameters for DeleteProjectV2Workflow+ """+ input: DeleteProjectV2WorkflowInput!+ ): DeleteProjectV2WorkflowPayload @docsCategory(name: "projects")++ """+ Deletes a pull request review.+ """+ deletePullRequestReview(+ """+ Parameters for DeletePullRequestReview+ """+ input: DeletePullRequestReviewInput!+ ): DeletePullRequestReviewPayload @docsCategory(name: "pulls")++ """+ Deletes a pull request review comment.+ """+ deletePullRequestReviewComment(+ """+ Parameters for DeletePullRequestReviewComment+ """+ input: DeletePullRequestReviewCommentInput!+ ): DeletePullRequestReviewCommentPayload @docsCategory(name: "pulls")++ """+ Delete a Git Ref.+ """+ deleteRef(+ """+ Parameters for DeleteRef+ """+ input: DeleteRefInput!+ ): DeleteRefPayload @docsCategory(name: "git")++ """+ Delete a repository custom property.+ """+ deleteRepositoryCustomProperty(+ """+ Parameters for DeleteRepositoryCustomProperty+ """+ input: DeleteRepositoryCustomPropertyInput!+ ): DeleteRepositoryCustomPropertyPayload @docsCategory(name: "repos")++ """+ Delete a repository ruleset+ """+ deleteRepositoryRuleset(+ """+ Parameters for DeleteRepositoryRuleset+ """+ input: DeleteRepositoryRulesetInput!+ ): DeleteRepositoryRulesetPayload @docsCategory(name: "repos")++ """+ Deletes a user list.+ """+ deleteUserList(+ """+ Parameters for DeleteUserList+ """+ input: DeleteUserListInput!+ ): DeleteUserListPayload @docsCategory(name: "users")++ """+ Deletes a verifiable domain.+ """+ deleteVerifiableDomain(+ """+ Parameters for DeleteVerifiableDomain+ """+ input: DeleteVerifiableDomainInput!+ ): DeleteVerifiableDomainPayload @docsCategory(name: "orgs")++ """+ Remove a pull request from the merge queue.+ """+ dequeuePullRequest(+ """+ Parameters for DequeuePullRequest+ """+ input: DequeuePullRequestInput!+ ): DequeuePullRequestPayload @docsCategory(name: "pulls")++ """+ Disable auto merge on the given pull request+ """+ disablePullRequestAutoMerge(+ """+ Parameters for DisablePullRequestAutoMerge+ """+ input: DisablePullRequestAutoMergeInput!+ ): DisablePullRequestAutoMergePayload @docsCategory(name: "pulls")++ """+ Dismisses an approved or rejected pull request review.+ """+ dismissPullRequestReview(+ """+ Parameters for DismissPullRequestReview+ """+ input: DismissPullRequestReviewInput!+ ): DismissPullRequestReviewPayload @docsCategory(name: "pulls")++ """+ Dismisses the Dependabot alert.+ """+ dismissRepositoryVulnerabilityAlert(+ """+ Parameters for DismissRepositoryVulnerabilityAlert+ """+ input: DismissRepositoryVulnerabilityAlertInput!+ ): DismissRepositoryVulnerabilityAlertPayload @docsCategory(name: "dependabot")++ """+ Enable the default auto-merge on a pull request.+ """+ enablePullRequestAutoMerge(+ """+ Parameters for EnablePullRequestAutoMerge+ """+ input: EnablePullRequestAutoMergeInput!+ ): EnablePullRequestAutoMergePayload @docsCategory(name: "pulls")++ """+ Add a pull request to the merge queue.+ """+ enqueuePullRequest(+ """+ Parameters for EnqueuePullRequest+ """+ input: EnqueuePullRequestInput!+ ): EnqueuePullRequestPayload @docsCategory(name: "pulls")++ """+ Follow an organization.+ """+ followOrganization(+ """+ Parameters for FollowOrganization+ """+ input: FollowOrganizationInput!+ ): FollowOrganizationPayload @docsCategory(name: "orgs")++ """+ Follow a user.+ """+ followUser(+ """+ Parameters for FollowUser+ """+ input: FollowUserInput!+ ): FollowUserPayload @docsCategory(name: "users")++ """+ Grant the migrator role to a user for all organizations under an enterprise account.+ """+ grantEnterpriseOrganizationsMigratorRole(+ """+ Parameters for GrantEnterpriseOrganizationsMigratorRole+ """+ input: GrantEnterpriseOrganizationsMigratorRoleInput!+ ): GrantEnterpriseOrganizationsMigratorRolePayload @docsCategory(name: "enterprise-admin")++ """+ Grant the migrator role to a user or a team.+ """+ grantMigratorRole(+ """+ Parameters for GrantMigratorRole+ """+ input: GrantMigratorRoleInput!+ ): GrantMigratorRolePayload @docsCategory(name: "migrations")++ """+ Creates a new project by importing columns and a list of issues/PRs.+ """+ importProject(+ """+ Parameters for ImportProject+ """+ input: ImportProjectInput!+ ): ImportProjectPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "migrations")++ """+ Invite someone to become an administrator of the enterprise.+ """+ inviteEnterpriseAdmin(+ """+ Parameters for InviteEnterpriseAdmin+ """+ input: InviteEnterpriseAdminInput!+ ): InviteEnterpriseAdminPayload @docsCategory(name: "enterprise-admin")++ """+ Invite someone to become an unaffiliated member of the enterprise.+ """+ inviteEnterpriseMember(+ """+ Parameters for InviteEnterpriseMember+ """+ input: InviteEnterpriseMemberInput!+ ): InviteEnterpriseMemberPayload @docsCategory(name: "enterprise-admin")++ """+ Links a project to a repository.+ """+ linkProjectV2ToRepository(+ """+ Parameters for LinkProjectV2ToRepository+ """+ input: LinkProjectV2ToRepositoryInput!+ ): LinkProjectV2ToRepositoryPayload @docsCategory(name: "projects")++ """+ Links a project to a team.+ """+ linkProjectV2ToTeam(+ """+ Parameters for LinkProjectV2ToTeam+ """+ input: LinkProjectV2ToTeamInput!+ ): LinkProjectV2ToTeamPayload @docsCategory(name: "projects")++ """+ Creates a repository link for a project.+ """+ linkRepositoryToProject(+ """+ Parameters for LinkRepositoryToProject+ """+ input: LinkRepositoryToProjectInput!+ ): LinkRepositoryToProjectPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Lock a lockable object+ """+ lockLockable(+ """+ Parameters for LockLockable+ """+ input: LockLockableInput!+ ): LockLockablePayload @docsCategory(name: "issues")++ """+ Mark a discussion comment as the chosen answer for discussions in an answerable category.+ """+ markDiscussionCommentAsAnswer(+ """+ Parameters for MarkDiscussionCommentAsAnswer+ """+ input: MarkDiscussionCommentAsAnswerInput!+ ): MarkDiscussionCommentAsAnswerPayload @docsCategory(name: "discussions")++ """+ Mark a pull request file as viewed+ """+ markFileAsViewed(+ """+ Parameters for MarkFileAsViewed+ """+ input: MarkFileAsViewedInput!+ ): MarkFileAsViewedPayload @docsCategory(name: "pulls")++ """+ Mark a project as a template. Note that only projects which are owned by an Organization can be marked as a template.+ """+ markProjectV2AsTemplate(+ """+ Parameters for MarkProjectV2AsTemplate+ """+ input: MarkProjectV2AsTemplateInput!+ ): MarkProjectV2AsTemplatePayload @docsCategory(name: "projects")++ """+ Marks a pull request ready for review.+ """+ markPullRequestReadyForReview(+ """+ Parameters for MarkPullRequestReadyForReview+ """+ input: MarkPullRequestReadyForReviewInput!+ ): MarkPullRequestReadyForReviewPayload @docsCategory(name: "pulls")++ """+ Merge a head into a branch.+ """+ mergeBranch(+ """+ Parameters for MergeBranch+ """+ input: MergeBranchInput!+ ): MergeBranchPayload @docsCategory(name: "branches")++ """+ Merge a pull request.++ > [!NOTE]+ > We recommend using the [asynchronous merge REST+ API](${externalDocsUrl}/rest/pulls/pulls#merge-a-pull-request-asynchronously) instead.+ > This mutation does not support stacked pull requests.+ """+ mergePullRequest(+ """+ Parameters for MergePullRequest+ """+ input: MergePullRequestInput!+ ): MergePullRequestPayload @docsCategory(name: "pulls")++ """+ Minimizes a comment on an Issue, Commit, Pull Request, or Gist+ """+ minimizeComment(+ """+ Parameters for MinimizeComment+ """+ input: MinimizeCommentInput!+ ): MinimizeCommentPayload @docsCategory(name: "issues")++ """+ Moves a project card to another place.+ """+ moveProjectCard(+ """+ Parameters for MoveProjectCard+ """+ input: MoveProjectCardInput!+ ): MoveProjectCardPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Moves a project column to another place.+ """+ moveProjectColumn(+ """+ Parameters for MoveProjectColumn+ """+ input: MoveProjectColumnInput!+ ): MoveProjectColumnPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Pin an environment to a repository+ """+ pinEnvironment(+ """+ Parameters for PinEnvironment+ """+ input: PinEnvironmentInput!+ ): PinEnvironmentPayload @docsCategory(name: "deployments")++ """+ Pin an issue to a repository+ """+ pinIssue(+ """+ Parameters for PinIssue+ """+ input: PinIssueInput!+ ): PinIssuePayload @docsCategory(name: "issues")++ """+ Pins an Issue Comment.+ """+ pinIssueComment(+ """+ Parameters for PinIssueComment+ """+ input: PinIssueCommentInput!+ ): PinIssueCommentPayload @docsCategory(name: "issues")++ """+ Promote a repository custom property to the enterprise level.+ """+ promoteRepositoryCustomProperty(+ """+ Parameters for PromoteRepositoryCustomProperty+ """+ input: PromoteRepositoryCustomPropertyInput!+ ): PromoteRepositoryCustomPropertyPayload @docsCategory(name: "repos")++ """+ Publish an existing sponsorship tier that is currently still a draft to a GitHub Sponsors profile.+ """+ publishSponsorsTier(+ """+ Parameters for PublishSponsorsTier+ """+ input: PublishSponsorsTierInput!+ ): PublishSponsorsTierPayload @docsCategory(name: "sponsors")++ """+ Regenerates the identity provider recovery codes for an enterprise+ """+ regenerateEnterpriseIdentityProviderRecoveryCodes(+ """+ Parameters for RegenerateEnterpriseIdentityProviderRecoveryCodes+ """+ input: RegenerateEnterpriseIdentityProviderRecoveryCodesInput!+ ): RegenerateEnterpriseIdentityProviderRecoveryCodesPayload @docsCategory(name: "enterprise-admin")++ """+ Regenerates a verifiable domain's verification token.+ """+ regenerateVerifiableDomainToken(+ """+ Parameters for RegenerateVerifiableDomainToken+ """+ input: RegenerateVerifiableDomainTokenInput!+ ): RegenerateVerifiableDomainTokenPayload @docsCategory(name: "orgs")++ """+ Reject all pending deployments under one or more environments+ """+ rejectDeployments(+ """+ Parameters for RejectDeployments+ """+ input: RejectDeploymentsInput!+ ): RejectDeploymentsPayload @docsCategory(name: "deployments")++ """+ Rejects a batch of pending issue suggestions on an issue atomically.+ """+ rejectPendingIssueSuggestions(+ """+ Parameters for RejectPendingIssueSuggestions+ """+ input: RejectPendingIssueSuggestionsInput!+ ): RejectPendingIssueSuggestionsPayload @docsCategory(name: "issues")++ """+ Removes assignees from an assignable object.+ """+ removeAssigneesFromAssignable(+ """+ Parameters for RemoveAssigneesFromAssignable+ """+ input: RemoveAssigneesFromAssignableInput!+ ): RemoveAssigneesFromAssignablePayload @docsCategory(name: "issues")++ """+ Removes a 'blocked by' relationship from an issue.+ """+ removeBlockedBy(+ """+ Parameters for RemoveBlockedBy+ """+ input: RemoveBlockedByInput!+ ): RemoveBlockedByPayload @docsCategory(name: "issues")++ """+ Removes one or more manually linked pull requests from an issue. Auto-detected+ closing references from pull request body keywords are not removed; edit the+ pull request body instead.+ """+ removeCloseIssueReferences(+ """+ Parameters for RemoveCloseIssueReferences+ """+ input: RemoveCloseIssueReferencesInput!+ ): RemoveCloseIssueReferencesPayload @docsCategory(name: "issues")++ """+ Removes an administrator from the enterprise.+ """+ removeEnterpriseAdmin(+ """+ Parameters for RemoveEnterpriseAdmin+ """+ input: RemoveEnterpriseAdminInput!+ ): RemoveEnterpriseAdminPayload @docsCategory(name: "enterprise-admin")++ """+ Removes the identity provider from an enterprise. Owners of enterprises both+ with and without Enterprise Managed Users may use this mutation.+ """+ removeEnterpriseIdentityProvider(+ """+ Parameters for RemoveEnterpriseIdentityProvider+ """+ input: RemoveEnterpriseIdentityProviderInput!+ ): RemoveEnterpriseIdentityProviderPayload @docsCategory(name: "enterprise-admin")++ """+ Completely removes a user from the enterprise asynchronously.+ """+ removeEnterpriseMember(+ """+ Parameters for RemoveEnterpriseMember+ """+ input: RemoveEnterpriseMemberInput!+ ): RemoveEnterpriseMemberPayload @docsCategory(name: "enterprise-admin")++ """+ Removes an organization from the enterprise+ """+ removeEnterpriseOrganization(+ """+ Parameters for RemoveEnterpriseOrganization+ """+ input: RemoveEnterpriseOrganizationInput!+ ): RemoveEnterpriseOrganizationPayload @docsCategory(name: "enterprise-admin")++ """+ Removes a support entitlement from an enterprise member.+ """+ removeEnterpriseSupportEntitlement(+ """+ Parameters for RemoveEnterpriseSupportEntitlement+ """+ input: RemoveEnterpriseSupportEntitlementInput!+ ): RemoveEnterpriseSupportEntitlementPayload @docsCategory(name: "enterprise-admin")++ """+ Removes labels from a Labelable object.+ """+ removeLabelsFromLabelable(+ """+ Parameters for RemoveLabelsFromLabelable+ """+ input: RemoveLabelsFromLabelableInput!+ ): RemoveLabelsFromLabelablePayload @docsCategory(name: "issues")++ """+ Removes outside collaborator from all repositories in an organization.+ """+ removeOutsideCollaborator(+ """+ Parameters for RemoveOutsideCollaborator+ """+ input: RemoveOutsideCollaboratorInput!+ ): RemoveOutsideCollaboratorPayload @docsCategory(name: "orgs")++ """+ Remove users from the pull request creation cap bypass list. Only users with+ maintainer permissions can manage the bypass list.+ """+ removePullRequestCreationCapBypassUsers(+ """+ Parameters for RemovePullRequestCreationCapBypassUsers+ """+ input: RemovePullRequestCreationCapBypassUsersInput!+ ): RemovePullRequestCreationCapBypassUsersPayload @docsCategory(name: "pulls")++ """+ Removes a reaction from a subject.+ """+ removeReaction(+ """+ Parameters for RemoveReaction+ """+ input: RemoveReactionInput!+ ): RemoveReactionPayload @docsCategory(name: "reactions")++ """+ Removes a 'relates to' relationship between two issues.+ """+ removeRelatesTo(+ """+ Parameters for RemoveRelatesTo+ """+ input: RemoveRelatesToInput!+ ): RemoveRelatesToPayload @docsCategory(name: "issues")++ """+ Removes a star from a Starrable.+ """+ removeStar(+ """+ Parameters for RemoveStar+ """+ input: RemoveStarInput!+ ): RemoveStarPayload @docsCategory(name: "activity")++ """+ Removes a sub-issue from a given issue+ """+ removeSubIssue(+ """+ Parameters for RemoveSubIssue+ """+ input: RemoveSubIssueInput!+ ): RemoveSubIssuePayload @docsCategory(name: "issues")++ """+ Remove an upvote to a discussion or discussion comment.+ """+ removeUpvote(+ """+ Parameters for RemoveUpvote+ """+ input: RemoveUpvoteInput!+ ): RemoveUpvotePayload @docsCategory(name: "discussions")++ """+ Reopen a discussion.+ """+ reopenDiscussion(+ """+ Parameters for ReopenDiscussion+ """+ input: ReopenDiscussionInput!+ ): ReopenDiscussionPayload @docsCategory(name: "discussions")++ """+ Reopen a issue.+ """+ reopenIssue(+ """+ Parameters for ReopenIssue+ """+ input: ReopenIssueInput!+ ): ReopenIssuePayload @docsCategory(name: "issues")++ """+ Reopen a pull request.+ """+ reopenPullRequest(+ """+ Parameters for ReopenPullRequest+ """+ input: ReopenPullRequestInput!+ ): ReopenPullRequestPayload @docsCategory(name: "pulls")++ """+ Reorder a pinned repository environment+ """+ reorderEnvironment(+ """+ Parameters for ReorderEnvironment+ """+ input: ReorderEnvironmentInput!+ ): ReorderEnvironmentPayload @docsCategory(name: "deployments")++ """+ Replaces all actors for assignable object.+ """+ replaceActorsForAssignable(+ """+ Parameters for ReplaceActorsForAssignable+ """+ input: ReplaceActorsForAssignableInput!+ ): ReplaceActorsForAssignablePayload @docsCategory(name: "issues")++ """+ Reprioritizes a sub-issue to a different position in the parent list.+ """+ reprioritizeSubIssue(+ """+ Parameters for ReprioritizeSubIssue+ """+ input: ReprioritizeSubIssueInput!+ ): ReprioritizeSubIssuePayload @docsCategory(name: "issues")++ """+ Set review requests on a pull request.+ """+ requestReviews(+ """+ Parameters for RequestReviews+ """+ input: RequestReviewsInput!+ ): RequestReviewsPayload @docsCategory(name: "pulls")++ """+ Set review requests on a pull request using login strings instead of IDs.+ """+ requestReviewsByLogin(+ """+ Parameters for RequestReviewsByLogin+ """+ input: RequestReviewsByLoginInput!+ ): RequestReviewsByLoginPayload @docsCategory(name: "pulls")++ """+ Rerequests an existing check suite.+ """+ rerequestCheckSuite(+ """+ Parameters for RerequestCheckSuite+ """+ input: RerequestCheckSuiteInput!+ ): RerequestCheckSuitePayload @docsCategory(name: "checks")++ """+ Rerequest reviews on a pull request.+ """+ rerequestReviews(+ """+ Parameters for RerequestReviews+ """+ input: RerequestReviewsInput!+ ): RerequestReviewsPayload @docsCategory(name: "pulls")++ """+ Marks a review thread as resolved.+ """+ resolveReviewThread(+ """+ Parameters for ResolveReviewThread+ """+ input: ResolveReviewThreadInput!+ ): ResolveReviewThreadPayload @docsCategory(name: "pulls")++ """+ Retire a published payment tier from your GitHub Sponsors profile so it cannot be used to start new sponsorships.+ """+ retireSponsorsTier(+ """+ Parameters for RetireSponsorsTier+ """+ input: RetireSponsorsTierInput!+ ): RetireSponsorsTierPayload @docsCategory(name: "sponsors")++ """+ Create a pull request that reverts the changes from a merged pull request.+ """+ revertPullRequest(+ """+ Parameters for RevertPullRequest+ """+ input: RevertPullRequestInput!+ ): RevertPullRequestPayload @docsCategory(name: "pulls")++ """+ Revoke the migrator role to a user for all organizations under an enterprise account.+ """+ revokeEnterpriseOrganizationsMigratorRole(+ """+ Parameters for RevokeEnterpriseOrganizationsMigratorRole+ """+ input: RevokeEnterpriseOrganizationsMigratorRoleInput!+ ): RevokeEnterpriseOrganizationsMigratorRolePayload @docsCategory(name: "enterprise-admin")++ """+ Revoke the migrator role from a user or a team.+ """+ revokeMigratorRole(+ """+ Parameters for RevokeMigratorRole+ """+ input: RevokeMigratorRoleInput!+ ): RevokeMigratorRolePayload @docsCategory(name: "migrations")++ """+ Creates or updates the identity provider for an enterprise.+ """+ setEnterpriseIdentityProvider(+ """+ Parameters for SetEnterpriseIdentityProvider+ """+ input: SetEnterpriseIdentityProviderInput!+ ): SetEnterpriseIdentityProviderPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the value of an IssueFieldValue.+ """+ setIssueFieldValue(+ """+ Parameters for SetIssueFieldValue+ """+ input: SetIssueFieldValueInput!+ ): SetIssueFieldValuePayload @docsCategory(name: "issues")++ """+ Set an organization level interaction limit for an organization's public repositories.+ """+ setOrganizationInteractionLimit(+ """+ Parameters for SetOrganizationInteractionLimit+ """+ input: SetOrganizationInteractionLimitInput!+ ): SetOrganizationInteractionLimitPayload @docsCategory(name: "orgs")++ """+ Set repository custom property values for a repository.+ """+ setRepositoryCustomPropertyValues(+ """+ Parameters for SetRepositoryCustomPropertyValues+ """+ input: SetRepositoryCustomPropertyValuesInput!+ ): SetRepositoryCustomPropertyValuesPayload @docsCategory(name: "repos")++ """+ Sets an interaction limit setting for a repository.+ """+ setRepositoryInteractionLimit(+ """+ Parameters for SetRepositoryInteractionLimit+ """+ input: SetRepositoryInteractionLimitInput!+ ): SetRepositoryInteractionLimitPayload @docsCategory(name: "repos")++ """+ Set a user level interaction limit for an user's public repositories.+ """+ setUserInteractionLimit(+ """+ Parameters for SetUserInteractionLimit+ """+ input: SetUserInteractionLimitInput!+ ): SetUserInteractionLimitPayload @docsCategory(name: "users")++ """+ Starts a GitHub Enterprise Importer organization migration.+ """+ startOrganizationMigration(+ """+ Parameters for StartOrganizationMigration+ """+ input: StartOrganizationMigrationInput!+ ): StartOrganizationMigrationPayload @docsCategory(name: "migrations")++ """+ Starts a GitHub Enterprise Importer (GEI) repository migration.+ """+ startRepositoryMigration(+ """+ Parameters for StartRepositoryMigration+ """+ input: StartRepositoryMigrationInput!+ ): StartRepositoryMigrationPayload @docsCategory(name: "migrations")++ """+ Submits a pending pull request review.+ """+ submitPullRequestReview(+ """+ Parameters for SubmitPullRequestReview+ """+ input: SubmitPullRequestReviewInput!+ ): SubmitPullRequestReviewPayload @docsCategory(name: "pulls")++ """+ Transfer an organization from one enterprise to another enterprise.+ """+ transferEnterpriseOrganization(+ """+ Parameters for TransferEnterpriseOrganization+ """+ input: TransferEnterpriseOrganizationInput!+ ): TransferEnterpriseOrganizationPayload @docsCategory(name: "enterprise-admin")++ """+ Transfer an issue to a different repository+ """+ transferIssue(+ """+ Parameters for TransferIssue+ """+ input: TransferIssueInput!+ ): TransferIssuePayload @docsCategory(name: "issues")++ """+ Unarchives a ProjectV2Item+ """+ unarchiveProjectV2Item(+ """+ Parameters for UnarchiveProjectV2Item+ """+ input: UnarchiveProjectV2ItemInput!+ ): UnarchiveProjectV2ItemPayload @docsCategory(name: "projects")++ """+ Unarchive a pull request. Removes the archived flag from the pull request.+ Does not automatically reopen or unlock the pull request. Users with the+ triage role or higher can unarchive pull requests.+ """+ unarchivePullRequest(+ """+ Parameters for UnarchivePullRequest+ """+ input: UnarchivePullRequestInput!+ ): UnarchivePullRequestPayload @docsCategory(name: "pulls")++ """+ Unarchives a repository.+ """+ unarchiveRepository(+ """+ Parameters for UnarchiveRepository+ """+ input: UnarchiveRepositoryInput!+ ): UnarchiveRepositoryPayload @docsCategory(name: "repos")++ """+ Unfollow an organization.+ """+ unfollowOrganization(+ """+ Parameters for UnfollowOrganization+ """+ input: UnfollowOrganizationInput!+ ): UnfollowOrganizationPayload @docsCategory(name: "orgs")++ """+ Unfollow a user.+ """+ unfollowUser(+ """+ Parameters for UnfollowUser+ """+ input: UnfollowUserInput!+ ): UnfollowUserPayload @docsCategory(name: "users")++ """+ Unlinks a project from a repository.+ """+ unlinkProjectV2FromRepository(+ """+ Parameters for UnlinkProjectV2FromRepository+ """+ input: UnlinkProjectV2FromRepositoryInput!+ ): UnlinkProjectV2FromRepositoryPayload @docsCategory(name: "projects")++ """+ Unlinks a project to a team.+ """+ unlinkProjectV2FromTeam(+ """+ Parameters for UnlinkProjectV2FromTeam+ """+ input: UnlinkProjectV2FromTeamInput!+ ): UnlinkProjectV2FromTeamPayload @docsCategory(name: "projects")++ """+ Deletes a repository link from a project.+ """+ unlinkRepositoryFromProject(+ """+ Parameters for UnlinkRepositoryFromProject+ """+ input: UnlinkRepositoryFromProjectInput!+ ): UnlinkRepositoryFromProjectPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Unlock a lockable object+ """+ unlockLockable(+ """+ Parameters for UnlockLockable+ """+ input: UnlockLockableInput!+ ): UnlockLockablePayload @docsCategory(name: "issues")++ """+ Unmark a discussion comment as the chosen answer for discussions in an answerable category.+ """+ unmarkDiscussionCommentAsAnswer(+ """+ Parameters for UnmarkDiscussionCommentAsAnswer+ """+ input: UnmarkDiscussionCommentAsAnswerInput!+ ): UnmarkDiscussionCommentAsAnswerPayload @docsCategory(name: "discussions")++ """+ Unmark a pull request file as viewed+ """+ unmarkFileAsViewed(+ """+ Parameters for UnmarkFileAsViewed+ """+ input: UnmarkFileAsViewedInput!+ ): UnmarkFileAsViewedPayload @docsCategory(name: "pulls")++ """+ Unmark an issue as a duplicate of another issue.+ """+ unmarkIssueAsDuplicate(+ """+ Parameters for UnmarkIssueAsDuplicate+ """+ input: UnmarkIssueAsDuplicateInput!+ ): UnmarkIssueAsDuplicatePayload @docsCategory(name: "issues")++ """+ Unmark a project as a template.+ """+ unmarkProjectV2AsTemplate(+ """+ Parameters for UnmarkProjectV2AsTemplate+ """+ input: UnmarkProjectV2AsTemplateInput!+ ): UnmarkProjectV2AsTemplatePayload @docsCategory(name: "projects")++ """+ Unminimizes a comment on an Issue, Commit, Pull Request, or Gist+ """+ unminimizeComment(+ """+ Parameters for UnminimizeComment+ """+ input: UnminimizeCommentInput!+ ): UnminimizeCommentPayload @docsCategory(name: "issues")++ """+ Unpin a pinned issue from a repository+ """+ unpinIssue(+ """+ Parameters for UnpinIssue+ """+ input: UnpinIssueInput!+ ): UnpinIssuePayload @docsCategory(name: "issues")++ """+ Unpins an Issue Comment.+ """+ unpinIssueComment(+ """+ Parameters for UnpinIssueComment+ """+ input: UnpinIssueCommentInput!+ ): UnpinIssueCommentPayload @docsCategory(name: "issues")++ """+ Marks a review thread as unresolved.+ """+ unresolveReviewThread(+ """+ Parameters for UnresolveReviewThread+ """+ input: UnresolveReviewThreadInput!+ ): UnresolveReviewThreadPayload @docsCategory(name: "pulls")++ """+ Update a branch protection rule+ """+ updateBranchProtectionRule(+ """+ Parameters for UpdateBranchProtectionRule+ """+ input: UpdateBranchProtectionRuleInput!+ ): UpdateBranchProtectionRulePayload @docsCategory(name: "branches")++ """+ Update a check run+ """+ updateCheckRun(+ """+ Parameters for UpdateCheckRun+ """+ input: UpdateCheckRunInput!+ ): UpdateCheckRunPayload @docsCategory(name: "checks")++ """+ Modifies the settings of an existing check suite+ """+ updateCheckSuitePreferences(+ """+ Parameters for UpdateCheckSuitePreferences+ """+ input: UpdateCheckSuitePreferencesInput!+ ): UpdateCheckSuitePreferencesPayload @docsCategory(name: "checks")++ """+ Update a discussion+ """+ updateDiscussion(+ """+ Parameters for UpdateDiscussion+ """+ input: UpdateDiscussionInput!+ ): UpdateDiscussionPayload @docsCategory(name: "discussions")++ """+ Update the contents of a comment on a Discussion+ """+ updateDiscussionComment(+ """+ Parameters for UpdateDiscussionComment+ """+ input: UpdateDiscussionCommentInput!+ ): UpdateDiscussionCommentPayload @docsCategory(name: "discussions")++ """+ Updates the role of an enterprise administrator.+ """+ updateEnterpriseAdministratorRole(+ """+ Parameters for UpdateEnterpriseAdministratorRole+ """+ input: UpdateEnterpriseAdministratorRoleInput!+ ): UpdateEnterpriseAdministratorRolePayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether private repository forks are enabled for an enterprise.+ """+ updateEnterpriseAllowPrivateRepositoryForkingSetting(+ """+ Parameters for UpdateEnterpriseAllowPrivateRepositoryForkingSetting+ """+ input: UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput!+ ): UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the base repository permission for organizations in an enterprise.+ """+ updateEnterpriseDefaultRepositoryPermissionSetting(+ """+ Parameters for UpdateEnterpriseDefaultRepositoryPermissionSetting+ """+ input: UpdateEnterpriseDefaultRepositoryPermissionSettingInput!+ ): UpdateEnterpriseDefaultRepositoryPermissionSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether deploy keys are allowed to be created and used for an enterprise.+ """+ updateEnterpriseDeployKeySetting(+ """+ Parameters for UpdateEnterpriseDeployKeySetting+ """+ input: UpdateEnterpriseDeployKeySettingInput!+ ): UpdateEnterpriseDeployKeySettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether organization members with admin permissions on a repository can change repository visibility.+ """+ updateEnterpriseMembersCanChangeRepositoryVisibilitySetting(+ """+ Parameters for UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting+ """+ input: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput!+ ): UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the members can create repositories setting for an enterprise.+ """+ updateEnterpriseMembersCanCreateRepositoriesSetting(+ """+ Parameters for UpdateEnterpriseMembersCanCreateRepositoriesSetting+ """+ input: UpdateEnterpriseMembersCanCreateRepositoriesSettingInput!+ ): UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the members can delete issues setting for an enterprise.+ """+ updateEnterpriseMembersCanDeleteIssuesSetting(+ """+ Parameters for UpdateEnterpriseMembersCanDeleteIssuesSetting+ """+ input: UpdateEnterpriseMembersCanDeleteIssuesSettingInput!+ ): UpdateEnterpriseMembersCanDeleteIssuesSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the members can delete repositories setting for an enterprise.+ """+ updateEnterpriseMembersCanDeleteRepositoriesSetting(+ """+ Parameters for UpdateEnterpriseMembersCanDeleteRepositoriesSetting+ """+ input: UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput!+ ): UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether members can invite collaborators are enabled for an enterprise.+ """+ updateEnterpriseMembersCanInviteCollaboratorsSetting(+ """+ Parameters for UpdateEnterpriseMembersCanInviteCollaboratorsSetting+ """+ input: UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput!+ ): UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether or not an organization owner can make purchases.+ """+ updateEnterpriseMembersCanMakePurchasesSetting(+ """+ Parameters for UpdateEnterpriseMembersCanMakePurchasesSetting+ """+ input: UpdateEnterpriseMembersCanMakePurchasesSettingInput!+ ): UpdateEnterpriseMembersCanMakePurchasesSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the members can update protected branches setting for an enterprise.+ """+ updateEnterpriseMembersCanUpdateProtectedBranchesSetting(+ """+ Parameters for UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting+ """+ input: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput!+ ): UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the members can view dependency insights for an enterprise.+ """+ updateEnterpriseMembersCanViewDependencyInsightsSetting(+ """+ Parameters for UpdateEnterpriseMembersCanViewDependencyInsightsSetting+ """+ input: UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput!+ ): UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether organization projects are enabled for an enterprise.+ """+ updateEnterpriseOrganizationProjectsSetting(+ """+ Parameters for UpdateEnterpriseOrganizationProjectsSetting+ """+ input: UpdateEnterpriseOrganizationProjectsSettingInput!+ ): UpdateEnterpriseOrganizationProjectsSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Updates the role of an enterprise owner with an organization.+ """+ updateEnterpriseOwnerOrganizationRole(+ """+ Parameters for UpdateEnterpriseOwnerOrganizationRole+ """+ input: UpdateEnterpriseOwnerOrganizationRoleInput!+ ): UpdateEnterpriseOwnerOrganizationRolePayload @docsCategory(name: "enterprise-admin")++ """+ Updates an enterprise's profile.+ """+ updateEnterpriseProfile(+ """+ Parameters for UpdateEnterpriseProfile+ """+ input: UpdateEnterpriseProfileInput!+ ): UpdateEnterpriseProfilePayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether repository projects are enabled for a enterprise.+ """+ updateEnterpriseRepositoryProjectsSetting(+ """+ Parameters for UpdateEnterpriseRepositoryProjectsSetting+ """+ input: UpdateEnterpriseRepositoryProjectsSettingInput!+ ): UpdateEnterpriseRepositoryProjectsSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets the two-factor authentication methods that users of an enterprise may not use.+ """+ updateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting(+ """+ Parameters for UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting+ """+ input: UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingInput!+ ): UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether two factor authentication is required for all users in an enterprise.+ """+ updateEnterpriseTwoFactorAuthenticationRequiredSetting(+ """+ Parameters for UpdateEnterpriseTwoFactorAuthenticationRequiredSetting+ """+ input: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput!+ ): UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Updates an environment.+ """+ updateEnvironment(+ """+ Parameters for UpdateEnvironment+ """+ input: UpdateEnvironmentInput!+ ): UpdateEnvironmentPayload @docsCategory(name: "deployments")++ """+ Sets whether an IP allow list is enabled on an owner.+ """+ updateIpAllowListEnabledSetting(+ """+ Parameters for UpdateIpAllowListEnabledSetting+ """+ input: UpdateIpAllowListEnabledSettingInput!+ ): UpdateIpAllowListEnabledSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Updates an IP allow list entry.+ """+ updateIpAllowListEntry(+ """+ Parameters for UpdateIpAllowListEntry+ """+ input: UpdateIpAllowListEntryInput!+ ): UpdateIpAllowListEntryPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether IP allow list configuration for installed GitHub Apps is enabled on an owner.+ """+ updateIpAllowListForInstalledAppsEnabledSetting(+ """+ Parameters for UpdateIpAllowListForInstalledAppsEnabledSetting+ """+ input: UpdateIpAllowListForInstalledAppsEnabledSettingInput!+ ): UpdateIpAllowListForInstalledAppsEnabledSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Sets whether IP allow list user-level enforcement is enabled on an enterprise.+ """+ updateIpAllowListUserLevelEnforcementEnabledSetting(+ """+ Parameters for UpdateIpAllowListUserLevelEnforcementEnabledSetting+ """+ input: UpdateIpAllowListUserLevelEnforcementEnabledSettingInput!+ ): UpdateIpAllowListUserLevelEnforcementEnabledSettingPayload @docsCategory(name: "enterprise-admin")++ """+ Updates an Issue.+ """+ updateIssue(+ """+ Parameters for UpdateIssue+ """+ input: UpdateIssueInput!+ ): UpdateIssuePayload @docsCategory(name: "issues")++ """+ Updates an IssueComment object.+ """+ updateIssueComment(+ """+ Parameters for UpdateIssueComment+ """+ input: UpdateIssueCommentInput!+ ): UpdateIssueCommentPayload @docsCategory(name: "issues")++ """+ Updates an issue field.+ """+ updateIssueField(+ """+ Parameters for UpdateIssueField+ """+ input: UpdateIssueFieldInput!+ ): UpdateIssueFieldPayload @docsCategory(name: "issues")++ """+ Updates an existing issue field value for an issue.+ """+ updateIssueFieldValue(+ """+ Parameters for UpdateIssueFieldValue+ """+ input: UpdateIssueFieldValueInput!+ ): UpdateIssueFieldValuePayload @docsCategory(name: "issues")++ """+ Updates the issue type on an issue+ """+ updateIssueIssueType(+ """+ Parameters for UpdateIssueIssueType+ """+ input: UpdateIssueIssueTypeInput!+ ): UpdateIssueIssueTypePayload @docsCategory(name: "issues")++ """+ Update an issue type+ """+ updateIssueType(+ """+ Parameters for UpdateIssueType+ """+ input: UpdateIssueTypeInput!+ ): UpdateIssueTypePayload @docsCategory(name: "issues")++ """+ Updates an existing label.+ """+ updateLabel(+ """+ Parameters for UpdateLabel+ """+ input: UpdateLabelInput!+ ): UpdateLabelPayload @docsCategory(name: "issues")++ """+ Update the setting to restrict notifications to only verified or approved domains available to an owner.+ """+ updateNotificationRestrictionSetting(+ """+ Parameters for UpdateNotificationRestrictionSetting+ """+ input: UpdateNotificationRestrictionSettingInput!+ ): UpdateNotificationRestrictionSettingPayload @docsCategory(name: "activity")++ """+ Sets whether private repository forks are enabled for an organization.+ """+ updateOrganizationAllowPrivateRepositoryForkingSetting(+ """+ Parameters for UpdateOrganizationAllowPrivateRepositoryForkingSetting+ """+ input: UpdateOrganizationAllowPrivateRepositoryForkingSettingInput!+ ): UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload @docsCategory(name: "orgs")++ """+ Sets whether contributors are required to sign off on web-based commits for repositories in an organization.+ """+ updateOrganizationWebCommitSignoffSetting(+ """+ Parameters for UpdateOrganizationWebCommitSignoffSetting+ """+ input: UpdateOrganizationWebCommitSignoffSettingInput!+ ): UpdateOrganizationWebCommitSignoffSettingPayload @docsCategory(name: "orgs")++ """+ Toggle the setting for your GitHub Sponsors profile that allows other GitHub+ accounts to sponsor you on GitHub while paying for the sponsorship on Patreon.+ Only applicable when you have a GitHub Sponsors profile and have connected+ your GitHub account with Patreon.+ """+ updatePatreonSponsorability(+ """+ Parameters for UpdatePatreonSponsorability+ """+ input: UpdatePatreonSponsorabilityInput!+ ): UpdatePatreonSponsorabilityPayload @docsCategory(name: "sponsors")++ """+ Updates an existing project.+ """+ updateProject(+ """+ Parameters for UpdateProject+ """+ input: UpdateProjectInput!+ ): UpdateProjectPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Updates an existing project card.+ """+ updateProjectCard(+ """+ Parameters for UpdateProjectCard+ """+ input: UpdateProjectCardInput!+ ): UpdateProjectCardPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Updates an existing project column.+ """+ updateProjectColumn(+ """+ Parameters for UpdateProjectColumn+ """+ input: UpdateProjectColumnInput!+ ): UpdateProjectColumnPayload+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+ @docsCategory(name: "projects-classic")++ """+ Updates an existing project.+ """+ updateProjectV2(+ """+ Parameters for UpdateProjectV2+ """+ input: UpdateProjectV2Input!+ ): UpdateProjectV2Payload @docsCategory(name: "projects")++ """+ Update the collaborators on a team or a project+ """+ updateProjectV2Collaborators(+ """+ Parameters for UpdateProjectV2Collaborators+ """+ input: UpdateProjectV2CollaboratorsInput!+ ): UpdateProjectV2CollaboratorsPayload @docsCategory(name: "projects")++ """+ Updates a draft issue within a Project.+ """+ updateProjectV2DraftIssue(+ """+ Parameters for UpdateProjectV2DraftIssue+ """+ input: UpdateProjectV2DraftIssueInput!+ ): UpdateProjectV2DraftIssuePayload @docsCategory(name: "projects")++ """+ Update a project field.+ """+ updateProjectV2Field(+ """+ Parameters for UpdateProjectV2Field+ """+ input: UpdateProjectV2FieldInput!+ ): UpdateProjectV2FieldPayload @docsCategory(name: "projects")++ """+ This mutation updates the value of a field for an item in a Project. Currently+ only single-select, multi-select, text, number, date, and iteration fields are supported.+ """+ updateProjectV2ItemFieldValue(+ """+ Parameters for UpdateProjectV2ItemFieldValue+ """+ input: UpdateProjectV2ItemFieldValueInput!+ ): UpdateProjectV2ItemFieldValuePayload @docsCategory(name: "projects")++ """+ This mutation updates the position of the item in the project, where the position represents the priority of an item.+ """+ updateProjectV2ItemPosition(+ """+ Parameters for UpdateProjectV2ItemPosition+ """+ input: UpdateProjectV2ItemPositionInput!+ ): UpdateProjectV2ItemPositionPayload @docsCategory(name: "projects")++ """+ Updates a status update within a Project.+ """+ updateProjectV2StatusUpdate(+ """+ Parameters for UpdateProjectV2StatusUpdate+ """+ input: UpdateProjectV2StatusUpdateInput!+ ): UpdateProjectV2StatusUpdatePayload @docsCategory(name: "projects")++ """+ Updates an existing view in a project.+ """+ updateProjectV2View(+ """+ Parameters for UpdateProjectV2View+ """+ input: UpdateProjectV2ViewInput!+ ): UpdateProjectV2ViewPayload @docsCategory(name: "projects")++ """+ Update a pull request+ """+ updatePullRequest(+ """+ Parameters for UpdatePullRequest+ """+ input: UpdatePullRequestInput!+ ): UpdatePullRequestPayload @docsCategory(name: "pulls")++ """+ Merge or Rebase HEAD from upstream branch into pull request branch+ """+ updatePullRequestBranch(+ """+ Parameters for UpdatePullRequestBranch+ """+ input: UpdatePullRequestBranchInput!+ ): UpdatePullRequestBranchPayload @docsCategory(name: "pulls")++ """+ Updates the body of a pull request review.+ """+ updatePullRequestReview(+ """+ Parameters for UpdatePullRequestReview+ """+ input: UpdatePullRequestReviewInput!+ ): UpdatePullRequestReviewPayload @docsCategory(name: "pulls")++ """+ Updates a pull request review comment.+ """+ updatePullRequestReviewComment(+ """+ Parameters for UpdatePullRequestReviewComment+ """+ input: UpdatePullRequestReviewCommentInput!+ ): UpdatePullRequestReviewCommentPayload @docsCategory(name: "pulls")++ """+ Update a Git Ref.+ """+ updateRef(+ """+ Parameters for UpdateRef+ """+ input: UpdateRefInput!+ ): UpdateRefPayload @docsCategory(name: "git")++ """+ Creates, updates and/or deletes multiple refs in a repository.++ This mutation takes a list of `RefUpdate`s and performs these updates+ on the repository. All updates are performed atomically, meaning that+ if one of them is rejected, no other ref will be modified.++ `RefUpdate.beforeOid` specifies that the given reference needs to point+ to the given value before performing any updates. A value of+ `0000000000000000000000000000000000000000` can be used to verify that+ the references should not exist.++ `RefUpdate.afterOid` specifies the value that the given reference+ will point to after performing all updates. A value of+ `0000000000000000000000000000000000000000` can be used to delete a+ reference.++ If `RefUpdate.force` is set to `true`, a non-fast-forward updates+ for the given reference will be allowed.+ """+ updateRefs(+ """+ Parameters for UpdateRefs+ """+ input: UpdateRefsInput!+ ): UpdateRefsPayload @docsCategory(name: "git")++ """+ Update information about a repository.+ """+ updateRepository(+ """+ Parameters for UpdateRepository+ """+ input: UpdateRepositoryInput!+ ): UpdateRepositoryPayload @docsCategory(name: "repos")++ """+ Update a repository custom property.+ """+ updateRepositoryCustomProperty(+ """+ Parameters for UpdateRepositoryCustomProperty+ """+ input: UpdateRepositoryCustomPropertyInput!+ ): UpdateRepositoryCustomPropertyPayload @docsCategory(name: "repos")++ """+ Update a repository ruleset+ """+ updateRepositoryRuleset(+ """+ Parameters for UpdateRepositoryRuleset+ """+ input: UpdateRepositoryRulesetInput!+ ): UpdateRepositoryRulesetPayload @docsCategory(name: "repos")++ """+ Sets whether contributors are required to sign off on web-based commits for a repository.+ """+ updateRepositoryWebCommitSignoffSetting(+ """+ Parameters for UpdateRepositoryWebCommitSignoffSetting+ """+ input: UpdateRepositoryWebCommitSignoffSettingInput!+ ): UpdateRepositoryWebCommitSignoffSettingPayload @docsCategory(name: "repos")++ """+ Change visibility of your sponsorship and opt in or out of email updates from the maintainer.+ """+ updateSponsorshipPreferences(+ """+ Parameters for UpdateSponsorshipPreferences+ """+ input: UpdateSponsorshipPreferencesInput!+ ): UpdateSponsorshipPreferencesPayload @docsCategory(name: "sponsors")++ """+ Updates the state for subscribable subjects.+ """+ updateSubscription(+ """+ Parameters for UpdateSubscription+ """+ input: UpdateSubscriptionInput!+ ): UpdateSubscriptionPayload @docsCategory(name: "activity")++ """+ Updates team review assignment.+ """+ updateTeamReviewAssignment(+ """+ Parameters for UpdateTeamReviewAssignment+ """+ input: UpdateTeamReviewAssignmentInput!+ ): UpdateTeamReviewAssignmentPayload @docsCategory(name: "pulls")++ """+ Update team repository.+ """+ updateTeamsRepository(+ """+ Parameters for UpdateTeamsRepository+ """+ input: UpdateTeamsRepositoryInput!+ ): UpdateTeamsRepositoryPayload @docsCategory(name: "teams")++ """+ Replaces the repository's topics with the given topics.+ """+ updateTopics(+ """+ Parameters for UpdateTopics+ """+ input: UpdateTopicsInput!+ ): UpdateTopicsPayload @docsCategory(name: "repos")++ """+ Updates an existing user list.+ """+ updateUserList(+ """+ Parameters for UpdateUserList+ """+ input: UpdateUserListInput!+ ): UpdateUserListPayload @docsCategory(name: "users")++ """+ Updates which of the viewer's lists an item belongs to+ """+ updateUserListsForItem(+ """+ Parameters for UpdateUserListsForItem+ """+ input: UpdateUserListsForItemInput!+ ): UpdateUserListsForItemPayload @docsCategory(name: "users")++ """+ Verify that a verifiable domain has the expected DNS record.+ """+ verifyVerifiableDomain(+ """+ Parameters for VerifyVerifiableDomain+ """+ input: VerifyVerifiableDomainInput!+ ): VerifyVerifiableDomainPayload @docsCategory(name: "orgs")+}++"""+An object with an ID.+"""+interface Node @docsCategory(name: "meta") {+ """+ ID of the object.+ """+ id: ID!+}++"""+The possible values for the notification restriction setting.+"""+enum NotificationRestrictionSettingValue @docsCategory(name: "activity") {+ """+ The setting is disabled for the owner.+ """+ DISABLED++ """+ The setting is enabled for the owner.+ """+ ENABLED+}++"""+An OIDC identity provider configured to provision identities for an enterprise.+Visible to enterprise owners or enterprise owners' personal access tokens+(classic) with read:enterprise or admin:enterprise scope.+"""+type OIDCProvider implements Node @docsCategory(name: "enterprise-admin") {+ """+ The enterprise this identity provider belongs to.+ """+ enterprise: Enterprise++ """+ ExternalIdentities provisioned by this identity provider.+ """+ externalIdentities(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter to external identities with the users login+ """+ login: String++ """+ Filter to external identities with valid org membership only+ """+ membersOnly: Boolean++ """+ Filter to external identities with the users userName/NameID attribute+ """+ userName: String+ ): ExternalIdentityConnection!++ """+ The Node ID of the OIDCProvider object+ """+ id: ID!++ """+ The OIDC identity provider type+ """+ providerType: OIDCProviderType!++ """+ The id of the tenant this provider is attached to+ """+ tenantId: String!+}++"""+The OIDC identity provider type+"""+enum OIDCProviderType @docsCategory(name: "enterprise-admin") {+ """+ Azure Active Directory+ """+ AAD+}++"""+Metadata for an audit entry with action oauth_application.*+"""+interface OauthApplicationAuditEntryData @docsCategory(name: "apps") {+ """+ The name of the OAuth application.+ """+ oauthApplicationName: String++ """+ The HTTP path for the OAuth application+ """+ oauthApplicationResourcePath: URI++ """+ The HTTP URL for the OAuth application+ """+ oauthApplicationUrl: URI+}++"""+Audit log entry for a oauth_application.create event.+"""+type OauthApplicationCreateAuditEntry implements AuditEntry &+ Node &+ OauthApplicationAuditEntryData &+ OrganizationAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The application URL of the OAuth application.+ """+ applicationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The callback URL of the OAuth application.+ """+ callbackUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OauthApplicationCreateAuditEntry object+ """+ id: ID!++ """+ The name of the OAuth application.+ """+ oauthApplicationName: String++ """+ The HTTP path for the OAuth application+ """+ oauthApplicationResourcePath: URI++ """+ The HTTP URL for the OAuth application+ """+ oauthApplicationUrl: URI++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The rate limit of the OAuth application.+ """+ rateLimit: Int+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The state of the OAuth application.+ """+ state: OauthApplicationCreateAuditEntryState+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The state of an OAuth application when it was created.+"""+enum OauthApplicationCreateAuditEntryState @docsCategory(name: "apps") {+ """+ The OAuth application was active and allowed to have OAuth Accesses.+ """+ ACTIVE++ """+ The OAuth application was in the process of being deleted.+ """+ PENDING_DELETION++ """+ The OAuth application was suspended from generating OAuth Accesses due to abuse or security concerns.+ """+ SUSPENDED+}++"""+The corresponding operation type for the action+"""+enum OperationType @docsCategory(name: "meta") {+ """+ An existing resource was accessed+ """+ ACCESS++ """+ A resource performed an authentication event+ """+ AUTHENTICATION++ """+ A new resource was created+ """+ CREATE++ """+ An existing resource was modified+ """+ MODIFY++ """+ An existing resource was removed+ """+ REMOVE++ """+ An existing resource was restored+ """+ RESTORE++ """+ An existing resource was transferred between multiple resources+ """+ TRANSFER+}++"""+Possible directions in which to order a list of items when provided an `orderBy` argument.+"""+enum OrderDirection @docsCategory(name: "meta") {+ """+ Specifies an ascending order for a given `orderBy` argument.+ """+ ASC++ """+ Specifies a descending order for a given `orderBy` argument.+ """+ DESC+}++"""+Audit log entry for a org.add_billing_manager+"""+type OrgAddBillingManagerAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgAddBillingManagerAuditEntry object+ """+ id: ID!++ """+ The email address used to invite a billing manager for the organization.+ """+ invitationEmail: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.add_member+"""+type OrgAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgAddMemberAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The permission level of the member added to the organization.+ """+ permission: OrgAddMemberAuditEntryPermission+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The permissions available to members on an Organization.+"""+enum OrgAddMemberAuditEntryPermission @docsCategory(name: "orgs") {+ """+ Can read, clone, push, and add collaborators to repositories.+ """+ ADMIN++ """+ Can read and clone repositories.+ """+ READ+}++"""+Audit log entry for a org.block_user+"""+type OrgBlockUserAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The blocked user.+ """+ blockedUser: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the blocked user.+ """+ blockedUserName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the blocked user.+ """+ blockedUserResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the blocked user.+ """+ blockedUserUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgBlockUserAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.config.disable_collaborators_only event.+"""+type OrgConfigDisableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgConfigDisableCollaboratorsOnlyAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.config.enable_collaborators_only event.+"""+type OrgConfigEnableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgConfigEnableCollaboratorsOnlyAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.create event.+"""+type OrgCreateAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The billing plan for the Organization.+ """+ billingPlan: OrgCreateAuditEntryBillingPlan+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgCreateAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The billing plans available for organizations.+"""+enum OrgCreateAuditEntryBillingPlan @docsCategory(name: "orgs") {+ """+ Team Plan+ """+ BUSINESS++ """+ Enterprise Cloud Plan+ """+ BUSINESS_PLUS++ """+ Free Plan+ """+ FREE++ """+ Tiered Per Seat Plan+ """+ TIERED_PER_SEAT++ """+ Legacy Unlimited Plan+ """+ UNLIMITED+}++"""+Audit log entry for a org.disable_oauth_app_restrictions event.+"""+type OrgDisableOauthAppRestrictionsAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgDisableOauthAppRestrictionsAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.disable_saml event.+"""+type OrgDisableSamlAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The SAML provider's digest algorithm URL.+ """+ digestMethodUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgDisableSamlAuditEntry object+ """+ id: ID!++ """+ The SAML provider's issuer URL.+ """+ issuerUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The SAML provider's signature algorithm URL.+ """+ signatureMethodUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The SAML provider's single sign-on URL.+ """+ singleSignOnUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.disable_two_factor_requirement event.+"""+type OrgDisableTwoFactorRequirementAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgDisableTwoFactorRequirementAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.enable_oauth_app_restrictions event.+"""+type OrgEnableOauthAppRestrictionsAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgEnableOauthAppRestrictionsAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.enable_saml event.+"""+type OrgEnableSamlAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The SAML provider's digest algorithm URL.+ """+ digestMethodUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgEnableSamlAuditEntry object+ """+ id: ID!++ """+ The SAML provider's issuer URL.+ """+ issuerUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The SAML provider's signature algorithm URL.+ """+ signatureMethodUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The SAML provider's single sign-on URL.+ """+ singleSignOnUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.enable_two_factor_requirement event.+"""+type OrgEnableTwoFactorRequirementAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgEnableTwoFactorRequirementAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Ordering options for an organization's enterprise owner connections.+"""+input OrgEnterpriseOwnerOrder @docsCategory(name: "orgs") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order enterprise owners by.+ """+ field: OrgEnterpriseOwnerOrderField!+}++"""+Properties by which enterprise owners can be ordered.+"""+enum OrgEnterpriseOwnerOrderField @docsCategory(name: "orgs") {+ """+ Order enterprise owners by login.+ """+ LOGIN+}++"""+Audit log entry for a org.invite_member event.+"""+type OrgInviteMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The email address of the organization invitation.+ """+ email: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgInviteMemberAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The organization invitation.+ """+ organizationInvitation: OrganizationInvitation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.invite_to_business event.+"""+type OrgInviteToBusinessAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the OrgInviteToBusinessAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.oauth_app_access_approved event.+"""+type OrgOauthAppAccessApprovedAuditEntry implements AuditEntry &+ Node &+ OauthApplicationAuditEntryData &+ OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgOauthAppAccessApprovedAuditEntry object+ """+ id: ID!++ """+ The name of the OAuth application.+ """+ oauthApplicationName: String++ """+ The HTTP path for the OAuth application+ """+ oauthApplicationResourcePath: URI++ """+ The HTTP URL for the OAuth application+ """+ oauthApplicationUrl: URI++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.oauth_app_access_blocked event.+"""+type OrgOauthAppAccessBlockedAuditEntry implements AuditEntry &+ Node &+ OauthApplicationAuditEntryData &+ OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgOauthAppAccessBlockedAuditEntry object+ """+ id: ID!++ """+ The name of the OAuth application.+ """+ oauthApplicationName: String++ """+ The HTTP path for the OAuth application+ """+ oauthApplicationResourcePath: URI++ """+ The HTTP URL for the OAuth application+ """+ oauthApplicationUrl: URI++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.oauth_app_access_denied event.+"""+type OrgOauthAppAccessDeniedAuditEntry implements AuditEntry &+ Node &+ OauthApplicationAuditEntryData &+ OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgOauthAppAccessDeniedAuditEntry object+ """+ id: ID!++ """+ The name of the OAuth application.+ """+ oauthApplicationName: String++ """+ The HTTP path for the OAuth application+ """+ oauthApplicationResourcePath: URI++ """+ The HTTP URL for the OAuth application+ """+ oauthApplicationUrl: URI++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.oauth_app_access_requested event.+"""+type OrgOauthAppAccessRequestedAuditEntry implements AuditEntry &+ Node &+ OauthApplicationAuditEntryData &+ OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgOauthAppAccessRequestedAuditEntry object+ """+ id: ID!++ """+ The name of the OAuth application.+ """+ oauthApplicationName: String++ """+ The HTTP path for the OAuth application+ """+ oauthApplicationResourcePath: URI++ """+ The HTTP URL for the OAuth application+ """+ oauthApplicationUrl: URI++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.oauth_app_access_unblocked event.+"""+type OrgOauthAppAccessUnblockedAuditEntry implements AuditEntry &+ Node &+ OauthApplicationAuditEntryData &+ OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgOauthAppAccessUnblockedAuditEntry object+ """+ id: ID!++ """+ The name of the OAuth application.+ """+ oauthApplicationName: String++ """+ The HTTP path for the OAuth application+ """+ oauthApplicationResourcePath: URI++ """+ The HTTP URL for the OAuth application+ """+ oauthApplicationUrl: URI++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.remove_billing_manager event.+"""+type OrgRemoveBillingManagerAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgRemoveBillingManagerAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The reason for the billing manager being removed.+ """+ reason: OrgRemoveBillingManagerAuditEntryReason+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The reason a billing manager was removed from an Organization.+"""+enum OrgRemoveBillingManagerAuditEntryReason @docsCategory(name: "orgs") {+ """+ SAML external identity missing+ """+ SAML_EXTERNAL_IDENTITY_MISSING++ """+ SAML SSO enforcement requires an external identity+ """+ SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY++ """+ The organization required 2FA of its billing managers and this user did not have 2FA enabled.+ """+ TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE+}++"""+Audit log entry for a org.remove_member event.+"""+type OrgRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgRemoveMemberAuditEntry object+ """+ id: ID!++ """+ The types of membership the member has with the organization.+ """+ membershipTypes: [OrgRemoveMemberAuditEntryMembershipType!]+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The reason for the member being removed.+ """+ reason: OrgRemoveMemberAuditEntryReason+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The type of membership a user has with an Organization.+"""+enum OrgRemoveMemberAuditEntryMembershipType @docsCategory(name: "orgs") {+ """+ Organization owners have full access and can change several settings,+ including the names of repositories that belong to the Organization and Owners+ team membership. In addition, organization owners can delete the organization+ and all of its repositories.+ """+ ADMIN++ """+ A billing manager is a user who manages the billing settings for the Organization, such as updating payment information.+ """+ BILLING_MANAGER++ """+ A direct member is a user that is a member of the Organization.+ """+ DIRECT_MEMBER++ """+ An outside collaborator is a person who isn't explicitly a member of the+ Organization, but who has Read, Write, or Admin permissions to one or more+ repositories in the organization.+ """+ OUTSIDE_COLLABORATOR++ """+ A suspended member.+ """+ SUSPENDED++ """+ An unaffiliated collaborator is a person who is not a member of the+ Organization and does not have access to any repositories in the Organization.+ """+ UNAFFILIATED+}++"""+The reason a member was removed from an Organization.+"""+enum OrgRemoveMemberAuditEntryReason @docsCategory(name: "orgs") {+ """+ SAML external identity missing+ """+ SAML_EXTERNAL_IDENTITY_MISSING++ """+ SAML SSO enforcement requires an external identity+ """+ SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY++ """+ User was removed from organization during account recovery+ """+ TWO_FACTOR_ACCOUNT_RECOVERY++ """+ The organization required 2FA of its billing managers and this user did not have 2FA enabled.+ """+ TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE++ """+ User account has been deleted+ """+ USER_ACCOUNT_DELETED+}++"""+Audit log entry for a org.remove_outside_collaborator event.+"""+type OrgRemoveOutsideCollaboratorAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgRemoveOutsideCollaboratorAuditEntry object+ """+ id: ID!++ """+ The types of membership the outside collaborator has with the organization.+ """+ membershipTypes: [OrgRemoveOutsideCollaboratorAuditEntryMembershipType!]+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The reason for the outside collaborator being removed from the Organization.+ """+ reason: OrgRemoveOutsideCollaboratorAuditEntryReason+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The type of membership a user has with an Organization.+"""+enum OrgRemoveOutsideCollaboratorAuditEntryMembershipType @docsCategory(name: "orgs") {+ """+ A billing manager is a user who manages the billing settings for the Organization, such as updating payment information.+ """+ BILLING_MANAGER++ """+ An outside collaborator is a person who isn't explicitly a member of the+ Organization, but who has Read, Write, or Admin permissions to one or more+ repositories in the organization.+ """+ OUTSIDE_COLLABORATOR++ """+ An unaffiliated collaborator is a person who is not a member of the+ Organization and does not have access to any repositories in the organization.+ """+ UNAFFILIATED+}++"""+The reason an outside collaborator was removed from an Organization.+"""+enum OrgRemoveOutsideCollaboratorAuditEntryReason @docsCategory(name: "orgs") {+ """+ SAML external identity missing+ """+ SAML_EXTERNAL_IDENTITY_MISSING++ """+ The organization required 2FA of its billing managers and this user did not have 2FA enabled.+ """+ TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE+}++"""+Audit log entry for a org.restore_member event.+"""+type OrgRestoreMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgRestoreMemberAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The number of custom email routings for the restored member.+ """+ restoredCustomEmailRoutingsCount: Int+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The number of issue assignments for the restored member.+ """+ restoredIssueAssignmentsCount: Int+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ Restored organization membership objects.+ """+ restoredMemberships: [OrgRestoreMemberAuditEntryMembership!]+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The number of restored memberships.+ """+ restoredMembershipsCount: Int+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The number of repositories of the restored member.+ """+ restoredRepositoriesCount: Int+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The number of starred repositories for the restored member.+ """+ restoredRepositoryStarsCount: Int+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The number of watched repositories for the restored member.+ """+ restoredRepositoryWatchesCount: Int+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Types of memberships that can be restored for an Organization member.+"""+union OrgRestoreMemberAuditEntryMembership @docsCategory(name: "orgs") =+ | OrgRestoreMemberMembershipOrganizationAuditEntryData+ | OrgRestoreMemberMembershipRepositoryAuditEntryData+ | OrgRestoreMemberMembershipTeamAuditEntryData++"""+Metadata for an organization membership for org.restore_member actions+"""+type OrgRestoreMemberMembershipOrganizationAuditEntryData implements OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Metadata for a repository membership for org.restore_member actions+"""+type OrgRestoreMemberMembershipRepositoryAuditEntryData implements RepositoryAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI+}++"""+Metadata for a team membership for org.restore_member actions+"""+type OrgRestoreMemberMembershipTeamAuditEntryData implements TeamAuditEntryData @docsCategory(name: "orgs") {+ """+ The team associated with the action+ """+ team: Team++ """+ The name of the team+ """+ teamName: String++ """+ The HTTP path for this team+ """+ teamResourcePath: URI++ """+ The HTTP URL for this team+ """+ teamUrl: URI+}++"""+Audit log entry for a org.unblock_user+"""+type OrgUnblockUserAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user being unblocked by the organization.+ """+ blockedUser: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the blocked user.+ """+ blockedUserName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the blocked user.+ """+ blockedUserResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the blocked user.+ """+ blockedUserUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgUnblockUserAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a org.update_default_repository_permission+"""+type OrgUpdateDefaultRepositoryPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgUpdateDefaultRepositoryPermissionAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The new base repository permission level for the organization.+ """+ permission: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The former base repository permission level for the organization.+ """+ permissionWas: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The default permission a repository can have in an Organization.+"""+enum OrgUpdateDefaultRepositoryPermissionAuditEntryPermission @docsCategory(name: "orgs") {+ """+ Can read, clone, push, and add collaborators to repositories.+ """+ ADMIN++ """+ No default permission value.+ """+ NONE++ """+ Can read and clone repositories.+ """+ READ++ """+ Can read, clone and push to repositories.+ """+ WRITE+}++"""+Audit log entry for a org.update_member event.+"""+type OrgUpdateMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgUpdateMemberAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The new member permission level for the organization.+ """+ permission: OrgUpdateMemberAuditEntryPermission+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The former member permission level for the organization.+ """+ permissionWas: OrgUpdateMemberAuditEntryPermission+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The permissions available to members on an Organization.+"""+enum OrgUpdateMemberAuditEntryPermission @docsCategory(name: "orgs") {+ """+ Can read, clone, push, and add collaborators to repositories.+ """+ ADMIN++ """+ Can read and clone repositories.+ """+ READ+}++"""+Audit log entry for a org.update_member_repository_creation_permission event.+"""+type OrgUpdateMemberRepositoryCreationPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ Can members create repositories in the organization.+ """+ canCreateRepositories: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgUpdateMemberRepositoryCreationPermissionAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The permission for visibility level of repositories for this organization.+ """+ visibility: OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The permissions available for repository creation on an Organization.+"""+enum OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility @docsCategory(name: "orgs") {+ """+ All organization members are restricted from creating any repositories.+ """+ ALL++ """+ All organization members are restricted from creating internal repositories.+ """+ INTERNAL++ """+ All organization members are allowed to create any repositories.+ """+ NONE++ """+ All organization members are restricted from creating private repositories.+ """+ PRIVATE++ """+ All organization members are restricted from creating private or internal repositories.+ """+ PRIVATE_INTERNAL++ """+ All organization members are restricted from creating public repositories.+ """+ PUBLIC++ """+ All organization members are restricted from creating public or internal repositories.+ """+ PUBLIC_INTERNAL++ """+ All organization members are restricted from creating public or private repositories.+ """+ PUBLIC_PRIVATE+}++"""+Audit log entry for a org.update_member_repository_invitation_permission event.+"""+type OrgUpdateMemberRepositoryInvitationPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData+ @docsCategory(name: "orgs") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ Can outside collaborators be invited to repositories in the organization.+ """+ canInviteOutsideCollaboratorsToRepositories: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the OrgUpdateMemberRepositoryInvitationPermissionAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+An account on GitHub, with one or more owners, that has repositories, members and teams.+"""+type Organization implements Actor &+ MemberStatusable &+ Node &+ PackageOwner &+ ProfileOwner &+ ProjectOwner &+ ProjectV2Owner &+ ProjectV2Recent &+ RepositoryDiscussionAuthor &+ RepositoryDiscussionCommentAuthor &+ RepositoryOwner &+ Sponsorable &+ UniformResourceLocatable @docsCategory(name: "orgs") {+ """+ The announcement banner set on this organization, if any. Only visible to members of the organization's enterprise.+ """+ announcementBanner: AnnouncementBanner++ """+ Determine if this repository owner has any items that can be pinned to their profile.+ """+ anyPinnableItems(+ """+ Filter to only a particular kind of pinnable item.+ """+ type: PinnableItemType+ ): Boolean!++ """+ Identifies the date and time when the organization was archived.+ """+ archivedAt: DateTime++ """+ Audit log entries of the organization+ """+ auditLog(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the returned audit log entries.+ """+ orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC}++ """+ The query string to filter audit entries+ """+ query: String+ ): OrganizationAuditEntryConnection!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A URL pointing to the organization's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The organization's public profile description.+ """+ description: String++ """+ The organization's public profile description rendered to HTML.+ """+ descriptionHTML: String++ """+ A list of domains owned by the organization.+ """+ domains(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Filter by if the domain is approved.+ """+ isApproved: Boolean = null++ """+ Filter by if the domain is verified.+ """+ isVerified: Boolean = null++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for verifiable domains returned.+ """+ orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC}+ ): VerifiableDomainConnection++ """+ The organization's public email.+ """+ email: String++ """+ A list of owners of the organization's enterprise account.+ """+ enterpriseOwners(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for enterprise owners returned from the connection.+ """+ orderBy: OrgEnterpriseOwnerOrder = {field: LOGIN, direction: ASC}++ """+ The organization role to filter by.+ """+ organizationRole: RoleInOrganization++ """+ The search string to look for.+ """+ query: String+ ): OrganizationEnterpriseOwnerConnection!++ """+ The estimated next GitHub Sponsors payout for this user/organization in cents (USD).+ """+ estimatedNextSponsorsPayoutInCents: Int!++ """+ True if this user/organization has a GitHub Sponsors listing.+ """+ hasSponsorsListing: Boolean!++ """+ The Node ID of the Organization object+ """+ id: ID!++ """+ Innersource security vulnerabilities scoped to this organization.+ """+ innersourceVulnerabilities(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ An ecosystem to filter vulnerabilities by.+ """+ ecosystem: SecurityAdvisoryEcosystem++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the returned vulnerabilities.+ """+ orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}++ """+ A package name to filter vulnerabilities by.+ """+ package: String++ """+ A list of severities to filter vulnerabilities by.+ """+ severities: [SecurityAdvisorySeverity!]+ ): SecurityVulnerabilityConnection!++ """+ The interaction ability settings for this organization.+ """+ interactionAbility: RepositoryInteractionAbility++ """+ The setting value for whether the organization has an IP allow list enabled.+ """+ ipAllowListEnabledSetting: IpAllowListEnabledSettingValue!++ """+ The IP addresses that are allowed to access resources owned by the organization.+ """+ ipAllowListEntries(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for IP allow list entries returned.+ """+ orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC}+ ): IpAllowListEntryConnection!++ """+ The setting value for whether the organization has IP allow list configuration for installed GitHub Apps enabled.+ """+ ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue!++ """+ Whether the given account is sponsoring this user/organization.+ """+ isSponsoredBy(+ """+ The target account's login.+ """+ accountLogin: String!+ ): Boolean!++ """+ True if the viewer is sponsored by this user/organization.+ """+ isSponsoringViewer: Boolean!++ """+ Whether the organization has verified its profile email and website.+ """+ isVerified: Boolean!++ """+ A list of the organization's issue fields+ """+ issueFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issue fields returned from the connection.+ """+ orderBy: IssueFieldOrder = {field: CREATED_AT, direction: ASC}+ ): IssueFieldsConnection++ """+ A list of the organization's issue types+ """+ issueTypes(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issue types returned from the connection.+ """+ orderBy: IssueTypeOrder = {field: CREATED_AT, direction: ASC}+ ): IssueTypeConnection++ """+ Showcases a selection of repositories and gists that the profile owner has+ either curated or that have been selected automatically based on popularity.+ """+ itemShowcase: ProfileItemShowcase!++ """+ Calculate how much each sponsor has ever paid total to this maintainer via+ GitHub Sponsors. Does not include sponsorships paid via Patreon.+ """+ lifetimeReceivedSponsorshipValues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for results returned from the connection.+ """+ orderBy: SponsorAndLifetimeValueOrder = {field: SPONSOR_LOGIN, direction: ASC}+ ): SponsorAndLifetimeValueConnection!++ """+ The organization's public profile location.+ """+ location: String++ """+ The organization's login name.+ """+ login: String!++ """+ A list of all mannequins for this organization.+ """+ mannequins(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter mannequins by login.+ """+ login: String++ """+ Ordering options for mannequins returned from the connection.+ """+ orderBy: MannequinOrder = {field: CREATED_AT, direction: ASC}+ ): MannequinConnection!++ """+ Get the status messages members of this entity have set that are either public or visible only to the organization.+ """+ memberStatuses(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for user statuses returned from the connection.+ """+ orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC}+ ): UserStatusConnection!++ """+ Members can fork private repositories in this organization+ """+ membersCanForkPrivateRepositories: Boolean!++ """+ A list of users who are members of this organization.+ """+ membersWithRole(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): OrganizationMemberConnection!++ """+ The estimated monthly GitHub Sponsors income for this user/organization in cents (USD).+ """+ monthlyEstimatedSponsorsIncomeInCents: Int!++ """+ The organization's public profile name.+ """+ name: String++ """+ The HTTP path creating a new team+ """+ newTeamResourcePath: URI!++ """+ The HTTP URL creating a new team+ """+ newTeamUrl: URI!++ """+ Indicates if email notification delivery for this organization is restricted to verified or approved domains.+ """+ notificationDeliveryRestrictionEnabledSetting: NotificationRestrictionSettingValue!++ """+ The billing email for the organization.+ """+ organizationBillingEmail: String++ """+ A list of packages under the owner.+ """+ packages(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Find packages by their names.+ """+ names: [String]++ """+ Ordering of the returned packages.+ """+ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC}++ """+ Filter registry package by type.+ """+ packageType: PackageType++ """+ Find packages in a repository by ID.+ """+ repositoryId: ID+ ): PackageConnection!++ """+ A list of users who have been invited to join this organization.+ """+ pendingMembers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ A list of repositories and gists this profile owner can pin to their profile.+ """+ pinnableItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter the types of pinnable items that are returned.+ """+ types: [PinnableItemType!]+ ): PinnableItemConnection!++ """+ An ordered list of issue fields pinned to issues when no type is selected.+ """+ pinnedIssueFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): IssueFieldsConnection++ """+ A list of repositories and gists this profile owner has pinned to their profile+ """+ pinnedItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter the types of pinned items that are returned.+ """+ types: [PinnableItemType!]+ ): PinnableItemConnection!++ """+ Returns how many more items this profile owner can pin to their profile.+ """+ pinnedItemsRemaining: Int!++ """+ Find project by number.+ """+ project(+ """+ The project number to find.+ """+ number: Int!+ ): Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Find a project by number.+ """+ projectV2(+ """+ The project number.+ """+ number: Int!+ ): ProjectV2++ """+ A list of projects under the owner.+ """+ projects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for projects returned from the connection+ """+ orderBy: ProjectOrder++ """+ Query to search projects by, currently only searching by name.+ """+ search: String++ """+ A list of states to filter the projects by.+ """+ states: [ProjectState!]+ ): ProjectConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP path listing organization's projects+ """+ projectsResourcePath: URI!++ """+ The HTTP URL listing organization's projects+ """+ projectsUrl: URI!++ """+ A list of projects under the owner.+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter projects based on user role.+ """+ minPermissionLevel: ProjectV2PermissionLevel = READ++ """+ How to order the returned projects.+ """+ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}++ """+ A project to search for under the owner.+ """+ query: String+ ): ProjectV2Connection!++ """+ Recent projects that this user has modified in the context of the owner.+ """+ recentProjects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2Connection!++ """+ A list of repositories that the user owns.+ """+ repositories(+ """+ Array of viewer's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ current viewer owns.+ """+ affiliations: [RepositoryAffiliation]++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ If non-null, filters repositories according to whether they have issues enabled+ """+ hasIssuesEnabled: Boolean++ """+ If non-null, filters repositories according to whether they are archived and not maintained+ """+ isArchived: Boolean++ """+ If non-null, filters repositories according to whether they are forks of another repository+ """+ isFork: Boolean++ """+ If non-null, filters repositories according to whether they have been locked+ """+ isLocked: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder++ """+ Array of owner's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ organization or user being viewed owns.+ """+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]++ """+ If non-null, filters repositories according to privacy. Internal+ repositories are considered private; consider using the visibility argument+ if only internal repositories are needed. Cannot be combined with the+ visibility argument.+ """+ privacy: RepositoryPrivacy++ """+ If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.+ """+ visibility: RepositoryVisibility+ ): RepositoryConnection!++ """+ Find Repository.+ """+ repository(+ """+ Follow repository renames. If disabled, a repository referenced by its old name will return an error.+ """+ followRenames: Boolean = true++ """+ Name of Repository to find.+ """+ name: String!+ ): Repository++ """+ A list of custom properties for this organization.+ """+ repositoryCustomProperties(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): RepositoryCustomPropertyConnection++ """+ Returns a single custom property from the current organization by name.+ """+ repositoryCustomProperty(+ """+ The name of the custom property to be returned.+ """+ propertyName: String!+ ): RepositoryCustomProperty++ """+ Discussion comments this user has authored.+ """+ repositoryDiscussionComments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter discussion comments to only those that were marked as the answer+ """+ onlyAnswers: Boolean = false++ """+ Filter discussion comments to only those in a specific repository.+ """+ repositoryId: ID+ ): DiscussionCommentConnection!++ """+ Discussions this user has started.+ """+ repositoryDiscussions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Filter discussions to only those that have been answered or not. Defaults to+ including both answered and unanswered discussions.+ """+ answered: Boolean = null++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for discussions returned from the connection.+ """+ orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC}++ """+ Filter discussions to only those in a specific repository.+ """+ repositoryId: ID++ """+ A list of states to filter the discussions by.+ """+ states: [DiscussionState!] = []+ ): DiscussionConnection!++ """+ A list of all repository migrations for this organization.+ """+ repositoryMigrations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repository migrations returned.+ """+ orderBy: RepositoryMigrationOrder = {field: CREATED_AT, direction: ASC}++ """+ Filter repository migrations by repository name.+ """+ repositoryName: String++ """+ Filter repository migrations by state.+ """+ state: MigrationState+ ): RepositoryMigrationConnection!++ """+ When true the organization requires all members, billing managers, and outside+ collaborators to enable two-factor authentication.+ """+ requiresTwoFactorAuthentication: Boolean++ """+ The HTTP path for this organization.+ """+ resourcePath: URI!++ """+ Returns a single ruleset from the current organization by ID.+ """+ ruleset(+ """+ The ID of the ruleset to be returned.+ """+ databaseId: Int!++ """+ Include rulesets configured at higher levels that apply to this organization.+ """+ includeParents: Boolean = true+ ): RepositoryRuleset++ """+ A list of rulesets for this organization.+ """+ rulesets(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Return rulesets configured at higher levels that apply to this organization+ """+ includeParents: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Return rulesets that apply to the specified target+ """+ targets: [RepositoryRulesetTarget!] = null+ ): RepositoryRulesetConnection++ """+ The Organization's SAML identity provider. Visible to (1) organization owners,+ (2) organization owners' personal access tokens (classic) with read:org or+ admin:org scope, (3) GitHub App with an installation token with read or write+ access to members.+ """+ samlIdentityProvider: OrganizationIdentityProvider++ """+ List of users and organizations this entity is sponsoring.+ """+ sponsoring(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the users and organizations returned from the connection.+ """+ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}+ ): SponsorConnection!++ """+ List of sponsors for this user or organization.+ """+ sponsors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsors returned from the connection.+ """+ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}++ """+ If given, will filter for sponsors at the given tier. Will only return+ sponsors whose tier the viewer is permitted to see.+ """+ tierId: ID+ ): SponsorConnection!++ """+ Events involving this sponsorable, such as new sponsorships.+ """+ sponsorsActivities(+ """+ Filter activities to only the specified actions.+ """+ actions: [SponsorsActivityAction!] = []++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether to include those events where this sponsorable acted as the sponsor.+ Defaults to only including events where this sponsorable was the recipient+ of a sponsorship.+ """+ includeAsSponsor: Boolean = false++ """+ Whether or not to include private activities in the result set. Defaults to including public and private activities.+ """+ includePrivate: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for activity returned from the connection.+ """+ orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC}++ """+ Filter activities returned to only those that occurred in the most recent+ specified time period. Set to ALL to avoid filtering by when the activity+ occurred. Will be ignored if `since` or `until` is given.+ """+ period: SponsorsActivityPeriod = MONTH++ """+ Filter activities to those that occurred on or after this time.+ """+ since: DateTime++ """+ Filter activities to those that occurred before this time.+ """+ until: DateTime+ ): SponsorsActivityConnection!++ """+ The GitHub Sponsors listing for this user or organization.+ """+ sponsorsListing: SponsorsListing++ """+ The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor.+ """+ sponsorshipForViewerAsSponsor(+ """+ Whether to return the sponsorship only if it's still active. Pass false to+ get the viewer's sponsorship back even if it has been cancelled.+ """+ activeOnly: Boolean = true+ ): Sponsorship++ """+ The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving.+ """+ sponsorshipForViewerAsSponsorable(+ """+ Whether to return the sponsorship only if it's still active. Pass false to+ get the sponsorship back even if it has been cancelled.+ """+ activeOnly: Boolean = true+ ): Sponsorship++ """+ List of sponsorship updates sent from this sponsorable to sponsors.+ """+ sponsorshipNewsletters(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsorship updates returned from the connection.+ """+ orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC}+ ): SponsorshipNewsletterConnection!++ """+ The sponsorships where this user or organization is the maintainer receiving the funds.+ """+ sponsorshipsAsMaintainer(+ """+ Whether to include only sponsorships that are active right now, versus all+ sponsorships this maintainer has ever received.+ """+ activeOnly: Boolean = true++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether or not to include private sponsorships in the result set+ """+ includePrivate: Boolean = false++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsorships returned from this connection. If left+ blank, the sponsorships will be ordered based on relevancy to the viewer.+ """+ orderBy: SponsorshipOrder+ ): SponsorshipConnection!++ """+ The sponsorships where this user or organization is the funder.+ """+ sponsorshipsAsSponsor(+ """+ Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made.+ """+ activeOnly: Boolean = true++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter sponsorships returned to those for the specified maintainers. That+ is, the recipient of the sponsorship is a user or organization with one of+ the given logins.+ """+ maintainerLogins: [String!]++ """+ Ordering options for sponsorships returned from this connection. If left+ blank, the sponsorships will be ordered based on relevancy to the viewer.+ """+ orderBy: SponsorshipOrder+ ): SponsorshipConnection!++ """+ Find an organization's team by its slug.+ """+ team(+ """+ The name or slug of the team to find.+ """+ slug: String!+ ): Team++ """+ A list of teams in this organization.+ """+ teams(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ If true, filters teams that are mapped to an LDAP Group (Enterprise only)+ """+ ldapMapped: Boolean++ """+ If non-null, filters teams according to notification setting+ """+ notificationSetting: TeamNotificationSetting++ """+ Ordering options for teams returned from the connection+ """+ orderBy: TeamOrder++ """+ If non-null, filters teams according to privacy+ """+ privacy: TeamPrivacy++ """+ If non-null, filters teams with query on team name and team slug+ """+ query: String++ """+ If non-null, filters teams according to whether the viewer is an admin or member on team+ """+ role: TeamRole++ """+ If true, restrict to only root teams+ """+ rootTeamsOnly: Boolean = false++ """+ User logins to filter by+ """+ userLogins: [String!]+ ): TeamConnection!++ """+ The HTTP path listing organization's teams+ """+ teamsResourcePath: URI!++ """+ The HTTP URL listing organization's teams+ """+ teamsUrl: URI!++ """+ The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has+ spent on GitHub to fund sponsorships. Only returns a value when viewed by the+ user themselves or by a user who can manage sponsorships for the requested organization.+ """+ totalSponsorshipAmountAsSponsorInCents(+ """+ Filter payments to those that occurred on or after this time.+ """+ since: DateTime++ """+ Filter payments to those made to the users or organizations with the specified usernames.+ """+ sponsorableLogins: [String!] = []++ """+ Filter payments to those that occurred before this time.+ """+ until: DateTime+ ): Int++ """+ The organization's Twitter username.+ """+ twitterUsername: String++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this organization.+ """+ url: URI!++ """+ Organization is adminable by the viewer.+ """+ viewerCanAdminister: Boolean!++ """+ Can the viewer pin repositories and gists to the profile?+ """+ viewerCanChangePinnedItems: Boolean!++ """+ Can the current viewer create new projects on this owner.+ """+ viewerCanCreateProjects: Boolean!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Viewer can create repositories on this organization+ """+ viewerCanCreateRepositories: Boolean!++ """+ Viewer can create teams on this organization.+ """+ viewerCanCreateTeams: Boolean!++ """+ Whether or not the viewer is able to sponsor this user/organization.+ """+ viewerCanSponsor: Boolean!++ """+ Viewer is an active member of this organization.+ """+ viewerIsAMember: Boolean!++ """+ Whether or not this Organization is followed by the viewer.+ """+ viewerIsFollowing: Boolean!++ """+ True if the viewer is sponsoring this user/organization.+ """+ viewerIsSponsoring: Boolean!++ """+ Whether contributors are required to sign off on web-based commits for repositories in this organization.+ """+ webCommitSignoffRequired: Boolean!++ """+ The organization's public profile URL.+ """+ websiteUrl: URI+}++"""+An audit entry in an organization audit log.+"""+union OrganizationAuditEntry @docsCategory(name: "orgs") =+ | MembersCanDeleteReposClearAuditEntry+ | MembersCanDeleteReposDisableAuditEntry+ | MembersCanDeleteReposEnableAuditEntry+ | OauthApplicationCreateAuditEntry+ | OrgAddBillingManagerAuditEntry+ | OrgAddMemberAuditEntry+ | OrgBlockUserAuditEntry+ | OrgConfigDisableCollaboratorsOnlyAuditEntry+ | OrgConfigEnableCollaboratorsOnlyAuditEntry+ | OrgCreateAuditEntry+ | OrgDisableOauthAppRestrictionsAuditEntry+ | OrgDisableSamlAuditEntry+ | OrgDisableTwoFactorRequirementAuditEntry+ | OrgEnableOauthAppRestrictionsAuditEntry+ | OrgEnableSamlAuditEntry+ | OrgEnableTwoFactorRequirementAuditEntry+ | OrgInviteMemberAuditEntry+ | OrgInviteToBusinessAuditEntry+ | OrgOauthAppAccessApprovedAuditEntry+ | OrgOauthAppAccessBlockedAuditEntry+ | OrgOauthAppAccessDeniedAuditEntry+ | OrgOauthAppAccessRequestedAuditEntry+ | OrgOauthAppAccessUnblockedAuditEntry+ | OrgRemoveBillingManagerAuditEntry+ | OrgRemoveMemberAuditEntry+ | OrgRemoveOutsideCollaboratorAuditEntry+ | OrgRestoreMemberAuditEntry+ | OrgUnblockUserAuditEntry+ | OrgUpdateDefaultRepositoryPermissionAuditEntry+ | OrgUpdateMemberAuditEntry+ | OrgUpdateMemberRepositoryCreationPermissionAuditEntry+ | OrgUpdateMemberRepositoryInvitationPermissionAuditEntry+ | PrivateRepositoryForkingDisableAuditEntry+ | PrivateRepositoryForkingEnableAuditEntry+ | RepoAccessAuditEntry+ | RepoAddMemberAuditEntry+ | RepoAddTopicAuditEntry+ | RepoArchivedAuditEntry+ | RepoChangeMergeSettingAuditEntry+ | RepoConfigDisableAnonymousGitAccessAuditEntry+ | RepoConfigDisableCollaboratorsOnlyAuditEntry+ | RepoConfigDisableContributorsOnlyAuditEntry+ | RepoConfigDisableSockpuppetDisallowedAuditEntry+ | RepoConfigEnableAnonymousGitAccessAuditEntry+ | RepoConfigEnableCollaboratorsOnlyAuditEntry+ | RepoConfigEnableContributorsOnlyAuditEntry+ | RepoConfigEnableSockpuppetDisallowedAuditEntry+ | RepoConfigLockAnonymousGitAccessAuditEntry+ | RepoConfigUnlockAnonymousGitAccessAuditEntry+ | RepoCreateAuditEntry+ | RepoDestroyAuditEntry+ | RepoRemoveMemberAuditEntry+ | RepoRemoveTopicAuditEntry+ | RepositoryVisibilityChangeDisableAuditEntry+ | RepositoryVisibilityChangeEnableAuditEntry+ | TeamAddMemberAuditEntry+ | TeamAddRepositoryAuditEntry+ | TeamChangeParentTeamAuditEntry+ | TeamRemoveMemberAuditEntry+ | TeamRemoveRepositoryAuditEntry++"""+The connection type for OrganizationAuditEntry.+"""+type OrganizationAuditEntryConnection {+ """+ A list of edges.+ """+ edges: [OrganizationAuditEntryEdge]++ """+ A list of nodes.+ """+ nodes: [OrganizationAuditEntry]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Metadata for an audit entry with action org.*+"""+interface OrganizationAuditEntryData @docsCategory(name: "orgs") {+ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+An edge in a connection.+"""+type OrganizationAuditEntryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: OrganizationAuditEntry+}++"""+A list of organizations managed by an enterprise.+"""+type OrganizationConnection {+ """+ A list of edges.+ """+ edges: [OrganizationEdge]++ """+ A list of nodes.+ """+ nodes: [Organization]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type OrganizationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Organization+}++"""+The connection type for User.+"""+type OrganizationEnterpriseOwnerConnection {+ """+ A list of edges.+ """+ edges: [OrganizationEnterpriseOwnerEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An enterprise owner in the context of an organization that is part of the enterprise.+"""+type OrganizationEnterpriseOwnerEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: User++ """+ The role of the owner with respect to the organization.+ """+ organizationRole: RoleInOrganization!+}++"""+An Identity Provider configured to provision SAML and SCIM identities for+Organizations. Visible to (1) organization owners, (2) organization owners'+personal access tokens (classic) with read:org or admin:org scope, (3) GitHub+App with an installation token with read or write access to members.+"""+type OrganizationIdentityProvider implements Node @docsCategory(name: "orgs") {+ """+ The digest algorithm used to sign SAML requests for the Identity Provider.+ """+ digestMethod: URI++ """+ External Identities provisioned by this Identity Provider+ """+ externalIdentities(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter to external identities with the users login+ """+ login: String++ """+ Filter to external identities with valid org membership only+ """+ membersOnly: Boolean++ """+ Filter to external identities with the users userName/NameID attribute+ """+ userName: String+ ): ExternalIdentityConnection!++ """+ The Node ID of the OrganizationIdentityProvider object+ """+ id: ID!++ """+ The x509 certificate used by the Identity Provider to sign assertions and responses.+ """+ idpCertificate: X509Certificate++ """+ The Issuer Entity ID for the SAML Identity Provider+ """+ issuer: String++ """+ Organization this Identity Provider belongs to+ """+ organization: Organization++ """+ The signature algorithm used to sign SAML requests for the Identity Provider.+ """+ signatureMethod: URI++ """+ The URL endpoint for the Identity Provider's SAML SSO.+ """+ ssoUrl: URI+}++"""+An Invitation for a user to an organization.+"""+type OrganizationInvitation implements Node @docsCategory(name: "orgs") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The email address of the user invited to the organization.+ """+ email: String++ """+ The Node ID of the OrganizationInvitation object+ """+ id: ID!++ """+ The source of the invitation.+ """+ invitationSource: OrganizationInvitationSource!++ """+ The type of invitation that was sent (e.g. email, user).+ """+ invitationType: OrganizationInvitationType!++ """+ The user who was invited to the organization.+ """+ invitee: User++ """+ The user who created the invitation.+ """+ inviter: User!+ @deprecated(+ reason: "`inviter` will be removed. `inviter` will be replaced by `inviterActor`. Removal on 2024-07-01 UTC."+ )++ """+ The user who created the invitation.+ """+ inviterActor: User++ """+ The organization the invite is for+ """+ organization: Organization!++ """+ The user's pending role in the organization (e.g. member, owner).+ """+ role: OrganizationInvitationRole!+}++"""+The connection type for OrganizationInvitation.+"""+type OrganizationInvitationConnection {+ """+ A list of edges.+ """+ edges: [OrganizationInvitationEdge]++ """+ A list of nodes.+ """+ nodes: [OrganizationInvitation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type OrganizationInvitationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: OrganizationInvitation+}++"""+The possible organization invitation roles.+"""+enum OrganizationInvitationRole @docsCategory(name: "orgs") {+ """+ The user is invited to be an admin of the organization.+ """+ ADMIN++ """+ The user is invited to be a billing manager of the organization.+ """+ BILLING_MANAGER++ """+ The user is invited to be a direct member of the organization.+ """+ DIRECT_MEMBER++ """+ The user's previous role will be reinstated.+ """+ REINSTATE+}++"""+The possible organization invitation sources.+"""+enum OrganizationInvitationSource @docsCategory(name: "orgs") {+ """+ The invitation was created with an enterprise organization+ """+ ENTERPRISE_ORGANIZATION_CREATION++ """+ The invitation was created from the web interface or from API+ """+ MEMBER++ """+ The invitation was created from SCIM+ """+ SCIM++ """+ The invitation was sent before this feature was added+ """+ UNKNOWN+}++"""+The possible organization invitation types.+"""+enum OrganizationInvitationType @docsCategory(name: "orgs") {+ """+ The invitation was to an email address.+ """++ """+ The invitation was to an existing user.+ """+ USER+}++"""+A list of users who belong to the organization.+"""+type OrganizationMemberConnection {+ """+ A list of edges.+ """+ edges: [OrganizationMemberEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a user within an organization.+"""+type OrganizationMemberEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer.+ """+ hasTwoFactorEnabled: Boolean++ """+ The item at the end of the edge.+ """+ node: User++ """+ The role this user has in the organization.+ """+ role: OrganizationMemberRole+}++"""+The possible roles within an organization for its members.+"""+enum OrganizationMemberRole @docsCategory(name: "orgs") {+ """+ The user is an administrator of the organization.+ """+ ADMIN++ """+ The user is a member of the organization.+ """+ MEMBER+}++"""+The possible values for the members can create repositories setting on an organization.+"""+enum OrganizationMembersCanCreateRepositoriesSettingValue @docsCategory(name: "orgs") {+ """+ Members will be able to create public and private repositories.+ """+ ALL++ """+ Members will not be able to create public or private repositories.+ """+ DISABLED++ """+ Members will be able to create only internal repositories.+ """+ INTERNAL++ """+ Members will be able to create only private repositories.+ """+ PRIVATE+}++"""+A GitHub Enterprise Importer (GEI) organization migration.+"""+type OrganizationMigration implements Node @docsCategory(name: "migrations") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: String++ """+ The reason the organization migration failed.+ """+ failureReason: String++ """+ The Node ID of the OrganizationMigration object+ """+ id: ID!++ """+ The remaining amount of repos to be migrated.+ """+ remainingRepositoriesCount: Int++ """+ The name of the source organization to be migrated.+ """+ sourceOrgName: String!++ """+ The URL of the source organization to migrate.+ """+ sourceOrgUrl: URI!++ """+ The migration state.+ """+ state: OrganizationMigrationState!++ """+ The name of the target organization.+ """+ targetOrgName: String!++ """+ The total amount of repositories to be migrated.+ """+ totalRepositoriesCount: Int+}++"""+The Octoshift Organization migration state.+"""+enum OrganizationMigrationState @docsCategory(name: "migrations") {+ """+ The Octoshift migration has failed.+ """+ FAILED++ """+ The Octoshift migration has invalid credentials.+ """+ FAILED_VALIDATION++ """+ The Octoshift migration is in progress.+ """+ IN_PROGRESS++ """+ The Octoshift migration has not started.+ """+ NOT_STARTED++ """+ The Octoshift migration needs to have its credentials validated.+ """+ PENDING_VALIDATION++ """+ The Octoshift migration is performing post repository migrations.+ """+ POST_REPO_MIGRATION++ """+ The Octoshift migration is performing pre repository migrations.+ """+ PRE_REPO_MIGRATION++ """+ The Octoshift migration has been queued.+ """+ QUEUED++ """+ The Octoshift org migration is performing repository migrations.+ """+ REPO_MIGRATION++ """+ The Octoshift migration has succeeded.+ """+ SUCCEEDED+}++"""+Used for argument of CreateProjectV2 mutation.+"""+union OrganizationOrUser @docsCategory(name: "projects") = Organization | User++"""+Ordering options for organization connections.+"""+input OrganizationOrder @docsCategory(name: "orgs") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order organizations by.+ """+ field: OrganizationOrderField!+}++"""+Properties by which organization connections can be ordered.+"""+enum OrganizationOrderField @docsCategory(name: "orgs") {+ """+ Order organizations by creation time+ """+ CREATED_AT++ """+ Order organizations by login+ """+ LOGIN+}++"""+Parameters to be used for the organization_property condition+"""+type OrganizationPropertyConditionTarget @docsCategory(name: "orgs") {+ """+ Array of organization properties that must not match.+ """+ exclude: [OrganizationPropertyTargetDefinition!]!++ """+ Array of organization properties that must match+ """+ include: [OrganizationPropertyTargetDefinition!]!+}++"""+Parameters to be used for the organization_property condition+"""+input OrganizationPropertyConditionTargetInput @docsCategory(name: "orgs") {+ """+ Array of organization properties that must not match.+ """+ exclude: [OrganizationPropertyTargetDefinitionInput!]!++ """+ Array of organization properties that must match+ """+ include: [OrganizationPropertyTargetDefinitionInput!]!+}++"""+A property that must match+"""+type OrganizationPropertyTargetDefinition @docsCategory(name: "orgs") {+ """+ The name of the property+ """+ name: String!++ """+ The values to match for+ """+ propertyValues: [String!]!+}++"""+A property that must match+"""+input OrganizationPropertyTargetDefinitionInput @docsCategory(name: "orgs") {+ """+ The name of the property+ """+ name: String!++ """+ The values to match for+ """+ propertyValues: [String!]!+}++"""+An organization teams hovercard context+"""+type OrganizationTeamsHovercardContext implements HovercardContext @docsCategory(name: "teams") {+ """+ A string describing this context+ """+ message: String!++ """+ An octicon to accompany this context+ """+ octicon: String!++ """+ Teams in this organization the user is a member of that are relevant+ """+ relevantTeams(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): TeamConnection!++ """+ The path for the full team list for this user+ """+ teamsResourcePath: URI!++ """+ The URL for the full team list for this user+ """+ teamsUrl: URI!++ """+ The total number of teams the user is on in the organization+ """+ totalTeamCount: Int!+}++"""+An organization list hovercard context+"""+type OrganizationsHovercardContext implements HovercardContext @docsCategory(name: "orgs") {+ """+ A string describing this context+ """+ message: String!++ """+ An octicon to accompany this context+ """+ octicon: String!++ """+ Organizations this user is a member of that are relevant+ """+ relevantOrganizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the User's organizations.+ """+ orderBy: OrganizationOrder = null+ ): OrganizationConnection!++ """+ The total number of organizations this user is in+ """+ totalOrganizationCount: Int!+}++"""+Information for an uploaded package.+"""+type Package implements Node @docsCategory(name: "packages") {+ """+ The Node ID of the Package object+ """+ id: ID!++ """+ Find the latest version for the package.+ """+ latestVersion: PackageVersion++ """+ Identifies the name of the package.+ """+ name: String!++ """+ Identifies the type of the package.+ """+ packageType: PackageType!++ """+ The repository this package belongs to.+ """+ repository: Repository++ """+ Statistics about package activity.+ """+ statistics: PackageStatistics++ """+ Find package version by version string.+ """+ version(+ """+ The package version.+ """+ version: String!+ ): PackageVersion++ """+ list of versions for this package+ """+ versions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering of the returned packages.+ """+ orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC}+ ): PackageVersionConnection!+}++"""+The connection type for Package.+"""+type PackageConnection {+ """+ A list of edges.+ """+ edges: [PackageEdge]++ """+ A list of nodes.+ """+ nodes: [Package]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PackageEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Package+}++"""+A file in a package version.+"""+type PackageFile implements Node @docsCategory(name: "packages") {+ """+ The Node ID of the PackageFile object+ """+ id: ID!++ """+ MD5 hash of the file.+ """+ md5: String++ """+ Name of the file.+ """+ name: String!++ """+ The package version this file belongs to.+ """+ packageVersion: PackageVersion++ """+ SHA1 hash of the file.+ """+ sha1: String++ """+ SHA256 hash of the file.+ """+ sha256: String++ """+ Size of the file in bytes.+ """+ size: Int++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ URL to download the asset.+ """+ url: URI+}++"""+The connection type for PackageFile.+"""+type PackageFileConnection {+ """+ A list of edges.+ """+ edges: [PackageFileEdge]++ """+ A list of nodes.+ """+ nodes: [PackageFile]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PackageFileEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PackageFile+}++"""+Ways in which lists of package files can be ordered upon return.+"""+input PackageFileOrder @docsCategory(name: "packages") {+ """+ The direction in which to order package files by the specified field.+ """+ direction: OrderDirection++ """+ The field in which to order package files by.+ """+ field: PackageFileOrderField+}++"""+Properties by which package file connections can be ordered.+"""+enum PackageFileOrderField @docsCategory(name: "packages") {+ """+ Order package files by creation time+ """+ CREATED_AT+}++"""+Ways in which lists of packages can be ordered upon return.+"""+input PackageOrder @docsCategory(name: "packages") {+ """+ The direction in which to order packages by the specified field.+ """+ direction: OrderDirection++ """+ The field in which to order packages by.+ """+ field: PackageOrderField+}++"""+Properties by which package connections can be ordered.+"""+enum PackageOrderField @docsCategory(name: "packages") {+ """+ Order packages by creation time+ """+ CREATED_AT+}++"""+Represents an owner of a package.+"""+interface PackageOwner @docsCategory(name: "packages") {+ """+ The Node ID of the PackageOwner object+ """+ id: ID!++ """+ A list of packages under the owner.+ """+ packages(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Find packages by their names.+ """+ names: [String]++ """+ Ordering of the returned packages.+ """+ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC}++ """+ Filter registry package by type.+ """+ packageType: PackageType++ """+ Find packages in a repository by ID.+ """+ repositoryId: ID+ ): PackageConnection!+}++"""+Represents a object that contains package activity statistics such as downloads.+"""+type PackageStatistics @docsCategory(name: "packages") {+ """+ Number of times the package was downloaded since it was created.+ """+ downloadsTotalCount: Int!+}++"""+A version tag contains the mapping between a tag name and a version.+"""+type PackageTag implements Node @docsCategory(name: "packages") {+ """+ The Node ID of the PackageTag object+ """+ id: ID!++ """+ Identifies the tag name of the version.+ """+ name: String!++ """+ Version that the tag is associated with.+ """+ version: PackageVersion+}++"""+The possible types of a package.+"""+enum PackageType @docsCategory(name: "packages") {+ """+ A debian package.+ """+ DEBIAN++ """+ A docker image.+ """+ DOCKER+ @deprecated(+ reason: "DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2021-06-21 UTC."+ )++ """+ A maven package.+ """+ MAVEN+ @deprecated(+ reason: "MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2023-02-10 UTC."+ )++ """+ An npm package.+ """+ NPM+ @deprecated(+ reason: "NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC."+ )++ """+ A nuget package.+ """+ NUGET+ @deprecated(+ reason: "NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC."+ )++ """+ A python package.+ """+ PYPI++ """+ A rubygems package.+ """+ RUBYGEMS+ @deprecated(+ reason: "RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-12-28 UTC."+ )+}++"""+Information about a specific package version.+"""+type PackageVersion implements Node @docsCategory(name: "packages") {+ """+ List of files associated with this package version+ """+ files(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering of the returned package files.+ """+ orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC}+ ): PackageFileConnection!++ """+ The Node ID of the PackageVersion object+ """+ id: ID!++ """+ The package associated with this version.+ """+ package: Package++ """+ The platform this version was built for.+ """+ platform: String++ """+ Whether or not this version is a pre-release.+ """+ preRelease: Boolean!++ """+ The README of this package version.+ """+ readme: String++ """+ The release associated with this package version.+ """+ release: Release++ """+ Statistics about package activity.+ """+ statistics: PackageVersionStatistics++ """+ The package version summary.+ """+ summary: String++ """+ The version string.+ """+ version: String!+}++"""+The connection type for PackageVersion.+"""+type PackageVersionConnection {+ """+ A list of edges.+ """+ edges: [PackageVersionEdge]++ """+ A list of nodes.+ """+ nodes: [PackageVersion]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PackageVersionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PackageVersion+}++"""+Ways in which lists of package versions can be ordered upon return.+"""+input PackageVersionOrder @docsCategory(name: "packages") {+ """+ The direction in which to order package versions by the specified field.+ """+ direction: OrderDirection++ """+ The field in which to order package versions by.+ """+ field: PackageVersionOrderField+}++"""+Properties by which package version connections can be ordered.+"""+enum PackageVersionOrderField @docsCategory(name: "packages") {+ """+ Order package versions by creation time+ """+ CREATED_AT+}++"""+Represents a object that contains package version activity statistics such as downloads.+"""+type PackageVersionStatistics @docsCategory(name: "packages") {+ """+ Number of times the package was downloaded since it was created.+ """+ downloadsTotalCount: Int!+}++"""+Information about pagination in a connection.+"""+type PageInfo {+ """+ When paginating forwards, the cursor to continue.+ """+ endCursor: String++ """+ When paginating forwards, are there more items?+ """+ hasNextPage: Boolean!++ """+ When paginating backwards, are there more items?+ """+ hasPreviousPage: Boolean!++ """+ When paginating backwards, the cursor to continue.+ """+ startCursor: String+}++"""+Represents a 'parent_issue_added' event on a given issue.+"""+type ParentIssueAddedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ParentIssueAddedEvent object+ """+ id: ID!++ """+ The parent issue added.+ """+ parent: Issue+}++"""+Represents a 'parent_issue_removed' event on a given issue.+"""+type ParentIssueRemovedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ParentIssueRemovedEvent object+ """+ id: ID!++ """+ The parent issue removed.+ """+ parent: Issue+}++"""+The possible types of patch statuses.+"""+enum PatchStatus @docsCategory(name: "pulls") {+ """+ The file was added. Git status 'A'.+ """+ ADDED++ """+ The file's type was changed. Git status 'T'.+ """+ CHANGED++ """+ The file was copied. Git status 'C'.+ """+ COPIED++ """+ The file was deleted. Git status 'D'.+ """+ DELETED++ """+ The file's contents were changed. Git status 'M'.+ """+ MODIFIED++ """+ The file was renamed. Git status 'R'.+ """+ RENAMED+}++"""+A pending suggestion to assign a user to an issue.+"""+type PendingAssigneeSuggestion implements Node @docsCategory(name: "issues") {+ """+ The actor who suggested the assignee.+ """+ actor: Actor++ """+ The suggested assignee.+ """+ assignee: Assignee++ """+ When the suggestion was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the PendingAssigneeSuggestion object+ """+ id: ID!++ """+ The rationale provided for suggesting this assignee.+ """+ rationale: String++ """+ When the suggestion was last updated.+ """+ updatedAt: DateTime+}++"""+A pending suggestion to close an issue.+"""+type PendingCloseSuggestion implements Node @docsCategory(name: "issues") {+ """+ The actor who suggested closing the issue.+ """+ actor: Actor++ """+ When the suggestion was created.+ """+ createdAt: DateTime!++ """+ The issue or pull request the suggestion proposes marking this issue as a+ duplicate of. Only set when `stateReason` is `DUPLICATE`.+ """+ duplicateOf: IssueOrPullRequest++ """+ The Node ID of the PendingCloseSuggestion object+ """+ id: ID!++ """+ The rationale provided for suggesting this close.+ """+ rationale: String++ """+ The state reason the suggestion would apply when closing the issue.+ """+ stateReason: IssueStateReason++ """+ When the suggestion was last updated.+ """+ updatedAt: DateTime+}++"""+A pending suggestion to set an issue field's value.+"""+type PendingFieldSuggestion implements Node @docsCategory(name: "issues") {+ """+ The actor who suggested the field value.+ """+ actor: Actor++ """+ When the suggestion was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the PendingFieldSuggestion object+ """+ id: ID!++ """+ The issue field the suggestion targets.+ """+ issueField: IssueFields++ """+ The rationale provided for suggesting this field value.+ """+ rationale: String++ """+ The suggested value for the field, as a string representation of the value originally provided.+ """+ suggestedValue: String++ """+ When the suggestion was last updated.+ """+ updatedAt: DateTime+}++"""+A pending suggestion for an issue. May target the issue's type, labels, field values, assignees, or close state.+"""+union PendingIssueSuggestion @docsCategory(name: "issues") =+ | PendingAssigneeSuggestion+ | PendingCloseSuggestion+ | PendingFieldSuggestion+ | PendingLabelSuggestion+ | PendingTypeSuggestion++"""+The kind of pending issue suggestion being applied.+"""+enum PendingIssueSuggestionKind @docsCategory(name: "issues") {+ """+ Add the suggested assignee to the issue.+ """+ ASSIGNEE++ """+ Close the issue with the suggested state reason (and duplicate target, when applicable).+ """+ CLOSE++ """+ Set the suggested issue field value on the issue.+ """+ FIELD++ """+ Add the suggested label to the issue.+ """+ LABEL++ """+ Set the issue's type to the suggested issue type.+ """+ TYPE+}++"""+A reference to a single pending issue suggestion to apply.+"""+input PendingIssueSuggestionRef @docsCategory(name: "issues") {+ """+ The ID of the suggested assignee. Required when kind is ASSIGNEE.+ """+ assigneeId: ID++ """+ The ID of the suggested issue field. Required when kind is FIELD.+ """+ issueFieldId: ID++ """+ The ID of the suggested issue type. Required when kind is TYPE.+ """+ issueTypeId: ID++ """+ The kind of suggestion to apply.+ """+ kind: PendingIssueSuggestionKind!++ """+ The ID of the suggested label. Required when kind is LABEL.+ """+ labelId: ID+}++"""+A pending suggestion to add a label to an issue.+"""+type PendingLabelSuggestion implements Node @docsCategory(name: "issues") {+ """+ The actor who suggested the label.+ """+ actor: Actor++ """+ When the suggestion was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the PendingLabelSuggestion object+ """+ id: ID!++ """+ The suggested label.+ """+ label: Label++ """+ The rationale provided for suggesting this label.+ """+ rationale: String++ """+ When the suggestion was last updated.+ """+ updatedAt: DateTime+}++"""+A pending suggestion to change an issue's type.+"""+type PendingTypeSuggestion implements Node @docsCategory(name: "issues") {+ """+ The actor who suggested the type change.+ """+ actor: Actor++ """+ When the suggestion was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the PendingTypeSuggestion object+ """+ id: ID!++ """+ The suggested issue type.+ """+ issueType: IssueType++ """+ The rationale provided for suggesting this type change.+ """+ rationale: String++ """+ When the suggestion was last updated.+ """+ updatedAt: DateTime+}++"""+Types that can grant permissions on a repository to a user+"""+union PermissionGranter @docsCategory(name: "orgs") = EnterpriseTeam | Organization | Repository | Team++"""+A level of permission and source for a user's access to a repository.+"""+type PermissionSource @docsCategory(name: "repos") {+ """+ The organization the repository belongs to.+ """+ organization: Organization!++ """+ The level of access this source has granted to the user.+ """+ permission: DefaultRepositoryPermissionField!++ """+ The name of the role this source has granted to the user.+ """+ roleName: String++ """+ The source of this permission.+ """+ source: PermissionGranter!+}++"""+Autogenerated input type of PinEnvironment+"""+input PinEnvironmentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the environment to modify+ """+ environmentId: ID! @possibleTypes(concreteTypes: ["Environment"])++ """+ The desired state of the environment. If true, environment will be pinned. If false, it will be unpinned.+ """+ pinned: Boolean!+}++"""+Autogenerated return type of PinEnvironment.+"""+type PinEnvironmentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The environment that was pinned+ """+ environment: Environment++ """+ The pinned environment if we pinned+ """+ pinnedEnvironment: PinnedEnvironment+}++"""+Autogenerated input type of PinIssueComment+"""+input PinIssueCommentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Issue Comment to pin. Comment pinning is not supported on Pull Requests.+ """+ issueCommentId: ID! @possibleTypes(concreteTypes: ["IssueComment"])+}++"""+Autogenerated return type of PinIssueComment.+"""+type PinIssueCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Issue Comment that was pinned+ """+ issueComment: IssueComment+}++"""+Autogenerated input type of PinIssue+"""+input PinIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue to be pinned+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of PinIssue.+"""+type PinIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue that was pinned+ """+ issue: Issue+}++"""+Entities that can be pinned.+"""+interface Pinnable @docsCategory(name: "users") {+ """+ Indicates whether or not this entity is currently pinned.+ """+ isPinned: Boolean++ """+ Identifies the date and time when this entity was pinned.+ """+ pinnedAt: DateTime++ """+ The user who pinned this entity.+ """+ pinnedBy: User++ """+ Check if the current viewer can pin this entity.+ """+ viewerCanPin: Boolean!++ """+ Check if the current viewer can unpin this entity.+ """+ viewerCanUnpin: Boolean!+}++"""+Types that can be pinned to a profile page.+"""+union PinnableItem @docsCategory(name: "users") = Gist | Repository++"""+The connection type for PinnableItem.+"""+type PinnableItemConnection {+ """+ A list of edges.+ """+ edges: [PinnableItemEdge]++ """+ A list of nodes.+ """+ nodes: [PinnableItem]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PinnableItemEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PinnableItem+}++"""+Represents items that can be pinned to a profile page or dashboard.+"""+enum PinnableItemType @docsCategory(name: "users") {+ """+ A gist.+ """+ GIST++ """+ An issue.+ """+ ISSUE++ """+ An organization.+ """+ ORGANIZATION++ """+ A project.+ """+ PROJECT++ """+ A pull request.+ """+ PULL_REQUEST++ """+ A repository.+ """+ REPOSITORY++ """+ A team.+ """+ TEAM++ """+ A user.+ """+ USER+}++"""+A Pinned Discussion is a discussion pinned to a repository's index page.+"""+type PinnedDiscussion implements Node & RepositoryNode @docsCategory(name: "discussions") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The discussion that was pinned.+ """+ discussion: Discussion!++ """+ Color stops of the chosen gradient+ """+ gradientStopColors: [String!]!++ """+ The Node ID of the PinnedDiscussion object+ """+ id: ID!++ """+ Background texture pattern+ """+ pattern: PinnedDiscussionPattern!++ """+ The actor that pinned this discussion.+ """+ pinnedBy: Actor!++ """+ Preconfigured background gradient option+ """+ preconfiguredGradient: PinnedDiscussionGradient++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for PinnedDiscussion.+"""+type PinnedDiscussionConnection {+ """+ A list of edges.+ """+ edges: [PinnedDiscussionEdge]++ """+ A list of nodes.+ """+ nodes: [PinnedDiscussion]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PinnedDiscussionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PinnedDiscussion+}++"""+Preconfigured gradients that may be used to style discussions pinned within a repository.+"""+enum PinnedDiscussionGradient @docsCategory(name: "discussions") {+ """+ A gradient of blue to mint+ """+ BLUE_MINT++ """+ A gradient of blue to purple+ """+ BLUE_PURPLE++ """+ A gradient of pink to blue+ """+ PINK_BLUE++ """+ A gradient of purple to coral+ """+ PURPLE_CORAL++ """+ A gradient of red to orange+ """+ RED_ORANGE+}++"""+Preconfigured background patterns that may be used to style discussions pinned within a repository.+"""+enum PinnedDiscussionPattern @docsCategory(name: "discussions") {+ """+ An upward-facing chevron pattern+ """+ CHEVRON_UP++ """+ A hollow dot pattern+ """+ DOT++ """+ A solid dot pattern+ """+ DOT_FILL++ """+ A heart pattern+ """+ HEART_FILL++ """+ A plus sign pattern+ """+ PLUS++ """+ A lightning bolt pattern+ """+ ZAP+}++"""+Represents a pinned environment on a given repository+"""+type PinnedEnvironment implements Node @docsCategory(name: "deployments") {+ """+ Identifies the date and time when the pinned environment was created+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Identifies the environment associated.+ """+ environment: Environment!++ """+ The Node ID of the PinnedEnvironment object+ """+ id: ID!++ """+ Identifies the position of the pinned environment.+ """+ position: Int!++ """+ The repository that this environment was pinned to.+ """+ repository: Repository!+}++"""+The connection type for PinnedEnvironment.+"""+type PinnedEnvironmentConnection {+ """+ A list of edges.+ """+ edges: [PinnedEnvironmentEdge]++ """+ A list of nodes.+ """+ nodes: [PinnedEnvironment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PinnedEnvironmentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PinnedEnvironment+}++"""+Ordering options for pinned environments+"""+input PinnedEnvironmentOrder @docsCategory(name: "deployments") {+ """+ The direction in which to order pinned environments by the specified field.+ """+ direction: OrderDirection!++ """+ The field to order pinned environments by.+ """+ field: PinnedEnvironmentOrderField!+}++"""+Properties by which pinned environments connections can be ordered+"""+enum PinnedEnvironmentOrderField @docsCategory(name: "deployments") {+ """+ Order pinned environments by position+ """+ POSITION+}++"""+Represents a 'pinned' event on a given issue or pull request.+"""+type PinnedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the PinnedEvent object+ """+ id: ID!++ """+ Identifies the issue associated with the event.+ """+ issue: Issue!+}++"""+A Pinned Issue is a issue pinned to a repository's index page.+"""+type PinnedIssue implements Node @docsCategory(name: "issues") {+ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the PinnedIssue object+ """+ id: ID!++ """+ The issue that was pinned.+ """+ issue: Issue!++ """+ The actor that pinned this issue.+ """+ pinnedBy: Actor!++ """+ The repository that this issue was pinned to.+ """+ repository: Repository!+}++"""+A comment pinned to an Issue.+"""+type PinnedIssueComment implements Node @docsCategory(name: "issues") {+ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the PinnedIssueComment object+ """+ id: ID!++ """+ The issue that this comment belongs to.+ """+ issue: Issue!++ """+ The comment that was pinned.+ """+ issueComment: IssueComment!++ """+ Identifies when the comment was pinned.+ """+ pinnedAt: DateTime!++ """+ The actor that pinned this comment.+ """+ pinnedBy: Actor!+}++"""+The connection type for PinnedIssue.+"""+type PinnedIssueConnection {+ """+ A list of edges.+ """+ edges: [PinnedIssueEdge]++ """+ A list of nodes.+ """+ nodes: [PinnedIssue]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PinnedIssueEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PinnedIssue+}++"""+An ISO-8601 encoded UTC date string with millisecond precision.+"""+scalar PreciseDateTime++"""+Audit log entry for a private_repository_forking.disable event.+"""+type PrivateRepositoryForkingDisableAuditEntry implements AuditEntry &+ EnterpriseAuditEntryData &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the PrivateRepositoryForkingDisableAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a private_repository_forking.enable event.+"""+type PrivateRepositoryForkingEnableAuditEntry implements AuditEntry &+ EnterpriseAuditEntryData &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the PrivateRepositoryForkingEnableAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+A curatable list of repositories relating to a repository owner, which defaults+to showing the most popular repositories they own.+"""+type ProfileItemShowcase @docsCategory(name: "users") {+ """+ Whether or not the owner has pinned any repositories or gists.+ """+ hasPinnedItems: Boolean!++ """+ The repositories and gists in the showcase. If the profile owner has any+ pinned items, those will be returned. Otherwise, the profile owner's popular+ repositories will be returned.+ """+ items(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PinnableItemConnection!+}++"""+Represents any entity on GitHub that has a profile page.+"""+interface ProfileOwner @docsCategory(name: "users") {+ """+ Determine if this repository owner has any items that can be pinned to their profile.+ """+ anyPinnableItems(+ """+ Filter to only a particular kind of pinnable item.+ """+ type: PinnableItemType+ ): Boolean!++ """+ The public profile email.+ """+ email: String++ """+ The Node ID of the ProfileOwner object+ """+ id: ID!++ """+ Showcases a selection of repositories and gists that the profile owner has+ either curated or that have been selected automatically based on popularity.+ """+ itemShowcase: ProfileItemShowcase!++ """+ The public profile location.+ """+ location: String++ """+ The username used to login.+ """+ login: String!++ """+ The public profile name.+ """+ name: String++ """+ A list of repositories and gists this profile owner can pin to their profile.+ """+ pinnableItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter the types of pinnable items that are returned.+ """+ types: [PinnableItemType!]+ ): PinnableItemConnection!++ """+ A list of repositories and gists this profile owner has pinned to their profile+ """+ pinnedItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter the types of pinned items that are returned.+ """+ types: [PinnableItemType!]+ ): PinnableItemConnection!++ """+ Returns how many more items this profile owner can pin to their profile.+ """+ pinnedItemsRemaining: Int!++ """+ Can the viewer pin repositories and gists to the profile?+ """+ viewerCanChangePinnedItems: Boolean!++ """+ The public profile website URL.+ """+ websiteUrl: URI+}++"""+Projects manage issues, pull requests and notes within a project owner.+"""+type Project implements Closable & Node & Updatable @docsCategory(name: "projects-classic") {+ """+ The project's description body.+ """+ body: String+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The projects description body rendered to HTML.+ """+ bodyHTML: HTML!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Indicates if the object is closed (definition of closed may depend on type)+ """+ closed: Boolean!++ """+ Identifies the date and time when the object was closed.+ """+ closedAt: DateTime++ """+ List of columns in the project+ """+ columns(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectColumnConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The actor who originally created the project.+ """+ creator: Actor+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The Node ID of the Project object+ """+ id: ID!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The project's name.+ """+ name: String!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The project's number.+ """+ number: Int!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The project's owner. Currently limited to repositories, organizations, and users.+ """+ owner: ProjectOwner!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ List of pending cards in this project+ """+ pendingCards(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ A list of archived states to filter the cards by+ """+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectCardConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Project progress details.+ """+ progress: ProjectProgress!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP path for this project+ """+ resourcePath: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Whether the project is open or closed.+ """+ state: ProjectState!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP URL for this project+ """+ url: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Indicates if the object can be closed by the viewer.+ """+ viewerCanClose: Boolean!++ """+ Indicates if the object can be reopened by the viewer.+ """+ viewerCanReopen: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!+}++"""+A card in a project.+"""+type ProjectCard implements Node @docsCategory(name: "projects-classic") {+ """+ The project column this card is associated under. A card may only belong to one+ project column at a time. The column field will be null if the card is created+ in a pending state and has yet to be associated with a column. Once cards are+ associated with a column, they will not become pending in the future.+ """+ column: ProjectColumn+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The card content item+ """+ content: ProjectCardItem+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The actor who created this card+ """+ creator: Actor+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The Node ID of the ProjectCard object+ """+ id: ID!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Whether the card is archived+ """+ isArchived: Boolean!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The card note+ """+ note: String+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The project that contains this card.+ """+ project: Project!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP path for this card+ """+ resourcePath: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The state of ProjectCard+ """+ state: ProjectCardState+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP URL for this card+ """+ url: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+The possible archived states of a project card.+"""+enum ProjectCardArchivedState @docsCategory(name: "projects-classic") {+ """+ A project card that is archived+ """+ ARCHIVED+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ A project card that is not archived+ """+ NOT_ARCHIVED+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+The connection type for ProjectCard.+"""+type ProjectCardConnection {+ """+ A list of edges.+ """+ edges: [ProjectCardEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectCard]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectCardEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectCard+}++"""+An issue or PR and its owning repository to be used in a project card.+"""+input ProjectCardImport @docsCategory(name: "projects-classic") {+ """+ The issue or pull request number.+ """+ number: Int!++ """+ Repository name with owner (owner/repository).+ """+ repository: String!+}++"""+Types that can be inside Project Cards.+"""+union ProjectCardItem @docsCategory(name: "projects-classic") = Issue | PullRequest++"""+Various content states of a ProjectCard+"""+enum ProjectCardState @docsCategory(name: "projects-classic") {+ """+ The card has content only.+ """+ CONTENT_ONLY++ """+ The card has a note only.+ """+ NOTE_ONLY++ """+ The card is redacted.+ """+ REDACTED+}++"""+A column inside a project.+"""+type ProjectColumn implements Node @docsCategory(name: "projects-classic") {+ """+ List of cards in the column+ """+ cards(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ A list of archived states to filter the cards by+ """+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectCardConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The Node ID of the ProjectColumn object+ """+ id: ID!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The project column's name.+ """+ name: String!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The project that contains this column.+ """+ project: Project!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The semantic purpose of the column+ """+ purpose: ProjectColumnPurpose+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP path for this project column+ """+ resourcePath: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP URL for this project column+ """+ url: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+The connection type for ProjectColumn.+"""+type ProjectColumnConnection {+ """+ A list of edges.+ """+ edges: [ProjectColumnEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectColumn]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectColumnEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectColumn+}++"""+A project column and a list of its issues and PRs.+"""+input ProjectColumnImport @docsCategory(name: "projects-classic") {+ """+ The name of the column.+ """+ columnName: String!++ """+ A list of issues and pull requests in the column.+ """+ issues: [ProjectCardImport!]++ """+ The position of the column, starting from 0.+ """+ position: Int!+}++"""+The semantic purpose of the column - todo, in progress, or done.+"""+enum ProjectColumnPurpose @docsCategory(name: "projects-classic") {+ """+ The column contains cards which are complete+ """+ DONE++ """+ The column contains cards which are currently being worked on+ """+ IN_PROGRESS++ """+ The column contains cards still to be worked on+ """+ TODO+}++"""+A list of projects associated with the owner.+"""+type ProjectConnection {+ """+ A list of edges.+ """+ edges: [ProjectEdge]++ """+ A list of nodes.+ """+ nodes: [Project]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Project+}++"""+Ways in which lists of projects can be ordered upon return.+"""+input ProjectOrder @docsCategory(name: "projects-classic") {+ """+ The direction in which to order projects by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order projects by.+ """+ field: ProjectOrderField!+}++"""+Properties by which project connections can be ordered.+"""+enum ProjectOrderField @docsCategory(name: "projects-classic") {+ """+ Order projects by creation time+ """+ CREATED_AT++ """+ Order projects by name+ """+ NAME++ """+ Order projects by update time+ """+ UPDATED_AT+}++"""+Represents an owner of a Project.+"""+interface ProjectOwner @docsCategory(name: "projects-classic") {+ """+ The Node ID of the ProjectOwner object+ """+ id: ID!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Find project by number.+ """+ project(+ """+ The project number to find.+ """+ number: Int!+ ): Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ A list of projects under the owner.+ """+ projects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for projects returned from the connection+ """+ orderBy: ProjectOrder++ """+ Query to search projects by, currently only searching by name.+ """+ search: String++ """+ A list of states to filter the projects by.+ """+ states: [ProjectState!]+ ): ProjectConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP path listing owners projects+ """+ projectsResourcePath: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP URL listing owners projects+ """+ projectsUrl: URI!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Can the current viewer create new projects on this owner.+ """+ viewerCanCreateProjects: Boolean!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+Project progress stats.+"""+type ProjectProgress @docsCategory(name: "projects-classic") {+ """+ The number of done cards.+ """+ doneCount: Int!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The percentage of done cards.+ """+ donePercentage: Float!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Whether progress tracking is enabled and cards with purpose exist for this project+ """+ enabled: Boolean!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The number of in-progress cards.+ """+ inProgressCount: Int!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The percentage of in-progress cards.+ """+ inProgressPercentage: Float!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The number of to do cards.+ """+ todoCount: Int!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The percentage of to do cards.+ """+ todoPercentage: Float!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+State of the project; either 'open' or 'closed'+"""+enum ProjectState @docsCategory(name: "projects-classic") {+ """+ The project is closed.+ """+ CLOSED++ """+ The project is open.+ """+ OPEN+}++"""+GitHub-provided templates for Projects+"""+enum ProjectTemplate @docsCategory(name: "projects-classic") {+ """+ Create a board with v2 triggers to automatically move cards across To do, In progress and Done columns.+ """+ AUTOMATED_KANBAN_V2++ """+ Create a board with triggers to automatically move cards across columns with review automation.+ """+ AUTOMATED_REVIEWS_KANBAN++ """+ Create a board with columns for To do, In progress and Done.+ """+ BASIC_KANBAN++ """+ Create a board to triage and prioritize bugs with To do, priority, and Done columns.+ """+ BUG_TRIAGE+}++"""+New projects that manage issues, pull requests and drafts using tables and boards.+"""+type ProjectV2 implements Closable & Node & Updatable @docsCategory(name: "projects") {+ """+ Returns true if the project is closed.+ """+ closed: Boolean!++ """+ Identifies the date and time when the object was closed.+ """+ closedAt: DateTime++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who originally created the project.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC."+ )++ """+ A field of the project+ """+ field(+ """+ The name of the field+ """+ name: String!+ ): ProjectV2FieldConfiguration++ """+ List of fields and their constraints in the project+ """+ fields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for project v2 fields returned from the connection+ """+ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}+ ): ProjectV2FieldConfigurationConnection!++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the ProjectV2 object+ """+ id: ID!++ """+ List of items in the project+ """+ items(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Filter items by their archived state. Defaults to only returning items that are not archived.+ """+ archivedStates: [ProjectV2ItemArchivedState!] = [NOT_ARCHIVED]++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for project v2 items returned from the connection+ """+ orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC}++ """+ Search query for filtering items+ """+ query: String = ""+ ): ProjectV2ItemConnection!++ """+ The project's number.+ """+ number: Int!++ """+ The project's owner. Currently limited to organizations and users.+ """+ owner: ProjectV2Owner!++ """+ Returns true if the project is public.+ """+ public: Boolean!++ """+ The project's readme.+ """+ readme: String++ """+ The repositories the project is linked to.+ """+ repositories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder = {field: CREATED_AT, direction: DESC}+ ): RepositoryConnection!++ """+ The HTTP path for this project+ """+ resourcePath: URI!++ """+ The project's short description.+ """+ shortDescription: String++ """+ List of the status updates in the project.+ """+ statusUpdates(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: ProjectV2StatusOrder = {field: CREATED_AT, direction: DESC}+ ): ProjectV2StatusUpdateConnection!++ """+ The teams the project is linked to.+ """+ teams(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for teams returned from this connection.+ """+ orderBy: TeamOrder = {field: NAME, direction: ASC}+ ): TeamConnection!++ """+ Returns true if this project is a template.+ """+ template: Boolean!++ """+ The project's name.+ """+ title: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this project+ """+ url: URI!++ """+ A view of the project+ """+ view(+ """+ The number of a view belonging to the project+ """+ number: Int!+ ): ProjectV2View++ """+ Indicates if the object can be closed by the viewer.+ """+ viewerCanClose: Boolean!++ """+ Indicates if the object can be reopened by the viewer.+ """+ viewerCanReopen: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ List of views in the project+ """+ views(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for project v2 views returned from the connection+ """+ orderBy: ProjectV2ViewOrder = {field: POSITION, direction: ASC}+ ): ProjectV2ViewConnection!++ """+ A workflow of the project+ """+ workflow(+ """+ The number of a workflow belonging to the project+ """+ number: Int!+ ): ProjectV2Workflow++ """+ List of the workflows in the project+ """+ workflows(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for project v2 workflows returned from the connection+ """+ orderBy: ProjectV2WorkflowOrder = {field: NAME, direction: ASC}+ ): ProjectV2WorkflowConnection!+}++"""+Possible collaborators for a project.+"""+union ProjectV2Actor @docsCategory(name: "projects") = Team | User++"""+The connection type for ProjectV2Actor.+"""+type ProjectV2ActorConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2ActorEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2Actor]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2ActorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2Actor+}++"""+A collaborator to update on a project. Only one of the userId or teamId should be provided.+"""+input ProjectV2Collaborator @docsCategory(name: "projects") {+ """+ The role to grant the collaborator+ """+ role: ProjectV2Roles!++ """+ The ID of the team as a collaborator.+ """+ teamId: ID @possibleTypes(concreteTypes: ["Team"])++ """+ The ID of the user as a collaborator.+ """+ userId: ID @possibleTypes(concreteTypes: ["User"])+}++"""+The connection type for ProjectV2.+"""+type ProjectV2Connection {+ """+ A list of edges.+ """+ edges: [ProjectV2Edge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+The type of a project field.+"""+enum ProjectV2CustomFieldType @docsCategory(name: "projects") {+ """+ Date+ """+ DATE++ """+ Iteration+ """+ ITERATION++ """+ Multi Select+ """+ MULTI_SELECT++ """+ Number+ """+ NUMBER++ """+ Single Select+ """+ SINGLE_SELECT++ """+ Text+ """+ TEXT+}++"""+An edge in a connection.+"""+type ProjectV2Edge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2+}++"""+Represents an event related to a project on the timeline of an issue or pull request.+"""+interface ProjectV2Event @docsCategory(name: "projects") {+ """+ Project referenced by event.+ """+ project: ProjectV2++ """+ Did this event result from workflow automation?+ """+ wasAutomated: Boolean!+}++"""+A field inside a project.+"""+type ProjectV2Field implements Node & ProjectV2FieldCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The field's type.+ """+ dataType: ProjectV2FieldType!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the ProjectV2Field object+ """+ id: ID!++ """+ Returns true if this field is associated with an organization issue field+ """+ isIssueField: Boolean!++ """+ The organization issue field associated with this project field, if any+ """+ issueField: IssueFields++ """+ The project field's name.+ """+ name: String!++ """+ The project that contains this field.+ """+ project: ProjectV2!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Common fields across different project field types+"""+interface ProjectV2FieldCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The field's type.+ """+ dataType: ProjectV2FieldType!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the ProjectV2FieldCommon object+ """+ id: ID!++ """+ Returns true if this field is associated with an organization issue field+ """+ isIssueField: Boolean!++ """+ The project field's name.+ """+ name: String!++ """+ The project that contains this field.+ """+ project: ProjectV2!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Configurations for project fields.+"""+union ProjectV2FieldConfiguration @docsCategory(name: "projects") =+ | ProjectV2Field+ | ProjectV2IterationField+ | ProjectV2MultiSelectField+ | ProjectV2SingleSelectField++"""+The connection type for ProjectV2FieldConfiguration.+"""+type ProjectV2FieldConfigurationConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2FieldConfigurationEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2FieldConfiguration]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2FieldConfigurationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2FieldConfiguration+}++"""+The connection type for ProjectV2Field.+"""+type ProjectV2FieldConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2FieldEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2Field]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2FieldEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2Field+}++"""+Ordering options for project v2 field connections+"""+input ProjectV2FieldOrder @docsCategory(name: "projects") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order the project v2 fields by.+ """+ field: ProjectV2FieldOrderField!+}++"""+Properties by which project v2 field connections can be ordered.+"""+enum ProjectV2FieldOrderField @docsCategory(name: "projects") {+ """+ Order project v2 fields by creation time+ """+ CREATED_AT++ """+ Order project v2 fields by name+ """+ NAME++ """+ Order project v2 fields by position+ """+ POSITION+}++"""+The type of a project field.+"""+enum ProjectV2FieldType @docsCategory(name: "projects") {+ """+ Assignees+ """+ ASSIGNEES++ """+ Closed+ """+ CLOSED++ """+ Created+ """+ CREATED++ """+ Date+ """+ DATE++ """+ Issue type+ """+ ISSUE_TYPE++ """+ Iteration+ """+ ITERATION++ """+ Labels+ """+ LABELS++ """+ Linked Pull Requests+ """+ LINKED_PULL_REQUESTS++ """+ Milestone+ """+ MILESTONE++ """+ Multi Select+ """+ MULTI_SELECT++ """+ Number+ """+ NUMBER++ """+ Parent issue+ """+ PARENT_ISSUE++ """+ Repository+ """+ REPOSITORY++ """+ Reviewers+ """+ REVIEWERS++ """+ Single Select+ """+ SINGLE_SELECT++ """+ Sub-issues progress+ """+ SUB_ISSUES_PROGRESS++ """+ Text+ """+ TEXT++ """+ Title+ """+ TITLE++ """+ Tracked by+ """+ TRACKED_BY++ """+ Tracks+ """+ TRACKS++ """+ Updated+ """+ UPDATED+}++"""+The values that can be used to update a field of an item inside a Project. Only 1 value can be updated at a time.+"""+input ProjectV2FieldValue @docsCategory(name: "projects") {+ """+ The ISO 8601 date to set on the field.+ """+ date: Date++ """+ The id of the iteration to set on the field.+ """+ iterationId: String++ """+ The ids of the multi select options to set on the field.+ """+ multiSelectOptionIds: [String!]++ """+ The number to set on the field.+ """+ number: Float++ """+ The id of the single select option to set on the field.+ """+ singleSelectOptionId: String++ """+ The text to set on the field.+ """+ text: String+}++"""+Ways in which to filter lists of projects.+"""+input ProjectV2Filters @docsCategory(name: "projects") {+ """+ List project v2 filtered by the state given.+ """+ state: ProjectV2State+}++"""+Possible issue field values for a Project item.+"""+union ProjectV2IssueFieldValues @docsCategory(name: "projects") =+ | IssueFieldDateValue+ | IssueFieldMultiSelectValue+ | IssueFieldNumberValue+ | IssueFieldSingleSelectValue+ | IssueFieldTextValue++"""+An item within a Project.+"""+type ProjectV2Item implements Node @docsCategory(name: "projects") {+ """+ The content of the referenced draft issue, issue, pull request+ """+ content: ProjectV2ItemContent++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC."+ )++ """+ The field value of the first project field which matches the 'name' argument that is set on the item.+ """+ fieldValueByName(+ """+ The name of the field to return the field value of+ """+ name: String!+ ): ProjectV2ItemFieldValue++ """+ The field values that are set on the item.+ """+ fieldValues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for project v2 item field values returned from the connection+ """+ orderBy: ProjectV2ItemFieldValueOrder = {field: POSITION, direction: ASC}+ ): ProjectV2ItemFieldValueConnection!++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the ProjectV2Item object+ """+ id: ID!++ """+ Whether the item is archived.+ """+ isArchived: Boolean!++ """+ The project that contains this item.+ """+ project: ProjectV2!++ """+ The type of the item.+ """+ type: ProjectV2ItemType!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The possible archived states of a `ProjectV2Item`.+"""+enum ProjectV2ItemArchivedState @docsCategory(name: "projects") {+ """+ A project item that is archived+ """+ ARCHIVED++ """+ A project item that is not archived+ """+ NOT_ARCHIVED+}++"""+The connection type for ProjectV2Item.+"""+type ProjectV2ItemConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2ItemEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2Item]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Types that can be inside Project Items.+"""+union ProjectV2ItemContent @docsCategory(name: "projects") = DraftIssue | Issue | PullRequest++"""+An edge in a connection.+"""+type ProjectV2ItemEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2Item+}++"""+The value of a date field in a Project item.+"""+type ProjectV2ItemFieldDateValue implements Node & ProjectV2ItemFieldValueCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Date value for the field+ """+ date: Date++ """+ The project field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The Node ID of the ProjectV2ItemFieldDateValue object+ """+ id: ID!++ """+ The project item that contains this value.+ """+ item: ProjectV2Item!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The value of an iteration field in a Project item.+"""+type ProjectV2ItemFieldIterationValue implements Node & ProjectV2ItemFieldValueCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The duration of the iteration in days.+ """+ duration: Int!++ """+ The project field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The Node ID of the ProjectV2ItemFieldIterationValue object+ """+ id: ID!++ """+ The project item that contains this value.+ """+ item: ProjectV2Item!++ """+ The ID of the iteration.+ """+ iterationId: String!++ """+ The start date of the iteration.+ """+ startDate: Date!++ """+ The title of the iteration.+ """+ title: String!++ """+ The title of the iteration, with HTML.+ """+ titleHTML: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The value of the labels field in a Project item.+"""+type ProjectV2ItemFieldLabelValue @docsCategory(name: "projects") {+ """+ The field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ Labels value of a field+ """+ labels(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): LabelConnection+}++"""+The value of a milestone field in a Project item.+"""+type ProjectV2ItemFieldMilestoneValue @docsCategory(name: "projects") {+ """+ The field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ Milestone value of a field+ """+ milestone: Milestone+}++"""+The value of a multi select field in a Project item.+"""+type ProjectV2ItemFieldMultiSelectValue implements Node & ProjectV2ItemFieldValueCommon+ @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The project field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The Node ID of the ProjectV2ItemFieldMultiSelectValue object+ """+ id: ID!++ """+ The project item that contains this value.+ """+ item: ProjectV2Item!++ """+ The selected multi select options.+ """+ options: [ProjectV2MultiSelectFieldOption!]++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ Comma-separated names of the selected multi select options.+ """+ value: String!+}++"""+The value of a number field in a Project item.+"""+type ProjectV2ItemFieldNumberValue implements Node & ProjectV2ItemFieldValueCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The project field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The Node ID of the ProjectV2ItemFieldNumberValue object+ """+ id: ID!++ """+ The project item that contains this value.+ """+ item: ProjectV2Item!++ """+ Number as a float(8)+ """+ number: Float++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The value of a pull request field in a Project item.+"""+type ProjectV2ItemFieldPullRequestValue @docsCategory(name: "projects") {+ """+ The field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The pull requests for this field+ """+ pullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests.+ """+ orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC}+ ): PullRequestConnection+}++"""+The value of a repository field in a Project item.+"""+type ProjectV2ItemFieldRepositoryValue @docsCategory(name: "projects") {+ """+ The field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The repository for this field.+ """+ repository: Repository+}++"""+The value of a reviewers field in a Project item.+"""+type ProjectV2ItemFieldReviewerValue @docsCategory(name: "projects") {+ """+ The field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The reviewers for this field.+ """+ reviewers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): RequestedReviewerConnection+}++"""+The value of a single select field in a Project item.+"""+type ProjectV2ItemFieldSingleSelectValue implements Node & ProjectV2ItemFieldValueCommon+ @docsCategory(name: "projects") {+ """+ The color applied to the selected single-select option.+ """+ color: ProjectV2SingleSelectFieldOptionColor!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ A plain-text description of the selected single-select option, such as what the option means.+ """+ description: String++ """+ The description of the selected single-select option, including HTML tags.+ """+ descriptionHTML: String++ """+ The project field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The Node ID of the ProjectV2ItemFieldSingleSelectValue object+ """+ id: ID!++ """+ The project item that contains this value.+ """+ item: ProjectV2Item!++ """+ The name of the selected single select option.+ """+ name: String++ """+ The html name of the selected single select option.+ """+ nameHTML: String++ """+ The id of the selected single select option.+ """+ optionId: String++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The value of a text field in a Project item.+"""+type ProjectV2ItemFieldTextValue implements Node & ProjectV2ItemFieldValueCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The project field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The Node ID of the ProjectV2ItemFieldTextValue object+ """+ id: ID!++ """+ The project item that contains this value.+ """+ item: ProjectV2Item!++ """+ Text value of a field+ """+ text: String++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The value of a user field in a Project item.+"""+type ProjectV2ItemFieldUserValue @docsCategory(name: "projects") {+ """+ The field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The users for this field+ """+ users(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection+}++"""+Project field values+"""+union ProjectV2ItemFieldValue @docsCategory(name: "projects") =+ | ProjectV2ItemFieldDateValue+ | ProjectV2ItemFieldIterationValue+ | ProjectV2ItemFieldLabelValue+ | ProjectV2ItemFieldMilestoneValue+ | ProjectV2ItemFieldMultiSelectValue+ | ProjectV2ItemFieldNumberValue+ | ProjectV2ItemFieldPullRequestValue+ | ProjectV2ItemFieldRepositoryValue+ | ProjectV2ItemFieldReviewerValue+ | ProjectV2ItemFieldSingleSelectValue+ | ProjectV2ItemFieldTextValue+ | ProjectV2ItemFieldUserValue+ | ProjectV2ItemIssueFieldValue++"""+Common fields across different project field value types+"""+interface ProjectV2ItemFieldValueCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the item.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The project field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ The Node ID of the ProjectV2ItemFieldValueCommon object+ """+ id: ID!++ """+ The project item that contains this value.+ """+ item: ProjectV2Item!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for ProjectV2ItemFieldValue.+"""+type ProjectV2ItemFieldValueConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2ItemFieldValueEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2ItemFieldValue]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2ItemFieldValueEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2ItemFieldValue+}++"""+Ordering options for project v2 item field value connections+"""+input ProjectV2ItemFieldValueOrder @docsCategory(name: "projects") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order the project v2 item field values by.+ """+ field: ProjectV2ItemFieldValueOrderField!+}++"""+Properties by which project v2 item field value connections can be ordered.+"""+enum ProjectV2ItemFieldValueOrderField @docsCategory(name: "projects") {+ """+ Order project v2 item field values by the their position in the project+ """+ POSITION+}++"""+The value of an issue field in a Project item.+"""+type ProjectV2ItemIssueFieldValue @docsCategory(name: "projects") {+ """+ Field that contains this value.+ """+ field: ProjectV2FieldConfiguration!++ """+ Value of the Issue Field+ """+ issueFieldValue: ProjectV2IssueFieldValues+}++"""+Ordering options for project v2 item connections+"""+input ProjectV2ItemOrder @docsCategory(name: "projects") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order the project v2 items by.+ """+ field: ProjectV2ItemOrderField!+}++"""+Properties by which project v2 item connections can be ordered.+"""+enum ProjectV2ItemOrderField @docsCategory(name: "projects") {+ """+ Order project v2 items by the their position in the project+ """+ POSITION+}++"""+Represents a 'project_v2_item_status_changed' event on a given issue or pull request.+"""+type ProjectV2ItemStatusChangedEvent implements Node & ProjectV2Event @docsCategory(name: "projects") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ProjectV2ItemStatusChangedEvent object+ """+ id: ID!++ """+ The previous status of the project item.+ """+ previousStatus: String!++ """+ Project referenced by event.+ """+ project: ProjectV2++ """+ The new status of the project item.+ """+ status: String!++ """+ Did this event result from workflow automation?+ """+ wasAutomated: Boolean!+}++"""+The type of a project item.+"""+enum ProjectV2ItemType @docsCategory(name: "projects") {+ """+ Draft Issue+ """+ DRAFT_ISSUE++ """+ Issue+ """+ ISSUE++ """+ Pull Request+ """+ PULL_REQUEST++ """+ Redacted Item+ """+ REDACTED+}++"""+Represents an iteration+"""+input ProjectV2Iteration @docsCategory(name: "projects") {+ """+ The duration of the iteration, in days.+ """+ duration: Int!++ """+ The ID of an existing iteration. Include this to preserve the iteration's identity during replacement updates.+ """+ id: String++ """+ The start date for the iteration.+ """+ startDate: Date!++ """+ The title for the iteration.+ """+ title: String!+}++"""+An iteration field inside a project.+"""+type ProjectV2IterationField implements Node & ProjectV2FieldCommon @docsCategory(name: "projects") {+ """+ Iteration configuration settings+ """+ configuration: ProjectV2IterationFieldConfiguration!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The field's type.+ """+ dataType: ProjectV2FieldType!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the ProjectV2IterationField object+ """+ id: ID!++ """+ Returns true if this field is associated with an organization issue field+ """+ isIssueField: Boolean!++ """+ The project field's name.+ """+ name: String!++ """+ The project that contains this field.+ """+ project: ProjectV2!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Iteration field configuration for a project.+"""+type ProjectV2IterationFieldConfiguration @docsCategory(name: "projects") {+ """+ The iteration's completed iterations+ """+ completedIterations: [ProjectV2IterationFieldIteration!]!++ """+ The iteration's duration in days+ """+ duration: Int!++ """+ The iteration's iterations+ """+ iterations: [ProjectV2IterationFieldIteration!]!++ """+ The iteration's start day of the week+ """+ startDay: Int!+}++"""+Represents an iteration field configuration.+"""+input ProjectV2IterationFieldConfigurationInput @docsCategory(name: "projects") {+ """+ The duration of each iteration, in days.+ """+ duration: Int!++ """+ Zero or more iterations for the field.+ """+ iterations: [ProjectV2Iteration!]!++ """+ The start date for the first iteration.+ """+ startDate: Date!+}++"""+Iteration field iteration settings for a project.+"""+type ProjectV2IterationFieldIteration @docsCategory(name: "projects") {+ """+ The iteration's duration in days+ """+ duration: Int!++ """+ The iteration's ID.+ """+ id: String!++ """+ The iteration's start date+ """+ startDate: Date!++ """+ The iteration's title.+ """+ title: String!++ """+ The iteration's html title.+ """+ titleHTML: String!+}++"""+A multi select field inside a project.+"""+type ProjectV2MultiSelectField implements Node & ProjectV2FieldCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The field's type.+ """+ dataType: ProjectV2FieldType!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the ProjectV2MultiSelectField object+ """+ id: ID!++ """+ Returns true if this field is associated with an organization issue field+ """+ isIssueField: Boolean!++ """+ The organization issue field associated with this project field, if any+ """+ issueField: IssueFields++ """+ Options for the multi select field+ """+ multiSelectOptions(+ """+ Filter returned options to only those matching these names, case insensitive.+ """+ names: [String!]+ ): [ProjectV2MultiSelectFieldOption!]!++ """+ The project field's name.+ """+ name: String!++ """+ The project that contains this field.+ """+ project: ProjectV2!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Multi select field option for a configuration for a project.+"""+type ProjectV2MultiSelectFieldOption @docsCategory(name: "projects") {+ """+ The option's display color.+ """+ color: ProjectV2SingleSelectFieldOptionColor!++ """+ The option's plain-text description.+ """+ description: String!++ """+ The option's description, possibly containing HTML.+ """+ descriptionHTML: String!++ """+ The option's ID.+ """+ id: String!++ """+ The option's name.+ """+ name: String!++ """+ The option's html name.+ """+ nameHTML: String!+}++"""+Represents a multi select field option+"""+input ProjectV2MultiSelectFieldOptionInput @docsCategory(name: "projects") {+ """+ The display color of the option+ """+ color: ProjectV2SingleSelectFieldOptionColor!++ """+ The description text of the option+ """+ description: String!++ """+ The ID of an existing multi select option. Include this to preserve the+ option's identity during updates, preventing item field values from being cleared.+ """+ id: String++ """+ The name of the option+ """+ name: String!+}++"""+Ways in which lists of projects can be ordered upon return.+"""+input ProjectV2Order @docsCategory(name: "projects") {+ """+ The direction in which to order projects by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order projects by.+ """+ field: ProjectV2OrderField!+}++"""+Properties by which projects can be ordered.+"""+enum ProjectV2OrderField @docsCategory(name: "projects") {+ """+ The project's date and time of creation+ """+ CREATED_AT++ """+ The project's number+ """+ NUMBER++ """+ The project's title+ """+ TITLE++ """+ The project's date and time of update+ """+ UPDATED_AT+}++"""+Represents an owner of a project.+"""+interface ProjectV2Owner @docsCategory(name: "projects") {+ """+ The Node ID of the ProjectV2Owner object+ """+ id: ID!++ """+ Find a project by number.+ """+ projectV2(+ """+ The project number.+ """+ number: Int!+ ): ProjectV2++ """+ A list of projects under the owner.+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter projects based on user role.+ """+ minPermissionLevel: ProjectV2PermissionLevel = READ++ """+ How to order the returned projects.+ """+ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}++ """+ A project to search for under the owner.+ """+ query: String+ ): ProjectV2Connection!+}++"""+The possible roles of a collaborator on a project.+"""+enum ProjectV2PermissionLevel @docsCategory(name: "projects") {+ """+ The collaborator can view, edit, and maange the settings of the project+ """+ ADMIN++ """+ The collaborator can view the project+ """+ READ++ """+ The collaborator can view and edit the project+ """+ WRITE+}++"""+Recent projects for the owner.+"""+interface ProjectV2Recent @docsCategory(name: "projects") {+ """+ Recent projects that this user has modified in the context of the owner.+ """+ recentProjects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2Connection!+}++"""+The possible roles of a collaborator on a project.+"""+enum ProjectV2Roles @docsCategory(name: "projects") {+ """+ The collaborator can view, edit, and maange the settings of the project+ """+ ADMIN++ """+ The collaborator has no direct access to the project+ """+ NONE++ """+ The collaborator can view the project+ """+ READER++ """+ The collaborator can view and edit the project+ """+ WRITER+}++"""+A single select field inside a project.+"""+type ProjectV2SingleSelectField implements Node & ProjectV2FieldCommon @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The field's type.+ """+ dataType: ProjectV2FieldType!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the ProjectV2SingleSelectField object+ """+ id: ID!++ """+ Returns true if this field is associated with an organization issue field+ """+ isIssueField: Boolean!++ """+ The organization issue field associated with this project field, if any+ """+ issueField: IssueFields++ """+ The project field's name.+ """+ name: String!++ """+ Options for the single select field+ """+ options(+ """+ Filter returned options to only those matching these names, case insensitive.+ """+ names: [String!]+ ): [ProjectV2SingleSelectFieldOption!]!++ """+ The project that contains this field.+ """+ project: ProjectV2!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Single select field option for a configuration for a project.+"""+type ProjectV2SingleSelectFieldOption @docsCategory(name: "projects") {+ """+ The option's display color.+ """+ color: ProjectV2SingleSelectFieldOptionColor!++ """+ The option's plain-text description.+ """+ description: String!++ """+ The option's description, possibly containing HTML.+ """+ descriptionHTML: String!++ """+ The option's ID.+ """+ id: String!++ """+ The option's name.+ """+ name: String!++ """+ The option's html name.+ """+ nameHTML: String!+}++"""+The display color of a single-select field option.+"""+enum ProjectV2SingleSelectFieldOptionColor @docsCategory(name: "projects") {+ """+ BLUE+ """+ BLUE++ """+ GRAY+ """+ GRAY++ """+ GREEN+ """+ GREEN++ """+ ORANGE+ """+ ORANGE++ """+ PINK+ """+ PINK++ """+ PURPLE+ """+ PURPLE++ """+ RED+ """+ RED++ """+ YELLOW+ """+ YELLOW+}++"""+Represents a single select field option+"""+input ProjectV2SingleSelectFieldOptionInput @docsCategory(name: "projects") {+ """+ The display color of the option+ """+ color: ProjectV2SingleSelectFieldOptionColor!++ """+ The description text of the option+ """+ description: String!++ """+ The ID of an existing single select option. Include this to preserve the+ option's identity during updates, preventing item field values from being cleared.+ """+ id: String++ """+ The name of the option+ """+ name: String!+}++"""+Represents a sort by field and direction.+"""+type ProjectV2SortBy @docsCategory(name: "projects") {+ """+ The direction of the sorting. Possible values are ASC and DESC.+ """+ direction: OrderDirection!++ """+ The field by which items are sorted.+ """+ field: ProjectV2Field!+}++"""+The connection type for ProjectV2SortBy.+"""+type ProjectV2SortByConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2SortByEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2SortBy]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2SortByEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2SortBy+}++"""+Represents a sort by field and direction.+"""+type ProjectV2SortByField @docsCategory(name: "projects") {+ """+ The direction of the sorting. Possible values are ASC and DESC.+ """+ direction: OrderDirection!++ """+ The field by which items are sorted.+ """+ field: ProjectV2FieldConfiguration!+}++"""+The connection type for ProjectV2SortByField.+"""+type ProjectV2SortByFieldConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2SortByFieldEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2SortByField]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2SortByFieldEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2SortByField+}++"""+The possible states of a project v2.+"""+enum ProjectV2State @docsCategory(name: "projects") {+ """+ A project v2 that has been closed+ """+ CLOSED++ """+ A project v2 that is still open+ """+ OPEN+}++"""+Ways in which project v2 status updates can be ordered.+"""+input ProjectV2StatusOrder @docsCategory(name: "projects") {+ """+ The direction in which to order nodes.+ """+ direction: OrderDirection!++ """+ The field by which to order nodes.+ """+ field: ProjectV2StatusUpdateOrderField!+}++"""+A status update within a project.+"""+type ProjectV2StatusUpdate implements Node @docsCategory(name: "projects") {+ """+ The body of the status update.+ """+ body: String++ """+ The body of the status update rendered to HTML.+ """+ bodyHTML: HTML++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created the status update.+ """+ creator: Actor++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC."+ )++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the ProjectV2StatusUpdate object+ """+ id: ID!++ """+ The project that contains this status update.+ """+ project: ProjectV2!++ """+ The start date of the status update.+ """+ startDate: Date++ """+ The status of the status update.+ """+ status: ProjectV2StatusUpdateStatus++ """+ The target date of the status update.+ """+ targetDate: Date++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for ProjectV2StatusUpdate.+"""+type ProjectV2StatusUpdateConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2StatusUpdateEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2StatusUpdate]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2StatusUpdateEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2StatusUpdate+}++"""+Properties by which project v2 status updates can be ordered.+"""+enum ProjectV2StatusUpdateOrderField @docsCategory(name: "projects") {+ """+ Allows chronological ordering of project v2 status updates.+ """+ CREATED_AT+}++"""+The possible statuses of a project v2.+"""+enum ProjectV2StatusUpdateStatus @docsCategory(name: "projects") {+ """+ A project v2 that is at risk and encountering some challenges.+ """+ AT_RISK++ """+ A project v2 that is complete.+ """+ COMPLETE++ """+ A project v2 that is inactive.+ """+ INACTIVE++ """+ A project v2 that is off track and needs attention.+ """+ OFF_TRACK++ """+ A project v2 that is on track with no risks.+ """+ ON_TRACK+}++"""+A view within a ProjectV2.+"""+type ProjectV2View implements Node @docsCategory(name: "projects") {+ """+ The view's configuration.+ """+ configuration: ProjectV2ViewConfiguration!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC."+ )++ """+ The view's visible fields.+ """+ fields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the project v2 fields returned from the connection.+ """+ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}+ ): ProjectV2FieldConfigurationConnection++ """+ The project view's filter.+ """+ filter: String++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The view's group-by field.+ """+ groupBy(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the project v2 fields returned from the connection.+ """+ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}+ ): ProjectV2FieldConnection+ @deprecated(+ reason: "The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC."+ )++ """+ The view's group-by field.+ """+ groupByFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the project v2 fields returned from the connection.+ """+ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}+ ): ProjectV2FieldConfigurationConnection++ """+ The Node ID of the ProjectV2View object+ """+ id: ID!++ """+ The project view's layout.+ """+ layout: ProjectV2ViewLayout!++ """+ The project view's name.+ """+ name: String!++ """+ The project view's number.+ """+ number: Int!++ """+ The project that contains this view.+ """+ project: ProjectV2!++ """+ The view's sort-by config.+ """+ sortBy(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2SortByConnection+ @deprecated(+ reason: "The `ProjectV2View#sort_by` API is deprecated in favour of the more capable `ProjectV2View#sort_by_fields` API. Check out the `ProjectV2View#sort_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC."+ )++ """+ The view's sort-by config.+ """+ sortByFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2SortByFieldConnection++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The view's vertical-group-by field.+ """+ verticalGroupBy(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the project v2 fields returned from the connection.+ """+ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}+ ): ProjectV2FieldConnection+ @deprecated(+ reason: "The `ProjectV2View#vertical_group_by` API is deprecated in favour of the more capable `ProjectV2View#vertical_group_by_fields` API. Check out the `ProjectV2View#vertical_group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC."+ )++ """+ The view's vertical-group-by field.+ """+ verticalGroupByFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the project v2 fields returned from the connection.+ """+ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}+ ): ProjectV2FieldConfigurationConnection++ """+ The view's visible fields.+ """+ visibleFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the project v2 fields returned from the connection.+ """+ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}+ ): ProjectV2FieldConnection+ @deprecated(+ reason: "The `ProjectV2View#visibleFields` API is deprecated in favour of the more capable `ProjectV2View#fields` API. Check out the `ProjectV2View#fields` API as an example for the more capable alternative. Removal on 2023-01-01 UTC."+ )+}++"""+Configuration for a ProjectV2 view.+"""+type ProjectV2ViewConfiguration @docsCategory(name: "projects") {+ """+ The fields visible in the view, in configured order.+ """+ visibleFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2FieldConfigurationConnection!+}++"""+Configuration for a ProjectV2 view.+"""+input ProjectV2ViewConfigurationInput @docsCategory(name: "projects") {+ """+ The ordered IDs of the fields visible in the view.+ """+ visibleFieldIds: [ID!]+ @possibleTypes(+ concreteTypes: [+ "ProjectV2Field"+ "ProjectV2IterationField"+ "ProjectV2MultiSelectField"+ "ProjectV2SingleSelectField"+ ]+ abstractType: "ProjectV2FieldConfiguration"+ )+}++"""+The connection type for ProjectV2View.+"""+type ProjectV2ViewConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2ViewEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2View]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2ViewEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2View+}++"""+The layout of a project v2 view.+"""+enum ProjectV2ViewLayout @docsCategory(name: "projects") {+ """+ Board layout+ """+ BOARD_LAYOUT++ """+ Roadmap layout+ """+ ROADMAP_LAYOUT++ """+ Table layout+ """+ TABLE_LAYOUT+}++"""+Ordering options for project v2 view connections+"""+input ProjectV2ViewOrder @docsCategory(name: "projects") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order the project v2 views by.+ """+ field: ProjectV2ViewOrderField!+}++"""+Properties by which project v2 view connections can be ordered.+"""+enum ProjectV2ViewOrderField @docsCategory(name: "projects") {+ """+ Order project v2 views by creation time+ """+ CREATED_AT++ """+ Order project v2 views by name+ """+ NAME++ """+ Order project v2 views by position+ """+ POSITION+}++"""+A workflow inside a project.+"""+type ProjectV2Workflow implements Node @docsCategory(name: "projects") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC."+ )++ """+ Whether the workflow is enabled.+ """+ enabled: Boolean!++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the ProjectV2Workflow object+ """+ id: ID!++ """+ The name of the workflow.+ """+ name: String!++ """+ The number of the workflow.+ """+ number: Int!++ """+ The project that contains this workflow.+ """+ project: ProjectV2!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for ProjectV2Workflow.+"""+type ProjectV2WorkflowConnection {+ """+ A list of edges.+ """+ edges: [ProjectV2WorkflowEdge]++ """+ A list of nodes.+ """+ nodes: [ProjectV2Workflow]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ProjectV2WorkflowEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ProjectV2Workflow+}++"""+Ordering options for project v2 workflows connections+"""+input ProjectV2WorkflowOrder @docsCategory(name: "projects") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order the project v2 workflows by.+ """+ field: ProjectV2WorkflowsOrderField!+}++"""+Properties by which project workflows can be ordered.+"""+enum ProjectV2WorkflowsOrderField @docsCategory(name: "projects") {+ """+ The date and time of the workflow creation+ """+ CREATED_AT++ """+ The name of the workflow+ """+ NAME++ """+ The number of the workflow+ """+ NUMBER++ """+ The date and time of the workflow update+ """+ UPDATED_AT+}++"""+Autogenerated input type of PromoteRepositoryCustomProperty+"""+input PromoteRepositoryCustomPropertyInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the repository custom property to be promoted.+ """+ repositoryCustomPropertyId: ID! @possibleTypes(concreteTypes: ["RepositoryCustomProperty"])+}++"""+Autogenerated return type of PromoteRepositoryCustomProperty.+"""+type PromoteRepositoryCustomPropertyPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository custom property that has been promoted.+ """+ repositoryCustomProperty: RepositoryCustomProperty+}++"""+A property that must match+"""+type PropertyTargetDefinition @docsCategory(name: "repos") {+ """+ The name of the property+ """+ name: String!++ """+ The values to match for+ """+ propertyValues: [String!]!++ """+ The source of the property. Choose 'custom' or 'system'. Defaults to 'custom' if not specified+ """+ source: String+}++"""+A property that must match+"""+input PropertyTargetDefinitionInput @docsCategory(name: "repos") {+ """+ The name of the property+ """+ name: String!++ """+ The values to match for+ """+ propertyValues: [String!]!++ """+ The source of the property. Choose 'custom' or 'system'. Defaults to 'custom' if not specified+ """+ source: String+}++"""+A user's public key.+"""+type PublicKey implements Node @docsCategory(name: "users") {+ """+ The last time this authorization was used to perform an action. Values will be null for keys not owned by the user.+ """+ accessedAt: DateTime++ """+ Identifies the date and time when the key was created. Keys created before+ March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user.+ """+ createdAt: DateTime++ """+ The fingerprint for this PublicKey.+ """+ fingerprint: String!++ """+ The Node ID of the PublicKey object+ """+ id: ID!++ """+ Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user.+ """+ isReadOnly: Boolean++ """+ The public key string.+ """+ key: String!++ """+ Identifies the date and time when the key was updated. Keys created before+ March 5th, 2014 may have inaccurate values. Values will be null for keys not+ owned by the user.+ """+ updatedAt: DateTime+}++"""+The connection type for PublicKey.+"""+type PublicKeyConnection {+ """+ A list of edges.+ """+ edges: [PublicKeyEdge]++ """+ A list of nodes.+ """+ nodes: [PublicKey]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PublicKeyEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PublicKey+}++"""+Autogenerated input type of PublishSponsorsTier+"""+input PublishSponsorsTierInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the draft tier to publish.+ """+ tierId: ID! @possibleTypes(concreteTypes: ["SponsorsTier"])+}++"""+Autogenerated return type of PublishSponsorsTier.+"""+type PublishSponsorsTierPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The tier that was published.+ """+ sponsorsTier: SponsorsTier+}++"""+A repository pull request.+"""+type PullRequest implements Assignable &+ Closable &+ Comment &+ Labelable &+ Lockable &+ Node &+ ProjectV2Owner &+ Reactable &+ RepositoryNode &+ Subscribable &+ UniformResourceLocatable &+ Updatable &+ UpdatableComment @docsCategory(name: "pulls") {+ """+ Reason that the conversation was locked.+ """+ activeLockReason: LockReason++ """+ The number of additions in this pull request.+ """+ additions: Int!++ """+ A list of actors assigned to this object.+ """+ assignedActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): AssigneeConnection!++ """+ A list of Users assigned to this object.+ """+ assignees(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ Returns the auto-merge request object if one exists for this pull request.+ """+ autoMergeRequest: AutoMergeRequest++ """+ Identifies the base Ref associated with the pull request.+ """+ baseRef: Ref++ """+ Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted.+ """+ baseRefName: String!++ """+ Identifies the oid of the base ref associated with the pull request, even if the ref has been deleted.+ """+ baseRefOid: GitObjectID!++ """+ The repository associated with this pull request's base Ref.+ """+ baseRepository: Repository++ """+ The body as Markdown.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body rendered to text.+ """+ bodyText: String!++ """+ Whether or not the pull request is rebaseable.+ """+ canBeRebased: Boolean!++ """+ The number of changed files in this pull request.+ """+ changedFiles: Int!++ """+ The HTTP path for the checks of this pull request.+ """+ checksResourcePath: URI!++ """+ The HTTP URL for the checks of this pull request.+ """+ checksUrl: URI!++ """+ `true` if the pull request is closed+ """+ closed: Boolean!++ """+ Identifies the date and time when the object was closed.+ """+ closedAt: DateTime++ """+ List of issues that may be closed by this pull request+ """+ closingIssuesReferences(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Exclude manually linked Issues+ """+ excludeUserLinked: Boolean = false++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issues returned from the connection+ """+ orderBy: IssueOrder++ """+ Return only manually linked Issues+ """+ userLinkedOnly: Boolean = false+ ): IssueConnection++ """+ A list of comments associated with the pull request.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issue comments returned from the connection.+ """+ orderBy: IssueCommentOrder+ ): IssueCommentConnection!++ """+ A list of commits present in this pull request's head branch not present in the base branch.+ """+ commits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PullRequestCommitConnection!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2024-07-01 UTC."+ )++ """+ The number of deletions in this pull request.+ """+ deletions: Int!++ """+ The actor who edited this pull request's body.+ """+ editor: Actor++ """+ Lists the files changed within this pull request.+ """+ files(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PullRequestChangedFileConnection++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ Identifies the head Ref associated with the pull request.+ """+ headRef: Ref++ """+ Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted.+ """+ headRefName: String!++ """+ Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted.+ """+ headRefOid: GitObjectID!++ """+ The repository associated with this pull request's head Ref.+ """+ headRepository: Repository++ """+ The owner of the repository associated with this pull request's head Ref.+ """+ headRepositoryOwner: RepositoryOwner++ """+ The hovercard information for this issue+ """+ hovercard(+ """+ Whether or not to include notification contexts+ """+ includeNotificationContexts: Boolean = true+ ): Hovercard!++ """+ The Node ID of the PullRequest object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ The head and base repositories are different.+ """+ isCrossRepository: Boolean!++ """+ Identifies if the pull request is a draft.+ """+ isDraft: Boolean!++ """+ Indicates whether the pull request is in a merge queue+ """+ isInMergeQueue: Boolean!++ """+ Indicates whether the pull request's base ref has a merge queue enabled.+ """+ isMergeQueueEnabled: Boolean!++ """+ Is this pull request read by the viewer+ """+ isReadByViewer: Boolean++ """+ A list of labels associated with the object.+ """+ labels(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for labels returned from the connection.+ """+ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}+ ): LabelConnection++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ A list of latest reviews per user associated with the pull request.+ """+ latestOpinionatedReviews(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Only return reviews from user who have write access to the repository+ """+ writersOnly: Boolean = false+ ): PullRequestReviewConnection++ """+ A list of latest reviews per user associated with the pull request that are not also pending review.+ """+ latestReviews(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PullRequestReviewConnection++ """+ `true` if the pull request is locked+ """+ locked: Boolean!++ """+ Indicates whether maintainers can modify the pull request.+ """+ maintainerCanModify: Boolean!++ """+ The commit that was created when this pull request was merged.+ """+ mergeCommit: Commit++ """+ The merge queue for the pull request's base branch+ """+ mergeQueue: MergeQueue++ """+ The merge queue entry of the pull request in the base branch's merge queue+ """+ mergeQueueEntry: MergeQueueEntry++ """+ Detailed information about the current pull request merge state status.+ """+ mergeStateStatus: MergeStateStatus!++ """+ Whether or not the pull request can be merged based on the existence of merge conflicts.+ """+ mergeable: MergeableState!++ """+ Whether or not the pull request was merged.+ """+ merged: Boolean!++ """+ The date and time that the pull request was merged.+ """+ mergedAt: DateTime++ """+ The actor who merged the pull request.+ """+ mergedBy: Actor++ """+ Identifies the milestone associated with the pull request.+ """+ milestone: Milestone++ """+ Identifies the pull request number.+ """+ number: Int!++ """+ A list of Users that are participating in the Pull Request conversation.+ """+ participants(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ The permalink to the pull request.+ """+ permalink: URI!++ """+ The commit that GitHub automatically generated to test if this pull request+ could be merged. This field will not return a value if the pull request is+ merged, or if the test merge commit is still being generated. See the+ `mergeable` field for more details on the mergeability of the pull request.+ """+ potentialMergeCommit: Commit++ """+ List of project cards associated with this pull request.+ """+ projectCards(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ A list of archived states to filter the cards by+ """+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectCardConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ List of project items associated with this pull request.+ """+ projectItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Include archived items.+ """+ includeArchived: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2ItemConnection++ """+ Find a project by number.+ """+ projectV2(+ """+ The project number.+ """+ number: Int!+ ): ProjectV2++ """+ A list of projects under the owner.+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter projects based on user role.+ """+ minPermissionLevel: ProjectV2PermissionLevel = READ++ """+ How to order the returned projects.+ """+ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}++ """+ A project to search for under the owner.+ """+ query: String+ ): ProjectV2Connection!++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The HTTP path for this pull request.+ """+ resourcePath: URI!++ """+ The HTTP path for reverting this pull request.+ """+ revertResourcePath: URI!++ """+ The HTTP URL for reverting this pull request.+ """+ revertUrl: URI!++ """+ The current status of this pull request with respect to code review.+ """+ reviewDecision: PullRequestReviewDecision++ """+ A list of review requests associated with the pull request.+ """+ reviewRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ReviewRequestConnection++ """+ The list of all review threads for this pull request.+ """+ reviewThreads(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PullRequestReviewThreadConnection!++ """+ A list of reviews associated with the pull request.+ """+ reviews(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Filter by author of the review.+ """+ author: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ A list of states to filter the reviews.+ """+ states: [PullRequestReviewState!]+ ): PullRequestReviewConnection++ """+ The stack this Pull Request belongs to, or null if it is not part of a stack+ """+ stack: PullRequestStack++ """+ The stack entry for this Pull Request, or null if it is not part of a stack+ """+ stackEntry: PullRequestStackEntry++ """+ Identifies the state of the pull request.+ """+ state: PullRequestState!++ """+ Check and Status rollup information for the PR's head ref.+ """+ statusCheckRollup: StatusCheckRollup++ """+ A list of suggested actors to assign to this object+ """+ suggestedActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ If provided, searches users by login or profile name+ """+ query: String+ ): AssigneeConnection!++ """+ Reviewer actor suggestions based on commit history, past review comments, and integrations.+ """+ suggestedReviewerActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Search actors with query on user name and login.+ """+ query: String+ ): SuggestedReviewerActorConnection!++ """+ A list of reviewer suggestions based on commit history and past review comments.+ """+ suggestedReviewers: [SuggestedReviewer]!++ """+ A list of events, comments, commits, etc. associated with the pull request.+ """+ timeline(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows filtering timeline events by a `since` timestamp.+ """+ since: DateTime+ ): PullRequestTimelineConnection!+ @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.")++ """+ A list of events, comments, commits, etc. associated with the pull request.+ """+ timelineItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Filter timeline items by type.+ """+ itemTypes: [PullRequestTimelineItemsItemType!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter timeline items by a `since` timestamp.+ """+ since: DateTime++ """+ Skips the first _n_ elements in the list.+ """+ skip: Int+ ): PullRequestTimelineItemsConnection!++ """+ Identifies the pull request title.+ """+ title: String!++ """+ Identifies the pull request title rendered to HTML.+ """+ titleHTML: HTML!++ """+ Returns a count of how many comments this pull request has received.+ """+ totalCommentsCount: Int++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this pull request.+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Whether or not the viewer can apply suggestion.+ """+ viewerCanApplySuggestion: Boolean!++ """+ Indicates if the viewer can edit assignees for this object.+ """+ viewerCanAssign: Boolean!++ """+ Indicates if the object can be closed by the viewer.+ """+ viewerCanClose: Boolean!++ """+ Check if the viewer can restore the deleted head ref.+ """+ viewerCanDeleteHeadRef: Boolean!++ """+ Whether or not the viewer can disable auto-merge+ """+ viewerCanDisableAutoMerge: Boolean!++ """+ Can the viewer edit files within this pull request.+ """+ viewerCanEditFiles: Boolean!++ """+ Whether or not the viewer can enable auto-merge+ """+ viewerCanEnableAutoMerge: Boolean!++ """+ Indicates if the viewer can edit labels for this object.+ """+ viewerCanLabel: Boolean!++ """+ Indicates whether the viewer can bypass branch protections and merge the pull request immediately+ """+ viewerCanMergeAsAdmin: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Indicates if the object can be reopened by the viewer.+ """+ viewerCanReopen: Boolean!++ """+ Check if the viewer is able to change their subscription status for the repository.+ """+ viewerCanSubscribe: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Whether or not the viewer can update the head ref of this PR, by merging or rebasing the base ref.+ If the head ref is up to date or unable to be updated by this user, this will return false.+ """+ viewerCanUpdateBranch: Boolean!++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!++ """+ The latest review given from the viewer.+ """+ viewerLatestReview: PullRequestReview++ """+ The person who has requested the viewer for review on this pull request.+ """+ viewerLatestReviewRequest: ReviewRequest++ """+ The merge body text for the viewer and method.+ """+ viewerMergeBodyText(+ """+ The merge method for the message.+ """+ mergeType: PullRequestMergeMethod+ ): String!++ """+ The merge headline text for the viewer and method.+ """+ viewerMergeHeadlineText(+ """+ The merge method for the message.+ """+ mergeType: PullRequestMergeMethod+ ): String!++ """+ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.+ """+ viewerSubscription: SubscriptionState+}++"""+Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.+"""+enum PullRequestAllowedMergeMethods @docsCategory(name: "pulls") {+ """+ Add all commits from the head branch to the base branch with a merge commit.+ """+ MERGE++ """+ Add all commits from the head branch onto the base branch individually.+ """+ REBASE++ """+ Combine all commits from the head branch into a single commit in the base branch.+ """+ SQUASH+}++"""+The possible methods for updating a pull request's head branch with the base branch.+"""+enum PullRequestBranchUpdateMethod @docsCategory(name: "pulls") {+ """+ Update branch via merge+ """+ MERGE++ """+ Update branch via rebase+ """+ REBASE+}++"""+A file changed in a pull request.+"""+type PullRequestChangedFile @docsCategory(name: "pulls") {+ """+ The number of additions to the file.+ """+ additions: Int!++ """+ How the file was changed in this PullRequest+ """+ changeType: PatchStatus!++ """+ The number of deletions to the file.+ """+ deletions: Int!++ """+ The path of the file.+ """+ path: String!++ """+ The state of the file for the viewer.+ """+ viewerViewedState: FileViewedState!+}++"""+The connection type for PullRequestChangedFile.+"""+type PullRequestChangedFileConnection {+ """+ A list of edges.+ """+ edges: [PullRequestChangedFileEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequestChangedFile]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PullRequestChangedFileEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestChangedFile+}++"""+Represents a Git commit part of a pull request.+"""+type PullRequestCommit implements Node & UniformResourceLocatable @docsCategory(name: "pulls") {+ """+ The Git commit object+ """+ commit: Commit!++ """+ The Node ID of the PullRequestCommit object+ """+ id: ID!++ """+ The pull request this commit belongs to+ """+ pullRequest: PullRequest!++ """+ The HTTP path for this pull request commit+ """+ resourcePath: URI!++ """+ The HTTP URL for this pull request commit+ """+ url: URI!+}++"""+Represents a commit comment thread part of a pull request.+"""+type PullRequestCommitCommentThread implements Node & RepositoryNode @docsCategory(name: "pulls") {+ """+ The comments that exist in this thread.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CommitCommentConnection!++ """+ The commit the comments were made on.+ """+ commit: Commit!++ """+ The Node ID of the PullRequestCommitCommentThread object+ """+ id: ID!++ """+ The file the comments were made on.+ """+ path: String++ """+ The position in the diff for the commit that the comment was made on.+ """+ position: Int++ """+ The pull request this commit comment thread belongs to+ """+ pullRequest: PullRequest!++ """+ The repository associated with this node.+ """+ repository: Repository!+}++"""+The connection type for PullRequestCommit.+"""+type PullRequestCommitConnection {+ """+ A list of edges.+ """+ edges: [PullRequestCommitEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequestCommit]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PullRequestCommitEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestCommit+}++"""+The connection type for PullRequest.+"""+type PullRequestConnection {+ """+ A list of edges.+ """+ edges: [PullRequestEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequest]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+This aggregates pull requests opened by a user within one repository.+"""+type PullRequestContributionsByRepository @docsCategory(name: "pulls") {+ """+ The pull request contributions.+ """+ contributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for contributions returned from the connection.+ """+ orderBy: ContributionOrder = {direction: DESC}+ ): CreatedPullRequestContributionConnection!++ """+ The repository in which the pull requests were opened.+ """+ repository: Repository!+}++"""+Users who are exempt from the pull request creation cap on a repository.+"""+type PullRequestCreationCapConfig @docsCategory(name: "pulls") {+ """+ Users who are exempt from the pull request creation cap.+ """+ bypassedUsers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!+}++"""+The policy controlling who can create pull requests in a repository.+"""+enum PullRequestCreationPolicy @docsCategory(name: "pulls") {+ """+ Anyone can create pull requests.+ """+ ALL++ """+ Only collaborators can create pull requests.+ """+ COLLABORATORS_ONLY+}++"""+An edge in a connection.+"""+type PullRequestEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequest+}++"""+Represents available types of methods to use when merging a pull request.+"""+enum PullRequestMergeMethod @docsCategory(name: "pulls") {+ """+ Add all commits from the head branch to the base branch with a merge commit.+ """+ MERGE++ """+ Add all commits from the head branch onto the base branch individually.+ """+ REBASE++ """+ Combine all commits from the head branch into a single commit in the base branch.+ """+ SQUASH+}++"""+Ways in which lists of issues can be ordered upon return.+"""+input PullRequestOrder @docsCategory(name: "pulls") {+ """+ The direction in which to order pull requests by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order pull requests by.+ """+ field: PullRequestOrderField!+}++"""+Properties by which pull_requests connections can be ordered.+"""+enum PullRequestOrderField @docsCategory(name: "pulls") {+ """+ Order pull_requests by creation time+ """+ CREATED_AT++ """+ Order pull_requests by update time+ """+ UPDATED_AT+}++"""+Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.+"""+type PullRequestParameters @docsCategory(name: "pulls") {+ """+ Array of allowed merge methods. Allowed values include `merge`, `squash`, and+ `rebase`. At least one option must be enabled.+ """+ allowedMergeMethods: [PullRequestAllowedMergeMethods!]++ """+ New, reviewable commits pushed will dismiss previous pull request review approvals.+ """+ dismissStaleReviewsOnPush: Boolean!++ """+ Specify people, teams, or apps allowed to dismiss pull request reviews.+ """+ dismissalRestriction: DismissalRestriction++ """+ Require an approving review in pull requests that modify files that have a designated code owner.+ """+ requireCodeOwnerReview: Boolean!++ """+ Whether the most recent reviewable push must be approved by someone other than the person who pushed it.+ """+ requireLastPushApproval: Boolean!++ """+ The number of approving reviews that are required before a pull request can be merged.+ """+ requiredApprovingReviewCount: Int!++ """+ All conversations on code must be resolved before a pull request can be merged.+ """+ requiredReviewThreadResolution: Boolean!++ """+ This field is in beta and subject to change. A collection of reviewers and+ associated file patterns. Each reviewer has a list of file patterns which+ determine the files that reviewer is required to review.+ """+ requiredReviewers: [RequiredReviewerConfiguration!]+}++"""+Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.+"""+input PullRequestParametersInput @docsCategory(name: "pulls") {+ """+ Array of allowed merge methods. Allowed values include `merge`, `squash`, and+ `rebase`. At least one option must be enabled.+ """+ allowedMergeMethods: [PullRequestAllowedMergeMethods!]++ """+ New, reviewable commits pushed will dismiss previous pull request review approvals.+ """+ dismissStaleReviewsOnPush: Boolean!++ """+ Specify people, teams, or apps allowed to dismiss pull request reviews.+ """+ dismissalRestriction: DismissalRestrictionInput++ """+ Require an approving review in pull requests that modify files that have a designated code owner.+ """+ requireCodeOwnerReview: Boolean!++ """+ Whether the most recent reviewable push must be approved by someone other than the person who pushed it.+ """+ requireLastPushApproval: Boolean!++ """+ The number of approving reviews that are required before a pull request can be merged.+ """+ requiredApprovingReviewCount: Int!++ """+ All conversations on code must be resolved before a pull request can be merged.+ """+ requiredReviewThreadResolution: Boolean!++ """+ This argument is in beta and subject to change. A collection of reviewers and+ associated file patterns. Each reviewer has a list of file patterns which+ determine the files that reviewer is required to review.+ """+ requiredReviewers: [RequiredReviewerConfigurationInput!]+}++"""+A review object for a given pull request.+"""+type PullRequestReview implements Comment &+ Deletable &+ Minimizable &+ Node &+ Reactable &+ RepositoryNode &+ Updatable &+ UpdatableComment @docsCategory(name: "pulls") {+ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ Indicates whether the author of this review has push access to the repository.+ """+ authorCanPushToRepository: Boolean!++ """+ Identifies the pull request review body.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The body of this review rendered as plain text.+ """+ bodyText: String!++ """+ A list of review comments for the current pull request review.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PullRequestReviewCommentConnection!++ """+ Identifies the commit associated with this pull request review.+ """+ commit: Commit++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2024-07-01 UTC."+ )++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the PullRequestReview object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Returns whether or not a comment has been minimized.+ """+ isMinimized: Boolean!++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ Returns why the comment was minimized. One of `abuse`, `off-topic`,+ `outdated`, `resolved`, `duplicate`, `spam`, and `low-quality`. Note that the+ case and formatting of these values differs from the inputs to the+ `MinimizeComment` mutation.+ """+ minimizedReason: String++ """+ A list of teams that this review was made on behalf of.+ """+ onBehalfOf(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): TeamConnection!++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ Identifies the pull request associated with this pull request review.+ """+ pullRequest: PullRequest!++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The HTTP path permalink for this PullRequestReview.+ """+ resourcePath: URI!++ """+ Identifies the current state of the pull request review.+ """+ state: PullRequestReviewState!++ """+ Identifies when the Pull Request Review was submitted+ """+ submittedAt: DateTime++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL permalink for this PullRequestReview.+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Check if the current viewer can minimize this object.+ """+ viewerCanMinimize: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Check if the current viewer can unminimize this object.+ """+ viewerCanUnminimize: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!+}++"""+A review comment associated with a given repository pull request.+"""+type PullRequestReviewComment implements Comment &+ Deletable &+ Minimizable &+ Node &+ Reactable &+ RepositoryNode &+ Updatable &+ UpdatableComment @docsCategory(name: "pulls") {+ """+ The actor who authored the comment.+ """+ author: Actor++ """+ Author's association with the subject of the comment.+ """+ authorAssociation: CommentAuthorAssociation!++ """+ The comment body of this review comment.+ """+ body: String!++ """+ The body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ The comment body of this review comment rendered as plain text.+ """+ bodyText: String!++ """+ Identifies the commit associated with the comment.+ """+ commit: Commit++ """+ Identifies when the comment was created.+ """+ createdAt: DateTime!++ """+ Check if this comment was created via an email reply.+ """+ createdViaEmail: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "`databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2024-07-01 UTC."+ )++ """+ The diff hunk to which the comment applies.+ """+ diffHunk: String!++ """+ Identifies when the comment was created in a draft state.+ """+ draftedAt: DateTime!++ """+ The actor who edited the comment.+ """+ editor: Actor++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The Node ID of the PullRequestReviewComment object+ """+ id: ID!++ """+ Check if this comment was edited and includes an edit with the creation data+ """+ includesCreatedEdit: Boolean!++ """+ Returns whether or not a comment has been minimized.+ """+ isMinimized: Boolean!++ """+ The moment the editor made the last edit+ """+ lastEditedAt: DateTime++ """+ The end line number on the file to which the comment applies+ """+ line: Int++ """+ Returns why the comment was minimized. One of `abuse`, `off-topic`,+ `outdated`, `resolved`, `duplicate`, `spam`, and `low-quality`. Note that the+ case and formatting of these values differs from the inputs to the+ `MinimizeComment` mutation.+ """+ minimizedReason: String++ """+ Identifies the original commit associated with the comment.+ """+ originalCommit: Commit++ """+ The end line number on the file to which the comment applied when it was first created+ """+ originalLine: Int++ """+ The original line index in the diff to which the comment applies.+ """+ originalPosition: Int!+ @deprecated(reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC.")++ """+ The start line number on the file to which the comment applied when it was first created+ """+ originalStartLine: Int++ """+ Identifies when the comment body is outdated+ """+ outdated: Boolean!++ """+ The path to which the comment applies.+ """+ path: String!++ """+ The line index in the diff to which the comment applies.+ """+ position: Int+ @deprecated(+ reason: "We are phasing out diff-relative positioning for PR comments Use the `line` and `startLine` fields instead, which are file line numbers instead of diff line numbers Removal on 2023-10-01 UTC."+ )++ """+ Identifies when the comment was published at.+ """+ publishedAt: DateTime++ """+ The pull request associated with this review comment.+ """+ pullRequest: PullRequest!++ """+ The pull request review associated with this review comment.+ """+ pullRequestReview: PullRequestReview++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ The comment this is a reply to.+ """+ replyTo: PullRequestReviewComment++ """+ The repository associated with this node.+ """+ repository: Repository!++ """+ The HTTP path permalink for this review comment.+ """+ resourcePath: URI!++ """+ The start line number on the file to which the comment applies+ """+ startLine: Int++ """+ Identifies the state of the comment.+ """+ state: PullRequestReviewCommentState!++ """+ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file+ """+ subjectType: PullRequestReviewThreadSubjectType!++ """+ Identifies when the comment was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL permalink for this review comment.+ """+ url: URI!++ """+ A list of edits to this content.+ """+ userContentEdits(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserContentEditConnection++ """+ Check if the current viewer can delete this object.+ """+ viewerCanDelete: Boolean!++ """+ Check if the current viewer can minimize this object.+ """+ viewerCanMinimize: Boolean!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!++ """+ Check if the current viewer can unminimize this object.+ """+ viewerCanUnminimize: Boolean!++ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!++ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!++ """+ Did the viewer author this comment.+ """+ viewerDidAuthor: Boolean!+}++"""+The connection type for PullRequestReviewComment.+"""+type PullRequestReviewCommentConnection {+ """+ A list of edges.+ """+ edges: [PullRequestReviewCommentEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequestReviewComment]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PullRequestReviewCommentEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestReviewComment+}++"""+The possible states of a pull request review comment.+"""+enum PullRequestReviewCommentState @docsCategory(name: "pulls") {+ """+ A comment that is part of a pending review+ """+ PENDING++ """+ A comment that is part of a submitted review+ """+ SUBMITTED+}++"""+The connection type for PullRequestReview.+"""+type PullRequestReviewConnection {+ """+ A list of edges.+ """+ edges: [PullRequestReviewEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequestReview]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+This aggregates pull request reviews made by a user within one repository.+"""+type PullRequestReviewContributionsByRepository @docsCategory(name: "pulls") {+ """+ The pull request review contributions.+ """+ contributions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for contributions returned from the connection.+ """+ orderBy: ContributionOrder = {direction: DESC}+ ): CreatedPullRequestReviewContributionConnection!++ """+ The repository in which the pull request reviews were made.+ """+ repository: Repository!+}++"""+The review status of a pull request.+"""+enum PullRequestReviewDecision @docsCategory(name: "pulls") {+ """+ The pull request has received an approving review.+ """+ APPROVED++ """+ Changes have been requested on the pull request.+ """+ CHANGES_REQUESTED++ """+ A review is required before the pull request can be merged.+ """+ REVIEW_REQUIRED+}++"""+An edge in a connection.+"""+type PullRequestReviewEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestReview+}++"""+The possible events to perform on a pull request review.+"""+enum PullRequestReviewEvent @docsCategory(name: "pulls") {+ """+ Submit feedback and approve merging these changes.+ """+ APPROVE++ """+ Submit general feedback without explicit approval.+ """+ COMMENT++ """+ Dismiss review so it now longer effects merging.+ """+ DISMISS++ """+ Submit feedback that must be addressed before merging.+ """+ REQUEST_CHANGES+}++"""+The possible states of a pull request review.+"""+enum PullRequestReviewState @docsCategory(name: "pulls") {+ """+ A review allowing the pull request to merge.+ """+ APPROVED++ """+ A review blocking the pull request from merging.+ """+ CHANGES_REQUESTED++ """+ An informational review.+ """+ COMMENTED++ """+ A review that has been dismissed.+ """+ DISMISSED++ """+ A review that has not yet been submitted.+ """+ PENDING+}++"""+A threaded list of comments for a given pull request.+"""+type PullRequestReviewThread implements Node @docsCategory(name: "pulls") {+ """+ A list of pull request comments associated with the thread.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Skips the first _n_ elements in the list.+ """+ skip: Int+ ): PullRequestReviewCommentConnection!++ """+ The side of the diff on which this thread was placed.+ """+ diffSide: DiffSide!++ """+ The Node ID of the PullRequestReviewThread object+ """+ id: ID!++ """+ Whether or not the thread has been collapsed (resolved)+ """+ isCollapsed: Boolean!++ """+ Indicates whether this thread was outdated by newer changes.+ """+ isOutdated: Boolean!++ """+ Whether this thread has been resolved+ """+ isResolved: Boolean!++ """+ The line in the file to which this thread refers+ """+ line: Int++ """+ The original line in the file to which this thread refers.+ """+ originalLine: Int++ """+ The original start line in the file to which this thread refers (multi-line only).+ """+ originalStartLine: Int++ """+ Identifies the file path of this thread.+ """+ path: String!++ """+ Identifies the pull request associated with this thread.+ """+ pullRequest: PullRequest!++ """+ Identifies the repository associated with this thread.+ """+ repository: Repository!++ """+ The user who resolved this thread+ """+ resolvedBy: User++ """+ The side of the diff that the first line of the thread starts on (multi-line only)+ """+ startDiffSide: DiffSide++ """+ The start line in the file to which this thread refers (multi-line only)+ """+ startLine: Int++ """+ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file+ """+ subjectType: PullRequestReviewThreadSubjectType!++ """+ Indicates whether the current viewer can reply to this thread.+ """+ viewerCanReply: Boolean!++ """+ Whether or not the viewer can resolve this thread+ """+ viewerCanResolve: Boolean!++ """+ Whether or not the viewer can unresolve this thread+ """+ viewerCanUnresolve: Boolean!+}++"""+Review comment threads for a pull request review.+"""+type PullRequestReviewThreadConnection {+ """+ A list of edges.+ """+ edges: [PullRequestReviewThreadEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequestReviewThread]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PullRequestReviewThreadEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestReviewThread+}++"""+The possible reasons a pull request review thread was resolved.+"""+enum PullRequestReviewThreadResolutionReason @docsCategory(name: "pulls") {+ """+ The review comment was addressed.+ """+ ADDRESSED++ """+ The review comment is invalid.+ """+ INVALID++ """+ The review comment will not be addressed.+ """+ WONT_FIX+}++"""+The possible subject types of a pull request review comment.+"""+enum PullRequestReviewThreadSubjectType @docsCategory(name: "pulls") {+ """+ A comment that has been made against the file of a pull request+ """+ FILE++ """+ A comment that has been made against the line of a pull request+ """+ LINE+}++"""+Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits.+"""+type PullRequestRevisionMarker @docsCategory(name: "pulls") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The last commit the viewer has seen.+ """+ lastSeenCommit: Commit!++ """+ The pull request to which the marker belongs.+ """+ pullRequest: PullRequest!+}++"""+A stack of PullRequests+"""+type PullRequestStack implements Node @docsCategory(name: "pulls") {+ """+ The branch that the stack's pull requests target+ """+ baseRefName: String!++ """+ The entries in the stack+ """+ entries(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PullRequestStackEntryConnection!++ """+ The Node ID of the PullRequestStack object+ """+ id: ID!++ """+ A number uniquely identifying the stack within its repository+ """+ number: Int!++ """+ The total number of pull requests in the stack+ """+ size: Int!+}++"""+A member of a PullRequestStack+"""+type PullRequestStackEntry implements Node @docsCategory(name: "pulls") {+ """+ The Node ID of the PullRequestStackEntry object+ """+ id: ID!++ """+ This entry's position in the stack, where 1 is the closest to the base branch, 2 is stacked on top of 1, etc.+ """+ position: Int!++ """+ The pull request that occupies this position in the stack+ """+ pullRequest: PullRequest++ """+ The stack that this entry is a part of+ """+ stack: PullRequestStack+}++"""+Entries in a pull request stack+"""+type PullRequestStackEntryConnection {+ """+ A list of edges.+ """+ edges: [PullRequestStackEntryEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequestStackEntry]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PullRequestStackEntryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestStackEntry+}++"""+The possible states of a pull request.+"""+enum PullRequestState @docsCategory(name: "pulls") {+ """+ A pull request that has been closed without being merged.+ """+ CLOSED++ """+ A pull request that has been closed by being merged.+ """+ MERGED++ """+ A pull request that is still open.+ """+ OPEN+}++"""+A repository pull request template.+"""+type PullRequestTemplate @docsCategory(name: "pulls") {+ """+ The body of the template+ """+ body: String++ """+ The filename of the template+ """+ filename: String++ """+ The repository the template belongs to+ """+ repository: Repository!+}++"""+A threaded list of comments for a given pull request.+"""+type PullRequestThread implements Node @docsCategory(name: "pulls") {+ """+ A list of pull request comments associated with the thread.+ """+ comments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Skips the first _n_ elements in the list.+ """+ skip: Int+ ): PullRequestReviewCommentConnection!++ """+ The side of the diff on which this thread was placed.+ """+ diffSide: DiffSide!++ """+ The Node ID of the PullRequestThread object+ """+ id: ID!++ """+ Whether or not the thread has been collapsed (resolved)+ """+ isCollapsed: Boolean!++ """+ Indicates whether this thread was outdated by newer changes.+ """+ isOutdated: Boolean!++ """+ Whether this thread has been resolved+ """+ isResolved: Boolean!++ """+ The line in the file to which this thread refers+ """+ line: Int++ """+ Identifies the file path of this thread.+ """+ path: String!++ """+ Identifies the pull request associated with this thread.+ """+ pullRequest: PullRequest!++ """+ Identifies the repository associated with this thread.+ """+ repository: Repository!++ """+ The user who resolved this thread+ """+ resolvedBy: User++ """+ The side of the diff that the first line of the thread starts on (multi-line only)+ """+ startDiffSide: DiffSide++ """+ The line of the first file diff in the thread.+ """+ startLine: Int++ """+ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file+ """+ subjectType: PullRequestReviewThreadSubjectType!++ """+ Indicates whether the current viewer can reply to this thread.+ """+ viewerCanReply: Boolean!++ """+ Whether or not the viewer can resolve this thread+ """+ viewerCanResolve: Boolean!++ """+ Whether or not the viewer can unresolve this thread+ """+ viewerCanUnresolve: Boolean!+}++"""+The connection type for PullRequestTimelineItem.+"""+type PullRequestTimelineConnection {+ """+ A list of edges.+ """+ edges: [PullRequestTimelineItemEdge]++ """+ A list of nodes.+ """+ nodes: [PullRequestTimelineItem]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An item in a pull request timeline+"""+union PullRequestTimelineItem @docsCategory(name: "pulls") =+ | AssignedEvent+ | BaseRefDeletedEvent+ | BaseRefForcePushedEvent+ | ClosedEvent+ | Commit+ | CommitCommentThread+ | CrossReferencedEvent+ | DemilestonedEvent+ | DeployedEvent+ | DeploymentEnvironmentChangedEvent+ | HeadRefDeletedEvent+ | HeadRefForcePushedEvent+ | HeadRefRestoredEvent+ | IssueComment+ | LabeledEvent+ | LockedEvent+ | MergedEvent+ | MilestonedEvent+ | PullRequestReview+ | PullRequestReviewComment+ | PullRequestReviewThread+ | ReferencedEvent+ | RenamedTitleEvent+ | ReopenedEvent+ | ReviewDismissedEvent+ | ReviewRequestRemovedEvent+ | ReviewRequestedEvent+ | SubscribedEvent+ | UnassignedEvent+ | UnlabeledEvent+ | UnlockedEvent+ | UnsubscribedEvent+ | UserBlockedEvent++"""+An edge in a connection.+"""+type PullRequestTimelineItemEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestTimelineItem+}++"""+An item in a pull request timeline+"""+union PullRequestTimelineItems @docsCategory(name: "pulls") =+ | AddedToMergeQueueEvent+ | AddedToProjectEvent+ | AddedToProjectV2Event+ | AddedToStackEvent+ | AssignedEvent+ | AutoMergeDisabledEvent+ | AutoMergeEnabledEvent+ | AutoRebaseEnabledEvent+ | AutoSquashEnabledEvent+ | AutomaticBaseChangeFailedEvent+ | AutomaticBaseChangeSucceededEvent+ | BaseRefChangedEvent+ | BaseRefDeletedEvent+ | BaseRefForcePushedEvent+ | BlockedByAddedEvent+ | BlockedByRemovedEvent+ | BlockingAddedEvent+ | BlockingRemovedEvent+ | ClosedEvent+ | CommentDeletedEvent+ | ConnectedEvent+ | ConvertToDraftEvent+ | ConvertedFromDraftEvent+ | ConvertedNoteToIssueEvent+ | ConvertedToDiscussionEvent+ | CrossReferencedEvent+ | DemilestonedEvent+ | DeployedEvent+ | DeploymentEnvironmentChangedEvent+ | DisconnectedEvent+ | HeadRefDeletedEvent+ | HeadRefForcePushedEvent+ | HeadRefRestoredEvent+ | IssueComment+ | IssueCommentPinnedEvent+ | IssueCommentUnpinnedEvent+ | IssueFieldAddedEvent+ | IssueFieldChangedEvent+ | IssueFieldRemovedEvent+ | IssueTypeAddedEvent+ | IssueTypeChangedEvent+ | IssueTypeRemovedEvent+ | LabeledEvent+ | LockedEvent+ | MarkedAsDuplicateEvent+ | MentionedEvent+ | MergedEvent+ | MilestonedEvent+ | MovedColumnsInProjectEvent+ | ParentIssueAddedEvent+ | ParentIssueRemovedEvent+ | PinnedEvent+ | ProjectV2ItemStatusChangedEvent+ | PullRequestCommit+ | PullRequestCommitCommentThread+ | PullRequestReview+ | PullRequestReviewThread+ | PullRequestRevisionMarker+ | ReadyForReviewEvent+ | ReferencedEvent+ | RemovedFromMergeQueueEvent+ | RemovedFromProjectEvent+ | RemovedFromProjectV2Event+ | RemovedFromStackEvent+ | RenamedTitleEvent+ | ReopenedEvent+ | ReviewDismissedEvent+ | ReviewRequestRemovedEvent+ | ReviewRequestedEvent+ | SubIssueAddedEvent+ | SubIssueRemovedEvent+ | SubscribedEvent+ | TransferredEvent+ | UnassignedEvent+ | UnlabeledEvent+ | UnlockedEvent+ | UnmarkedAsDuplicateEvent+ | UnpinnedEvent+ | UnsubscribedEvent+ | UserBlockedEvent++"""+The connection type for PullRequestTimelineItems.+"""+type PullRequestTimelineItemsConnection {+ """+ A list of edges.+ """+ edges: [PullRequestTimelineItemsEdge]++ """+ Identifies the count of items after applying `before` and `after` filters.+ """+ filteredCount: Int!++ """+ A list of nodes.+ """+ nodes: [PullRequestTimelineItems]++ """+ Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing.+ """+ pageCount: Int!++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ Identifies the date and time when the timeline was last updated.+ """+ updatedAt: DateTime!+}++"""+An edge in a connection.+"""+type PullRequestTimelineItemsEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PullRequestTimelineItems+}++"""+The possible item types found in a timeline.+"""+enum PullRequestTimelineItemsItemType {+ """+ Represents an 'added_to_merge_queue' event on a given pull request.+ """+ ADDED_TO_MERGE_QUEUE_EVENT++ """+ Represents a 'added_to_project' event on a given issue or pull request.+ """+ ADDED_TO_PROJECT_EVENT++ """+ Represents a 'added_to_project_v2' event on a given issue or pull request.+ """+ ADDED_TO_PROJECT_V2_EVENT++ """+ Represents an 'added_to_stack' event on a given pull request.+ """+ ADDED_TO_STACK_EVENT++ """+ Represents an 'archived' event on a given pull request.+ """+ ARCHIVED_EVENT++ """+ Represents an 'assigned' event on any assignable object.+ """+ ASSIGNED_EVENT++ """+ Represents a 'automatic_base_change_failed' event on a given pull request.+ """+ AUTOMATIC_BASE_CHANGE_FAILED_EVENT++ """+ Represents a 'automatic_base_change_succeeded' event on a given pull request.+ """+ AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT++ """+ Represents a 'auto_merge_disabled' event on a given pull request.+ """+ AUTO_MERGE_DISABLED_EVENT++ """+ Represents a 'auto_merge_enabled' event on a given pull request.+ """+ AUTO_MERGE_ENABLED_EVENT++ """+ Represents a 'auto_rebase_enabled' event on a given pull request.+ """+ AUTO_REBASE_ENABLED_EVENT++ """+ Represents a 'auto_squash_enabled' event on a given pull request.+ """+ AUTO_SQUASH_ENABLED_EVENT++ """+ Represents a 'base_ref_changed' event on a given issue or pull request.+ """+ BASE_REF_CHANGED_EVENT++ """+ Represents a 'base_ref_deleted' event on a given pull request.+ """+ BASE_REF_DELETED_EVENT++ """+ Represents a 'base_ref_force_pushed' event on a given pull request.+ """+ BASE_REF_FORCE_PUSHED_EVENT++ """+ Represents a 'blocked_by_added' event on a given issue.+ """+ BLOCKED_BY_ADDED_EVENT++ """+ Represents a 'blocked_by_removed' event on a given issue.+ """+ BLOCKED_BY_REMOVED_EVENT++ """+ Represents a 'blocking_added' event on a given issue.+ """+ BLOCKING_ADDED_EVENT++ """+ Represents a 'blocking_removed' event on a given issue.+ """+ BLOCKING_REMOVED_EVENT++ """+ Represents a 'closed' event on any `Closable`.+ """+ CLOSED_EVENT++ """+ Represents a 'comment_deleted' event on a given issue or pull request.+ """+ COMMENT_DELETED_EVENT++ """+ Represents a 'connected' event on a given issue or pull request.+ """+ CONNECTED_EVENT++ """+ Represents a 'converted_from_draft' event on a given issue or pull request.+ """+ CONVERTED_FROM_DRAFT_EVENT++ """+ Represents a 'converted_note_to_issue' event on a given issue or pull request.+ """+ CONVERTED_NOTE_TO_ISSUE_EVENT++ """+ Represents a 'converted_to_discussion' event on a given issue.+ """+ CONVERTED_TO_DISCUSSION_EVENT++ """+ Represents a 'convert_to_draft' event on a given pull request.+ """+ CONVERT_TO_DRAFT_EVENT++ """+ Represents a mention made by one issue or pull request to another.+ """+ CROSS_REFERENCED_EVENT++ """+ Represents a 'demilestoned' event on a given issue or pull request.+ """+ DEMILESTONED_EVENT++ """+ Represents a 'deployed' event on a given pull request.+ """+ DEPLOYED_EVENT++ """+ Represents a 'deployment_environment_changed' event on a given pull request.+ """+ DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT++ """+ Represents a 'disconnected' event on a given issue or pull request.+ """+ DISCONNECTED_EVENT++ """+ Represents a 'head_ref_deleted' event on a given pull request.+ """+ HEAD_REF_DELETED_EVENT++ """+ Represents a 'head_ref_force_pushed' event on a given pull request.+ """+ HEAD_REF_FORCE_PUSHED_EVENT++ """+ Represents a 'head_ref_restored' event on a given pull request.+ """+ HEAD_REF_RESTORED_EVENT++ """+ Represents a comment on an Issue.+ """+ ISSUE_COMMENT++ """+ Represents a 'issue_comment_pinned' event on a given issue.+ """+ ISSUE_COMMENT_PINNED_EVENT++ """+ Represents a 'issue_comment_unpinned' event on a given issue.+ """+ ISSUE_COMMENT_UNPINNED_EVENT++ """+ Represents a 'issue_field_added' event on a given issue.+ """+ ISSUE_FIELD_ADDED_EVENT++ """+ Represents a 'issue_field_changed' event on a given issue.+ """+ ISSUE_FIELD_CHANGED_EVENT++ """+ Represents a 'issue_field_removed' event on a given issue.+ """+ ISSUE_FIELD_REMOVED_EVENT++ """+ Represents a 'issue_type_added' event on a given issue.+ """+ ISSUE_TYPE_ADDED_EVENT++ """+ Represents a 'issue_type_changed' event on a given issue.+ """+ ISSUE_TYPE_CHANGED_EVENT++ """+ Represents a 'issue_type_removed' event on a given issue.+ """+ ISSUE_TYPE_REMOVED_EVENT++ """+ Represents a 'labeled' event on a given issue or pull request.+ """+ LABELED_EVENT++ """+ Represents a 'locked' event on a given issue or pull request.+ """+ LOCKED_EVENT++ """+ Represents a 'marked_as_duplicate' event on a given issue or pull request.+ """+ MARKED_AS_DUPLICATE_EVENT++ """+ Represents a 'mentioned' event on a given issue or pull request.+ """+ MENTIONED_EVENT++ """+ Represents a 'merged' event on a given pull request.+ """+ MERGED_EVENT++ """+ Represents a 'milestoned' event on a given issue or pull request.+ """+ MILESTONED_EVENT++ """+ Represents a 'moved_columns_in_project' event on a given issue or pull request.+ """+ MOVED_COLUMNS_IN_PROJECT_EVENT++ """+ Represents a 'parent_issue_added' event on a given issue.+ """+ PARENT_ISSUE_ADDED_EVENT++ """+ Represents a 'parent_issue_removed' event on a given issue.+ """+ PARENT_ISSUE_REMOVED_EVENT++ """+ Represents a 'pinned' event on a given issue or pull request.+ """+ PINNED_EVENT++ """+ Represents a 'project_v2_item_status_changed' event on a given issue or pull request.+ """+ PROJECT_V2_ITEM_STATUS_CHANGED_EVENT++ """+ Represents a Git commit part of a pull request.+ """+ PULL_REQUEST_COMMIT++ """+ Represents a commit comment thread part of a pull request.+ """+ PULL_REQUEST_COMMIT_COMMENT_THREAD++ """+ A review object for a given pull request.+ """+ PULL_REQUEST_REVIEW++ """+ A threaded list of comments for a given pull request.+ """+ PULL_REQUEST_REVIEW_THREAD++ """+ Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits.+ """+ PULL_REQUEST_REVISION_MARKER++ """+ Represents a 'ready_for_review' event on a given pull request.+ """+ READY_FOR_REVIEW_EVENT++ """+ Represents a 'referenced' event on a given `ReferencedSubject`.+ """+ REFERENCED_EVENT++ """+ Represents a 'removed_from_merge_queue' event on a given pull request.+ """+ REMOVED_FROM_MERGE_QUEUE_EVENT++ """+ Represents a 'removed_from_project' event on a given issue or pull request.+ """+ REMOVED_FROM_PROJECT_EVENT++ """+ Represents a 'removed_from_project_v2' event on a given issue or pull request.+ """+ REMOVED_FROM_PROJECT_V2_EVENT++ """+ Represents a 'removed_from_stack' event on a given pull request.+ """+ REMOVED_FROM_STACK_EVENT++ """+ Represents a 'renamed' event on a given issue or pull request+ """+ RENAMED_TITLE_EVENT++ """+ Represents a 'reopened' event on any `Closable`.+ """+ REOPENED_EVENT++ """+ Represents a 'review_dismissed' event on a given issue or pull request.+ """+ REVIEW_DISMISSED_EVENT++ """+ Represents an 'review_requested' event on a given pull request.+ """+ REVIEW_REQUESTED_EVENT++ """+ Represents an 'review_request_removed' event on a given pull request.+ """+ REVIEW_REQUEST_REMOVED_EVENT++ """+ Represents a 'subscribed' event on a given `Subscribable`.+ """+ SUBSCRIBED_EVENT++ """+ Represents a 'sub_issue_added' event on a given issue.+ """+ SUB_ISSUE_ADDED_EVENT++ """+ Represents a 'sub_issue_removed' event on a given issue.+ """+ SUB_ISSUE_REMOVED_EVENT++ """+ Represents a 'transferred' event on a given issue or pull request.+ """+ TRANSFERRED_EVENT++ """+ Represents an 'unarchived' event on a given pull request.+ """+ UNARCHIVED_EVENT++ """+ Represents an 'unassigned' event on any assignable object.+ """+ UNASSIGNED_EVENT++ """+ Represents an 'unlabeled' event on a given issue or pull request.+ """+ UNLABELED_EVENT++ """+ Represents an 'unlocked' event on a given issue or pull request.+ """+ UNLOCKED_EVENT++ """+ Represents an 'unmarked_as_duplicate' event on a given issue or pull request.+ """+ UNMARKED_AS_DUPLICATE_EVENT++ """+ Represents an 'unpinned' event on a given issue or pull request.+ """+ UNPINNED_EVENT++ """+ Represents an 'unsubscribed' event on a given `Subscribable`.+ """+ UNSUBSCRIBED_EVENT++ """+ Represents a 'user_blocked' event on a given user.+ """+ USER_BLOCKED_EVENT+}++"""+The possible target states when updating a pull request.+"""+enum PullRequestUpdateState @docsCategory(name: "pulls") {+ """+ A pull request that has been closed without being merged.+ """+ CLOSED++ """+ A pull request that is still open.+ """+ OPEN+}++"""+A Git push.+"""+type Push implements Node @docsCategory(name: "git") {+ """+ The Node ID of the Push object+ """+ id: ID!++ """+ The SHA after the push+ """+ nextSha: GitObjectID++ """+ The permalink for this push.+ """+ permalink: URI!++ """+ The SHA before the push+ """+ previousSha: GitObjectID++ """+ The actor who pushed+ """+ pusher: Actor!++ """+ The repository that was pushed to+ """+ repository: Repository!+}++"""+A team, user, or app who has the ability to push to a protected branch.+"""+type PushAllowance implements Node @docsCategory(name: "branches") {+ """+ The actor that can push.+ """+ actor: PushAllowanceActor++ """+ Identifies the branch protection rule associated with the allowed user, team, or app.+ """+ branchProtectionRule: BranchProtectionRule++ """+ The Node ID of the PushAllowance object+ """+ id: ID!+}++"""+Types that can be an actor.+"""+union PushAllowanceActor @docsCategory(name: "branches") = App | Team | User++"""+The connection type for PushAllowance.+"""+type PushAllowanceConnection {+ """+ A list of edges.+ """+ edges: [PushAllowanceEdge]++ """+ A list of nodes.+ """+ nodes: [PushAllowance]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type PushAllowanceEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: PushAllowance+}++"""+The query root of GitHub's GraphQL interface.+"""+type Query implements Node @docsCategory(name: "meta") {+ """+ Look up a code of conduct by its key+ """+ codeOfConduct(+ """+ The code of conduct's key+ """+ key: String!+ ): CodeOfConduct++ """+ Look up a code of conduct by its key+ """+ codesOfConduct: [CodeOfConduct]++ """+ Look up an enterprise by URL slug.+ """+ enterprise(+ """+ The enterprise invitation token.+ """+ invitationToken: String++ """+ The enterprise URL slug.+ """+ slug: String!+ ): Enterprise++ """+ Look up a pending enterprise administrator invitation by invitee, enterprise and role.+ """+ enterpriseAdministratorInvitation(+ """+ The slug of the enterprise the user was invited to join.+ """+ enterpriseSlug: String!++ """+ The role for the enterprise member invitation.+ """+ role: EnterpriseAdministratorRole!++ """+ The login of the user invited to join the enterprise.+ """+ userLogin: String!+ ): EnterpriseAdministratorInvitation++ """+ Look up a pending enterprise administrator invitation by invitation token. If+ the invitation was sent to an email address, the viewer must have verified+ that email address, or otherwise be an administrator of the enterprise.+ """+ enterpriseAdministratorInvitationByToken(+ """+ The invitation token sent with the invitation email.+ """+ invitationToken: String!+ ): EnterpriseAdministratorInvitation++ """+ Look up a pending enterprise unaffiliated member invitation by invitee and enterprise.+ """+ enterpriseMemberInvitation(+ """+ The slug of the enterprise the user was invited to join.+ """+ enterpriseSlug: String!++ """+ The login of the user invited to join the enterprise.+ """+ userLogin: String!+ ): EnterpriseMemberInvitation++ """+ Look up a pending enterprise unaffiliated member invitation by invitation+ token. If the invitation was sent to an email address, the viewer must have+ verified that email address, or otherwise be an administrator of the enterprise.+ """+ enterpriseMemberInvitationByToken(+ """+ The invitation token sent with the invitation email.+ """+ invitationToken: String!+ ): EnterpriseMemberInvitation++ """+ ID of the object.+ """+ id: ID!++ """+ Look up an open source license by its key+ """+ license(+ """+ The license's downcased SPDX ID+ """+ key: String!+ ): License++ """+ Return a list of known open source licenses+ """+ licenses: [License]!++ """+ Get alphabetically sorted list of Marketplace categories+ """+ marketplaceCategories(+ """+ Exclude categories with no listings.+ """+ excludeEmpty: Boolean++ """+ Returns top level categories only, excluding any subcategories.+ """+ excludeSubcategories: Boolean++ """+ Return only the specified categories.+ """+ includeCategories: [String!]+ ): [MarketplaceCategory!]!++ """+ Look up a Marketplace category by its slug.+ """+ marketplaceCategory(+ """+ The URL slug of the category.+ """+ slug: String!++ """+ Also check topic aliases for the category slug+ """+ useTopicAliases: Boolean+ ): MarketplaceCategory++ """+ Look up a single Marketplace listing+ """+ marketplaceListing(+ """+ Select the listing that matches this slug. It's the short name of the listing used in its URL.+ """+ slug: String!+ ): MarketplaceListing++ """+ Look up Marketplace listings+ """+ marketplaceListings(+ """+ Select listings that can be administered by the specified user.+ """+ adminId: ID++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Select listings visible to the viewer even if they are not approved. If omitted or+ false, only approved listings will be returned.+ """+ allStates: Boolean++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Select only listings with the given category.+ """+ categorySlug: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Select listings for products owned by the specified organization.+ """+ organizationId: ID++ """+ Select only listings where the primary category matches the given category slug.+ """+ primaryCategoryOnly: Boolean = false++ """+ Select the listings with these slugs, if they are visible to the viewer.+ """+ slugs: [String]++ """+ Also check topic aliases for the category slug+ """+ useTopicAliases: Boolean++ """+ Select listings to which user has admin access. If omitted, listings visible to the+ viewer are returned.+ """+ viewerCanAdmin: Boolean++ """+ Select only listings that offer a free trial.+ """+ withFreeTrialsOnly: Boolean = false+ ): MarketplaceListingConnection!++ """+ Return information about the GitHub instance+ """+ meta: GitHubMetadata!++ """+ Fetches an object given its ID.+ """+ node(+ """+ ID of the object.+ """+ id: ID!+ ): Node++ """+ Lookup nodes by a list of IDs.+ """+ nodes(+ """+ The list of node IDs.+ """+ ids: [ID!]!+ ): [Node]!++ """+ Lookup a organization by login.+ """+ organization(+ """+ The organization's login.+ """+ login: String!+ ): Organization++ """+ The client's rate limit information.+ """+ rateLimit(+ """+ If true, calculate the cost for the query without evaluating it+ """+ dryRun: Boolean = false+ ): RateLimit++ """+ Workaround for re-exposing the root query object. (Refer to+ https://github.com/facebook/relay/issues/112 for more information.)+ """+ relay: Query!++ """+ Lookup a given repository by the owner and repository name.+ """+ repository(+ """+ Follow repository renames. If disabled, a repository referenced by its old name will return an error.+ """+ followRenames: Boolean = true++ """+ The name of the repository+ """+ name: String!++ """+ The login field of a user or organization+ """+ owner: String!+ ): Repository++ """+ Lookup a repository owner (ie. either a User or an Organization) by login.+ """+ repositoryOwner(+ """+ The username to lookup the owner by.+ """+ login: String!+ ): RepositoryOwner++ """+ Lookup resource by a URL.+ """+ resource(+ """+ The URL.+ """+ url: URI!+ ): UniformResourceLocatable++ """+ Perform a search across resources, returning a maximum of 1,000 results.+ """+ search(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ The search string to look for. GitHub search syntax is supported. For more+ information, see "[Searching on+ GitHub](https://docs.github.com/search-github/searching-on-github),"+ "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax),"+ and "[Sorting search results](https://docs.github.com/search-github/getting-started-with-searching-on-github/sorting-search-results)."+ """+ query: String!++ """+ The types of search items to search within.+ """+ type: SearchType!+ ): SearchResultItemConnection!++ """+ GitHub Security Advisories+ """+ securityAdvisories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ A list of classifications to filter advisories by.+ """+ classifications: [SecurityAdvisoryClassification!]++ """+ The EPSS percentage to filter advisories by.+ """+ epssPercentage: Float++ """+ The EPSS percentile to filter advisories by.+ """+ epssPercentile: Float++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Filter advisories by identifier, e.g. GHSA or CVE.+ """+ identifier: SecurityAdvisoryIdentifierFilter++ """+ Filter advisories by withdrawn status. True returns only withdrawn advisories. False excludes withdrawn advisories.+ """+ isWithdrawn: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the returned topics.+ """+ orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC}++ """+ Filter advisories to those published since a time in the past.+ """+ publishedSince: DateTime++ """+ A list of advisory severities to filter advisories by.+ """+ severities: [SecurityAdvisorySeverity!]++ """+ Filter advisories to those updated since a time in the past.+ """+ updatedSince: DateTime+ ): SecurityAdvisoryConnection!++ """+ Fetch a Security Advisory by its GHSA ID+ """+ securityAdvisory(+ """+ GitHub Security Advisory ID.+ """+ ghsaId: String!+ ): SecurityAdvisory++ """+ Software Vulnerabilities documented by GitHub Security Advisories+ """+ securityVulnerabilities(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ A list of advisory classifications to filter vulnerabilities by.+ """+ classifications: [SecurityAdvisoryClassification!]++ """+ An ecosystem to filter vulnerabilities by.+ """+ ecosystem: SecurityAdvisoryEcosystem++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the returned topics.+ """+ orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}++ """+ A package name to filter vulnerabilities by.+ """+ package: String++ """+ A list of severities to filter vulnerabilities by.+ """+ severities: [SecurityAdvisorySeverity!]+ ): SecurityVulnerabilityConnection!++ """+ Users and organizations who can be sponsored via GitHub Sponsors.+ """+ sponsorables(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Optional filter for which dependencies should be checked for sponsorable+ owners. Only sponsorable owners of dependencies in this ecosystem will be+ included. Used when onlyDependencies = true.++ **Upcoming Change on 2022-07-01 UTC**+ **Description:** `dependencyEcosystem` will be removed. Use the ecosystem argument instead.+ **Reason:** The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem.+ """+ dependencyEcosystem: SecurityAdvisoryEcosystem++ """+ Optional filter for which dependencies should be checked for sponsorable+ owners. Only sponsorable owners of dependencies in this ecosystem will be+ included. Used when onlyDependencies = true.+ """+ ecosystem: DependencyGraphEcosystem++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Whether only sponsorables who own the viewer's dependencies will be+ returned. Must be authenticated to use. Can check an organization instead+ for their dependencies owned by sponsorables by passing+ orgLoginForDependencies.+ """+ onlyDependencies: Boolean = false++ """+ Ordering options for users and organizations returned from the connection.+ """+ orderBy: SponsorableOrder = {field: LOGIN, direction: ASC}++ """+ Optional organization username for whose dependencies should be checked.+ Used when onlyDependencies = true. Omit to check your own dependencies. If+ you are not an administrator of the organization, only dependencies from its+ public repositories will be considered.+ """+ orgLoginForDependencies: String+ ): SponsorableItemConnection!++ """+ Look up a topic by name.+ """+ topic(+ """+ The topic's name.+ """+ name: String!+ ): Topic++ """+ Lookup a user by login.+ """+ user(+ """+ The user's login.+ """+ login: String!+ ): User++ """+ The currently authenticated user.+ """+ viewer: User!+}++"""+Represents the client's rate limit.+"""+type RateLimit @docsCategory(name: "meta") {+ """+ The point cost for the current query counting against the rate limit.+ """+ cost: Int!++ """+ The maximum number of points the client is permitted to consume in a 60 minute window.+ """+ limit: Int!++ """+ The maximum number of nodes this query may return+ """+ nodeCount: Int!++ """+ The number of points remaining in the current rate limit window.+ """+ remaining: Int!++ """+ The time at which the current rate limit window resets in UTC epoch seconds.+ """+ resetAt: DateTime!++ """+ The number of points used in the current rate limit window.+ """+ used: Int!+}++"""+Represents a subject that can be reacted on.+"""+interface Reactable @docsCategory(name: "reactions") {+ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the Reactable object+ """+ id: ID!++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!+}++"""+The connection type for User.+"""+type ReactingUserConnection {+ """+ A list of edges.+ """+ edges: [ReactingUserEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a user that's made a reaction.+"""+type ReactingUserEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!+ node: User!++ """+ The moment when the user made the reaction.+ """+ reactedAt: DateTime!+}++"""+An emoji reaction to a particular piece of content.+"""+type Reaction implements Node @docsCategory(name: "reactions") {+ """+ Identifies the emoji reaction.+ """+ content: ReactionContent!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the Reaction object+ """+ id: ID!++ """+ The reactable piece of content+ """+ reactable: Reactable!++ """+ Identifies the user who created this reaction.+ """+ user: User+}++"""+A list of reactions that have been left on the subject.+"""+type ReactionConnection {+ """+ A list of edges.+ """+ edges: [ReactionEdge]++ """+ A list of nodes.+ """+ nodes: [Reaction]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ Whether or not the authenticated user has left a reaction on the subject.+ """+ viewerHasReacted: Boolean!+}++"""+Emojis that can be attached to Issues, Pull Requests and Comments.+"""+enum ReactionContent @docsCategory(name: "reactions") {+ """+ Represents the `:confused:` emoji.+ """+ CONFUSED++ """+ Represents the `:eyes:` emoji.+ """+ EYES++ """+ Represents the `:heart:` emoji.+ """+ HEART++ """+ Represents the `:hooray:` emoji.+ """+ HOORAY++ """+ Represents the `:laugh:` emoji.+ """+ LAUGH++ """+ Represents the `:rocket:` emoji.+ """+ ROCKET++ """+ Represents the `:-1:` emoji.+ """+ THUMBS_DOWN++ """+ Represents the `:+1:` emoji.+ """+ THUMBS_UP+}++"""+An edge in a connection.+"""+type ReactionEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Reaction+}++"""+A group of emoji reactions to a particular piece of content.+"""+type ReactionGroup @docsCategory(name: "reactions") {+ """+ Identifies the emoji reaction.+ """+ content: ReactionContent!++ """+ Identifies when the reaction was created.+ """+ createdAt: DateTime++ """+ Reactors to the reaction subject with the emotion represented by this reaction group.+ """+ reactors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ReactorConnection!++ """+ The subject that was reacted to.+ """+ subject: Reactable!++ """+ Users who have reacted to the reaction subject with the emotion represented by this reaction group+ """+ users(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ReactingUserConnection!+ @deprecated(+ reason: "Reactors can now be mannequins, bots, and organizations. Use the `reactors` field instead. Removal on 2021-10-01 UTC."+ )++ """+ Whether or not the authenticated user has left a reaction on the subject.+ """+ viewerHasReacted: Boolean!+}++"""+Ways in which lists of reactions can be ordered upon return.+"""+input ReactionOrder @docsCategory(name: "reactions") {+ """+ The direction in which to order reactions by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order reactions by.+ """+ field: ReactionOrderField!+}++"""+A list of fields that reactions can be ordered by.+"""+enum ReactionOrderField @docsCategory(name: "reactions") {+ """+ Allows ordering a list of reactions by when they were created.+ """+ CREATED_AT+}++"""+Types that can be assigned to reactions.+"""+union Reactor @docsCategory(name: "reactions") = Bot | Mannequin | Organization | User++"""+The connection type for Reactor.+"""+type ReactorConnection {+ """+ A list of edges.+ """+ edges: [ReactorEdge]++ """+ A list of nodes.+ """+ nodes: [Reactor]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents an author of a reaction.+"""+type ReactorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The author of the reaction.+ """+ node: Reactor!++ """+ The moment when the user made the reaction.+ """+ reactedAt: DateTime!+}++"""+Represents a 'ready_for_review' event on a given pull request.+"""+type ReadyForReviewEvent implements Node & UniformResourceLocatable @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ReadyForReviewEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ The HTTP path for this ready for review event.+ """+ resourcePath: URI!++ """+ The HTTP URL for this ready for review event.+ """+ url: URI!+}++"""+Represents a Git reference.+"""+type Ref implements Node @docsCategory(name: "git") {+ """+ A list of pull requests with this ref as the head ref.+ """+ associatedPullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ The base ref name to filter the pull requests by.+ """+ baseRefName: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ The head ref name to filter the pull requests by.+ """+ headRefName: String++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the pull requests by.+ """+ states: [PullRequestState!]+ ): PullRequestConnection!++ """+ Branch protection rules for this ref+ """+ branchProtectionRule: BranchProtectionRule++ """+ Compares the current ref as a base ref to another head ref, if the comparison can be made.+ """+ compare(+ """+ The head ref to compare against.+ """+ headRef: String!+ ): Comparison++ """+ The Node ID of the Ref object+ """+ id: ID!++ """+ The ref name.+ """+ name: String!++ """+ The ref's prefix, such as `refs/heads/` or `refs/tags/`.+ """+ prefix: String!++ """+ Branch protection rules that are viewable by non-admins+ """+ refUpdateRule: RefUpdateRule++ """+ The repository the ref belongs to.+ """+ repository: Repository!++ """+ A list of rules from active Repository and Organization rulesets that apply to this ref.+ """+ rules(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repository rules.+ """+ orderBy: RepositoryRuleOrder = {field: UPDATED_AT, direction: DESC}+ ): RepositoryRuleConnection++ """+ The object the ref points to. Returns null when object does not exist.+ """+ target: GitObject+}++"""+The connection type for Ref.+"""+type RefConnection {+ """+ A list of edges.+ """+ edges: [RefEdge]++ """+ A list of nodes.+ """+ nodes: [Ref]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RefEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Ref+}++"""+Parameters to be used for the ref_name condition+"""+type RefNameConditionTarget @docsCategory(name: "branches") {+ """+ Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.+ """+ exclude: [String!]!++ """+ Array of ref names or patterns to include. One of these patterns must match+ for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the+ default branch or `~ALL` to include all branches.+ """+ include: [String!]!+}++"""+Parameters to be used for the ref_name condition+"""+input RefNameConditionTargetInput @docsCategory(name: "branches") {+ """+ Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.+ """+ exclude: [String!]!++ """+ Array of ref names or patterns to include. One of these patterns must match+ for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the+ default branch or `~ALL` to include all branches.+ """+ include: [String!]!+}++"""+Ways in which lists of git refs can be ordered upon return.+"""+input RefOrder @docsCategory(name: "git") {+ """+ The direction in which to order refs by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order refs by.+ """+ field: RefOrderField!+}++"""+Properties by which ref connections can be ordered.+"""+enum RefOrderField @docsCategory(name: "git") {+ """+ Order refs by their alphanumeric name+ """+ ALPHABETICAL++ """+ Order refs by underlying commit date if the ref prefix is refs/tags/+ """+ TAG_COMMIT_DATE+}++"""+A ref update+"""+input RefUpdate @docsCategory(name: "git") {+ """+ The value this ref should be updated to.+ """+ afterOid: GitObjectID!++ """+ The value this ref needs to point to before the update.+ """+ beforeOid: GitObjectID++ """+ Force a non fast-forward update.+ """+ force: Boolean = false++ """+ The fully qualified name of the ref to be update. For example `refs/heads/branch-name`+ """+ name: GitRefname!+}++"""+Branch protection rules that are enforced on the viewer.+"""+type RefUpdateRule @docsCategory(name: "git") {+ """+ Can this branch be deleted.+ """+ allowsDeletions: Boolean!++ """+ Are force pushes allowed on this branch.+ """+ allowsForcePushes: Boolean!++ """+ Can matching branches be created.+ """+ blocksCreations: Boolean!++ """+ Identifies the protection rule pattern.+ """+ pattern: String!++ """+ Number of approving reviews required to update matching branches.+ """+ requiredApprovingReviewCount: Int++ """+ List of required status check contexts that must pass for commits to be accepted to matching branches.+ """+ requiredStatusCheckContexts: [String]++ """+ Are reviews from code owners required to update matching branches.+ """+ requiresCodeOwnerReviews: Boolean!++ """+ Are conversations required to be resolved before merging.+ """+ requiresConversationResolution: Boolean!++ """+ Are merge commits prohibited from being pushed to this branch.+ """+ requiresLinearHistory: Boolean!++ """+ Are commits required to be signed.+ """+ requiresSignatures: Boolean!++ """+ Is the viewer allowed to dismiss reviews.+ """+ viewerAllowedToDismissReviews: Boolean!++ """+ Can the viewer push to the branch+ """+ viewerCanPush: Boolean!+}++"""+Represents a 'referenced' event on a given `ReferencedSubject`.+"""+type ReferencedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the commit associated with the 'referenced' event.+ """+ commit: Commit++ """+ Identifies the repository associated with the 'referenced' event.+ """+ commitRepository: Repository!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ReferencedEvent object+ """+ id: ID!++ """+ Reference originated in a different repository.+ """+ isCrossRepository: Boolean!++ """+ Checks if the commit message itself references the subject. Can be false in the case of a commit comment reference.+ """+ isDirectReference: Boolean!++ """+ Object referenced by event.+ """+ subject: ReferencedSubject!+}++"""+Any referencable object+"""+union ReferencedSubject @docsCategory(name: "issues") = Issue | PullRequest++"""+Autogenerated input type of RegenerateEnterpriseIdentityProviderRecoveryCodes+"""+input RegenerateEnterpriseIdentityProviderRecoveryCodesInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set an identity provider.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])+}++"""+Autogenerated return type of RegenerateEnterpriseIdentityProviderRecoveryCodes.+"""+type RegenerateEnterpriseIdentityProviderRecoveryCodesPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The identity provider for the enterprise.+ """+ identityProvider: EnterpriseIdentityProvider+}++"""+Autogenerated input type of RegenerateVerifiableDomainToken+"""+input RegenerateVerifiableDomainTokenInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the verifiable domain to regenerate the verification token of.+ """+ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"])+}++"""+Autogenerated return type of RegenerateVerifiableDomainToken.+"""+type RegenerateVerifiableDomainTokenPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The verification token that was generated.+ """+ verificationToken: String+}++"""+Autogenerated input type of RejectDeployments+"""+input RejectDeploymentsInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Optional comment for rejecting deployments+ """+ comment: String = ""++ """+ The ids of environments to reject deployments+ """+ environmentIds: [ID!]!++ """+ The node ID of the workflow run containing the pending deployments.+ """+ workflowRunId: ID! @possibleTypes(concreteTypes: ["WorkflowRun"])+}++"""+Autogenerated return type of RejectDeployments.+"""+type RejectDeploymentsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The affected deployments.+ """+ deployments: [Deployment!]+}++"""+Autogenerated input type of RejectPendingIssueSuggestions+"""+input RejectPendingIssueSuggestionsInput {+ """+ The ID of the actor whose suggestions to reject.+ """+ actorId: ID!+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue the suggestions apply to.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The pending suggestions to reject. All are rejected atomically; any failure rolls back the entire batch.+ """+ suggestions: [PendingIssueSuggestionRef!]!+}++"""+Autogenerated return type of RejectPendingIssueSuggestions.+"""+type RejectPendingIssueSuggestionsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue the suggestions were rejected from.+ """+ issue: Issue+}++"""+A release contains the content for a release.+"""+type Release implements Node & Reactable & UniformResourceLocatable @docsCategory(name: "releases") {+ """+ The author of the release+ """+ author: User++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The description of the release.+ """+ description: String++ """+ The description of this release rendered to HTML.+ """+ descriptionHTML: HTML++ """+ The Node ID of the Release object+ """+ id: ID!++ """+ Whether or not the release is immutable+ """+ immutable: Boolean!++ """+ Whether or not the release is a draft+ """+ isDraft: Boolean!++ """+ Whether or not the release is the latest releast+ """+ isLatest: Boolean!++ """+ Whether or not the release is a prerelease+ """+ isPrerelease: Boolean!++ """+ A list of users mentioned in the release description+ """+ mentions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection++ """+ The title of the release.+ """+ name: String++ """+ Identifies the date and time when the release was created.+ """+ publishedAt: DateTime++ """+ A list of reactions grouped by content left on the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ A list of Reactions left on the Issue.+ """+ reactions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Allows filtering Reactions by emoji.+ """+ content: ReactionContent++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Allows specifying the order in which reactions are returned.+ """+ orderBy: ReactionOrder+ ): ReactionConnection!++ """+ List of releases assets which are dependent on this release.+ """+ releaseAssets(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ A name to filter the assets by.+ """+ name: String+ ): ReleaseAssetConnection!++ """+ The repository that the release belongs to.+ """+ repository: Repository!++ """+ The HTTP path for this issue+ """+ resourcePath: URI!++ """+ A description of the release, rendered to HTML without any links in it.+ """+ shortDescriptionHTML(+ """+ How many characters to return.+ """+ limit: Int = 200+ ): HTML++ """+ The Git tag the release points to+ """+ tag: Ref++ """+ The tag commit for this release.+ """+ tagCommit: Commit++ """+ The name of the release's Git tag+ """+ tagName: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this issue+ """+ url: URI!++ """+ Can user react to this subject+ """+ viewerCanReact: Boolean!+}++"""+A release asset contains the content for a release asset.+"""+type ReleaseAsset implements Node @docsCategory(name: "releases") {+ """+ The asset's content-type+ """+ contentType: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The SHA256 digest of the asset+ """+ digest: String++ """+ The number of times this asset was downloaded+ """+ downloadCount: Int!++ """+ Identifies the URL where you can download the release asset via the browser.+ """+ downloadUrl: URI!++ """+ The Node ID of the ReleaseAsset object+ """+ id: ID!++ """+ Identifies the title of the release asset.+ """+ name: String!++ """+ Release that the asset is associated with+ """+ release: Release++ """+ The size (in bytes) of the asset+ """+ size: Int!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The user that performed the upload+ """+ uploadedBy: User!++ """+ Identifies the URL of the release asset.+ """+ url: URI!+}++"""+The connection type for ReleaseAsset.+"""+type ReleaseAssetConnection {+ """+ A list of edges.+ """+ edges: [ReleaseAssetEdge]++ """+ A list of nodes.+ """+ nodes: [ReleaseAsset]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ReleaseAssetEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ReleaseAsset+}++"""+The connection type for Release.+"""+type ReleaseConnection {+ """+ A list of edges.+ """+ edges: [ReleaseEdge]++ """+ A list of nodes.+ """+ nodes: [Release]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ReleaseEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Release+}++"""+Ways in which lists of releases can be ordered upon return.+"""+input ReleaseOrder @docsCategory(name: "releases") {+ """+ The direction in which to order releases by the specified field.+ """+ direction: OrderDirection!++ """+ The field in which to order releases by.+ """+ field: ReleaseOrderField!+}++"""+Properties by which release connections can be ordered.+"""+enum ReleaseOrderField @docsCategory(name: "releases") {+ """+ Order releases by creation time+ """+ CREATED_AT++ """+ Order releases alphabetically by name+ """+ NAME+}++"""+Autogenerated input type of RemoveAssigneesFromAssignable+"""+input RemoveAssigneesFromAssignableInput {+ """+ The id of the assignable object to remove assignees from.+ """+ assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable")++ """+ The ids of actors to remove as assignees.+ """+ assigneeIds: [ID!]!+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated return type of RemoveAssigneesFromAssignable.+"""+type RemoveAssigneesFromAssignablePayload {+ """+ The item that was unassigned.+ """+ assignable: Assignable++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of RemoveBlockedBy+"""+input RemoveBlockedByInput {+ """+ The ID of the blocking issue.+ """+ blockingIssueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the blocked issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of RemoveBlockedBy.+"""+type RemoveBlockedByPayload {+ """+ The previously blocking issue.+ """+ blockingIssue: Issue++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The previously blocked issue.+ """+ issue: Issue+}++"""+Autogenerated input type of RemoveCloseIssueReferences+"""+input RemoveCloseIssueReferencesInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the issue to remove closing references from.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ IDs of manually linked pull requests to remove. Auto-detected closing references are left unchanged. Limit: 10.+ """+ pullRequestIds: [ID!]! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of RemoveCloseIssueReferences.+"""+type RemoveCloseIssueReferencesPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue the closing references were removed from.+ """+ issue: Issue+}++"""+Autogenerated input type of RemoveEnterpriseAdmin+"""+input RemoveEnterpriseAdminInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Enterprise ID from which to remove the administrator.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of the user to remove as an administrator.+ """+ login: String!+}++"""+Autogenerated return type of RemoveEnterpriseAdmin.+"""+type RemoveEnterpriseAdminPayload {+ """+ The user who was removed as an administrator.+ """+ admin: User++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated enterprise.+ """+ enterprise: Enterprise++ """+ A message confirming the result of removing an administrator.+ """+ message: String++ """+ The viewer performing the mutation.+ """+ viewer: User+}++"""+Autogenerated input type of RemoveEnterpriseIdentityProvider+"""+input RemoveEnterpriseIdentityProviderInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise from which to remove the identity provider.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])+}++"""+Autogenerated return type of RemoveEnterpriseIdentityProvider.+"""+type RemoveEnterpriseIdentityProviderPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The identity provider that was removed from the enterprise.+ """+ identityProvider: EnterpriseIdentityProvider+}++"""+Autogenerated input type of RemoveEnterpriseMember+"""+input RemoveEnterpriseMemberInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise from which the user should be removed.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The ID of the user to remove from the enterprise.+ """+ userId: ID! @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of RemoveEnterpriseMember.+"""+type RemoveEnterpriseMemberPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated enterprise.+ """+ enterprise: Enterprise++ """+ The user that was removed from the enterprise.+ """+ user: User++ """+ The viewer performing the mutation.+ """+ viewer: User+}++"""+Autogenerated input type of RemoveEnterpriseOrganization+"""+input RemoveEnterpriseOrganizationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise from which the organization should be removed.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The ID of the organization to remove from the enterprise.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of RemoveEnterpriseOrganization.+"""+type RemoveEnterpriseOrganizationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated enterprise.+ """+ enterprise: Enterprise++ """+ The organization that was removed from the enterprise.+ """+ organization: Organization++ """+ The viewer performing the mutation.+ """+ viewer: User+}++"""+Autogenerated input type of RemoveEnterpriseSupportEntitlement+"""+input RemoveEnterpriseSupportEntitlementInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Enterprise which the admin belongs to.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of a member who will lose the support entitlement.+ """+ login: String!+}++"""+Autogenerated return type of RemoveEnterpriseSupportEntitlement.+"""+type RemoveEnterpriseSupportEntitlementPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A message confirming the result of removing the support entitlement.+ """+ message: String+}++"""+Autogenerated input type of RemoveLabelsFromLabelable+"""+input RemoveLabelsFromLabelableInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ids of labels to remove.+ """+ labelIds: [ID!]! @possibleTypes(concreteTypes: ["Label"])++ """+ The id of the Labelable to remove labels from.+ """+ labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable")+}++"""+Autogenerated return type of RemoveLabelsFromLabelable.+"""+type RemoveLabelsFromLabelablePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Labelable the labels were removed from.+ """+ labelable: Labelable+}++"""+Autogenerated input type of RemoveOutsideCollaborator+"""+input RemoveOutsideCollaboratorInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the organization to remove the outside collaborator from.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])++ """+ The ID of the outside collaborator to remove.+ """+ userId: ID! @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of RemoveOutsideCollaborator.+"""+type RemoveOutsideCollaboratorPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The user that was removed as an outside collaborator.+ """+ removedUser: User+}++"""+Autogenerated input type of RemovePullRequestCreationCapBypassUsers+"""+input RemovePullRequestCreationCapBypassUsersInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The Node IDs of the users to remove from the bypass list.+ """+ userIds: [ID!]! @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of RemovePullRequestCreationCapBypassUsers.+"""+type RemovePullRequestCreationCapBypassUsersPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository with the updated bypass list.+ """+ repository: Repository+}++"""+Autogenerated input type of RemoveReaction+"""+input RemoveReactionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of the emoji reaction to remove.+ """+ content: ReactionContent!++ """+ The Node ID of the subject to modify.+ """+ subjectId: ID!+ @possibleTypes(+ concreteTypes: [+ "CommitComment"+ "Discussion"+ "DiscussionComment"+ "Issue"+ "IssueComment"+ "PullRequest"+ "PullRequestReview"+ "PullRequestReviewComment"+ "Release"+ ]+ abstractType: "Reactable"+ )+}++"""+Autogenerated return type of RemoveReaction.+"""+type RemoveReactionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The reaction object.+ """+ reaction: Reaction++ """+ The reaction groups for the subject.+ """+ reactionGroups: [ReactionGroup!]++ """+ The reactable subject.+ """+ subject: Reactable+}++"""+Autogenerated input type of RemoveRelatesTo+"""+input RemoveRelatesToInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The ID of the previously related issue.+ """+ relatedIssueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of RemoveRelatesTo.+"""+type RemoveRelatesToPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The previously targeted issue.+ """+ issue: Issue++ """+ The previously related issue.+ """+ relatedIssue: Issue+}++"""+Autogenerated input type of RemoveStar+"""+input RemoveStarInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Starrable ID to unstar.+ """+ starrableId: ID! @possibleTypes(concreteTypes: ["Gist", "Repository", "Topic"], abstractType: "Starrable")+}++"""+Autogenerated return type of RemoveStar.+"""+type RemoveStarPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The starrable.+ """+ starrable: Starrable+}++"""+Autogenerated input type of RemoveSubIssue+"""+input RemoveSubIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The id of the sub-issue.+ """+ subIssueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of RemoveSubIssue.+"""+type RemoveSubIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The parent of the sub-issue.+ """+ issue: Issue++ """+ The sub-issue of the parent.+ """+ subIssue: Issue+}++"""+Autogenerated input type of RemoveUpvote+"""+input RemoveUpvoteInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion or comment to remove upvote.+ """+ subjectId: ID! @possibleTypes(concreteTypes: ["Discussion", "DiscussionComment"], abstractType: "Votable")+}++"""+Autogenerated return type of RemoveUpvote.+"""+type RemoveUpvotePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The votable subject.+ """+ subject: Votable+}++"""+Represents a 'removed_from_merge_queue' event on a given pull request.+"""+type RemovedFromMergeQueueEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the before commit SHA for the 'removed_from_merge_queue' event.+ """+ beforeCommit: Commit++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The user who removed this Pull Request from the merge queue+ """+ enqueuer: User++ """+ The Node ID of the RemovedFromMergeQueueEvent object+ """+ id: ID!++ """+ The merge queue where this pull request was removed from.+ """+ mergeQueue: MergeQueue++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest++ """+ The reason this pull request was removed from the queue.+ """+ reason: String+}++"""+Represents a 'removed_from_project' event on a given issue or pull request.+"""+type RemovedFromProjectEvent implements Node @docsCategory(name: "projects-classic") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The Node ID of the RemovedFromProjectEvent object+ """+ id: ID!++ """+ Project referenced by event.+ """+ project: Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Column name referenced by this project event.+ """+ projectColumnName: String!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )+}++"""+Represents a 'removed_from_project_v2' event on a given issue or pull request.+"""+type RemovedFromProjectV2Event implements Node & ProjectV2Event @docsCategory(name: "projects") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the RemovedFromProjectV2Event object+ """+ id: ID!++ """+ Project referenced by event.+ """+ project: ProjectV2++ """+ Did this event result from workflow automation?+ """+ wasAutomated: Boolean!+}++"""+Represents a 'removed_from_stack' event on a given pull request.+"""+type RemovedFromStackEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the RemovedFromStackEvent object+ """+ id: ID!++ """+ Pull request removed from the stack.+ """+ pullRequest: PullRequest++ """+ Database ID of the stack.+ """+ stackId: BigInt++ """+ Number of the stack in its repository.+ """+ stackNumber: Int+}++"""+Represents a 'renamed' event on a given issue or pull request+"""+type RenamedTitleEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the current title of the issue or pull request.+ """+ currentTitle: String!++ """+ The Node ID of the RenamedTitleEvent object+ """+ id: ID!++ """+ Identifies the previous title of the issue or pull request.+ """+ previousTitle: String!++ """+ Subject that was renamed.+ """+ subject: RenamedTitleSubject!+}++"""+An object which has a renamable title+"""+union RenamedTitleSubject @docsCategory(name: "issues") = Issue | PullRequest++"""+Autogenerated input type of ReopenDiscussion+"""+input ReopenDiscussionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the discussion to be reopened.+ """+ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"])+}++"""+Autogenerated return type of ReopenDiscussion.+"""+type ReopenDiscussionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The discussion that was reopened.+ """+ discussion: Discussion+}++"""+Autogenerated input type of ReopenIssue+"""+input ReopenIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the issue to be opened.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of ReopenIssue.+"""+type ReopenIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue that was opened.+ """+ issue: Issue+}++"""+Autogenerated input type of ReopenPullRequest+"""+input ReopenPullRequestInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the pull request to be reopened.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of ReopenPullRequest.+"""+type ReopenPullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that was reopened.+ """+ pullRequest: PullRequest+}++"""+Represents a 'reopened' event on any `Closable`.+"""+type ReopenedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Object that was reopened.+ """+ closable: Closable!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ReopenedEvent object+ """+ id: ID!++ """+ The reason the issue state was changed to open.+ """+ stateReason: IssueStateReason+}++"""+Autogenerated input type of ReorderEnvironment+"""+input ReorderEnvironmentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the environment to modify+ """+ environmentId: ID! @possibleTypes(concreteTypes: ["Environment"])++ """+ The desired position of the environment+ """+ position: Int!+}++"""+Autogenerated return type of ReorderEnvironment.+"""+type ReorderEnvironmentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The environment that was reordered+ """+ environment: Environment+}++"""+Autogenerated input type of ReplaceActorsForAssignable+"""+input ReplaceActorsForAssignableInput {+ """+ The ids of the actors to replace the existing assignees. May be used as an+ alternative to or in conjunction with actorLogins.+ """+ actorIds: [ID!]+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ The usernames of the actors to replace the existing assignees. May be used as+ an alternative to or in conjunction with actorIds. For bots, use the login+ format with [bot] suffix (e.g., 'my-app[bot]').+ """+ actorLogins: [String!]++ """+ Configuration for assigning an AI agent to this issue.+ """+ agentAssignment: AgentAssignmentInput++ """+ The id of the assignable object to replace the assignees for.+ """+ assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable")++ """+ An array of actors to set as assignees, each with optional rationale or+ suggest flag. Mutually exclusive with `actorIds` and `actorLogins`.+ """+ assignees: [AssigneeUpdateInput!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated return type of ReplaceActorsForAssignable.+"""+type ReplaceActorsForAssignablePayload {+ """+ The item that was assigned.+ """+ assignable: Assignable++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Audit log entry for a repo.access event.+"""+type RepoAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData+ @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoAccessAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The visibility of the repository+ """+ visibility: RepoAccessAuditEntryVisibility+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The privacy of a repository+"""+enum RepoAccessAuditEntryVisibility @docsCategory(name: "repos") {+ """+ The repository is visible only to users in the same enterprise.+ """+ INTERNAL++ """+ The repository is visible only to those with explicit access.+ """+ PRIVATE++ """+ The repository is visible to everyone.+ """+ PUBLIC+}++"""+Audit log entry for a repo.add_member event.+"""+type RepoAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData+ @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoAddMemberAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The visibility of the repository+ """+ visibility: RepoAddMemberAuditEntryVisibility+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The privacy of a repository+"""+enum RepoAddMemberAuditEntryVisibility @docsCategory(name: "repos") {+ """+ The repository is visible only to users in the same enterprise.+ """+ INTERNAL++ """+ The repository is visible only to those with explicit access.+ """+ PRIVATE++ """+ The repository is visible to everyone.+ """+ PUBLIC+}++"""+Audit log entry for a repo.add_topic event.+"""+type RepoAddTopicAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData &+ TopicAuditEntryData @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoAddTopicAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The name of the topic added to the repository+ """+ topic: Topic++ """+ The name of the topic added to the repository+ """+ topicName: String++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.archived event.+"""+type RepoArchivedAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData+ @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoArchivedAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The visibility of the repository+ """+ visibility: RepoArchivedAuditEntryVisibility+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The privacy of a repository+"""+enum RepoArchivedAuditEntryVisibility @docsCategory(name: "repos") {+ """+ The repository is visible only to users in the same enterprise.+ """+ INTERNAL++ """+ The repository is visible only to those with explicit access.+ """+ PRIVATE++ """+ The repository is visible to everyone.+ """+ PUBLIC+}++"""+Audit log entry for a repo.change_merge_setting event.+"""+type RepoChangeMergeSettingAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoChangeMergeSettingAuditEntry object+ """+ id: ID!++ """+ Whether the change was to enable (true) or disable (false) the merge type+ """+ isEnabled: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The merge method affected by the change+ """+ mergeType: RepoChangeMergeSettingAuditEntryMergeType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The merge options available for pull requests to this repository.+"""+enum RepoChangeMergeSettingAuditEntryMergeType @docsCategory(name: "repos") {+ """+ The pull request is added to the base branch in a merge commit.+ """+ MERGE++ """+ Commits from the pull request are added onto the base branch individually without a merge commit.+ """+ REBASE++ """+ The pull request's commits are squashed into a single commit before they are merged to the base branch.+ """+ SQUASH+}++"""+Audit log entry for a repo.config.disable_anonymous_git_access event.+"""+type RepoConfigDisableAnonymousGitAccessAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigDisableAnonymousGitAccessAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.disable_collaborators_only event.+"""+type RepoConfigDisableCollaboratorsOnlyAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigDisableCollaboratorsOnlyAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.disable_contributors_only event.+"""+type RepoConfigDisableContributorsOnlyAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigDisableContributorsOnlyAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.disable_sockpuppet_disallowed event.+"""+type RepoConfigDisableSockpuppetDisallowedAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigDisableSockpuppetDisallowedAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.enable_anonymous_git_access event.+"""+type RepoConfigEnableAnonymousGitAccessAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigEnableAnonymousGitAccessAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.enable_collaborators_only event.+"""+type RepoConfigEnableCollaboratorsOnlyAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigEnableCollaboratorsOnlyAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.enable_contributors_only event.+"""+type RepoConfigEnableContributorsOnlyAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigEnableContributorsOnlyAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.enable_sockpuppet_disallowed event.+"""+type RepoConfigEnableSockpuppetDisallowedAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigEnableSockpuppetDisallowedAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.lock_anonymous_git_access event.+"""+type RepoConfigLockAnonymousGitAccessAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigLockAnonymousGitAccessAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.config.unlock_anonymous_git_access event.+"""+type RepoConfigUnlockAnonymousGitAccessAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoConfigUnlockAnonymousGitAccessAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repo.create event.+"""+type RepoCreateAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData+ @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the parent repository for this forked repository.+ """+ forkParentName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the root repository for this network.+ """+ forkSourceName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoCreateAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The visibility of the repository+ """+ visibility: RepoCreateAuditEntryVisibility+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The privacy of a repository+"""+enum RepoCreateAuditEntryVisibility @docsCategory(name: "repos") {+ """+ The repository is visible only to users in the same enterprise.+ """+ INTERNAL++ """+ The repository is visible only to those with explicit access.+ """+ PRIVATE++ """+ The repository is visible to everyone.+ """+ PUBLIC+}++"""+Audit log entry for a repo.destroy event.+"""+type RepoDestroyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData+ @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoDestroyAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The visibility of the repository+ """+ visibility: RepoDestroyAuditEntryVisibility+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The privacy of a repository+"""+enum RepoDestroyAuditEntryVisibility @docsCategory(name: "repos") {+ """+ The repository is visible only to users in the same enterprise.+ """+ INTERNAL++ """+ The repository is visible only to those with explicit access.+ """+ PRIVATE++ """+ The repository is visible to everyone.+ """+ PUBLIC+}++"""+Audit log entry for a repo.remove_member event.+"""+type RepoRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData+ @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoRemoveMemberAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The visibility of the repository+ """+ visibility: RepoRemoveMemberAuditEntryVisibility+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The privacy of a repository+"""+enum RepoRemoveMemberAuditEntryVisibility @docsCategory(name: "repos") {+ """+ The repository is visible only to users in the same enterprise.+ """+ INTERNAL++ """+ The repository is visible only to those with explicit access.+ """+ PRIVATE++ """+ The repository is visible to everyone.+ """+ PUBLIC+}++"""+Audit log entry for a repo.remove_topic event.+"""+type RepoRemoveTopicAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData &+ TopicAuditEntryData @docsCategory(name: "repos") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the RepoRemoveTopicAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The name of the topic added to the repository+ """+ topic: Topic++ """+ The name of the topic added to the repository+ """+ topicName: String++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The reasons a piece of content can be reported or minimized.+"""+enum ReportedContentClassifiers @docsCategory(name: "meta") {+ """+ An abusive or harassing piece of content+ """+ ABUSE++ """+ A duplicated piece of content+ """+ DUPLICATE++ """+ A low quality piece of content+ """+ LOW_QUALITY++ """+ An irrelevant piece of content+ """+ OFF_TOPIC++ """+ An outdated piece of content+ """+ OUTDATED++ """+ The content has been resolved+ """+ RESOLVED++ """+ A spammy piece of content+ """+ SPAM+}++"""+A repository contains the content for a project.+"""+type Repository implements Node &+ PackageOwner &+ ProjectOwner &+ ProjectV2Recent &+ RepositoryInfo &+ Starrable &+ Subscribable &+ UniformResourceLocatable @docsCategory(name: "repos") {+ """+ Whether or not a pull request head branch that is behind its base branch can+ always be updated even if it is not required to be up to date before merging.+ """+ allowUpdateBranch: Boolean!++ """+ Identifies the date and time when the repository was archived.+ """+ archivedAt: DateTime++ """+ A list of users that can be assigned to issues in this repository.+ """+ assignableUsers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filters users with query on user name and login.+ """+ query: String+ ): UserConnection!++ """+ Whether or not Auto-merge can be enabled on pull requests in this repository.+ """+ autoMergeAllowed: Boolean!++ """+ A list of branch protection rules for this repository.+ """+ branchProtectionRules(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): BranchProtectionRuleConnection!++ """+ Returns the code of conduct for this repository+ """+ codeOfConduct: CodeOfConduct++ """+ Information extracted from the repository's `CODEOWNERS` file.+ """+ codeowners(+ """+ The ref name used to return the associated `CODEOWNERS` file.+ """+ refName: String+ ): RepositoryCodeowners++ """+ A list of collaborators associated with the repository.+ """+ collaborators(+ """+ Collaborators affiliation level with a repository.+ """+ affiliation: CollaboratorAffiliation++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ The login of one specific collaborator.+ """+ login: String++ """+ Filters users with query on user name and login+ """+ query: String+ ): RepositoryCollaboratorConnection++ """+ A list of commit comments associated with the repository.+ """+ commitComments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CommitCommentConnection!++ """+ Returns a list of contact links associated to the repository+ """+ contactLinks: [RepositoryContactLink!]++ """+ Returns the contributing guidelines for this repository.+ """+ contributingGuidelines: ContributingGuidelines++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Ref associated with the repository's default branch.+ """+ defaultBranchRef: Ref++ """+ Whether or not branches are automatically deleted when merged in this repository.+ """+ deleteBranchOnMerge: Boolean!++ """+ A list of dependency manifests contained in the repository+ """+ dependencyGraphManifests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Cursor to paginate dependencies+ """+ dependenciesAfter: String++ """+ Number of dependencies to fetch+ """+ dependenciesFirst: Int++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Flag to scope to only manifests with dependencies+ """+ withDependencies: Boolean+ ): DependencyGraphManifestConnection++ """+ A list of deploy keys that are on this repository.+ """+ deployKeys(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DeployKeyConnection!++ """+ Deployments associated with the repository+ """+ deployments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Environments to list deployments for+ """+ environments: [String!]++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for deployments returned from the connection.+ """+ orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}+ ): DeploymentConnection!++ """+ The description of the repository.+ """+ description: String++ """+ The description of the repository rendered to HTML.+ """+ descriptionHTML: HTML!++ """+ Returns a single discussion from the current repository by number.+ """+ discussion(+ """+ The number for the discussion to be returned.+ """+ number: Int!+ ): Discussion++ """+ A list of discussion categories that are available in the repository.+ """+ discussionCategories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filter by categories that are assignable by the viewer.+ """+ filterByAssignable: Boolean = false++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DiscussionCategoryConnection!++ """+ A discussion category by slug.+ """+ discussionCategory(+ """+ The slug of the discussion category to be returned.+ """+ slug: String!+ ): DiscussionCategory++ """+ A list of discussions that have been opened in the repository.+ """+ discussions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Only show answered or unanswered discussions+ """+ answered: Boolean = null++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Only include discussions that belong to the category with this ID.+ """+ categoryId: ID = null++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for discussions returned from the connection.+ """+ orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC}++ """+ A list of states to filter the discussions by.+ """+ states: [DiscussionState!] = []+ ): DiscussionConnection!++ """+ The number of kilobytes this repository occupies on disk.+ """+ diskUsage: Int++ """+ Returns a single active environment from the current repository by name.+ """+ environment(+ """+ The name of the environment to be returned.+ """+ name: String!+ ): Environment++ """+ A list of environments that are in this repository.+ """+ environments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ The names of the environments to be returned.+ """+ names: [String!] = []++ """+ Ordering options for the environments+ """+ orderBy: Environments = {field: NAME, direction: ASC}++ """+ Filter to control pinned environments return+ """+ pinnedEnvironmentFilter: EnvironmentPinnedFilterField = ALL+ ): EnvironmentConnection!++ """+ Returns how many forks there are of this repository in the whole network.+ """+ forkCount: Int!++ """+ Whether this repository allows forks.+ """+ forkingAllowed: Boolean!++ """+ A list of direct forked repositories.+ """+ forks(+ """+ Array of viewer's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ current viewer owns.+ """+ affiliations: [RepositoryAffiliation]++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ If non-null, filters repositories according to whether they have issues enabled+ """+ hasIssuesEnabled: Boolean++ """+ If non-null, filters repositories according to whether they have been locked+ """+ isLocked: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder++ """+ Array of owner's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ organization or user being viewed owns.+ """+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]++ """+ If non-null, filters repositories according to privacy. Internal+ repositories are considered private; consider using the visibility argument+ if only internal repositories are needed. Cannot be combined with the+ visibility argument.+ """+ privacy: RepositoryPrivacy++ """+ If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.+ """+ visibility: RepositoryVisibility+ ): RepositoryConnection!++ """+ Identifies the primary key from the database as a BigInt.+ """+ fullDatabaseId: BigInt++ """+ The funding links for this repository+ """+ fundingLinks: [FundingLink!]!++ """+ Indicates if the repository has the Discussions feature enabled.+ """+ hasDiscussionsEnabled: Boolean!++ """+ Indicates if the repository has issues feature enabled.+ """+ hasIssuesEnabled: Boolean!++ """+ Indicates if the repository has the Projects feature enabled.+ """+ hasProjectsEnabled: Boolean!++ """+ Indicates if the repository has the pull requests feature enabled.+ """+ hasPullRequestsEnabled: Boolean!++ """+ Indicates if the repository displays a Sponsor button for financial contributions.+ """+ hasSponsorshipsEnabled: Boolean!++ """+ Whether vulnerability alerts are enabled for the repository.+ """+ hasVulnerabilityAlertsEnabled: Boolean!++ """+ Indicates if the repository has wiki feature enabled.+ """+ hasWikiEnabled: Boolean!++ """+ The repository's URL.+ """+ homepageUrl: URI++ """+ The Node ID of the Repository object+ """+ id: ID!++ """+ The interaction ability settings for this repository.+ """+ interactionAbility: RepositoryInteractionAbility++ """+ Indicates if the repository is unmaintained.+ """+ isArchived: Boolean!++ """+ Returns true if the viewer can create a blank issue in this repository+ """+ isBlankIssuesEnabled: Boolean!++ """+ Returns whether or not this repository disabled.+ """+ isDisabled: Boolean!++ """+ Returns whether or not this repository is empty.+ """+ isEmpty: Boolean!++ """+ Identifies if the repository is a fork.+ """+ isFork: Boolean!++ """+ Indicates if a repository is either owned by an organization, or is a private fork of an organization repository.+ """+ isInOrganization: Boolean!++ """+ Indicates if the repository has been locked or not.+ """+ isLocked: Boolean!++ """+ Identifies if the repository is a mirror.+ """+ isMirror: Boolean!++ """+ Identifies if the repository is private or internal.+ """+ isPrivate: Boolean!++ """+ Returns true if this repository has a security policy+ """+ isSecurityPolicyEnabled: Boolean++ """+ Identifies if the repository is a template that can be used to generate new repositories.+ """+ isTemplate: Boolean!++ """+ Is this repository a user configuration repository?+ """+ isUserConfigurationRepository: Boolean!++ """+ Returns a single issue from the current repository by number.+ """+ issue(+ """+ The number for the issue to be returned.+ """+ number: Int!+ ): Issue++ """+ The policy controlling who can create issues in this repository.+ """+ issueCreationPolicy: IssueCreationPolicy++ """+ A list of the repository's issue fields, inherited from the organization+ """+ issueFields(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issue fields returned from the connection.+ """+ orderBy: IssueFieldOrder = {field: CREATED_AT, direction: ASC}+ ): IssueFieldsConnection++ """+ Returns a single issue-like object from the current repository by number.+ """+ issueOrPullRequest(+ """+ The number for the issue to be returned.+ """+ number: Int!+ ): IssueOrPullRequest++ """+ Returns a list of issue templates associated to the repository+ """+ issueTemplates: [IssueTemplate!]++ """+ Returns a single issue type by name+ """+ issueType(+ """+ Issue type name.+ """+ name: String!+ ): IssueType++ """+ A list of the repository's issue types+ """+ issueTypes(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issue types returned from the connection.+ """+ orderBy: IssueTypeOrder = {field: CREATED_AT, direction: ASC}+ ): IssueTypeConnection++ """+ A list of issues that have been opened in the repository.+ """+ issues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filtering options for issues returned from the connection.+ """+ filterBy: IssueFilters++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issues returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the issues by.+ """+ states: [IssueState!]+ ): IssueConnection!++ """+ Returns a single label by name+ """+ label(+ """+ Label name+ """+ name: String!+ ): Label++ """+ A list of labels associated with the repository.+ """+ labels(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for labels returned from the connection.+ """+ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}++ """+ If provided, searches labels by name and description.+ """+ query: String+ ): LabelConnection++ """+ A list containing a breakdown of the language composition of the repository.+ """+ languages(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: LanguageOrder+ ): LanguageConnection++ """+ Get the latest release for the repository if one exists.+ """+ latestRelease: Release++ """+ The license associated with the repository+ """+ licenseInfo: License++ """+ The reason the repository has been locked.+ """+ lockReason: RepositoryLockReason++ """+ A list of Users that can be mentioned in the context of the repository.+ """+ mentionableUsers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filters users with query on user name and login+ """+ query: String+ ): UserConnection!++ """+ Whether or not PRs are merged with a merge commit on this repository.+ """+ mergeCommitAllowed: Boolean!++ """+ How the default commit message will be generated when merging a pull request.+ """+ mergeCommitMessage: MergeCommitMessage!++ """+ How the default commit title will be generated when merging a pull request.+ """+ mergeCommitTitle: MergeCommitTitle!++ """+ The merge queue for a specified branch, otherwise the default branch if not provided.+ """+ mergeQueue(+ """+ The name of the branch to get the merge queue for. Case sensitive.+ """+ branch: String+ ): MergeQueue++ """+ Returns a single milestone from the current repository by number.+ """+ milestone(+ """+ The number for the milestone to be returned.+ """+ number: Int!+ ): Milestone++ """+ A list of milestones associated with the repository.+ """+ milestones(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for milestones.+ """+ orderBy: MilestoneOrder++ """+ Filters milestones with a query on the title+ """+ query: String++ """+ Filter by the state of the milestones.+ """+ states: [MilestoneState!]+ ): MilestoneConnection++ """+ The repository's original mirror URL.+ """+ mirrorUrl: URI++ """+ The name of the repository.+ """+ name: String!++ """+ The repository's name with owner.+ """+ nameWithOwner: String!++ """+ A Git object in the repository+ """+ object(+ """+ A Git revision expression suitable for rev-parse+ """+ expression: String++ """+ The Git object ID+ """+ oid: GitObjectID+ ): GitObject++ """+ The image used to represent this repository in Open Graph data.+ """+ openGraphImageUrl: URI!++ """+ The User owner of the repository.+ """+ owner: RepositoryOwner!++ """+ A list of packages under the owner.+ """+ packages(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Find packages by their names.+ """+ names: [String]++ """+ Ordering of the returned packages.+ """+ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC}++ """+ Filter registry package by type.+ """+ packageType: PackageType++ """+ Find packages in a repository by ID.+ """+ repositoryId: ID+ ): PackageConnection!++ """+ The repository parent, if this is a fork.+ """+ parent: Repository++ """+ A list of discussions that have been pinned in this repository.+ """+ pinnedDiscussions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PinnedDiscussionConnection!++ """+ A list of pinned environments for this repository.+ """+ pinnedEnvironments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the environments+ """+ orderBy: PinnedEnvironmentOrder = {field: POSITION, direction: ASC}+ ): PinnedEnvironmentConnection++ """+ A list of pinned issues for this repository.+ """+ pinnedIssues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PinnedIssueConnection++ """+ Returns information about the availability of certain features and limits based on the repository's billing plan.+ """+ planFeatures: RepositoryPlanFeatures!++ """+ The primary language of the repository's code.+ """+ primaryLanguage: Language++ """+ Find project by number.+ """+ project(+ """+ The project number to find.+ """+ number: Int!+ ): Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Finds and returns the Project according to the provided Project number.+ """+ projectV2(+ """+ The Project number.+ """+ number: Int!+ ): ProjectV2++ """+ A list of projects under the owner.+ """+ projects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for projects returned from the connection+ """+ orderBy: ProjectOrder++ """+ Query to search projects by, currently only searching by name.+ """+ search: String++ """+ A list of states to filter the projects by.+ """+ states: [ProjectState!]+ ): ProjectConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP path listing the repository's projects+ """+ projectsResourcePath: URI!++ """+ The HTTP URL listing the repository's projects+ """+ projectsUrl: URI!++ """+ List of projects linked to this repository.+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter projects based on user role.+ """+ minPermissionLevel: ProjectV2PermissionLevel = READ++ """+ How to order the returned projects.+ """+ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}++ """+ A project to search for linked to the repo.+ """+ query: String+ ): ProjectV2Connection!++ """+ Returns a single pull request from the current repository by number.+ """+ pullRequest(+ """+ The number for the pull request to be returned.+ """+ number: Int!+ ): PullRequest++ """+ The pull request creation cap configuration for this repository. Only visible+ to repository maintainers and administrators.+ """+ pullRequestCreationCapConfig: PullRequestCreationCapConfig++ """+ The policy controlling who can create pull requests in this repository.+ """+ pullRequestCreationPolicy: PullRequestCreationPolicy++ """+ Returns a list of pull request templates associated to the repository+ """+ pullRequestTemplates: [PullRequestTemplate!]++ """+ A list of pull requests that have been opened in the repository.+ """+ pullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ The base ref name to filter the pull requests by.+ """+ baseRefName: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ The head ref name to filter the pull requests by.+ """+ headRefName: String++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the pull requests by.+ """+ states: [PullRequestState!]+ ): PullRequestConnection!++ """+ Identifies the date and time when the repository was last pushed to.+ """+ pushedAt: DateTime++ """+ Whether or not rebase-merging is enabled on this repository.+ """+ rebaseMergeAllowed: Boolean!++ """+ Recent projects that this user has modified in the context of the owner.+ """+ recentProjects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2Connection!++ """+ Fetch a given ref from the repository+ """+ ref(+ """+ The ref to retrieve. Fully qualified matches are checked in order+ (`refs/heads/master`) before falling back onto checks for short name matches (`master`).+ """+ qualifiedName: String!+ ): Ref++ """+ Fetch a list of refs from the repository+ """+ refs(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ DEPRECATED: use orderBy. The ordering direction.+ """+ direction: OrderDirection++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for refs returned from the connection.+ """+ orderBy: RefOrder++ """+ Filters refs with query on name+ """+ query: String++ """+ A ref name prefix like `refs/heads/`, `refs/tags/`, etc.+ """+ refPrefix: String!+ ): RefConnection++ """+ Lookup a single release given various criteria.+ """+ release(+ """+ The name of the Tag the Release was created from+ """+ tagName: String!+ ): Release++ """+ List of releases which are dependent on this repository.+ """+ releases(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: ReleaseOrder+ ): ReleaseConnection!++ """+ A custom property value for the repository.+ """+ repositoryCustomPropertyValue(+ """+ The name of the custom property to retrieve the value for.+ """+ propertyName: String!+ ): RepositoryCustomPropertyValue++ """+ A list of custom properties and their associated values for a repository.+ """+ repositoryCustomPropertyValues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): RepositoryCustomPropertyValueConnection++ """+ A list of applied repository-topic associations for this repository.+ """+ repositoryTopics(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): RepositoryTopicConnection!++ """+ The HTTP path for this repository+ """+ resourcePath: URI!++ """+ Returns a single ruleset from the current repository by ID.+ """+ ruleset(+ """+ The ID of the ruleset to be returned.+ """+ databaseId: Int!++ """+ Include rulesets configured at higher levels that apply to this repository+ """+ includeParents: Boolean = true+ ): RepositoryRuleset++ """+ A list of rulesets for this repository.+ """+ rulesets(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Return rulesets configured at higher levels that apply to this repository+ """+ includeParents: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Return rulesets that apply to the specified target+ """+ targets: [RepositoryRulesetTarget!] = null+ ): RepositoryRulesetConnection++ """+ The security policy URL.+ """+ securityPolicyUrl: URI++ """+ A description of the repository, rendered to HTML without any links in it.+ """+ shortDescriptionHTML(+ """+ How many characters to return.+ """+ limit: Int = 200+ ): HTML!++ """+ Whether or not squash-merging is enabled on this repository.+ """+ squashMergeAllowed: Boolean!++ """+ How the default commit message will be generated when squash merging a pull request.+ """+ squashMergeCommitMessage: SquashMergeCommitMessage!++ """+ How the default commit title will be generated when squash merging a pull request.+ """+ squashMergeCommitTitle: SquashMergeCommitTitle!++ """+ Whether a squash merge commit can use the pull request title as default.+ """+ squashPrTitleUsedAsDefault: Boolean!+ @deprecated(+ reason: "`squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC."+ )++ """+ The SSH URL to clone this repository+ """+ sshUrl: GitSSHRemote!++ """+ Returns a count of how many stargazers there are on this object+ """+ stargazerCount: Int!++ """+ A list of users who have starred this starrable.+ """+ stargazers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: StarOrder+ ): StargazerConnection!++ """+ Returns a list of all submodules in this repository parsed from the+ .gitmodules file as of the default branch's HEAD commit.+ """+ submodules(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): SubmoduleConnection!++ """+ A list of suggested actors that can be attributed to content in this repository.+ """+ suggestedActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ A list of capabilities to filter actors by.+ """+ capabilities: [RepositorySuggestedActorFilter!]!++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ A comma separated list of login names to filter actors by. Only the first 10 logins will be used.+ """+ loginNames: String++ """+ Search actors with query on user name and login.+ """+ query: String+ ): ActorConnection!++ """+ Temporary authentication token for cloning this repository.+ """+ tempCloneToken: String++ """+ The repository from which this repository was generated, if any.+ """+ templateRepository: Repository++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this repository+ """+ url: URI!++ """+ Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar.+ """+ usesCustomOpenGraphImage: Boolean!++ """+ Indicates whether the viewer has admin permissions on this repository.+ """+ viewerCanAdminister: Boolean!++ """+ Indicates whether the current user can create issues in this repository.+ """+ viewerCanCreateIssues: Boolean!++ """+ Can the current viewer create new projects on this owner.+ """+ viewerCanCreateProjects: Boolean!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Indicates whether the current user can see issue fields in this repository+ """+ viewerCanSeeIssueFields: Boolean!++ """+ Check if the viewer is able to change their subscription status for the repository.+ """+ viewerCanSubscribe: Boolean!++ """+ Indicates whether the viewer can update the topics of this repository.+ """+ viewerCanUpdateTopics: Boolean!++ """+ The content warning for this repository for the viewer.+ """+ viewerContentWarning: ContentWarning++ """+ The last commit email for the viewer.+ """+ viewerDefaultCommitEmail: String++ """+ The last used merge method by the viewer or the default for the repository.+ """+ viewerDefaultMergeMethod: PullRequestMergeMethod!++ """+ Returns a boolean indicating whether the viewing user has starred this starrable.+ """+ viewerHasStarred: Boolean!++ """+ The users permission level on the repository. Will return null if authenticated as an GitHub App.+ """+ viewerPermission: RepositoryPermission++ """+ A list of emails this viewer can commit with.+ """+ viewerPossibleCommitEmails: [String!]++ """+ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.+ """+ viewerSubscription: SubscriptionState++ """+ Indicates the repository's visibility level.+ """+ visibility: RepositoryVisibility!++ """+ Returns a single vulnerability alert from the current repository by number.+ """+ vulnerabilityAlert(+ """+ The number for the vulnerability alert to be returned.+ """+ number: Int!+ ): RepositoryVulnerabilityAlert++ """+ A list of vulnerability alerts that are on this repository.+ """+ vulnerabilityAlerts(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filter by the classification of the alert's associated security advisory+ """+ classifications: [SecurityAdvisoryClassification!]++ """+ Filter by the scope of the alert's dependency+ """+ dependencyScopes: [RepositoryVulnerabilityAlertDependencyScope!]++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter by the state of the alert+ """+ states: [RepositoryVulnerabilityAlertState!]+ ): RepositoryVulnerabilityAlertConnection++ """+ A list of users watching the repository.+ """+ watchers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserConnection!++ """+ Whether contributors are required to sign off on web-based commits in this repository.+ """+ webCommitSignoffRequired: Boolean!+}++"""+The affiliation of a user to a repository+"""+enum RepositoryAffiliation @docsCategory(name: "repos") {+ """+ Repositories that the user has been added to as a collaborator.+ """+ COLLABORATOR++ """+ Repositories that the user has access to through being a member of an+ organization. This includes every repository on every team that the user is on.+ """+ ORGANIZATION_MEMBER++ """+ Repositories that are owned by the authenticated user.+ """+ OWNER+}++"""+Metadata for an audit entry with action repo.*+"""+interface RepositoryAuditEntryData @docsCategory(name: "repos") {+ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI+}++"""+Information extracted from a repository's `CODEOWNERS` file.+"""+type RepositoryCodeowners @docsCategory(name: "repos") {+ """+ Any problems that were encountered while parsing the `CODEOWNERS` file.+ """+ errors: [RepositoryCodeownersError!]!+}++"""+An error in a `CODEOWNERS` file.+"""+type RepositoryCodeownersError @docsCategory(name: "repos") {+ """+ The column number where the error occurs.+ """+ column: Int!++ """+ A short string describing the type of error.+ """+ kind: String!++ """+ The line number where the error occurs.+ """+ line: Int!++ """+ A complete description of the error, combining information from other fields.+ """+ message: String!++ """+ The path to the file when the error occurs.+ """+ path: String!++ """+ The content of the line where the error occurs.+ """+ source: String!++ """+ A suggestion of how to fix the error.+ """+ suggestion: String+}++"""+The connection type for User.+"""+type RepositoryCollaboratorConnection {+ """+ A list of edges.+ """+ edges: [RepositoryCollaboratorEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a user who is a collaborator of a repository.+"""+type RepositoryCollaboratorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!+ node: User!++ """+ The permission the user has on the repository.+ """+ permission: RepositoryPermission!++ """+ A list of sources for the user's access to the repository.+ """+ permissionSources: [PermissionSource!]+}++"""+A list of repositories owned by the subject.+"""+type RepositoryConnection {+ """+ A list of edges.+ """+ edges: [RepositoryEdge]++ """+ A list of nodes.+ """+ nodes: [Repository]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ The total size in kilobytes of all repositories in the connection. Value will+ never be larger than max 32-bit signed integer.+ """+ totalDiskUsage: Int!+}++"""+A repository contact link.+"""+type RepositoryContactLink @docsCategory(name: "repos") {+ """+ The contact link purpose.+ """+ about: String!++ """+ The contact link name.+ """+ name: String!++ """+ The contact link URL.+ """+ url: URI!+}++"""+The reason a repository is listed as 'contributed'.+"""+enum RepositoryContributionType @docsCategory(name: "repos") {+ """+ Created a commit+ """+ COMMIT++ """+ Created an issue+ """+ ISSUE++ """+ Created a pull request+ """+ PULL_REQUEST++ """+ Reviewed a pull request+ """+ PULL_REQUEST_REVIEW++ """+ Created the repository+ """+ REPOSITORY+}++"""+A repository custom property.+"""+type RepositoryCustomProperty implements Node @docsCategory(name: "repos") {+ """+ The allowed values for the custom property. Required if `value_type` is `single_select` or `multi_select`.+ """+ allowedValues: [String!]++ """+ The default value of the custom property, if the property is `required`.+ """+ defaultValue: CustomPropertyValue++ """+ The description of the custom property.+ """+ description: String++ """+ The Node ID of the RepositoryCustomProperty object+ """+ id: ID!++ """+ The name of the custom property.+ """+ propertyName: String!++ """+ The regex pattern that the value of the custom property must match, if the `value_type` is `string`.+ """+ regex: String++ """+ Whether this repository custom property requires explicit values.+ """+ requireExplicitValues: Boolean++ """+ Whether the custom property is required.+ """+ required: Boolean++ """+ The source type of the custom property.+ """+ source: CustomPropertySource!++ """+ The value type of the custom property.+ """+ valueType: CustomPropertyValueType!++ """+ Who can edit the values of this repository custom property.+ """+ valuesEditableBy: RepositoryCustomPropertyValuesEditableBy!+}++"""+The connection type for RepositoryCustomProperty.+"""+type RepositoryCustomPropertyConnection {+ """+ A list of edges.+ """+ edges: [RepositoryCustomPropertyEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryCustomProperty]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RepositoryCustomPropertyEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryCustomProperty+}++"""+A value associated with a repository custom property.+"""+type RepositoryCustomPropertyValue @docsCategory(name: "repos") {+ """+ The name of the custom property.+ """+ propertyName: String!++ """+ The value of the custom property.+ """+ value: CustomPropertyValue!+}++"""+The connection type for RepositoryCustomPropertyValue.+"""+type RepositoryCustomPropertyValueConnection {+ """+ A list of edges.+ """+ edges: [RepositoryCustomPropertyValueEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryCustomPropertyValue]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RepositoryCustomPropertyValueEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryCustomPropertyValue+}++"""+The allowed actors who can edit the values of a custom property.+"""+enum RepositoryCustomPropertyValuesEditableBy @docsCategory(name: "repos") {+ """+ The organization actors.+ """+ ORG_ACTORS++ """+ The organization and repository actors.+ """+ ORG_AND_REPO_ACTORS+}++"""+Represents an author of discussions in repositories.+"""+interface RepositoryDiscussionAuthor @docsCategory(name: "discussions") {+ """+ Discussions this user has started.+ """+ repositoryDiscussions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Filter discussions to only those that have been answered or not. Defaults to+ including both answered and unanswered discussions.+ """+ answered: Boolean = null++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for discussions returned from the connection.+ """+ orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC}++ """+ Filter discussions to only those in a specific repository.+ """+ repositoryId: ID++ """+ A list of states to filter the discussions by.+ """+ states: [DiscussionState!] = []+ ): DiscussionConnection!+}++"""+Represents an author of discussion comments in repositories.+"""+interface RepositoryDiscussionCommentAuthor @docsCategory(name: "discussions") {+ """+ Discussion comments this user has authored.+ """+ repositoryDiscussionComments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter discussion comments to only those that were marked as the answer+ """+ onlyAnswers: Boolean = false++ """+ Filter discussion comments to only those in a specific repository.+ """+ repositoryId: ID+ ): DiscussionCommentConnection!+}++"""+An edge in a connection.+"""+type RepositoryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Repository+}++"""+Parameters to be used for the repository_id condition+"""+type RepositoryIdConditionTarget @docsCategory(name: "repos") {+ """+ One of these repo IDs must match the repo.+ """+ repositoryIds: [ID!]!+}++"""+Parameters to be used for the repository_id condition+"""+input RepositoryIdConditionTargetInput @docsCategory(name: "repos") {+ """+ One of these repo IDs must match the repo.+ """+ repositoryIds: [ID!]!+}++"""+A subset of repository info.+"""+interface RepositoryInfo @docsCategory(name: "repos") {+ """+ Identifies the date and time when the repository was archived.+ """+ archivedAt: DateTime++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The description of the repository.+ """+ description: String++ """+ The description of the repository rendered to HTML.+ """+ descriptionHTML: HTML!++ """+ Returns how many forks there are of this repository in the whole network.+ """+ forkCount: Int!++ """+ Indicates if the repository has the Discussions feature enabled.+ """+ hasDiscussionsEnabled: Boolean!++ """+ Indicates if the repository has issues feature enabled.+ """+ hasIssuesEnabled: Boolean!++ """+ Indicates if the repository has the Projects feature enabled.+ """+ hasProjectsEnabled: Boolean!++ """+ Indicates if the repository has the pull requests feature enabled.+ """+ hasPullRequestsEnabled: Boolean!++ """+ Indicates if the repository displays a Sponsor button for financial contributions.+ """+ hasSponsorshipsEnabled: Boolean!++ """+ Indicates if the repository has wiki feature enabled.+ """+ hasWikiEnabled: Boolean!++ """+ The repository's URL.+ """+ homepageUrl: URI++ """+ Indicates if the repository is unmaintained.+ """+ isArchived: Boolean!++ """+ Identifies if the repository is a fork.+ """+ isFork: Boolean!++ """+ Indicates if a repository is either owned by an organization, or is a private fork of an organization repository.+ """+ isInOrganization: Boolean!++ """+ Indicates if the repository has been locked or not.+ """+ isLocked: Boolean!++ """+ Identifies if the repository is a mirror.+ """+ isMirror: Boolean!++ """+ Identifies if the repository is private or internal.+ """+ isPrivate: Boolean!++ """+ Identifies if the repository is a template that can be used to generate new repositories.+ """+ isTemplate: Boolean!++ """+ The policy controlling who can create issues in this repository.+ """+ issueCreationPolicy: IssueCreationPolicy++ """+ The license associated with the repository+ """+ licenseInfo: License++ """+ The reason the repository has been locked.+ """+ lockReason: RepositoryLockReason++ """+ The repository's original mirror URL.+ """+ mirrorUrl: URI++ """+ The name of the repository.+ """+ name: String!++ """+ The repository's name with owner.+ """+ nameWithOwner: String!++ """+ The image used to represent this repository in Open Graph data.+ """+ openGraphImageUrl: URI!++ """+ The User owner of the repository.+ """+ owner: RepositoryOwner!++ """+ The policy controlling who can create pull requests in this repository.+ """+ pullRequestCreationPolicy: PullRequestCreationPolicy++ """+ Identifies the date and time when the repository was last pushed to.+ """+ pushedAt: DateTime++ """+ The HTTP path for this repository+ """+ resourcePath: URI!++ """+ A description of the repository, rendered to HTML without any links in it.+ """+ shortDescriptionHTML(+ """+ How many characters to return.+ """+ limit: Int = 200+ ): HTML!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this repository+ """+ url: URI!++ """+ Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar.+ """+ usesCustomOpenGraphImage: Boolean!++ """+ Indicates the repository's visibility level.+ """+ visibility: RepositoryVisibility!+}++"""+Repository interaction limit that applies to this object.+"""+type RepositoryInteractionAbility @docsCategory(name: "repos") {+ """+ The time the currently active limit expires.+ """+ expiresAt: DateTime++ """+ The current limit that is enabled on this object.+ """+ limit: RepositoryInteractionLimit!++ """+ The origin of the currently active interaction limit.+ """+ origin: RepositoryInteractionLimitOrigin!+}++"""+A repository interaction limit.+"""+enum RepositoryInteractionLimit @docsCategory(name: "repos") {+ """+ Users that are not collaborators will not be able to interact with the repository.+ """+ COLLABORATORS_ONLY++ """+ Users that have not previously committed to a repository’s default branch will be unable to interact with the repository.+ """+ CONTRIBUTORS_ONLY++ """+ Users that have recently created their account will be unable to interact with the repository.+ """+ EXISTING_USERS++ """+ No interaction limits are enabled.+ """+ NO_LIMIT+}++"""+The length for a repository interaction limit to be enabled for.+"""+enum RepositoryInteractionLimitExpiry @docsCategory(name: "repos") {+ """+ The interaction limit will expire after 1 day.+ """+ ONE_DAY++ """+ The interaction limit will expire after 1 month.+ """+ ONE_MONTH++ """+ The interaction limit will expire after 1 week.+ """+ ONE_WEEK++ """+ The interaction limit will expire after 6 months.+ """+ SIX_MONTHS++ """+ The interaction limit will expire after 3 days.+ """+ THREE_DAYS+}++"""+Indicates where an interaction limit is configured.+"""+enum RepositoryInteractionLimitOrigin @docsCategory(name: "repos") {+ """+ A limit that is configured at the organization level.+ """+ ORGANIZATION++ """+ A limit that is configured at the repository level.+ """+ REPOSITORY++ """+ A limit that is configured at the user-wide level.+ """+ USER+}++"""+An invitation for a user to be added to a repository.+"""+type RepositoryInvitation implements Node @docsCategory(name: "repos") {+ """+ The email address that received the invitation.+ """+ email: String++ """+ The Node ID of the RepositoryInvitation object+ """+ id: ID!++ """+ The user who received the invitation.+ """+ invitee: User++ """+ The user who created the invitation.+ """+ inviter: User!++ """+ The permalink for this repository invitation.+ """+ permalink: URI!++ """+ The permission granted on this repository by this invitation.+ """+ permission: RepositoryPermission!++ """+ The Repository the user is invited to.+ """+ repository: RepositoryInfo+}++"""+A list of repository invitations.+"""+type RepositoryInvitationConnection {+ """+ A list of edges.+ """+ edges: [RepositoryInvitationEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryInvitation]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RepositoryInvitationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryInvitation+}++"""+Ordering options for repository invitation connections.+"""+input RepositoryInvitationOrder @docsCategory(name: "repos") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order repository invitations by.+ """+ field: RepositoryInvitationOrderField!+}++"""+Properties by which repository invitation connections can be ordered.+"""+enum RepositoryInvitationOrderField @docsCategory(name: "repos") {+ """+ Order repository invitations by creation time+ """+ CREATED_AT+}++"""+The possible reasons a given repository could be in a locked state.+"""+enum RepositoryLockReason @docsCategory(name: "repos") {+ """+ The repository is locked due to a billing related reason.+ """+ BILLING++ """+ The repository is locked due to a migration.+ """+ MIGRATING++ """+ The repository is locked due to a move.+ """+ MOVING++ """+ The repository is locked due to a rename.+ """+ RENAME++ """+ The repository is locked due to a trade controls related reason.+ """+ TRADE_RESTRICTION++ """+ The repository is locked due to an ownership transfer.+ """+ TRANSFERRING_OWNERSHIP+}++"""+A GitHub Enterprise Importer (GEI) repository migration.+"""+type RepositoryMigration implements Migration & Node @docsCategory(name: "migrations") {+ """+ The migration flag to continue on error.+ """+ continueOnError: Boolean!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: String++ """+ The reason the migration failed.+ """+ failureReason: String++ """+ The Node ID of the RepositoryMigration object+ """+ id: ID!++ """+ The URL for the migration log (expires 1 day after migration completes).+ """+ migrationLogUrl: URI++ """+ The migration source.+ """+ migrationSource: MigrationSource!++ """+ The target repository name.+ """+ repositoryName: String!++ """+ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`.+ """+ sourceUrl: URI!++ """+ The migration state.+ """+ state: MigrationState!++ """+ The number of warnings encountered for this migration. To review the warnings,+ check the [Migration Log](https://docs.github.com/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/accessing-your-migration-logs-for-github-enterprise-importer).+ """+ warningsCount: Int!+}++"""+A list of migrations.+"""+type RepositoryMigrationConnection {+ """+ A list of edges.+ """+ edges: [RepositoryMigrationEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryMigration]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a repository migration.+"""+type RepositoryMigrationEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryMigration+}++"""+Ordering options for repository migrations.+"""+input RepositoryMigrationOrder @docsCategory(name: "migrations") {+ """+ The ordering direction.+ """+ direction: RepositoryMigrationOrderDirection!++ """+ The field to order repository migrations by.+ """+ field: RepositoryMigrationOrderField!+}++"""+Possible directions in which to order a list of repository migrations when provided an `orderBy` argument.+"""+enum RepositoryMigrationOrderDirection @docsCategory(name: "migrations") {+ """+ Specifies an ascending order for a given `orderBy` argument.+ """+ ASC++ """+ Specifies a descending order for a given `orderBy` argument.+ """+ DESC+}++"""+Properties by which repository migrations can be ordered.+"""+enum RepositoryMigrationOrderField @docsCategory(name: "migrations") {+ """+ Order mannequins why when they were created.+ """+ CREATED_AT+}++"""+Parameters to be used for the repository_name condition+"""+type RepositoryNameConditionTarget @docsCategory(name: "repos") {+ """+ Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.+ """+ exclude: [String!]!++ """+ Array of repository names or patterns to include. One of these patterns must+ match for the condition to pass. Also accepts `~ALL` to include all repositories.+ """+ include: [String!]!++ """+ Target changes that match these patterns will be prevented except by those with bypass permissions.+ """+ protected: Boolean!+}++"""+Parameters to be used for the repository_name condition+"""+input RepositoryNameConditionTargetInput @docsCategory(name: "repos") {+ """+ Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.+ """+ exclude: [String!]!++ """+ Array of repository names or patterns to include. One of these patterns must+ match for the condition to pass. Also accepts `~ALL` to include all repositories.+ """+ include: [String!]!++ """+ Target changes that match these patterns will be prevented except by those with bypass permissions.+ """+ protected: Boolean+}++"""+Represents a object that belongs to a repository.+"""+interface RepositoryNode @docsCategory(name: "repos") {+ """+ The repository associated with this node.+ """+ repository: Repository!+}++"""+Ordering options for repository connections+"""+input RepositoryOrder @docsCategory(name: "repos") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order repositories by.+ """+ field: RepositoryOrderField!+}++"""+Properties by which repository connections can be ordered.+"""+enum RepositoryOrderField @docsCategory(name: "repos") {+ """+ Order repositories by creation time+ """+ CREATED_AT++ """+ Order repositories by name+ """+ NAME++ """+ Order repositories by push time+ """+ PUSHED_AT++ """+ Order repositories by number of stargazers+ """+ STARGAZERS++ """+ Order repositories by update time+ """+ UPDATED_AT+}++"""+Represents an owner of a Repository.+"""+interface RepositoryOwner @docsCategory(name: "repos") {+ """+ A URL pointing to the owner's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ The Node ID of the RepositoryOwner object+ """+ id: ID!++ """+ The username used to login.+ """+ login: String!++ """+ A list of repositories that the user owns.+ """+ repositories(+ """+ Array of viewer's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ current viewer owns.+ """+ affiliations: [RepositoryAffiliation]++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ If non-null, filters repositories according to whether they have issues enabled+ """+ hasIssuesEnabled: Boolean++ """+ If non-null, filters repositories according to whether they are archived and not maintained+ """+ isArchived: Boolean++ """+ If non-null, filters repositories according to whether they are forks of another repository+ """+ isFork: Boolean++ """+ If non-null, filters repositories according to whether they have been locked+ """+ isLocked: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder++ """+ Array of owner's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ organization or user being viewed owns.+ """+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]++ """+ If non-null, filters repositories according to privacy. Internal+ repositories are considered private; consider using the visibility argument+ if only internal repositories are needed. Cannot be combined with the+ visibility argument.+ """+ privacy: RepositoryPrivacy++ """+ If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.+ """+ visibility: RepositoryVisibility+ ): RepositoryConnection!++ """+ Find Repository.+ """+ repository(+ """+ Follow repository renames. If disabled, a repository referenced by its old name will return an error.+ """+ followRenames: Boolean = true++ """+ Name of Repository to find.+ """+ name: String!+ ): Repository++ """+ The HTTP URL for the owner.+ """+ resourcePath: URI!++ """+ The HTTP URL for the owner.+ """+ url: URI!+}++"""+The access level to a repository+"""+enum RepositoryPermission @docsCategory(name: "repos") {+ """+ Can read, clone, and push to this repository. Can also manage issues, pull+ requests, and repository settings, including adding collaborators+ """+ ADMIN++ """+ Can read, clone, and push to this repository. They can also manage issues, pull requests, and some repository settings+ """+ MAINTAIN++ """+ Can read and clone this repository. Can also open and comment on issues and pull requests+ """+ READ++ """+ Can read and clone this repository. Can also manage issues and pull requests+ """+ TRIAGE++ """+ Can read and clone this repository. Can also manage issues and pull requests, plus additional triage abilities+ """+ TRIAGE_PLUS++ """+ Can read, clone, and push to this repository. Can also manage issues and pull requests+ """+ WRITE+}++"""+Information about the availability of features and limits for a repository based on its billing plan.+"""+type RepositoryPlanFeatures @docsCategory(name: "repos") {+ """+ Whether reviews can be automatically requested and enforced with a CODEOWNERS file+ """+ codeowners: Boolean!++ """+ Whether pull requests can be created as or converted to draft+ """+ draftPullRequests: Boolean!++ """+ Maximum number of users that can be assigned to an issue or pull request+ """+ maximumAssignees: Int!++ """+ Maximum number of manually-requested reviews on a pull request+ """+ maximumManualReviewRequests: Int!++ """+ Whether teams can be requested to review pull requests+ """+ teamReviewRequests: Boolean!+}++"""+The privacy of a repository+"""+enum RepositoryPrivacy @docsCategory(name: "repos") {+ """+ Private+ """+ PRIVATE++ """+ Public+ """+ PUBLIC+}++"""+Parameters to be used for the repository_property condition+"""+type RepositoryPropertyConditionTarget @docsCategory(name: "repos") {+ """+ Array of repository properties that must not match.+ """+ exclude: [PropertyTargetDefinition!]!++ """+ Array of repository properties that must match+ """+ include: [PropertyTargetDefinition!]!+}++"""+Parameters to be used for the repository_property condition+"""+input RepositoryPropertyConditionTargetInput @docsCategory(name: "repos") {+ """+ Array of repository properties that must not match.+ """+ exclude: [PropertyTargetDefinitionInput!]!++ """+ Array of repository properties that must match+ """+ include: [PropertyTargetDefinitionInput!]!+}++"""+A repository rule.+"""+type RepositoryRule implements Node @docsCategory(name: "repos") {+ """+ The Node ID of the RepositoryRule object+ """+ id: ID!++ """+ The parameters for this rule.+ """+ parameters: RuleParameters++ """+ The repository ruleset associated with this rule configuration+ """+ repositoryRuleset: RepositoryRuleset++ """+ The type of rule.+ """+ type: RepositoryRuleType!+}++"""+Set of conditions that determine if a ruleset will evaluate+"""+type RepositoryRuleConditions @docsCategory(name: "repos") {+ """+ Configuration for the organization_property condition+ """+ organizationProperty: OrganizationPropertyConditionTarget++ """+ Configuration for the ref_name condition+ """+ refName: RefNameConditionTarget++ """+ Configuration for the repository_id condition+ """+ repositoryId: RepositoryIdConditionTarget++ """+ Configuration for the repository_name condition+ """+ repositoryName: RepositoryNameConditionTarget++ """+ Configuration for the repository_property condition+ """+ repositoryProperty: RepositoryPropertyConditionTarget+}++"""+Specifies the conditions required for a ruleset to evaluate+"""+input RepositoryRuleConditionsInput @docsCategory(name: "repos") {+ """+ Configuration for the organization_property condition+ """+ organizationProperty: OrganizationPropertyConditionTargetInput++ """+ Configuration for the ref_name condition+ """+ refName: RefNameConditionTargetInput++ """+ Configuration for the repository_id condition+ """+ repositoryId: RepositoryIdConditionTargetInput++ """+ Configuration for the repository_name condition+ """+ repositoryName: RepositoryNameConditionTargetInput++ """+ Configuration for the repository_property condition+ """+ repositoryProperty: RepositoryPropertyConditionTargetInput+}++"""+The connection type for RepositoryRule.+"""+type RepositoryRuleConnection {+ """+ A list of edges.+ """+ edges: [RepositoryRuleEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryRule]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RepositoryRuleEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryRule+}++"""+Specifies the attributes for a new or updated rule.+"""+input RepositoryRuleInput @docsCategory(name: "repos") {+ """+ Optional ID of this rule when updating+ """+ id: ID @possibleTypes(concreteTypes: ["RepositoryRule"])++ """+ The parameters for the rule.+ """+ parameters: RuleParametersInput++ """+ The type of rule to create.+ """+ type: RepositoryRuleType!+}++"""+Ordering options for repository rules.+"""+input RepositoryRuleOrder @docsCategory(name: "repos") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order repository rules by.+ """+ field: RepositoryRuleOrderField!+}++"""+Properties by which repository rule connections can be ordered.+"""+enum RepositoryRuleOrderField @docsCategory(name: "repos") {+ """+ Order repository rules by created time+ """+ CREATED_AT++ """+ Order repository rules by type+ """+ TYPE++ """+ Order repository rules by updated time+ """+ UPDATED_AT+}++"""+The rule types supported in rulesets+"""+enum RepositoryRuleType {+ """+ Authorization+ """+ AUTHORIZATION++ """+ Branch name pattern+ """+ BRANCH_NAME_PATTERN++ """+ Enforce minimum line coverage thresholds on pull requests. This rule evaluates+ uploaded coverage data but does not wait for coverage uploads. To ensure+ coverage is evaluated before merging, make each status check associated with a+ coverage upload a required status check.+ """+ CODE_COVERAGE++ """+ Choose which severity levels of code quality results should block pull request+ merges. When configured, a code quality analysis must be done on the pull+ request before the changes can be merged.+ """+ CODE_QUALITY++ """+ Choose which tools must provide code scanning results before the reference is+ updated. When configured, code scanning must be enabled and have results for+ both the commit and the reference being updated.+ """+ CODE_SCANNING++ """+ Committer email pattern+ """+ COMMITTER_EMAIL_PATTERN++ """+ Commit author email pattern+ """+ COMMIT_AUTHOR_EMAIL_PATTERN++ """+ Commit message pattern+ """+ COMMIT_MESSAGE_PATTERN++ """+ Request Copilot code review for new pull requests automatically if the author+ has access to Copilot code review and their premium requests quota has not+ reached the limit.+ """+ COPILOT_CODE_REVIEW++ """+ Only allow users with bypass permission to create matching refs.+ """+ CREATION++ """+ Only allow users with bypass permissions to delete matching refs.+ """+ DELETION++ """+ Prevent commits that include files with specified file extensions from being pushed to the commit graph.+ """+ FILE_EXTENSION_RESTRICTION++ """+ Prevent commits that include changes in specified file and folder paths from+ being pushed to the commit graph. This includes absolute paths that contain file names.+ """+ FILE_PATH_RESTRICTION++ """+ Enforce any added or changed dependencies to comply with the organization's license policy.+ """+ LICENSE_COMPLIANCE_SCANNING++ """+ Branch is read-only. Users cannot push to the branch.+ """+ LOCK_BRANCH++ """+ Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.+ """+ MAX_FILE_PATH_LENGTH++ """+ Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.+ """+ MAX_FILE_SIZE++ """+ Max ref updates+ """+ MAX_REF_UPDATES++ """+ Merges must be performed via a merge queue.+ """+ MERGE_QUEUE++ """+ Merge queue locked ref+ """+ MERGE_QUEUE_LOCKED_REF++ """+ Prevent users with push access from force pushing to refs.+ """+ NON_FAST_FORWARD++ """+ Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.+ """+ PULL_REQUEST++ """+ Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.+ """+ REQUIRED_DEPLOYMENTS++ """+ Prevent merge commits from being pushed to matching refs.+ """+ REQUIRED_LINEAR_HISTORY++ """+ When enabled, all conversations on code must be resolved before a pull request+ can be merged into a branch that matches this rule.+ """+ REQUIRED_REVIEW_THREAD_RESOLUTION++ """+ Commits pushed to matching refs must have verified signatures.+ """+ REQUIRED_SIGNATURES++ """+ Choose which status checks must pass before the ref is updated. When enabled,+ commits must first be pushed to another ref where the checks pass.+ """+ REQUIRED_STATUS_CHECKS++ """+ Require all commits be made to a non-target branch and submitted via a pull+ request and required workflow checks to pass before they can be merged.+ """+ REQUIRED_WORKFLOW_STATUS_CHECKS++ """+ Secret scanning+ """+ SECRET_SCANNING++ """+ Tag+ """+ TAG++ """+ Tag name pattern+ """+ TAG_NAME_PATTERN++ """+ Only allow users with bypass permission to update matching refs.+ """+ UPDATE++ """+ Require all changes made to a targeted branch to pass the specified workflows before they can be merged.+ """+ WORKFLOWS++ """+ Workflow files cannot be modified.+ """+ WORKFLOW_UPDATES+}++"""+A repository ruleset.+"""+type RepositoryRuleset implements Node @docsCategory(name: "repos") {+ """+ The actors that can bypass this ruleset+ """+ bypassActors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): RepositoryRulesetBypassActorConnection++ """+ The set of conditions that must evaluate to true for this ruleset to apply+ """+ conditions: RepositoryRuleConditions!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The enforcement level of this ruleset+ """+ enforcement: RuleEnforcement!++ """+ The Node ID of the RepositoryRuleset object+ """+ id: ID!++ """+ Name of the ruleset.+ """+ name: String!++ """+ List of rules.+ """+ rules(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ The type of rule.+ """+ type: RepositoryRuleType+ ): RepositoryRuleConnection++ """+ Source of ruleset.+ """+ source: RuleSource!++ """+ Target of the ruleset.+ """+ target: RepositoryRulesetTarget++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+A team, app or user that has the ability to bypass rules defined on a ruleset+"""+type RepositoryRulesetBypassActor implements Node @docsCategory(name: "repos") {+ """+ The actor that can bypass rules.+ """+ actor: BypassActor++ """+ The mode for the bypass actor+ """+ bypassMode: RepositoryRulesetBypassActorBypassMode++ """+ This actor represents the ability for a deploy key to bypass+ """+ deployKey: Boolean!++ """+ This actor represents the ability for an enterprise owner to bypass+ """+ enterpriseOwner: Boolean!++ """+ This actor represents the ability for an enterprise role to bypass+ """+ enterpriseRole: Boolean!++ """+ If the actor is an enterprise role, the enterprise role's ID that can bypass+ """+ enterpriseRoleDatabaseId: BigInt++ """+ The Node ID of the RepositoryRulesetBypassActor object+ """+ id: ID!++ """+ This actor represents the ability for an organization owner to bypass+ """+ organizationAdmin: Boolean!++ """+ If the actor is a repository role, the repository role's ID that can bypass+ """+ repositoryRoleDatabaseId: Int++ """+ If the actor is a repository role, the repository role's name that can bypass+ """+ repositoryRoleName: String++ """+ Identifies the ruleset associated with the allowed actor+ """+ repositoryRuleset: RepositoryRuleset+}++"""+The bypass mode for a specific actor on a ruleset.+"""+enum RepositoryRulesetBypassActorBypassMode @docsCategory(name: "repos") {+ """+ The actor can always bypass rules+ """+ ALWAYS++ """+ The actor is exempt from rules without generating a pass / fail result+ """+ EXEMPT++ """+ The actor can only bypass rules via a pull request+ """+ PULL_REQUEST+}++"""+The connection type for RepositoryRulesetBypassActor.+"""+type RepositoryRulesetBypassActorConnection {+ """+ A list of edges.+ """+ edges: [RepositoryRulesetBypassActorEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryRulesetBypassActor]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RepositoryRulesetBypassActorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryRulesetBypassActor+}++"""+Specifies the attributes for a new or updated ruleset bypass actor. Exactly one+of `actor_id`, `repository_role_database_id`, `organization_admin`,+`enterprise_owner`, `enterprise_role_database_id`, or `deploy_key` should be specified.+"""+input RepositoryRulesetBypassActorInput @docsCategory(name: "repos") {+ """+ For Team, Integration and User bypasses, the Team, Integration, or User ID+ """+ actorId: ID++ """+ The bypass mode for this actor.+ """+ bypassMode: RepositoryRulesetBypassActorBypassMode!++ """+ For deploy key bypasses, true. Can only use ALWAYS as the bypass mode+ """+ deployKey: Boolean++ """+ For enterprise owner bypasses, true+ """+ enterpriseOwner: Boolean++ """+ For enterprise role bypasses, true. NOTE: This bypass actor is in beta.+ """+ enterpriseRole: Boolean @deprecated(reason: "Use enterpriseRoleDatabaseId.")++ """+ For enterprise role bypasses, the enterprise role database ID. NOTE: This bypass actor is in beta.+ """+ enterpriseRoleDatabaseId: BigInt++ """+ For organization owner bypasses, true+ """+ organizationAdmin: Boolean++ """+ For role bypasses, the role database ID+ """+ repositoryRoleDatabaseId: Int+}++"""+The connection type for RepositoryRuleset.+"""+type RepositoryRulesetConnection {+ """+ A list of edges.+ """+ edges: [RepositoryRulesetEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryRuleset]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RepositoryRulesetEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryRuleset+}++"""+The targets supported for rulesets.+"""+enum RepositoryRulesetTarget @docsCategory(name: "repos") {+ """+ Branch+ """+ BRANCH++ """+ Push+ """+ PUSH++ """+ repository+ """+ REPOSITORY++ """+ Tag+ """+ TAG+}++"""+The possible filters for suggested actors in a repository+"""+enum RepositorySuggestedActorFilter @docsCategory(name: "repos") {+ """+ Actors that can be assigned to issues and pull requests+ """+ CAN_BE_ASSIGNED++ """+ Actors that can be the author of issues and pull requests+ """+ CAN_BE_AUTHOR+}++"""+A repository-topic connects a repository to a topic.+"""+type RepositoryTopic implements Node & UniformResourceLocatable @docsCategory(name: "repos") {+ """+ The Node ID of the RepositoryTopic object+ """+ id: ID!++ """+ The HTTP path for this repository-topic.+ """+ resourcePath: URI!++ """+ The topic.+ """+ topic: Topic!++ """+ The HTTP URL for this repository-topic.+ """+ url: URI!+}++"""+The connection type for RepositoryTopic.+"""+type RepositoryTopicConnection {+ """+ A list of edges.+ """+ edges: [RepositoryTopicEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryTopic]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RepositoryTopicEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryTopic+}++"""+The repository's visibility level.+"""+enum RepositoryVisibility @docsCategory(name: "repos") {+ """+ The repository is visible only to users in the same enterprise.+ """+ INTERNAL++ """+ The repository is visible only to those with explicit access.+ """+ PRIVATE++ """+ The repository is visible to everyone.+ """+ PUBLIC+}++"""+Audit log entry for a repository_visibility_change.disable event.+"""+type RepositoryVisibilityChangeDisableAuditEntry implements AuditEntry &+ EnterpriseAuditEntryData &+ Node &+ OrganizationAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the RepositoryVisibilityChangeDisableAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a repository_visibility_change.enable event.+"""+type RepositoryVisibilityChangeEnableAuditEntry implements AuditEntry &+ EnterpriseAuditEntryData &+ Node &+ OrganizationAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for this enterprise.+ """+ enterpriseResourcePath: URI++ """+ The slug of the enterprise.+ """+ enterpriseSlug: String++ """+ The HTTP URL for this enterprise.+ """+ enterpriseUrl: URI++ """+ The Node ID of the RepositoryVisibilityChangeEnableAuditEntry object+ """+ id: ID!++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+A Dependabot alert for a repository with a dependency affected by a security vulnerability.+"""+type RepositoryVulnerabilityAlert implements Node & RepositoryNode @docsCategory(name: "dependabot") {+ """+ When was the alert auto-dismissed?+ """+ autoDismissedAt: DateTime++ """+ When was the alert created?+ """+ createdAt: DateTime!++ """+ The associated Dependabot update+ """+ dependabotUpdate: DependabotUpdate++ """+ The relationship of an alert's dependency.+ """+ dependencyRelationship: RepositoryVulnerabilityAlertDependencyRelationship++ """+ The scope of an alert's dependency+ """+ dependencyScope: RepositoryVulnerabilityAlertDependencyScope++ """+ Comment explaining the reason the alert was dismissed+ """+ dismissComment: String++ """+ The reason the alert was dismissed+ """+ dismissReason: String++ """+ When was the alert dismissed?+ """+ dismissedAt: DateTime++ """+ The user who dismissed the alert+ """+ dismisser: User++ """+ When was the alert fixed?+ """+ fixedAt: DateTime++ """+ The Node ID of the RepositoryVulnerabilityAlert object+ """+ id: ID!++ """+ Identifies the alert number.+ """+ number: Int!++ """+ The associated repository+ """+ repository: Repository!++ """+ The associated security advisory+ """+ securityAdvisory: SecurityAdvisory++ """+ The associated security vulnerability+ """+ securityVulnerability: SecurityVulnerability++ """+ Identifies the state of the alert.+ """+ state: RepositoryVulnerabilityAlertState!++ """+ The vulnerable manifest filename+ """+ vulnerableManifestFilename: String!++ """+ The vulnerable manifest path+ """+ vulnerableManifestPath: String!++ """+ The vulnerable requirements+ """+ vulnerableRequirements: String+}++"""+The connection type for RepositoryVulnerabilityAlert.+"""+type RepositoryVulnerabilityAlertConnection {+ """+ A list of edges.+ """+ edges: [RepositoryVulnerabilityAlertEdge]++ """+ A list of nodes.+ """+ nodes: [RepositoryVulnerabilityAlert]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+The possible relationships of an alert's dependency.+"""+enum RepositoryVulnerabilityAlertDependencyRelationship @docsCategory(name: "dependabot") {+ """+ A direct dependency of your project+ """+ DIRECT++ """+ The relationship could not be determined+ """+ INCONCLUSIVE++ """+ A transitive dependency of your project+ """+ TRANSITIVE++ """+ The relationship is unknown+ """+ UNKNOWN+}++"""+The possible scopes of an alert's dependency.+"""+enum RepositoryVulnerabilityAlertDependencyScope @docsCategory(name: "dependabot") {+ """+ A dependency that is only used in development+ """+ DEVELOPMENT++ """+ A dependency that is leveraged during application runtime+ """+ RUNTIME+}++"""+An edge in a connection.+"""+type RepositoryVulnerabilityAlertEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RepositoryVulnerabilityAlert+}++"""+The possible states of an alert+"""+enum RepositoryVulnerabilityAlertState @docsCategory(name: "dependabot") {+ """+ An alert that has been automatically closed by Dependabot.+ """+ AUTO_DISMISSED++ """+ An alert that has been manually closed by a user.+ """+ DISMISSED++ """+ An alert that has been resolved by a code change.+ """+ FIXED++ """+ An alert that is still open.+ """+ OPEN+}++"""+Autogenerated input type of ReprioritizeSubIssue+"""+input ReprioritizeSubIssueInput {+ """+ The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).+ """+ afterId: ID @possibleTypes(concreteTypes: ["Issue"])++ """+ The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).+ """+ beforeId: ID @possibleTypes(concreteTypes: ["Issue"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the parent issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The id of the sub-issue to reprioritize.+ """+ subIssueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of ReprioritizeSubIssue.+"""+type ReprioritizeSubIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The parent issue that the sub-issue was reprioritized in.+ """+ issue: Issue+}++"""+Autogenerated input type of RequestReviewsByLogin+"""+input RequestReviewsByLoginInput {+ """+ The logins of the bots to request reviews from, including the [bot] suffix (e.g., 'copilot-pull-request-reviewer[bot]').+ """+ botLogins: [String!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pull request to modify.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The slugs of the teams to request reviews from (format: 'org/team-slug').+ """+ teamSlugs: [String!]++ """+ Add users to the set rather than replace.+ """+ union: Boolean = false++ """+ The login strings of the users to request reviews from.+ """+ userLogins: [String!]+}++"""+Autogenerated return type of RequestReviewsByLogin.+"""+type RequestReviewsByLoginPayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that is getting requests.+ """+ pullRequest: PullRequest++ """+ The edge from the pull request to the requested reviewers.+ """+ requestedReviewersEdge: UserEdge+}++"""+Autogenerated input type of RequestReviews+"""+input RequestReviewsInput {+ """+ The Node IDs of the bot to request.+ """+ botIds: [ID!] @possibleTypes(concreteTypes: ["Bot"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pull request to modify.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The Node IDs of the team to request.+ """+ teamIds: [ID!] @possibleTypes(concreteTypes: ["EnterpriseTeam", "Team"], abstractType: "TeamReviewRequestable")++ """+ Add users to the set rather than replace.+ """+ union: Boolean = false++ """+ The Node IDs of the user to request.+ """+ userIds: [ID!] @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of RequestReviews.+"""+type RequestReviewsPayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that is getting requests.+ """+ pullRequest: PullRequest++ """+ The edge from the pull request to the requested reviewers.+ """+ requestedReviewersEdge: UserEdge+}++"""+The possible states that can be requested when creating a check run.+"""+enum RequestableCheckStatusState @docsCategory(name: "checks") {+ """+ The check suite or run has been completed.+ """+ COMPLETED++ """+ The check suite or run is in progress.+ """+ IN_PROGRESS++ """+ The check suite or run is in pending state.+ """+ PENDING++ """+ The check suite or run has been queued.+ """+ QUEUED++ """+ The check suite or run is in waiting state.+ """+ WAITING+}++"""+Types that can be requested reviewers.+"""+union RequestedReviewer @docsCategory(name: "pulls") = Bot | EnterpriseTeam | Mannequin | Team | User++"""+The connection type for RequestedReviewer.+"""+type RequestedReviewerConnection {+ """+ A list of edges.+ """+ edges: [RequestedReviewerEdge]++ """+ A list of nodes.+ """+ nodes: [RequestedReviewer]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type RequestedReviewerEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: RequestedReviewer+}++"""+Represents a type that can be required by a pull request for merging.+"""+interface RequirableByPullRequest @docsCategory(name: "pulls") {+ """+ Whether this is required to pass before merging for a specific pull request.+ """+ isRequired(+ """+ The id of the pull request this is required for+ """+ pullRequestId: ID++ """+ The number of the pull request this is required for+ """+ pullRequestNumber: Int+ ): Boolean!+}++"""+Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.+"""+type RequiredDeploymentsParameters @docsCategory(name: "deployments") {+ """+ The environments that must be successfully deployed to before branches can be merged.+ """+ requiredDeploymentEnvironments: [String!]!+}++"""+Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.+"""+input RequiredDeploymentsParametersInput @docsCategory(name: "deployments") {+ """+ The environments that must be successfully deployed to before branches can be merged.+ """+ requiredDeploymentEnvironments: [String!]!+}++"""+A reviewing team, and file patterns describing which files they must approve changes to.+"""+type RequiredReviewerConfiguration @docsCategory(name: "pulls") {+ """+ Array of file patterns. Pull requests which change matching files must be+ approved by the specified team. File patterns use fnmatch syntax.+ """+ filePatterns: [String!]!++ """+ Minimum number of approvals required from the specified team. If set to zero,+ the team will be added to the pull request but approval is optional.+ """+ minimumApprovals: Int!++ """+ Node ID of the team which must review changes to matching files.+ """+ reviewerId: ID!+}++"""+A reviewing team, and file patterns describing which files they must approve changes to.+"""+input RequiredReviewerConfigurationInput @docsCategory(name: "pulls") {+ """+ Array of file patterns. Pull requests which change matching files must be+ approved by the specified team. File patterns use fnmatch syntax.+ """+ filePatterns: [String!]!++ """+ Minimum number of approvals required from the specified team. If set to zero,+ the team will be added to the pull request but approval is optional.+ """+ minimumApprovals: Int!++ """+ Node ID of the team which must review changes to matching files.+ """+ reviewerId: ID!+}++"""+Represents a required status check for a protected branch, but not any specific run of that check.+"""+type RequiredStatusCheckDescription @docsCategory(name: "branches") {+ """+ The App that must provide this status in order for it to be accepted.+ """+ app: App++ """+ The name of this status.+ """+ context: String!+}++"""+Specifies the attributes for a new or updated required status check.+"""+input RequiredStatusCheckInput @docsCategory(name: "branches") {+ """+ The ID of the App that must set the status in order for it to be accepted.+ Omit this value to use whichever app has recently been setting this status, or+ use "any" to allow any app to set the status.+ """+ appId: ID++ """+ Status check context that must pass for commits to be accepted to the matching branch.+ """+ context: String!+}++"""+Choose which status checks must pass before the ref is updated. When enabled,+commits must first be pushed to another ref where the checks pass.+"""+type RequiredStatusChecksParameters @docsCategory(name: "branches") {+ """+ Allow repositories and branches to be created if a check would otherwise prohibit it.+ """+ doNotEnforceOnCreate: Boolean!++ """+ Status checks that are required.+ """+ requiredStatusChecks: [StatusCheckConfiguration!]!++ """+ Whether pull requests targeting a matching branch must be tested with the+ latest code. This setting will not take effect unless at least one status+ check is enabled.+ """+ strictRequiredStatusChecksPolicy: Boolean!+}++"""+Choose which status checks must pass before the ref is updated. When enabled,+commits must first be pushed to another ref where the checks pass.+"""+input RequiredStatusChecksParametersInput @docsCategory(name: "branches") {+ """+ Allow repositories and branches to be created if a check would otherwise prohibit it.+ """+ doNotEnforceOnCreate: Boolean++ """+ Status checks that are required.+ """+ requiredStatusChecks: [StatusCheckConfigurationInput!]!++ """+ Whether pull requests targeting a matching branch must be tested with the+ latest code. This setting will not take effect unless at least one status+ check is enabled.+ """+ strictRequiredStatusChecksPolicy: Boolean!+}++"""+Autogenerated input type of RerequestCheckSuite+"""+input RerequestCheckSuiteInput {+ """+ The Node ID of the check suite.+ """+ checkSuiteId: ID! @possibleTypes(concreteTypes: ["CheckSuite"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of RerequestCheckSuite.+"""+type RerequestCheckSuitePayload {+ """+ The requested check suite.+ """+ checkSuite: CheckSuite++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of RerequestReviews+"""+input RerequestReviewsInput {+ """+ The Node IDs of the bots to rerequest.+ """+ botIds: [ID!] @possibleTypes(concreteTypes: ["Bot"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pull request to modify.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The Node IDs of the teams to rerequest.+ """+ teamIds: [ID!] @possibleTypes(concreteTypes: ["EnterpriseTeam", "Team"], abstractType: "TeamReviewRequestable")++ """+ The Node IDs of the users to rerequest.+ """+ userIds: [ID!] @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of RerequestReviews.+"""+type RerequestReviewsPayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that is getting requests.+ """+ pullRequest: PullRequest++ """+ The edge from the pull request to the requested reviewers.+ """+ requestedReviewersEdge: UserEdge+}++"""+Autogenerated input type of ResolveReviewThread+"""+input ResolveReviewThreadInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The reason a Copilot code review thread was resolved.+ """+ resolutionReason: PullRequestReviewThreadResolutionReason++ """+ The ID of the thread to resolve+ """+ threadId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewThread"])+}++"""+Autogenerated return type of ResolveReviewThread.+"""+type ResolveReviewThreadPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The thread to resolve.+ """+ thread: PullRequestReviewThread+}++"""+Represents a private contribution a user made on GitHub.+"""+type RestrictedContribution implements Contribution @docsCategory(name: "users") {+ """+ Whether this contribution is associated with a record you do not have access to. For+ example, your own 'first issue' contribution may have been made on a repository you can no+ longer access.+ """+ isRestricted: Boolean!++ """+ When this contribution was made.+ """+ occurredAt: DateTime!++ """+ The HTTP path for this contribution.+ """+ resourcePath: URI!++ """+ The HTTP URL for this contribution.+ """+ url: URI!++ """+ The user who made this contribution.+ """+ user: User!+}++"""+Autogenerated input type of RetireSponsorsTier+"""+input RetireSponsorsTierInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the published tier to retire.+ """+ tierId: ID! @possibleTypes(concreteTypes: ["SponsorsTier"])+}++"""+Autogenerated return type of RetireSponsorsTier.+"""+type RetireSponsorsTierPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The tier that was retired.+ """+ sponsorsTier: SponsorsTier+}++"""+Autogenerated input type of RevertPullRequest+"""+input RevertPullRequestInput {+ """+ The description of the revert pull request.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Indicates whether the revert pull request should be a draft.+ """+ draft: Boolean = false++ """+ The ID of the pull request to revert.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The title of the revert pull request.+ """+ title: String+}++"""+Autogenerated return type of RevertPullRequest.+"""+type RevertPullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that was reverted.+ """+ pullRequest: PullRequest++ """+ The new pull request that reverts the input pull request.+ """+ revertPullRequest: PullRequest+}++"""+A user, team, or app who has the ability to dismiss a review on a protected branch.+"""+type ReviewDismissalAllowance implements Node @docsCategory(name: "branches") {+ """+ The actor that can dismiss.+ """+ actor: ReviewDismissalAllowanceActor++ """+ Identifies the branch protection rule associated with the allowed user, team, or app.+ """+ branchProtectionRule: BranchProtectionRule++ """+ The Node ID of the ReviewDismissalAllowance object+ """+ id: ID!+}++"""+Types that can be an actor.+"""+union ReviewDismissalAllowanceActor @docsCategory(name: "branches") = App | Team | User++"""+The connection type for ReviewDismissalAllowance.+"""+type ReviewDismissalAllowanceConnection {+ """+ A list of edges.+ """+ edges: [ReviewDismissalAllowanceEdge]++ """+ A list of nodes.+ """+ nodes: [ReviewDismissalAllowance]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ReviewDismissalAllowanceEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ReviewDismissalAllowance+}++"""+Represents a 'review_dismissed' event on a given issue or pull request.+"""+type ReviewDismissedEvent implements Node & UniformResourceLocatable @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ Identifies the optional message associated with the 'review_dismissed' event.+ """+ dismissalMessage: String++ """+ Identifies the optional message associated with the event, rendered to HTML.+ """+ dismissalMessageHTML: String++ """+ The Node ID of the ReviewDismissedEvent object+ """+ id: ID!++ """+ Identifies the previous state of the review with the 'review_dismissed' event.+ """+ previousReviewState: PullRequestReviewState!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ Identifies the commit which caused the review to become stale.+ """+ pullRequestCommit: PullRequestCommit++ """+ The HTTP path for this review dismissed event.+ """+ resourcePath: URI!++ """+ Identifies the review associated with the 'review_dismissed' event.+ """+ review: PullRequestReview++ """+ The HTTP URL for this review dismissed event.+ """+ url: URI!+}++"""+A request for a user to review a pull request.+"""+type ReviewRequest implements Node @docsCategory(name: "pulls") {+ """+ Whether this request was created for a code owner+ """+ asCodeOwner: Boolean!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the ReviewRequest object+ """+ id: ID!++ """+ Identifies the pull request associated with this review request.+ """+ pullRequest: PullRequest!++ """+ The reviewer that is requested.+ """+ requestedReviewer: RequestedReviewer+}++"""+The connection type for ReviewRequest.+"""+type ReviewRequestConnection {+ """+ A list of edges.+ """+ edges: [ReviewRequestEdge]++ """+ A list of nodes.+ """+ nodes: [ReviewRequest]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type ReviewRequestEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: ReviewRequest+}++"""+Represents an 'review_request_removed' event on a given pull request.+"""+type ReviewRequestRemovedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ReviewRequestRemovedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ Identifies the reviewer whose review request was removed.+ """+ requestedReviewer: RequestedReviewer+}++"""+Represents an 'review_requested' event on a given pull request.+"""+type ReviewRequestedEvent implements Node @docsCategory(name: "pulls") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the ReviewRequestedEvent object+ """+ id: ID!++ """+ PullRequest referenced by event.+ """+ pullRequest: PullRequest!++ """+ Identifies the reviewer whose review was requested.+ """+ requestedReviewer: RequestedReviewer+}++"""+A hovercard context with a message describing the current code review state of the pull+request.+"""+type ReviewStatusHovercardContext implements HovercardContext @docsCategory(name: "pulls") {+ """+ A string describing this context+ """+ message: String!++ """+ An octicon to accompany this context+ """+ octicon: String!++ """+ The current status of the pull request with respect to code review.+ """+ reviewDecision: PullRequestReviewDecision+}++"""+Autogenerated input type of RevokeEnterpriseOrganizationsMigratorRole+"""+input RevokeEnterpriseOrganizationsMigratorRoleInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise to which all organizations managed by it will be granted the migrator role.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of the user to revoke the migrator role+ """+ login: String!+}++"""+Autogenerated return type of RevokeEnterpriseOrganizationsMigratorRole.+"""+type RevokeEnterpriseOrganizationsMigratorRolePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The organizations that had the migrator role revoked for the given user.+ """+ organizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): OrganizationConnection+}++"""+Autogenerated input type of RevokeMigratorRole+"""+input RevokeMigratorRoleInput {+ """+ The user login or Team slug to revoke the migrator role from.+ """+ actor: String!++ """+ Specifies the type of the actor, can be either USER or TEAM.+ """+ actorType: ActorType!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the organization that the user/team belongs to.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of RevokeMigratorRole.+"""+type RevokeMigratorRolePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Did the operation succeed?+ """+ success: Boolean+}++"""+Possible roles a user may have in relation to an organization.+"""+enum RoleInOrganization @docsCategory(name: "orgs") {+ """+ A user who is a direct member of the organization.+ """+ DIRECT_MEMBER++ """+ A user with full administrative access to the organization.+ """+ OWNER++ """+ A user who is unaffiliated with the organization.+ """+ UNAFFILIATED+}++"""+The level of enforcement for a rule or ruleset.+"""+enum RuleEnforcement @docsCategory(name: "repos") {+ """+ Rules will be enforced+ """+ ACTIVE++ """+ Do not evaluate or enforce rules+ """+ DISABLED++ """+ Allow admins to test rules before enforcing them. Admins can view insights on+ the Rule Insights page (`evaluate` is only available with GitHub Enterprise).+ """+ EVALUATE+}++"""+Types which can be parameters for `RepositoryRule` objects.+"""+union RuleParameters =+ | BranchNamePatternParameters+ | CodeCoverageParameters+ | CodeQualityParameters+ | CodeScanningParameters+ | CommitAuthorEmailPatternParameters+ | CommitMessagePatternParameters+ | CommitterEmailPatternParameters+ | CopilotCodeReviewParameters+ | FileExtensionRestrictionParameters+ | FilePathRestrictionParameters+ | MaxFilePathLengthParameters+ | MaxFileSizeParameters+ | MergeQueueParameters+ | PullRequestParameters+ | RequiredDeploymentsParameters+ | RequiredStatusChecksParameters+ | TagNamePatternParameters+ | UpdateParameters+ | WorkflowsParameters++"""+Specifies the parameters for a `RepositoryRule` object. Only one of the fields should be specified.+"""+input RuleParametersInput {+ """+ Parameters used for the `branch_name_pattern` rule type+ """+ branchNamePattern: BranchNamePatternParametersInput++ """+ Parameters used for the `code_coverage` rule type+ """+ codeCoverage: CodeCoverageParametersInput++ """+ Parameters used for the `code_quality` rule type+ """+ codeQuality: CodeQualityParametersInput++ """+ Parameters used for the `code_scanning` rule type+ """+ codeScanning: CodeScanningParametersInput++ """+ Parameters used for the `commit_author_email_pattern` rule type+ """+ commitAuthorEmailPattern: CommitAuthorEmailPatternParametersInput++ """+ Parameters used for the `commit_message_pattern` rule type+ """+ commitMessagePattern: CommitMessagePatternParametersInput++ """+ Parameters used for the `committer_email_pattern` rule type+ """+ committerEmailPattern: CommitterEmailPatternParametersInput++ """+ Parameters used for the `copilot_code_review` rule type+ """+ copilotCodeReview: CopilotCodeReviewParametersInput++ """+ Parameters used for the `file_extension_restriction` rule type+ """+ fileExtensionRestriction: FileExtensionRestrictionParametersInput++ """+ Parameters used for the `file_path_restriction` rule type+ """+ filePathRestriction: FilePathRestrictionParametersInput++ """+ Parameters used for the `max_file_path_length` rule type+ """+ maxFilePathLength: MaxFilePathLengthParametersInput++ """+ Parameters used for the `max_file_size` rule type+ """+ maxFileSize: MaxFileSizeParametersInput++ """+ Parameters used for the `merge_queue` rule type+ """+ mergeQueue: MergeQueueParametersInput++ """+ Parameters used for the `pull_request` rule type+ """+ pullRequest: PullRequestParametersInput++ """+ Parameters used for the `required_deployments` rule type+ """+ requiredDeployments: RequiredDeploymentsParametersInput++ """+ Parameters used for the `required_status_checks` rule type+ """+ requiredStatusChecks: RequiredStatusChecksParametersInput++ """+ Parameters used for the `tag_name_pattern` rule type+ """+ tagNamePattern: TagNamePatternParametersInput++ """+ Parameters used for the `update` rule type+ """+ update: UpdateParametersInput++ """+ Parameters used for the `workflows` rule type+ """+ workflows: WorkflowsParametersInput+}++"""+Types which can have `RepositoryRule` objects.+"""+union RuleSource @docsCategory(name: "repos") = Enterprise | Organization | Repository++"""+The possible digest algorithms used to sign SAML requests for an identity provider.+"""+enum SamlDigestAlgorithm @docsCategory(name: "enterprise-admin") {+ """+ SHA1+ """+ SHA1++ """+ SHA256+ """+ SHA256++ """+ SHA384+ """+ SHA384++ """+ SHA512+ """+ SHA512+}++"""+The possible signature algorithms used to sign SAML requests for a Identity Provider.+"""+enum SamlSignatureAlgorithm @docsCategory(name: "enterprise-admin") {+ """+ RSA-SHA1+ """+ RSA_SHA1++ """+ RSA-SHA256+ """+ RSA_SHA256++ """+ RSA-SHA384+ """+ RSA_SHA384++ """+ RSA-SHA512+ """+ RSA_SHA512+}++"""+A Saved Reply is text a user can use to reply quickly.+"""+type SavedReply implements Node @docsCategory(name: "users") {+ """+ The body of the saved reply.+ """+ body: String!++ """+ The saved reply body rendered to HTML.+ """+ bodyHTML: HTML!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the SavedReply object+ """+ id: ID!++ """+ The title of the saved reply.+ """+ title: String!++ """+ The user that saved this reply.+ """+ user: Actor+}++"""+The connection type for SavedReply.+"""+type SavedReplyConnection {+ """+ A list of edges.+ """+ edges: [SavedReplyEdge]++ """+ A list of nodes.+ """+ nodes: [SavedReply]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SavedReplyEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SavedReply+}++"""+Ordering options for saved reply connections.+"""+input SavedReplyOrder @docsCategory(name: "users") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order saved replies by.+ """+ field: SavedReplyOrderField!+}++"""+Properties by which saved reply connections can be ordered.+"""+enum SavedReplyOrderField @docsCategory(name: "users") {+ """+ Order saved reply by when they were updated.+ """+ UPDATED_AT+}++"""+The results of a search.+"""+union SearchResultItem @docsCategory(name: "search") =+ | App+ | Discussion+ | Issue+ | MarketplaceListing+ | Organization+ | PullRequest+ | Repository+ | User++"""+A list of results that matched against a search query. Regardless of the number+of matches, a maximum of 1,000 results will be available across all types,+potentially split across many pages.+"""+type SearchResultItemConnection {+ """+ The total number of pieces of code that matched the search query. Regardless+ of the total number of matches, a maximum of 1,000 results will be available+ across all types.+ """+ codeCount: Int!++ """+ The total number of discussions that matched the search query. Regardless of+ the total number of matches, a maximum of 1,000 results will be available+ across all types.+ """+ discussionCount: Int!++ """+ A list of edges.+ """+ edges: [SearchResultItemEdge]++ """+ The total number of issues that matched the search query. Regardless of the+ total number of matches, a maximum of 1,000 results will be available across all types.+ """+ issueCount: Int!++ """+ The type of search that was performed for issues (lexical, semantic, or hybrid)+ """+ issueSearchType: IssueSearchType++ """+ When a semantic or hybrid search falls back to lexical, the reasons why the fallback occurred.+ """+ lexicalFallbackReason: [LexicalFallbackReason!]++ """+ A list of nodes.+ """+ nodes: [SearchResultItem]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ The total number of repositories that matched the search query. Regardless of+ the total number of matches, a maximum of 1,000 results will be available+ across all types.+ """+ repositoryCount: Int!++ """+ The total number of users that matched the search query. Regardless of the+ total number of matches, a maximum of 1,000 results will be available across all types.+ """+ userCount: Int!++ """+ The total number of wiki pages that matched the search query. Regardless of+ the total number of matches, a maximum of 1,000 results will be available+ across all types.+ """+ wikiCount: Int!+}++"""+An edge in a connection.+"""+type SearchResultItemEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SearchResultItem++ """+ Text matches on the result found.+ """+ textMatches: [TextMatch]+}++"""+Represents the individual results of a search.+"""+enum SearchType @docsCategory(name: "search") {+ """+ Returns matching discussions in repositories.+ """+ DISCUSSION++ """+ Returns results matching issues in repositories.+ """+ ISSUE++ """+ Returns results matching issues in repositories.+ """+ ISSUE_ADVANCED++ """+ Returns results matching issues using hybrid (lexical + semantic) search.+ """+ ISSUE_HYBRID++ """+ Returns results matching issues using semantic search.+ """+ ISSUE_SEMANTIC++ """+ Returns results matching repositories.+ """+ REPOSITORY++ """+ Returns results matching users and organizations on GitHub.+ """+ USER+}++"""+A GitHub Security Advisory+"""+type SecurityAdvisory implements Node @docsCategory(name: "security-advisories") {+ """+ The classification of the advisory+ """+ classification: SecurityAdvisoryClassification!++ """+ The Common Vulnerabilities and Exposures ID+ """+ cveId: String++ """+ The CVSS associated with this advisory+ """+ cvss: CVSS!+ @deprecated(+ reason: "`cvss` will be removed. New `cvss_severities` field will now contain both `cvss_v3` and `cvss_v4` properties. Removal on 2025-10-01 UTC."+ )++ """+ The CVSS associated with this advisory+ """+ cvssSeverities: CvssSeverities!++ """+ CWEs associated with this Advisory+ """+ cwes(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CWEConnection!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ This is a long plaintext description of the advisory+ """+ description: String!++ """+ The Exploit Prediction Scoring System+ """+ epss: EPSS++ """+ The GitHub Security Advisory ID+ """+ ghsaId: String!++ """+ When the GitHub Security team reviewed this advisory, which may differ from when GitHub published it+ """+ githubReviewedAt: DateTime++ """+ The Node ID of the SecurityAdvisory object+ """+ id: ID!++ """+ A list of identifiers for this advisory+ """+ identifiers: [SecurityAdvisoryIdentifier!]!++ """+ The permalink for the advisory's dependabot alerts page+ """+ notificationsPermalink: URI++ """+ When NVD published its advisory record, independent of GitHub's publishing timeline+ """+ nvdPublishedAt: DateTime++ """+ The organization that originated the advisory+ """+ origin: String!++ """+ The permalink for the advisory+ """+ permalink: URI++ """+ When GitHub published this advisory+ """+ publishedAt: DateTime!++ """+ A list of references for this advisory+ """+ references: [SecurityAdvisoryReference!]!++ """+ The URL for the associated repository security advisory, if this global advisory is linked to a repository-level advisory.+ """+ repositoryAdvisoryUrl: URI++ """+ The severity of the advisory+ """+ severity: SecurityAdvisorySeverity!++ """+ URL to the upstream source code relevant to the advisory+ """+ sourceCodeLocation: URI++ """+ A short plaintext summary of the advisory+ """+ summary: String!++ """+ When the advisory was last updated+ """+ updatedAt: DateTime!++ """+ Vulnerabilities associated with this Advisory+ """+ vulnerabilities(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ A list of advisory classifications to filter vulnerabilities by.+ """+ classifications: [SecurityAdvisoryClassification!]++ """+ An ecosystem to filter vulnerabilities by.+ """+ ecosystem: SecurityAdvisoryEcosystem++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the returned topics.+ """+ orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}++ """+ A package name to filter vulnerabilities by.+ """+ package: String++ """+ A list of severities to filter vulnerabilities by.+ """+ severities: [SecurityAdvisorySeverity!]+ ): SecurityVulnerabilityConnection!++ """+ When the advisory was withdrawn, if it has been withdrawn+ """+ withdrawnAt: DateTime+}++"""+Classification of the advisory.+"""+enum SecurityAdvisoryClassification @docsCategory(name: "security-advisories") {+ """+ Classification of general advisories.+ """+ GENERAL++ """+ Classification of malware advisories.+ """+ MALWARE+}++"""+The connection type for SecurityAdvisory.+"""+type SecurityAdvisoryConnection {+ """+ A list of edges.+ """+ edges: [SecurityAdvisoryEdge]++ """+ A list of nodes.+ """+ nodes: [SecurityAdvisory]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+The possible ecosystems of a security vulnerability's package.+"""+enum SecurityAdvisoryEcosystem @docsCategory(name: "security-advisories") {+ """+ GitHub Actions+ """+ ACTIONS++ """+ PHP packages hosted at packagist.org+ """+ COMPOSER++ """+ Erlang/Elixir packages hosted at hex.pm+ """+ ERLANG++ """+ Go modules+ """+ GO++ """+ Java artifacts hosted at the Maven central repository+ """+ MAVEN++ """+ JavaScript packages hosted at npmjs.com+ """+ NPM++ """+ .NET packages hosted at the NuGet Gallery+ """+ NUGET++ """+ Python packages hosted at PyPI.org+ """+ PIP++ """+ Dart packages hosted at pub.dev+ """+ PUB++ """+ Ruby gems hosted at RubyGems.org+ """+ RUBYGEMS++ """+ Rust crates+ """+ RUST++ """+ Swift packages+ """+ SWIFT+}++"""+An edge in a connection.+"""+type SecurityAdvisoryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SecurityAdvisory+}++"""+A GitHub Security Advisory Identifier+"""+type SecurityAdvisoryIdentifier @docsCategory(name: "security-advisories") {+ """+ The identifier type, e.g. GHSA, CVE+ """+ type: String!++ """+ The identifier+ """+ value: String!+}++"""+An advisory identifier to filter results on.+"""+input SecurityAdvisoryIdentifierFilter @docsCategory(name: "security-advisories") {+ """+ The identifier type.+ """+ type: SecurityAdvisoryIdentifierType!++ """+ The identifier string. Supports exact or partial matching.+ """+ value: String!+}++"""+Identifier formats available for advisories.+"""+enum SecurityAdvisoryIdentifierType @docsCategory(name: "security-advisories") {+ """+ Common Vulnerabilities and Exposures Identifier.+ """+ CVE++ """+ GitHub Security Advisory ID.+ """+ GHSA+}++"""+Ordering options for security advisory connections+"""+input SecurityAdvisoryOrder @docsCategory(name: "security-advisories") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order security advisories by.+ """+ field: SecurityAdvisoryOrderField!+}++"""+Properties by which security advisory connections can be ordered.+"""+enum SecurityAdvisoryOrderField @docsCategory(name: "security-advisories") {+ """+ Order advisories by EPSS percentage+ """+ EPSS_PERCENTAGE++ """+ Order advisories by EPSS percentile+ """+ EPSS_PERCENTILE++ """+ Order advisories by publication time+ """+ PUBLISHED_AT++ """+ Order advisories by update time+ """+ UPDATED_AT+}++"""+An individual package+"""+type SecurityAdvisoryPackage @docsCategory(name: "security-advisories") {+ """+ The ecosystem the package belongs to, e.g. RUBYGEMS, NPM+ """+ ecosystem: SecurityAdvisoryEcosystem!++ """+ The package name+ """+ name: String!+}++"""+An individual package version+"""+type SecurityAdvisoryPackageVersion @docsCategory(name: "security-advisories") {+ """+ The package name or version+ """+ identifier: String!+}++"""+A GitHub Security Advisory Reference+"""+type SecurityAdvisoryReference @docsCategory(name: "security-advisories") {+ """+ A publicly accessible reference+ """+ url: URI!+}++"""+Severity of the vulnerability.+"""+enum SecurityAdvisorySeverity @docsCategory(name: "security-advisories") {+ """+ Critical.+ """+ CRITICAL++ """+ High.+ """+ HIGH++ """+ Low.+ """+ LOW++ """+ Moderate.+ """+ MODERATE++ """+ Unknown.+ """+ UNKNOWN+}++"""+An individual vulnerability within an Advisory+"""+type SecurityVulnerability @docsCategory(name: "security-advisories") {+ """+ The Advisory associated with this Vulnerability+ """+ advisory: SecurityAdvisory!++ """+ The first version containing a fix for the vulnerability+ """+ firstPatchedVersion: SecurityAdvisoryPackageVersion++ """+ A description of the vulnerable package+ """+ package: SecurityAdvisoryPackage!++ """+ The severity of the vulnerability within this package+ """+ severity: SecurityAdvisorySeverity!++ """+ When the vulnerability was last updated+ """+ updatedAt: DateTime!++ """+ A string that describes the vulnerable package versions.+ This string follows a basic syntax with a few forms.+ + `= 0.2.0` denotes a single vulnerable version.+ + `<= 1.0.8` denotes a version range up to and including the specified version+ + `< 0.1.11` denotes a version range up to, but excluding, the specified version+ + `>= 4.3.0, < 4.3.5` denotes a version range with a known minimum and maximum version.+ + `>= 0.0.1` denotes a version range with a known minimum, but no known maximum+ """+ vulnerableVersionRange: String!+}++"""+The connection type for SecurityVulnerability.+"""+type SecurityVulnerabilityConnection {+ """+ A list of edges.+ """+ edges: [SecurityVulnerabilityEdge]++ """+ A list of nodes.+ """+ nodes: [SecurityVulnerability]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SecurityVulnerabilityEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SecurityVulnerability+}++"""+Ordering options for security vulnerability connections+"""+input SecurityVulnerabilityOrder @docsCategory(name: "security-advisories") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order security vulnerabilities by.+ """+ field: SecurityVulnerabilityOrderField!+}++"""+Properties by which security vulnerability connections can be ordered.+"""+enum SecurityVulnerabilityOrderField @docsCategory(name: "security-advisories") {+ """+ Order vulnerability by update time+ """+ UPDATED_AT+}++"""+Autogenerated input type of SetEnterpriseIdentityProvider+"""+input SetEnterpriseIdentityProviderInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The digest algorithm used to sign SAML requests for the identity provider.+ """+ digestMethod: SamlDigestAlgorithm!++ """+ The ID of the enterprise on which to set an identity provider.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The x509 certificate used by the identity provider to sign assertions and responses.+ """+ idpCertificate: String!++ """+ The Issuer Entity ID for the SAML identity provider+ """+ issuer: String++ """+ The signature algorithm used to sign SAML requests for the identity provider.+ """+ signatureMethod: SamlSignatureAlgorithm!++ """+ The URL endpoint for the identity provider's SAML SSO.+ """+ ssoUrl: URI!+}++"""+Autogenerated return type of SetEnterpriseIdentityProvider.+"""+type SetEnterpriseIdentityProviderPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The identity provider for the enterprise.+ """+ identityProvider: EnterpriseIdentityProvider+}++"""+Autogenerated input type of SetIssueFieldValue+"""+input SetIssueFieldValueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue fields to set on the issue.+ """+ issueFields: [IssueFieldCreateOrUpdateInput!]!++ """+ The ID of the Issue to set the field value on.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of SetIssueFieldValue.+"""+type SetIssueFieldValuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue where the field values were set.+ """+ issue: Issue++ """+ The issue field values that were created or updated.+ """+ issueFieldValues: [IssueFieldValue!]+}++"""+Autogenerated input type of SetOrganizationInteractionLimit+"""+input SetOrganizationInteractionLimitInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ When this limit should expire.+ """+ expiry: RepositoryInteractionLimitExpiry++ """+ The limit to set.+ """+ limit: RepositoryInteractionLimit!++ """+ The ID of the organization to set a limit for.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of SetOrganizationInteractionLimit.+"""+type SetOrganizationInteractionLimitPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The organization that the interaction limit was set for.+ """+ organization: Organization+}++"""+Autogenerated input type of SetRepositoryCustomPropertyValues+"""+input SetRepositoryCustomPropertyValuesInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A list of custom property names and associated values to apply.+ """+ properties: [CustomPropertyValueInput!]!++ """+ The ID of the repository to set properties for.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of SetRepositoryCustomPropertyValues.+"""+type SetRepositoryCustomPropertyValuesPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository that the custom properties were set for.+ """+ repository: Repository+}++"""+Autogenerated input type of SetRepositoryInteractionLimit+"""+input SetRepositoryInteractionLimitInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ When this limit should expire.+ """+ expiry: RepositoryInteractionLimitExpiry++ """+ The limit to set.+ """+ limit: RepositoryInteractionLimit!++ """+ The ID of the repository to set a limit for.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of SetRepositoryInteractionLimit.+"""+type SetRepositoryInteractionLimitPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository that the interaction limit was set for.+ """+ repository: Repository+}++"""+Autogenerated input type of SetUserInteractionLimit+"""+input SetUserInteractionLimitInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ When this limit should expire.+ """+ expiry: RepositoryInteractionLimitExpiry++ """+ The limit to set.+ """+ limit: RepositoryInteractionLimit!++ """+ The ID of the user to set a limit for.+ """+ userId: ID! @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of SetUserInteractionLimit.+"""+type SetUserInteractionLimitPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The user that the interaction limit was set for.+ """+ user: User+}++"""+Represents an S/MIME signature on a Commit or Tag.+"""+type SmimeSignature implements GitSignature @docsCategory(name: "git") {+ """+ Email used to sign this object.+ """+ email: String!++ """+ True if the signature is valid and verified by GitHub.+ """+ isValid: Boolean!++ """+ Payload for GPG signing object. Raw ODB object without the signature header.+ """+ payload: String!++ """+ ASCII-armored signature header from object.+ """+ signature: String!++ """+ GitHub user corresponding to the email signing this commit.+ """+ signer: User++ """+ The state of this signature. `VALID` if signature is valid and verified by+ GitHub, otherwise represents reason why signature is considered invalid.+ """+ state: GitSignatureState!++ """+ The date the signature was verified, if valid+ """+ verifiedAt: DateTime++ """+ True if the signature was made with GitHub's signing key.+ """+ wasSignedByGitHub: Boolean!+}++"""+Social media profile associated with a user.+"""+type SocialAccount @docsCategory(name: "users") {+ """+ Name of the social media account as it appears on the profile.+ """+ displayName: String!++ """+ Software or company that hosts the social media account.+ """+ provider: SocialAccountProvider!++ """+ URL of the social media account.+ """+ url: URI!+}++"""+The connection type for SocialAccount.+"""+type SocialAccountConnection {+ """+ A list of edges.+ """+ edges: [SocialAccountEdge]++ """+ A list of nodes.+ """+ nodes: [SocialAccount]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SocialAccountEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SocialAccount+}++"""+Software or company that hosts social media accounts.+"""+enum SocialAccountProvider @docsCategory(name: "users") {+ """+ Decentralized microblogging social platform.+ """+ BLUESKY++ """+ Social media and networking website.+ """++ """+ Catch-all for social media providers that do not yet have specific handling.+ """+ GENERIC++ """+ Fork of Mastodon with a greater focus on local posting.+ """+ HOMETOWN++ """+ Social media website with a focus on photo and video sharing.+ """++ """+ Professional networking website.+ """++ """+ Open-source federated microblogging service.+ """+ MASTODON++ """+ JavaScript package registry.+ """+ NPM++ """+ Social news aggregation and discussion website.+ """++ """+ Microblogging social platform.+ """+ THREADS++ """+ Live-streaming service.+ """+ TWITCH++ """+ Microblogging website.+ """++ """+ Online video platform.+ """+ YOUTUBE+}++"""+Entities that can sponsor others via GitHub Sponsors+"""+union Sponsor @docsCategory(name: "sponsors") = Organization | User++"""+A GitHub account and the total amount in USD they've paid for sponsorships to a+particular maintainer. Does not include payments made via Patreon.+"""+type SponsorAndLifetimeValue @docsCategory(name: "sponsors") {+ """+ The amount in cents.+ """+ amountInCents: Int!++ """+ The amount in USD, formatted as a string.+ """+ formattedAmount: String!++ """+ The sponsor's GitHub account.+ """+ sponsor: Sponsorable!++ """+ The maintainer's GitHub account.+ """+ sponsorable: Sponsorable!+}++"""+The connection type for SponsorAndLifetimeValue.+"""+type SponsorAndLifetimeValueConnection {+ """+ A list of edges.+ """+ edges: [SponsorAndLifetimeValueEdge]++ """+ A list of nodes.+ """+ nodes: [SponsorAndLifetimeValue]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SponsorAndLifetimeValueEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SponsorAndLifetimeValue+}++"""+Ordering options for connections to get sponsor entities and associated USD amounts for GitHub Sponsors.+"""+input SponsorAndLifetimeValueOrder @docsCategory(name: "sponsors") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order results by.+ """+ field: SponsorAndLifetimeValueOrderField!+}++"""+Properties by which sponsor and lifetime value connections can be ordered.+"""+enum SponsorAndLifetimeValueOrderField @docsCategory(name: "sponsors") {+ """+ Order results by how much money the sponsor has paid in total.+ """+ LIFETIME_VALUE++ """+ Order results by the sponsor's login (username).+ """+ SPONSOR_LOGIN++ """+ Order results by the sponsor's relevance to the viewer.+ """+ SPONSOR_RELEVANCE+}++"""+A list of users and organizations sponsoring someone via GitHub Sponsors.+"""+type SponsorConnection {+ """+ A list of edges.+ """+ edges: [SponsorEdge]++ """+ A list of nodes.+ """+ nodes: [Sponsor]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a user or organization who is sponsoring someone in GitHub Sponsors.+"""+type SponsorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Sponsor+}++"""+Ordering options for connections to get sponsor entities for GitHub Sponsors.+"""+input SponsorOrder @docsCategory(name: "sponsors") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order sponsor entities by.+ """+ field: SponsorOrderField!+}++"""+Properties by which sponsor connections can be ordered.+"""+enum SponsorOrderField @docsCategory(name: "sponsors") {+ """+ Order sponsorable entities by login (username).+ """+ LOGIN++ """+ Order sponsors by their relevance to the viewer.+ """+ RELEVANCE+}++"""+Entities that can sponsor or be sponsored through GitHub Sponsors.+"""+interface Sponsorable @docsCategory(name: "sponsors") {+ """+ The estimated next GitHub Sponsors payout for this user/organization in cents (USD).+ """+ estimatedNextSponsorsPayoutInCents: Int!++ """+ True if this user/organization has a GitHub Sponsors listing.+ """+ hasSponsorsListing: Boolean!++ """+ Whether the given account is sponsoring this user/organization.+ """+ isSponsoredBy(+ """+ The target account's login.+ """+ accountLogin: String!+ ): Boolean!++ """+ True if the viewer is sponsored by this user/organization.+ """+ isSponsoringViewer: Boolean!++ """+ Calculate how much each sponsor has ever paid total to this maintainer via+ GitHub Sponsors. Does not include sponsorships paid via Patreon.+ """+ lifetimeReceivedSponsorshipValues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for results returned from the connection.+ """+ orderBy: SponsorAndLifetimeValueOrder = {field: SPONSOR_LOGIN, direction: ASC}+ ): SponsorAndLifetimeValueConnection!++ """+ The estimated monthly GitHub Sponsors income for this user/organization in cents (USD).+ """+ monthlyEstimatedSponsorsIncomeInCents: Int!++ """+ List of users and organizations this entity is sponsoring.+ """+ sponsoring(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the users and organizations returned from the connection.+ """+ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}+ ): SponsorConnection!++ """+ List of sponsors for this user or organization.+ """+ sponsors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsors returned from the connection.+ """+ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}++ """+ If given, will filter for sponsors at the given tier. Will only return+ sponsors whose tier the viewer is permitted to see.+ """+ tierId: ID+ ): SponsorConnection!++ """+ Events involving this sponsorable, such as new sponsorships.+ """+ sponsorsActivities(+ """+ Filter activities to only the specified actions.+ """+ actions: [SponsorsActivityAction!] = []++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether to include those events where this sponsorable acted as the sponsor.+ Defaults to only including events where this sponsorable was the recipient+ of a sponsorship.+ """+ includeAsSponsor: Boolean = false++ """+ Whether or not to include private activities in the result set. Defaults to including public and private activities.+ """+ includePrivate: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for activity returned from the connection.+ """+ orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC}++ """+ Filter activities returned to only those that occurred in the most recent+ specified time period. Set to ALL to avoid filtering by when the activity+ occurred. Will be ignored if `since` or `until` is given.+ """+ period: SponsorsActivityPeriod = MONTH++ """+ Filter activities to those that occurred on or after this time.+ """+ since: DateTime++ """+ Filter activities to those that occurred before this time.+ """+ until: DateTime+ ): SponsorsActivityConnection!++ """+ The GitHub Sponsors listing for this user or organization.+ """+ sponsorsListing: SponsorsListing++ """+ The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor.+ """+ sponsorshipForViewerAsSponsor(+ """+ Whether to return the sponsorship only if it's still active. Pass false to+ get the viewer's sponsorship back even if it has been cancelled.+ """+ activeOnly: Boolean = true+ ): Sponsorship++ """+ The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving.+ """+ sponsorshipForViewerAsSponsorable(+ """+ Whether to return the sponsorship only if it's still active. Pass false to+ get the sponsorship back even if it has been cancelled.+ """+ activeOnly: Boolean = true+ ): Sponsorship++ """+ List of sponsorship updates sent from this sponsorable to sponsors.+ """+ sponsorshipNewsletters(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsorship updates returned from the connection.+ """+ orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC}+ ): SponsorshipNewsletterConnection!++ """+ The sponsorships where this user or organization is the maintainer receiving the funds.+ """+ sponsorshipsAsMaintainer(+ """+ Whether to include only sponsorships that are active right now, versus all+ sponsorships this maintainer has ever received.+ """+ activeOnly: Boolean = true++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether or not to include private sponsorships in the result set+ """+ includePrivate: Boolean = false++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsorships returned from this connection. If left+ blank, the sponsorships will be ordered based on relevancy to the viewer.+ """+ orderBy: SponsorshipOrder+ ): SponsorshipConnection!++ """+ The sponsorships where this user or organization is the funder.+ """+ sponsorshipsAsSponsor(+ """+ Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made.+ """+ activeOnly: Boolean = true++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter sponsorships returned to those for the specified maintainers. That+ is, the recipient of the sponsorship is a user or organization with one of+ the given logins.+ """+ maintainerLogins: [String!]++ """+ Ordering options for sponsorships returned from this connection. If left+ blank, the sponsorships will be ordered based on relevancy to the viewer.+ """+ orderBy: SponsorshipOrder+ ): SponsorshipConnection!++ """+ The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has+ spent on GitHub to fund sponsorships. Only returns a value when viewed by the+ user themselves or by a user who can manage sponsorships for the requested organization.+ """+ totalSponsorshipAmountAsSponsorInCents(+ """+ Filter payments to those that occurred on or after this time.+ """+ since: DateTime++ """+ Filter payments to those made to the users or organizations with the specified usernames.+ """+ sponsorableLogins: [String!] = []++ """+ Filter payments to those that occurred before this time.+ """+ until: DateTime+ ): Int++ """+ Whether or not the viewer is able to sponsor this user/organization.+ """+ viewerCanSponsor: Boolean!++ """+ True if the viewer is sponsoring this user/organization.+ """+ viewerIsSponsoring: Boolean!+}++"""+Entities that can be sponsored via GitHub Sponsors+"""+union SponsorableItem @docsCategory(name: "sponsors") = Organization | User++"""+The connection type for SponsorableItem.+"""+type SponsorableItemConnection {+ """+ A list of edges.+ """+ edges: [SponsorableItemEdge]++ """+ A list of nodes.+ """+ nodes: [SponsorableItem]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SponsorableItemEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SponsorableItem+}++"""+Ordering options for connections to get sponsorable entities for GitHub Sponsors.+"""+input SponsorableOrder @docsCategory(name: "sponsors") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order sponsorable entities by.+ """+ field: SponsorableOrderField!+}++"""+Properties by which sponsorable connections can be ordered.+"""+enum SponsorableOrderField @docsCategory(name: "sponsors") {+ """+ Order sponsorable entities by login (username).+ """+ LOGIN+}++"""+An event related to sponsorship activity.+"""+type SponsorsActivity implements Node @docsCategory(name: "sponsors") {+ """+ What action this activity indicates took place.+ """+ action: SponsorsActivityAction!++ """+ The sponsor's current privacy level.+ """+ currentPrivacyLevel: SponsorshipPrivacy++ """+ The Node ID of the SponsorsActivity object+ """+ id: ID!++ """+ The platform that was used to pay for the sponsorship.+ """+ paymentSource: SponsorshipPaymentSource++ """+ The tier that the sponsorship used to use, for tier change events.+ """+ previousSponsorsTier: SponsorsTier++ """+ The user or organization who triggered this activity and was/is sponsoring the sponsorable.+ """+ sponsor: Sponsor++ """+ The user or organization that is being sponsored, the maintainer.+ """+ sponsorable: Sponsorable!++ """+ The associated sponsorship tier.+ """+ sponsorsTier: SponsorsTier++ """+ The timestamp of this event.+ """+ timestamp: DateTime++ """+ Was this sponsorship made alongside other sponsorships at the same time from the same sponsor?+ """+ viaBulkSponsorship: Boolean!+}++"""+The possible actions that GitHub Sponsors activities can represent.+"""+enum SponsorsActivityAction @docsCategory(name: "sponsors") {+ """+ The activity was cancelling a sponsorship.+ """+ CANCELLED_SPONSORSHIP++ """+ The activity was starting a sponsorship.+ """+ NEW_SPONSORSHIP++ """+ The activity was scheduling a downgrade or cancellation.+ """+ PENDING_CHANGE++ """+ The activity was funds being refunded to the sponsor or GitHub.+ """+ REFUND++ """+ The activity was disabling matching for a previously matched sponsorship.+ """+ SPONSOR_MATCH_DISABLED++ """+ The activity was changing the sponsorship tier, either directly by the sponsor or by a scheduled/pending change.+ """+ TIER_CHANGE+}++"""+The connection type for SponsorsActivity.+"""+type SponsorsActivityConnection {+ """+ A list of edges.+ """+ edges: [SponsorsActivityEdge]++ """+ A list of nodes.+ """+ nodes: [SponsorsActivity]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SponsorsActivityEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SponsorsActivity+}++"""+Ordering options for GitHub Sponsors activity connections.+"""+input SponsorsActivityOrder @docsCategory(name: "sponsors") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order activity by.+ """+ field: SponsorsActivityOrderField!+}++"""+Properties by which GitHub Sponsors activity connections can be ordered.+"""+enum SponsorsActivityOrderField @docsCategory(name: "sponsors") {+ """+ Order activities by when they happened.+ """+ TIMESTAMP+}++"""+The possible time periods for which Sponsors activities can be requested.+"""+enum SponsorsActivityPeriod @docsCategory(name: "sponsors") {+ """+ Don't restrict the activity to any date range, include all activity.+ """+ ALL++ """+ The previous calendar day.+ """+ DAY++ """+ The previous thirty days.+ """+ MONTH++ """+ The previous seven days.+ """+ WEEK+}++"""+Represents countries or regions for billing and residence for a GitHub Sponsors profile.+"""+enum SponsorsCountryOrRegionCode @docsCategory(name: "sponsors") {+ """+ Andorra+ """+ AD++ """+ United Arab Emirates+ """+ AE++ """+ Afghanistan+ """+ AF++ """+ Antigua and Barbuda+ """+ AG++ """+ Anguilla+ """+ AI++ """+ Albania+ """+ AL++ """+ Armenia+ """+ AM++ """+ Angola+ """+ AO++ """+ Antarctica+ """+ AQ++ """+ Argentina+ """+ AR++ """+ American Samoa+ """+ AS++ """+ Austria+ """+ AT++ """+ Australia+ """+ AU++ """+ Aruba+ """+ AW++ """+ Åland+ """+ AX++ """+ Azerbaijan+ """+ AZ++ """+ Bosnia and Herzegovina+ """+ BA++ """+ Barbados+ """+ BB++ """+ Bangladesh+ """+ BD++ """+ Belgium+ """+ BE++ """+ Burkina Faso+ """+ BF++ """+ Bulgaria+ """+ BG++ """+ Bahrain+ """+ BH++ """+ Burundi+ """+ BI++ """+ Benin+ """+ BJ++ """+ Saint Barthélemy+ """+ BL++ """+ Bermuda+ """+ BM++ """+ Brunei Darussalam+ """+ BN++ """+ Bolivia+ """+ BO++ """+ Bonaire, Sint Eustatius and Saba+ """+ BQ++ """+ Brazil+ """+ BR++ """+ Bahamas+ """+ BS++ """+ Bhutan+ """+ BT++ """+ Bouvet Island+ """+ BV++ """+ Botswana+ """+ BW++ """+ Belarus+ """+ BY++ """+ Belize+ """+ BZ++ """+ Canada+ """+ CA++ """+ Cocos (Keeling) Islands+ """+ CC++ """+ Congo (Kinshasa)+ """+ CD++ """+ Central African Republic+ """+ CF++ """+ Congo (Brazzaville)+ """+ CG++ """+ Switzerland+ """+ CH++ """+ Côte d'Ivoire+ """+ CI++ """+ Cook Islands+ """+ CK++ """+ Chile+ """+ CL++ """+ Cameroon+ """+ CM++ """+ China+ """+ CN++ """+ Colombia+ """+ CO++ """+ Costa Rica+ """+ CR++ """+ Cape Verde+ """+ CV++ """+ Curaçao+ """+ CW++ """+ Christmas Island+ """+ CX++ """+ Cyprus+ """+ CY++ """+ Czech Republic+ """+ CZ++ """+ Germany+ """+ DE++ """+ Djibouti+ """+ DJ++ """+ Denmark+ """+ DK++ """+ Dominica+ """+ DM++ """+ Dominican Republic+ """+ DO++ """+ Algeria+ """+ DZ++ """+ Ecuador+ """+ EC++ """+ Estonia+ """+ EE++ """+ Egypt+ """+ EG++ """+ Western Sahara+ """+ EH++ """+ Eritrea+ """+ ER++ """+ Spain+ """+ ES++ """+ Ethiopia+ """+ ET++ """+ Finland+ """+ FI++ """+ Fiji+ """+ FJ++ """+ Falkland Islands+ """+ FK++ """+ Micronesia+ """+ FM++ """+ Faroe Islands+ """+ FO++ """+ France+ """+ FR++ """+ Gabon+ """+ GA++ """+ United Kingdom+ """+ GB++ """+ Grenada+ """+ GD++ """+ Georgia+ """+ GE++ """+ French Guiana+ """+ GF++ """+ Guernsey+ """+ GG++ """+ Ghana+ """+ GH++ """+ Gibraltar+ """+ GI++ """+ Greenland+ """+ GL++ """+ Gambia+ """+ GM++ """+ Guinea+ """+ GN++ """+ Guadeloupe+ """+ GP++ """+ Equatorial Guinea+ """+ GQ++ """+ Greece+ """+ GR++ """+ South Georgia and South Sandwich Islands+ """+ GS++ """+ Guatemala+ """+ GT++ """+ Guam+ """+ GU++ """+ Guinea-Bissau+ """+ GW++ """+ Guyana+ """+ GY++ """+ Hong Kong+ """+ HK++ """+ Heard and McDonald Islands+ """+ HM++ """+ Honduras+ """+ HN++ """+ Croatia+ """+ HR++ """+ Haiti+ """+ HT++ """+ Hungary+ """+ HU++ """+ Indonesia+ """+ ID++ """+ Ireland+ """+ IE++ """+ Israel+ """+ IL++ """+ Isle of Man+ """+ IM++ """+ India+ """+ IN++ """+ British Indian Ocean Territory+ """+ IO++ """+ Iraq+ """+ IQ++ """+ Iran+ """+ IR++ """+ Iceland+ """+ IS++ """+ Italy+ """+ IT++ """+ Jersey+ """+ JE++ """+ Jamaica+ """+ JM++ """+ Jordan+ """+ JO++ """+ Japan+ """+ JP++ """+ Kenya+ """+ KE++ """+ Kyrgyzstan+ """+ KG++ """+ Cambodia+ """+ KH++ """+ Kiribati+ """+ KI++ """+ Comoros+ """+ KM++ """+ Saint Kitts and Nevis+ """+ KN++ """+ Korea, South+ """+ KR++ """+ Kuwait+ """+ KW++ """+ Cayman Islands+ """+ KY++ """+ Kazakhstan+ """+ KZ++ """+ Laos+ """+ LA++ """+ Lebanon+ """+ LB++ """+ Saint Lucia+ """+ LC++ """+ Liechtenstein+ """+ LI++ """+ Sri Lanka+ """+ LK++ """+ Liberia+ """+ LR++ """+ Lesotho+ """+ LS++ """+ Lithuania+ """+ LT++ """+ Luxembourg+ """+ LU++ """+ Latvia+ """+ LV++ """+ Libya+ """+ LY++ """+ Morocco+ """+ MA++ """+ Monaco+ """+ MC++ """+ Moldova+ """+ MD++ """+ Montenegro+ """+ ME++ """+ Saint Martin (French part)+ """+ MF++ """+ Madagascar+ """+ MG++ """+ Marshall Islands+ """+ MH++ """+ Macedonia+ """+ MK++ """+ Mali+ """+ ML++ """+ Myanmar+ """+ MM++ """+ Mongolia+ """+ MN++ """+ Macau+ """+ MO++ """+ Northern Mariana Islands+ """+ MP++ """+ Martinique+ """+ MQ++ """+ Mauritania+ """+ MR++ """+ Montserrat+ """+ MS++ """+ Malta+ """+ MT++ """+ Mauritius+ """+ MU++ """+ Maldives+ """+ MV++ """+ Malawi+ """+ MW++ """+ Mexico+ """+ MX++ """+ Malaysia+ """+ MY++ """+ Mozambique+ """+ MZ++ """+ Namibia+ """+ NA++ """+ New Caledonia+ """+ NC++ """+ Niger+ """+ NE++ """+ Norfolk Island+ """+ NF++ """+ Nigeria+ """+ NG++ """+ Nicaragua+ """+ NI++ """+ Netherlands+ """+ NL++ """+ Norway+ """+ NO++ """+ Nepal+ """+ NP++ """+ Nauru+ """+ NR++ """+ Niue+ """+ NU++ """+ New Zealand+ """+ NZ++ """+ Oman+ """+ OM++ """+ Panama+ """+ PA++ """+ Peru+ """+ PE++ """+ French Polynesia+ """+ PF++ """+ Papua New Guinea+ """+ PG++ """+ Philippines+ """+ PH++ """+ Pakistan+ """+ PK++ """+ Poland+ """+ PL++ """+ Saint Pierre and Miquelon+ """+ PM++ """+ Pitcairn+ """+ PN++ """+ Puerto Rico+ """+ PR++ """+ Palestine+ """+ PS++ """+ Portugal+ """+ PT++ """+ Palau+ """+ PW++ """+ Paraguay+ """+ PY++ """+ Qatar+ """+ QA++ """+ Reunion+ """+ RE++ """+ Romania+ """+ RO++ """+ Serbia+ """+ RS++ """+ Russian Federation+ """+ RU++ """+ Rwanda+ """+ RW++ """+ Saudi Arabia+ """+ SA++ """+ Solomon Islands+ """+ SB++ """+ Seychelles+ """+ SC++ """+ Sudan+ """+ SD++ """+ Sweden+ """+ SE++ """+ Singapore+ """+ SG++ """+ Saint Helena+ """+ SH++ """+ Slovenia+ """+ SI++ """+ Svalbard and Jan Mayen Islands+ """+ SJ++ """+ Slovakia+ """+ SK++ """+ Sierra Leone+ """+ SL++ """+ San Marino+ """+ SM++ """+ Senegal+ """+ SN++ """+ Somalia+ """+ SO++ """+ Suriname+ """+ SR++ """+ South Sudan+ """+ SS++ """+ Sao Tome and Principe+ """+ ST++ """+ El Salvador+ """+ SV++ """+ Sint Maarten (Dutch part)+ """+ SX++ """+ Syria+ """+ SY++ """+ Swaziland+ """+ SZ++ """+ Turks and Caicos Islands+ """+ TC++ """+ Chad+ """+ TD++ """+ French Southern Lands+ """+ TF++ """+ Togo+ """+ TG++ """+ Thailand+ """+ TH++ """+ Tajikistan+ """+ TJ++ """+ Tokelau+ """+ TK++ """+ Timor-Leste+ """+ TL++ """+ Turkmenistan+ """+ TM++ """+ Tunisia+ """+ TN++ """+ Tonga+ """+ TO++ """+ Türkiye+ """+ TR++ """+ Trinidad and Tobago+ """+ TT++ """+ Tuvalu+ """+ TV++ """+ Taiwan+ """+ TW++ """+ Tanzania+ """+ TZ++ """+ Ukraine+ """+ UA++ """+ Uganda+ """+ UG++ """+ United States Minor Outlying Islands+ """+ UM++ """+ United States of America+ """+ US++ """+ Uruguay+ """+ UY++ """+ Uzbekistan+ """+ UZ++ """+ Vatican City+ """+ VA++ """+ Saint Vincent and the Grenadines+ """+ VC++ """+ Venezuela+ """+ VE++ """+ Virgin Islands, British+ """+ VG++ """+ Virgin Islands, U.S.+ """+ VI++ """+ Vietnam+ """+ VN++ """+ Vanuatu+ """+ VU++ """+ Wallis and Futuna Islands+ """+ WF++ """+ Samoa+ """+ WS++ """+ Yemen+ """+ YE++ """+ Mayotte+ """+ YT++ """+ South Africa+ """+ ZA++ """+ Zambia+ """+ ZM++ """+ Zimbabwe+ """+ ZW+}++"""+A goal associated with a GitHub Sponsors listing, representing a target the sponsored maintainer would like to attain.+"""+type SponsorsGoal @docsCategory(name: "sponsors") {+ """+ A description of the goal from the maintainer.+ """+ description: String++ """+ What the objective of this goal is.+ """+ kind: SponsorsGoalKind!++ """+ The percentage representing how complete this goal is, between 0-100.+ """+ percentComplete: Int!++ """+ What the goal amount is. Represents an amount in USD for monthly sponsorship+ amount goals. Represents a count of unique sponsors for total sponsors count goals.+ """+ targetValue: Int!++ """+ A brief summary of the kind and target value of this goal.+ """+ title: String!+}++"""+The different kinds of goals a GitHub Sponsors member can have.+"""+enum SponsorsGoalKind @docsCategory(name: "sponsors") {+ """+ The goal is about getting a certain amount in USD from sponsorships each month.+ """+ MONTHLY_SPONSORSHIP_AMOUNT++ """+ The goal is about reaching a certain number of sponsors.+ """+ TOTAL_SPONSORS_COUNT+}++"""+A GitHub Sponsors listing.+"""+type SponsorsListing implements Node @docsCategory(name: "sponsors") {+ """+ The current goal the maintainer is trying to reach with GitHub Sponsors, if any.+ """+ activeGoal: SponsorsGoal++ """+ The Stripe Connect account currently in use for payouts for this Sponsors+ listing, if any. Will only return a value when queried by the maintainer+ themselves, or by an admin of the sponsorable organization.+ """+ activeStripeConnectAccount: StripeConnectAccount++ """+ The name of the country or region with the maintainer's bank account or fiscal+ host. Will only return a value when queried by the maintainer themselves, or+ by an admin of the sponsorable organization.+ """+ billingCountryOrRegion: String++ """+ The email address used by GitHub to contact the sponsorable about their GitHub+ Sponsors profile. Will only return a value when queried by the maintainer+ themselves, or by an admin of the sponsorable organization.+ """+ contactEmailAddress: String++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The HTTP path for the Sponsors dashboard for this Sponsors listing.+ """+ dashboardResourcePath: URI!++ """+ The HTTP URL for the Sponsors dashboard for this Sponsors listing.+ """+ dashboardUrl: URI!++ """+ The records featured on the GitHub Sponsors profile.+ """+ featuredItems(+ """+ The types of featured items to return.+ """+ featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [REPOSITORY, USER]+ ): [SponsorsListingFeaturedItem!]!++ """+ The fiscal host used for payments, if any. Will only return a value when+ queried by the maintainer themselves, or by an admin of the sponsorable organization.+ """+ fiscalHost: Organization++ """+ The full description of the listing.+ """+ fullDescription: String!++ """+ The full description of the listing rendered to HTML.+ """+ fullDescriptionHTML: HTML!++ """+ The Node ID of the SponsorsListing object+ """+ id: ID!++ """+ Whether this listing is publicly visible.+ """+ isPublic: Boolean!++ """+ The listing's full name.+ """+ name: String!++ """+ A future date on which this listing is eligible to receive a payout.+ """+ nextPayoutDate: Date++ """+ The name of the country or region where the maintainer resides. Will only+ return a value when queried by the maintainer themselves, or by an admin of+ the sponsorable organization.+ """+ residenceCountryOrRegion: String++ """+ The HTTP path for this Sponsors listing.+ """+ resourcePath: URI!++ """+ The short description of the listing.+ """+ shortDescription: String!++ """+ The short name of the listing.+ """+ slug: String!++ """+ The entity this listing represents who can be sponsored on GitHub Sponsors.+ """+ sponsorable: Sponsorable!++ """+ The tiers for this GitHub Sponsors profile.+ """+ tiers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether to include tiers that aren't published. Only admins of the Sponsors+ listing can see draft tiers. Only admins of the Sponsors listing and viewers+ who are currently sponsoring on a retired tier can see those retired tiers.+ Defaults to including only published tiers, which are visible to anyone who+ can see the GitHub Sponsors profile.+ """+ includeUnpublished: Boolean = false++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for Sponsors tiers returned from the connection.+ """+ orderBy: SponsorsTierOrder = {field: MONTHLY_PRICE_IN_CENTS, direction: ASC}+ ): SponsorsTierConnection++ """+ The HTTP URL for this Sponsors listing.+ """+ url: URI!+}++"""+A record that can be featured on a GitHub Sponsors profile.+"""+union SponsorsListingFeatureableItem @docsCategory(name: "sponsors") = Repository | User++"""+A record that is promoted on a GitHub Sponsors profile.+"""+type SponsorsListingFeaturedItem implements Node @docsCategory(name: "sponsors") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Will either be a description from the sponsorable maintainer about why they+ featured this item, or the item's description itself, such as a user's bio+ from their GitHub profile page.+ """+ description: String++ """+ The record that is featured on the GitHub Sponsors profile.+ """+ featureable: SponsorsListingFeatureableItem!++ """+ The Node ID of the SponsorsListingFeaturedItem object+ """+ id: ID!++ """+ The position of this featured item on the GitHub Sponsors profile with a lower+ position indicating higher precedence. Starts at 1.+ """+ position: Int!++ """+ The GitHub Sponsors profile that features this record.+ """+ sponsorsListing: SponsorsListing!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The different kinds of records that can be featured on a GitHub Sponsors profile page.+"""+enum SponsorsListingFeaturedItemFeatureableType @docsCategory(name: "sponsors") {+ """+ A repository owned by the user or organization with the GitHub Sponsors profile.+ """+ REPOSITORY++ """+ A user who belongs to the organization with the GitHub Sponsors profile.+ """+ USER+}++"""+A GitHub Sponsors tier associated with a GitHub Sponsors listing.+"""+type SponsorsTier implements Node @docsCategory(name: "sponsors") {+ """+ SponsorsTier information only visible to users that can administer the associated Sponsors listing.+ """+ adminInfo: SponsorsTierAdminInfo++ """+ Get a different tier for this tier's maintainer that is at the same frequency+ as this tier but with an equal or lesser cost. Returns the published tier with+ the monthly price closest to this tier's without going over.+ """+ closestLesserValueTier: SponsorsTier++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The description of the tier.+ """+ description: String!++ """+ The tier description rendered to HTML+ """+ descriptionHTML: HTML!++ """+ The Node ID of the SponsorsTier object+ """+ id: ID!++ """+ Whether this tier was chosen at checkout time by the sponsor rather than+ defined ahead of time by the maintainer who manages the Sponsors listing.+ """+ isCustomAmount: Boolean!++ """+ Whether this tier is only for use with one-time sponsorships.+ """+ isOneTime: Boolean!++ """+ How much this tier costs per month in cents.+ """+ monthlyPriceInCents: Int!++ """+ How much this tier costs per month in USD.+ """+ monthlyPriceInDollars: Int!++ """+ The name of the tier.+ """+ name: String!++ """+ The sponsors listing that this tier belongs to.+ """+ sponsorsListing: SponsorsListing!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+SponsorsTier information only visible to users that can administer the associated Sponsors listing.+"""+type SponsorsTierAdminInfo @docsCategory(name: "sponsors") {+ """+ Indicates whether this tier is still a work in progress by the sponsorable and+ not yet published to the associated GitHub Sponsors profile. Draft tiers+ cannot be used for new sponsorships and will not be in use on existing+ sponsorships. Draft tiers cannot be seen by anyone but the admins of the+ GitHub Sponsors profile.+ """+ isDraft: Boolean!++ """+ Indicates whether this tier is published to the associated GitHub Sponsors+ profile. Published tiers are visible to anyone who can see the GitHub Sponsors+ profile, and are available for use in sponsorships if the GitHub Sponsors+ profile is publicly visible.+ """+ isPublished: Boolean!++ """+ Indicates whether this tier has been retired from the associated GitHub+ Sponsors profile. Retired tiers are no longer shown on the GitHub Sponsors+ profile and cannot be chosen for new sponsorships. Existing sponsorships may+ still use retired tiers if the sponsor selected the tier before it was retired.+ """+ isRetired: Boolean!++ """+ The sponsorships using this tier.+ """+ sponsorships(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether or not to return private sponsorships using this tier. Defaults to+ only returning public sponsorships on this tier.+ """+ includePrivate: Boolean = false++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsorships returned from this connection. If left+ blank, the sponsorships will be ordered based on relevancy to the viewer.+ """+ orderBy: SponsorshipOrder+ ): SponsorshipConnection!+}++"""+The connection type for SponsorsTier.+"""+type SponsorsTierConnection {+ """+ A list of edges.+ """+ edges: [SponsorsTierEdge]++ """+ A list of nodes.+ """+ nodes: [SponsorsTier]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SponsorsTierEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SponsorsTier+}++"""+Ordering options for Sponsors tiers connections.+"""+input SponsorsTierOrder @docsCategory(name: "sponsors") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order tiers by.+ """+ field: SponsorsTierOrderField!+}++"""+Properties by which Sponsors tiers connections can be ordered.+"""+enum SponsorsTierOrderField @docsCategory(name: "sponsors") {+ """+ Order tiers by creation time.+ """+ CREATED_AT++ """+ Order tiers by their monthly price in cents+ """+ MONTHLY_PRICE_IN_CENTS+}++"""+A sponsorship relationship between a sponsor and a maintainer+"""+type Sponsorship implements Node @docsCategory(name: "sponsors") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the Sponsorship object+ """+ id: ID!++ """+ Whether the sponsorship is active. False implies the sponsor is a past sponsor+ of the maintainer, while true implies they are a current sponsor.+ """+ isActive: Boolean!++ """+ Whether this sponsorship represents a one-time payment versus a recurring sponsorship.+ """+ isOneTimePayment: Boolean!++ """+ Whether the sponsor has chosen to receive sponsorship update emails sent from+ the sponsorable. Only returns a non-null value when the viewer has permission to know this.+ """+ isSponsorOptedIntoEmail: Boolean++ """+ The entity that is being sponsored+ """+ maintainer: User!+ @deprecated(+ reason: "`Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC."+ )++ """+ The platform that was most recently used to pay for the sponsorship.+ """+ paymentSource: SponsorshipPaymentSource++ """+ The privacy level for this sponsorship.+ """+ privacyLevel: SponsorshipPrivacy!++ """+ The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user.+ """+ sponsor: User+ @deprecated(+ reason: "`Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC."+ )++ """+ The user or organization that is sponsoring, if you have permission to view them.+ """+ sponsorEntity: Sponsor++ """+ The entity that is being sponsored+ """+ sponsorable: Sponsorable!++ """+ The associated sponsorship tier+ """+ tier: SponsorsTier++ """+ Identifies the date and time when the current tier was chosen for this sponsorship.+ """+ tierSelectedAt: DateTime+}++"""+A list of sponsorships either from the subject or received by the subject.+"""+type SponsorshipConnection {+ """+ A list of edges.+ """+ edges: [SponsorshipEdge]++ """+ A list of nodes.+ """+ nodes: [Sponsorship]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!++ """+ The total amount in cents of all recurring sponsorships in the connection+ whose amount you can view. Does not include one-time sponsorships.+ """+ totalRecurringMonthlyPriceInCents: Int!++ """+ The total amount in USD of all recurring sponsorships in the connection whose+ amount you can view. Does not include one-time sponsorships.+ """+ totalRecurringMonthlyPriceInDollars: Int!+}++"""+An edge in a connection.+"""+type SponsorshipEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Sponsorship+}++"""+An update sent to sponsors of a user or organization on GitHub Sponsors.+"""+type SponsorshipNewsletter implements Node @docsCategory(name: "sponsors") {+ """+ The author of the newsletter.+ """+ author: User++ """+ The contents of the newsletter, the message the sponsorable wanted to give.+ """+ body: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the SponsorshipNewsletter object+ """+ id: ID!++ """+ Indicates if the newsletter has been made available to sponsors.+ """+ isPublished: Boolean!++ """+ The user or organization this newsletter is from.+ """+ sponsorable: Sponsorable!++ """+ The subject of the newsletter, what it's about.+ """+ subject: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+The connection type for SponsorshipNewsletter.+"""+type SponsorshipNewsletterConnection {+ """+ A list of edges.+ """+ edges: [SponsorshipNewsletterEdge]++ """+ A list of nodes.+ """+ nodes: [SponsorshipNewsletter]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SponsorshipNewsletterEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SponsorshipNewsletter+}++"""+Ordering options for sponsorship newsletter connections.+"""+input SponsorshipNewsletterOrder @docsCategory(name: "sponsors") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order sponsorship newsletters by.+ """+ field: SponsorshipNewsletterOrderField!+}++"""+Properties by which sponsorship update connections can be ordered.+"""+enum SponsorshipNewsletterOrderField @docsCategory(name: "sponsors") {+ """+ Order sponsorship newsletters by when they were created.+ """+ CREATED_AT+}++"""+Ordering options for sponsorship connections.+"""+input SponsorshipOrder @docsCategory(name: "sponsors") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order sponsorship by.+ """+ field: SponsorshipOrderField!+}++"""+Properties by which sponsorship connections can be ordered.+"""+enum SponsorshipOrderField @docsCategory(name: "sponsors") {+ """+ Order sponsorship by creation time.+ """+ CREATED_AT+}++"""+How payment was made for funding a GitHub Sponsors sponsorship.+"""+enum SponsorshipPaymentSource @docsCategory(name: "sponsors") {+ """+ Payment was made through GitHub.+ """+ GITHUB++ """+ Payment was made through Patreon.+ """+ PATREON+}++"""+The privacy of a sponsorship+"""+enum SponsorshipPrivacy @docsCategory(name: "sponsors") {+ """+ Private+ """+ PRIVATE++ """+ Public+ """+ PUBLIC+}++"""+The possible default commit messages for squash merges.+"""+enum SquashMergeCommitMessage @docsCategory(name: "repos") {+ """+ Default to a blank commit message.+ """+ BLANK++ """+ Default to the branch's commit messages.+ """+ COMMIT_MESSAGES++ """+ Default to the pull request's body.+ """+ PR_BODY+}++"""+The possible default commit titles for squash merges.+"""+enum SquashMergeCommitTitle @docsCategory(name: "repos") {+ """+ Default to the commit's title (if only one commit) or the pull request's title (when more than one commit).+ """+ COMMIT_OR_PR_TITLE++ """+ Default to the pull request's title.+ """+ PR_TITLE+}++"""+Represents an SSH signature on a Commit or Tag.+"""+type SshSignature implements GitSignature @docsCategory(name: "git") {+ """+ Email used to sign this object.+ """+ email: String!++ """+ True if the signature is valid and verified by GitHub.+ """+ isValid: Boolean!++ """+ Hex-encoded fingerprint of the key that signed this object.+ """+ keyFingerprint: String++ """+ Payload for GPG signing object. Raw ODB object without the signature header.+ """+ payload: String!++ """+ ASCII-armored signature header from object.+ """+ signature: String!++ """+ GitHub user corresponding to the email signing this commit.+ """+ signer: User++ """+ The state of this signature. `VALID` if signature is valid and verified by+ GitHub, otherwise represents reason why signature is considered invalid.+ """+ state: GitSignatureState!++ """+ The date the signature was verified, if valid+ """+ verifiedAt: DateTime++ """+ True if the signature was made with GitHub's signing key.+ """+ wasSignedByGitHub: Boolean!+}++"""+Ways in which star connections can be ordered.+"""+input StarOrder @docsCategory(name: "activity") {+ """+ The direction in which to order nodes.+ """+ direction: OrderDirection!++ """+ The field in which to order nodes by.+ """+ field: StarOrderField!+}++"""+Properties by which star connections can be ordered.+"""+enum StarOrderField @docsCategory(name: "activity") {+ """+ Allows ordering a list of stars by when they were created.+ """+ STARRED_AT+}++"""+The connection type for User.+"""+type StargazerConnection {+ """+ A list of edges.+ """+ edges: [StargazerEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a user that's starred a repository.+"""+type StargazerEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!+ node: User!++ """+ Identifies when the item was starred.+ """+ starredAt: DateTime!+}++"""+Things that can be starred.+"""+interface Starrable @docsCategory(name: "activity") {+ """+ The Node ID of the Starrable object+ """+ id: ID!++ """+ Returns a count of how many stargazers there are on this object+ """+ stargazerCount: Int!++ """+ A list of users who have starred this starrable.+ """+ stargazers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: StarOrder+ ): StargazerConnection!++ """+ Returns a boolean indicating whether the viewing user has starred this starrable.+ """+ viewerHasStarred: Boolean!+}++"""+The connection type for Repository.+"""+type StarredRepositoryConnection {+ """+ A list of edges.+ """+ edges: [StarredRepositoryEdge]++ """+ Is the list of stars for this user truncated? This is true for users that have many stars.+ """+ isOverLimit: Boolean!++ """+ A list of nodes.+ """+ nodes: [Repository]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a starred repository.+"""+type StarredRepositoryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!+ node: Repository!++ """+ Identifies when the item was starred.+ """+ starredAt: DateTime!+}++"""+Autogenerated input type of StartOrganizationMigration+"""+input StartOrganizationMigrationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The migration source access token.+ """+ sourceAccessToken: String!++ """+ The URL of the organization to migrate.+ """+ sourceOrgUrl: URI!++ """+ The ID of the enterprise the target organization belongs to.+ """+ targetEnterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The name of the target organization.+ """+ targetOrgName: String!+}++"""+Autogenerated return type of StartOrganizationMigration.+"""+type StartOrganizationMigrationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new organization migration.+ """+ orgMigration: OrganizationMigration+}++"""+Autogenerated input type of StartRepositoryMigration+"""+input StartRepositoryMigrationInput {+ """+ The migration source access token.+ """+ accessToken: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether to continue the migration on error. Defaults to `true`.+ """+ continueOnError: Boolean++ """+ The signed URL to access the user-uploaded git archive.+ """+ gitArchiveUrl: String++ """+ The GitHub personal access token of the user importing to the target repository.+ """+ githubPat: String++ """+ Whether to lock the source repository.+ """+ lockSource: Boolean++ """+ The signed URL to access the user-uploaded metadata archive.+ """+ metadataArchiveUrl: String++ """+ The ID of the organization that will own the imported repository.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Organization"])++ """+ The name of the imported repository.+ """+ repositoryName: String!++ """+ Whether to skip migrating releases for the repository.+ """+ skipReleases: Boolean++ """+ The ID of the migration source.+ """+ sourceId: ID! @possibleTypes(concreteTypes: ["MigrationSource"])++ """+ The URL of the source repository.+ """+ sourceRepositoryUrl: URI!++ """+ The visibility of the imported repository.+ """+ targetRepoVisibility: String+}++"""+Autogenerated return type of StartRepositoryMigration.+"""+type StartRepositoryMigrationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new repository migration.+ """+ repositoryMigration: RepositoryMigration+}++"""+Represents a commit status.+"""+type Status implements Node @docsCategory(name: "commits") {+ """+ A list of status contexts and check runs for this commit.+ """+ combinedContexts(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): StatusCheckRollupContextConnection!++ """+ The commit this status is attached to.+ """+ commit: Commit++ """+ Looks up an individual status context by context name.+ """+ context(+ """+ The context name.+ """+ name: String!+ ): StatusContext++ """+ The individual status contexts for this commit.+ """+ contexts: [StatusContext!]!++ """+ The Node ID of the Status object+ """+ id: ID!++ """+ The combined commit status.+ """+ state: StatusState!+}++"""+Required status check+"""+type StatusCheckConfiguration @docsCategory(name: "commits") {+ """+ The status check context name that must be present on the commit.+ """+ context: String!++ """+ The optional integration ID that this status check must originate from.+ """+ integrationId: Int+}++"""+Required status check+"""+input StatusCheckConfigurationInput @docsCategory(name: "commits") {+ """+ The status check context name that must be present on the commit.+ """+ context: String!++ """+ The optional integration ID that this status check must originate from.+ """+ integrationId: Int+}++"""+Represents the rollup for both the check runs and status for a commit.+"""+type StatusCheckRollup implements Node @docsCategory(name: "commits") {+ """+ The commit the status and check runs are attached to.+ """+ commit: Commit++ """+ A list of status contexts and check runs for this commit.+ """+ contexts(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): StatusCheckRollupContextConnection!++ """+ The Node ID of the StatusCheckRollup object+ """+ id: ID!++ """+ The combined status for the commit.+ """+ state: StatusState!+}++"""+Types that can be inside a StatusCheckRollup context.+"""+union StatusCheckRollupContext @docsCategory(name: "commits") = CheckRun | StatusContext++"""+The connection type for StatusCheckRollupContext.+"""+type StatusCheckRollupContextConnection {+ """+ The number of check runs in this rollup.+ """+ checkRunCount: Int!++ """+ Counts of check runs by state.+ """+ checkRunCountsByState: [CheckRunStateCount!]++ """+ A list of edges.+ """+ edges: [StatusCheckRollupContextEdge]++ """+ A list of nodes.+ """+ nodes: [StatusCheckRollupContext]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ The number of status contexts in this rollup.+ """+ statusContextCount: Int!++ """+ Counts of status contexts by state.+ """+ statusContextCountsByState: [StatusContextStateCount!]++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type StatusCheckRollupContextEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: StatusCheckRollupContext+}++"""+Represents an individual commit status context+"""+type StatusContext implements Node & RequirableByPullRequest @docsCategory(name: "commits") {+ """+ The avatar of the OAuth application or the user that created the status+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int = 40+ ): URI++ """+ This commit this status context is attached to.+ """+ commit: Commit++ """+ The name of this status context.+ """+ context: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The actor who created this status context.+ """+ creator: Actor++ """+ The description for this status context.+ """+ description: String++ """+ The Node ID of the StatusContext object+ """+ id: ID!++ """+ Whether this is required to pass before merging for a specific pull request.+ """+ isRequired(+ """+ The id of the pull request this is required for+ """+ pullRequestId: ID++ """+ The number of the pull request this is required for+ """+ pullRequestNumber: Int+ ): Boolean!++ """+ The state of this status context.+ """+ state: StatusState!++ """+ The URL for this status context.+ """+ targetUrl: URI++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+Represents a count of the state of a status context.+"""+type StatusContextStateCount @docsCategory(name: "commits") {+ """+ The number of statuses with this state.+ """+ count: Int!++ """+ The state of a status context.+ """+ state: StatusState!+}++"""+The possible commit status states.+"""+enum StatusState @docsCategory(name: "commits") {+ """+ Status is errored.+ """+ ERROR++ """+ Status is expected.+ """+ EXPECTED++ """+ Status is failing.+ """+ FAILURE++ """+ Status is pending.+ """+ PENDING++ """+ Status is successful.+ """+ SUCCESS+}++"""+A Stripe Connect account for receiving sponsorship funds from GitHub Sponsors.+"""+type StripeConnectAccount @docsCategory(name: "sponsors") {+ """+ The account number used to identify this Stripe Connect account.+ """+ accountId: String!++ """+ The name of the country or region of an external account, such as a bank+ account, tied to the Stripe Connect account. Will only return a value when+ queried by the maintainer of the associated GitHub Sponsors profile+ themselves, or by an admin of the sponsorable organization.+ """+ billingCountryOrRegion: String++ """+ The name of the country or region of the Stripe Connect account. Will only+ return a value when queried by the maintainer of the associated GitHub+ Sponsors profile themselves, or by an admin of the sponsorable organization.+ """+ countryOrRegion: String++ """+ Whether this Stripe Connect account is currently in use for the associated GitHub Sponsors profile.+ """+ isActive: Boolean!++ """+ The GitHub Sponsors profile associated with this Stripe Connect account.+ """+ sponsorsListing: SponsorsListing!++ """+ The URL to access this Stripe Connect account on Stripe's website.+ """+ stripeDashboardUrl: URI!+}++"""+Represents a 'sub_issue_added' event on a given issue.+"""+type SubIssueAddedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the SubIssueAddedEvent object+ """+ id: ID!++ """+ The sub-issue added.+ """+ subIssue: Issue+}++"""+Represents a 'sub_issue_removed' event on a given issue.+"""+type SubIssueRemovedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the SubIssueRemovedEvent object+ """+ id: ID!++ """+ The sub-issue removed.+ """+ subIssue: Issue+}++"""+Summary of the state of an issue's sub-issues+"""+type SubIssuesSummary @docsCategory(name: "issues") {+ """+ Count of completed sub-issues+ """+ completed: Int!++ """+ Percent of sub-issues which are completed+ """+ percentCompleted: Int!++ """+ Count of total number of sub-issues+ """+ total: Int!+}++"""+Autogenerated input type of SubmitPullRequestReview+"""+input SubmitPullRequestReviewInput {+ """+ The text field to set on the Pull Request Review.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The event to send to the Pull Request Review.+ """+ event: PullRequestReviewEvent!++ """+ The Pull Request ID to submit any pending reviews.+ """+ pullRequestId: ID @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The Pull Request Review ID to submit.+ """+ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"])+}++"""+Autogenerated return type of SubmitPullRequestReview.+"""+type SubmitPullRequestReviewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The submitted pull request review.+ """+ pullRequestReview: PullRequestReview+}++"""+A pointer to a repository at a specific revision embedded inside another repository.+"""+type Submodule @docsCategory(name: "git") {+ """+ The branch of the upstream submodule for tracking updates+ """+ branch: String++ """+ The git URL of the submodule repository+ """+ gitUrl: URI!++ """+ The name of the submodule in .gitmodules+ """+ name: String!++ """+ The name of the submodule in .gitmodules (Base64-encoded)+ """+ nameRaw: Base64String!++ """+ The path in the superproject that this submodule is located in+ """+ path: String!++ """+ The path in the superproject that this submodule is located in (Base64-encoded)+ """+ pathRaw: Base64String!++ """+ The commit revision of the subproject repository being tracked by the submodule+ """+ subprojectCommitOid: GitObjectID+}++"""+The connection type for Submodule.+"""+type SubmoduleConnection {+ """+ A list of edges.+ """+ edges: [SubmoduleEdge]++ """+ A list of nodes.+ """+ nodes: [Submodule]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SubmoduleEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Submodule+}++"""+Entities that can be subscribed to for web and email notifications.+"""+interface Subscribable @docsCategory(name: "activity") {+ """+ The Node ID of the Subscribable object+ """+ id: ID!++ """+ Check if the viewer is able to change their subscription status for the repository.+ """+ viewerCanSubscribe: Boolean!++ """+ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.+ """+ viewerSubscription: SubscriptionState+}++"""+Entities that can be subscribed to for web and email notifications.+"""+interface SubscribableThread @docsCategory(name: "activity") {+ """+ The Node ID of the SubscribableThread object+ """+ id: ID!++ """+ Identifies the viewer's thread subscription form action.+ """+ viewerThreadSubscriptionFormAction: ThreadSubscriptionFormAction++ """+ Identifies the viewer's thread subscription status.+ """+ viewerThreadSubscriptionStatus: ThreadSubscriptionState+}++"""+Represents a 'subscribed' event on a given `Subscribable`.+"""+type SubscribedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the SubscribedEvent object+ """+ id: ID!++ """+ Object referenced by event.+ """+ subscribable: Subscribable!+}++"""+The possible states of a subscription.+"""+enum SubscriptionState @docsCategory(name: "activity") {+ """+ The User is never notified.+ """+ IGNORED++ """+ The User is notified of all conversations.+ """+ SUBSCRIBED++ """+ The User is only notified when participating or @mentioned.+ """+ UNSUBSCRIBED+}++"""+A suggestion to review a pull request based on a user's commit history and review comments.+"""+type SuggestedReviewer @docsCategory(name: "pulls") {+ """+ Is this suggestion based on past commits?+ """+ isAuthor: Boolean!++ """+ Is this suggestion based on past review comments?+ """+ isCommenter: Boolean!++ """+ Identifies the user suggested to review the pull request.+ """+ reviewer: User!+}++"""+A suggestion to review a pull request based on an actor's commit history, review comments, and integrations.+"""+type SuggestedReviewerActor @docsCategory(name: "pulls") {+ """+ Is this suggestion based on past commits?+ """+ isAuthor: Boolean!++ """+ Is this suggestion based on past review comments?+ """+ isCommenter: Boolean!++ """+ Identifies the actor suggested to review the pull request.+ """+ reviewer: Actor!+}++"""+A suggestion to review a pull request based on an actor's commit history, review comments, and integrations.+"""+type SuggestedReviewerActorConnection {+ """+ A list of edges.+ """+ edges: [SuggestedReviewerActorEdge]++ """+ A list of nodes.+ """+ nodes: [SuggestedReviewerActor]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type SuggestedReviewerActorEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: SuggestedReviewerActor+}++"""+Represents a Git tag.+"""+type Tag implements GitObject & Node @docsCategory(name: "git") {+ """+ An abbreviated version of the Git object ID+ """+ abbreviatedOid: String!++ """+ The HTTP path for this Git object+ """+ commitResourcePath: URI!++ """+ The HTTP URL for this Git object+ """+ commitUrl: URI!++ """+ The Node ID of the Tag object+ """+ id: ID!++ """+ The Git tag message.+ """+ message: String++ """+ The Git tag name.+ """+ name: String!++ """+ The Git object ID+ """+ oid: GitObjectID!++ """+ The Repository the Git object belongs to+ """+ repository: Repository!++ """+ Details about the tag author.+ """+ tagger: GitActor++ """+ The Git object the tag points to.+ """+ target: GitObject!+}++"""+Parameters to be used for the tag_name_pattern rule+"""+type TagNamePatternParameters @docsCategory(name: "repos") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean!++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+Parameters to be used for the tag_name_pattern rule+"""+input TagNamePatternParametersInput @docsCategory(name: "repos") {+ """+ How this rule appears when configuring it.+ """+ name: String++ """+ If true, the rule will fail if the pattern matches.+ """+ negate: Boolean++ """+ The operator to use for matching.+ """+ operator: String!++ """+ The pattern to match with.+ """+ pattern: String!+}++"""+A team of users in an organization.+"""+type Team implements MemberStatusable & Node & Subscribable & TeamReviewRequestable @docsCategory(name: "teams") {+ """+ A list of teams that are ancestors of this team.+ """+ ancestors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): TeamConnection!++ """+ A URL pointing to the team's avatar.+ """+ avatarUrl(+ """+ The size in pixels of the resulting square image.+ """+ size: Int = 400+ ): URI++ """+ List of child teams belonging to this team+ """+ childTeams(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether to list immediate child teams or all descendant child teams.+ """+ immediateOnly: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: TeamOrder++ """+ User logins to filter by+ """+ userLogins: [String!]+ ): TeamConnection!++ """+ The slug corresponding to the organization and team.+ """+ combinedSlug: String!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The description of the team.+ """+ description: String++ """+ The HTTP path for editing this team+ """+ editTeamResourcePath: URI!++ """+ The HTTP URL for editing this team+ """+ editTeamUrl: URI!++ """+ The Node ID of the Team object+ """+ id: ID!++ """+ A list of pending invitations for users to this team+ """+ invitations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): OrganizationInvitationConnection++ """+ Get the status messages members of this entity have set that are either public or visible only to the organization.+ """+ memberStatuses(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for user statuses returned from the connection.+ """+ orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC}+ ): UserStatusConnection!++ """+ A list of users who are members of this team.+ """+ members(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter by membership type+ """+ membership: TeamMembershipType = ALL++ """+ Order for the connection.+ """+ orderBy: TeamMemberOrder++ """+ The search string to look for.+ """+ query: String++ """+ Filter by team member role+ """+ role: TeamMemberRole+ ): TeamMemberConnection!++ """+ The HTTP path for the team' members+ """+ membersResourcePath: URI!++ """+ The HTTP URL for the team' members+ """+ membersUrl: URI!++ """+ The name of the team.+ """+ name: String!++ """+ The HTTP path creating a new team+ """+ newTeamResourcePath: URI!++ """+ The HTTP URL creating a new team+ """+ newTeamUrl: URI!++ """+ The notification setting that the team has set.+ """+ notificationSetting: TeamNotificationSetting!++ """+ The organization that owns this team.+ """+ organization: Organization!++ """+ The parent team of the team.+ """+ parentTeam: Team++ """+ The level of privacy the team has.+ """+ privacy: TeamPrivacy!++ """+ Finds and returns the project according to the provided project number.+ """+ projectV2(+ """+ The Project number.+ """+ number: Int!+ ): ProjectV2++ """+ List of projects this team has collaborator access to.+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filtering options for projects returned from this connection+ """+ filterBy: ProjectV2Filters = {}++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter projects based on user role.+ """+ minPermissionLevel: ProjectV2PermissionLevel = READ++ """+ How to order the returned projects.+ """+ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}++ """+ The query to search projects by.+ """+ query: String = ""+ ): ProjectV2Connection!++ """+ A list of repositories this team has access to.+ """+ repositories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for the connection.+ """+ orderBy: TeamRepositoryOrder++ """+ The search string to look for. Repositories will be returned where the name contains your search string.+ """+ query: String+ ): TeamRepositoryConnection!++ """+ The HTTP path for this team's repositories+ """+ repositoriesResourcePath: URI!++ """+ The HTTP URL for this team's repositories+ """+ repositoriesUrl: URI!++ """+ The HTTP path for this team+ """+ resourcePath: URI!++ """+ What algorithm is used for review assignment for this team+ """+ reviewRequestDelegationAlgorithm: TeamReviewAssignmentAlgorithm++ """+ True if review assignment is enabled for this team+ """+ reviewRequestDelegationEnabled: Boolean!++ """+ How many team members are required for review assignment for this team+ """+ reviewRequestDelegationMemberCount: Int++ """+ When assigning team members via delegation, whether the entire team should be notified as well.+ """+ reviewRequestDelegationNotifyTeam: Boolean!++ """+ The slug corresponding to the team.+ """+ slug: String!++ """+ The HTTP path for this team's teams+ """+ teamsResourcePath: URI!++ """+ The HTTP URL for this team's teams+ """+ teamsUrl: URI!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this team+ """+ url: URI!++ """+ Team is adminable by the viewer.+ """+ viewerCanAdminister: Boolean!++ """+ Check if the viewer is able to change their subscription status for the subscribable entity.+ """+ viewerCanSubscribe: Boolean!+ @deprecated(+ reason: "`Team.viewerCanSubscribe` will be removed. Team notifications subscriptions are being deprecated. Removal on 2026-07-01 UTC."+ )++ """+ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.+ """+ viewerSubscription: SubscriptionState+ @deprecated(+ reason: "`Team.viewerSubscription` will be removed. Team notifications subscriptions are being deprecated. Removal on 2026-07-01 UTC."+ )+}++"""+Audit log entry for a team.add_member event.+"""+type TeamAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData+ @docsCategory(name: "teams") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the TeamAddMemberAuditEntry object+ """+ id: ID!++ """+ Whether the team was mapped to an LDAP Group.+ """+ isLdapMapped: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The team associated with the action+ """+ team: Team++ """+ The name of the team+ """+ teamName: String++ """+ The HTTP path for this team+ """+ teamResourcePath: URI++ """+ The HTTP URL for this team+ """+ teamUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a team.add_repository event.+"""+type TeamAddRepositoryAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData &+ TeamAuditEntryData @docsCategory(name: "teams") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the TeamAddRepositoryAuditEntry object+ """+ id: ID!++ """+ Whether the team was mapped to an LDAP Group.+ """+ isLdapMapped: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The team associated with the action+ """+ team: Team++ """+ The name of the team+ """+ teamName: String++ """+ The HTTP path for this team+ """+ teamResourcePath: URI++ """+ The HTTP URL for this team+ """+ teamUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Metadata for an audit entry with action team.*+"""+interface TeamAuditEntryData @docsCategory(name: "teams") {+ """+ The team associated with the action+ """+ team: Team++ """+ The name of the team+ """+ teamName: String++ """+ The HTTP path for this team+ """+ teamResourcePath: URI++ """+ The HTTP URL for this team+ """+ teamUrl: URI+}++"""+Audit log entry for a team.change_parent_team event.+"""+type TeamChangeParentTeamAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData+ @docsCategory(name: "teams") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the TeamChangeParentTeamAuditEntry object+ """+ id: ID!++ """+ Whether the team was mapped to an LDAP Group.+ """+ isLdapMapped: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The new parent team.+ """+ parentTeam: Team+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the new parent team+ """+ parentTeamName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the former parent team+ """+ parentTeamNameWas: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the parent team+ """+ parentTeamResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the parent team+ """+ parentTeamUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The former parent team.+ """+ parentTeamWas: Team+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the previous parent team+ """+ parentTeamWasResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the previous parent team+ """+ parentTeamWasUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The team associated with the action+ """+ team: Team++ """+ The name of the team+ """+ teamName: String++ """+ The HTTP path for this team+ """+ teamResourcePath: URI++ """+ The HTTP URL for this team+ """+ teamUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The connection type for Team.+"""+type TeamConnection {+ """+ A list of edges.+ """+ edges: [TeamEdge]++ """+ A list of nodes.+ """+ nodes: [Team]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type TeamEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: Team+}++"""+The connection type for User.+"""+type TeamMemberConnection {+ """+ A list of edges.+ """+ edges: [TeamMemberEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a user who is a member of a team.+"""+type TeamMemberEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The HTTP path to the organization's member access page.+ """+ memberAccessResourcePath: URI!++ """+ The HTTP URL to the organization's member access page.+ """+ memberAccessUrl: URI!+ node: User!++ """+ The role the member has on the team.+ """+ role: TeamMemberRole!+}++"""+Ordering options for team member connections+"""+input TeamMemberOrder @docsCategory(name: "teams") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order team members by.+ """+ field: TeamMemberOrderField!+}++"""+Properties by which team member connections can be ordered.+"""+enum TeamMemberOrderField @docsCategory(name: "teams") {+ """+ Order team members by creation time+ """+ CREATED_AT++ """+ Order team members by login+ """+ LOGIN+}++"""+The possible team member roles; either 'maintainer' or 'member'.+"""+enum TeamMemberRole @docsCategory(name: "teams") {+ """+ A team maintainer has permission to add and remove team members.+ """+ MAINTAINER++ """+ A team member has no administrative permissions on the team.+ """+ MEMBER+}++"""+Defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL.+"""+enum TeamMembershipType @docsCategory(name: "teams") {+ """+ Includes immediate and child team members for the team.+ """+ ALL++ """+ Includes only child team members for the team.+ """+ CHILD_TEAM++ """+ Includes only immediate members of the team.+ """+ IMMEDIATE+}++"""+The possible team notification values.+"""+enum TeamNotificationSetting @docsCategory(name: "teams") {+ """+ No one will receive notifications.+ """+ NOTIFICATIONS_DISABLED++ """+ Everyone will receive notifications when the team is @mentioned.+ """+ NOTIFICATIONS_ENABLED+}++"""+Ways in which team connections can be ordered.+"""+input TeamOrder @docsCategory(name: "teams") {+ """+ The direction in which to order nodes.+ """+ direction: OrderDirection!++ """+ The field in which to order nodes by.+ """+ field: TeamOrderField!+}++"""+Properties by which team connections can be ordered.+"""+enum TeamOrderField @docsCategory(name: "teams") {+ """+ Allows ordering a list of teams by name.+ """+ NAME+}++"""+The possible team privacy values.+"""+enum TeamPrivacy @docsCategory(name: "teams") {+ """+ A secret team can only be seen by its members.+ """+ SECRET++ """+ A visible team can be seen and @mentioned by every member of the organization.+ """+ VISIBLE+}++"""+Audit log entry for a team.remove_member event.+"""+type TeamRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData+ @docsCategory(name: "teams") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the TeamRemoveMemberAuditEntry object+ """+ id: ID!++ """+ Whether the team was mapped to an LDAP Group.+ """+ isLdapMapped: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The team associated with the action+ """+ team: Team++ """+ The name of the team+ """+ teamName: String++ """+ The HTTP path for this team+ """+ teamResourcePath: URI++ """+ The HTTP URL for this team+ """+ teamUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+Audit log entry for a team.remove_repository event.+"""+type TeamRemoveRepositoryAuditEntry implements AuditEntry &+ Node &+ OrganizationAuditEntryData &+ RepositoryAuditEntryData &+ TeamAuditEntryData @docsCategory(name: "teams") {+ """+ The action name+ """+ action: String!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The user who initiated the action+ """+ actor: AuditEntryActor+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The IP address of the actor+ """+ actorIp: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ A readable representation of the actor's location+ """+ actorLocation: ActorLocation+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The username of the user who initiated the action+ """+ actorLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the actor.+ """+ actorResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the actor.+ """+ actorUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The time the action was initiated+ """+ createdAt: PreciseDateTime!+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Node ID of the TeamRemoveRepositoryAuditEntry object+ """+ id: ID!++ """+ Whether the team was mapped to an LDAP Group.+ """+ isLdapMapped: Boolean+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The corresponding operation type for the action+ """+ operationType: OperationType+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The Organization associated with the Audit Entry.+ """+ organization: Organization+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The name of the Organization.+ """+ organizationName: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the organization+ """+ organizationResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the organization+ """+ organizationUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The repository associated with the action+ """+ repository: Repository++ """+ The name of the repository+ """+ repositoryName: String++ """+ The HTTP path for the repository+ """+ repositoryResourcePath: URI++ """+ The HTTP URL for the repository+ """+ repositoryUrl: URI++ """+ The team associated with the action+ """+ team: Team++ """+ The name of the team+ """+ teamName: String++ """+ The HTTP path for this team+ """+ teamResourcePath: URI++ """+ The HTTP URL for this team+ """+ teamUrl: URI++ """+ The user affected by the action+ """+ user: User+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ For actions involving two users, the actor is the initiator and the user is the affected user.+ """+ userLogin: String+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP path for the user.+ """+ userResourcePath: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )++ """+ The HTTP URL for the user.+ """+ userUrl: URI+ @deprecated(+ reason: "The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC."+ )+}++"""+The connection type for Repository.+"""+type TeamRepositoryConnection {+ """+ A list of edges.+ """+ edges: [TeamRepositoryEdge]++ """+ A list of nodes.+ """+ nodes: [Repository]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+Represents a team repository.+"""+type TeamRepositoryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!+ node: Repository!++ """+ The permission level the team has on the repository+ """+ permission: RepositoryPermission!+}++"""+Ordering options for team repository connections+"""+input TeamRepositoryOrder @docsCategory(name: "teams") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order repositories by.+ """+ field: TeamRepositoryOrderField!+}++"""+Properties by which team repository connections can be ordered.+"""+enum TeamRepositoryOrderField @docsCategory(name: "teams") {+ """+ Order repositories by creation time+ """+ CREATED_AT++ """+ Order repositories by name+ """+ NAME++ """+ Order repositories by permission+ """+ PERMISSION++ """+ Order repositories by push time+ """+ PUSHED_AT++ """+ Order repositories by number of stargazers+ """+ STARGAZERS++ """+ Order repositories by update time+ """+ UPDATED_AT+}++"""+The possible team review assignment algorithms+"""+enum TeamReviewAssignmentAlgorithm @docsCategory(name: "teams") {+ """+ Balance review load across the entire team+ """+ LOAD_BALANCE++ """+ Alternate reviews between each team member+ """+ ROUND_ROBIN+}++"""+Represents a team that can be requested to review a pull request.+"""+interface TeamReviewRequestable @docsCategory(name: "teams") {+ """+ The Node ID of the TeamReviewRequestable object+ """+ id: ID!++ """+ The name of the team.+ """+ name: String!++ """+ A unique, human-readable identifier for the team.+ """+ slug: String!+}++"""+The role of a user on a team.+"""+enum TeamRole @docsCategory(name: "teams") {+ """+ User has admin rights on the team.+ """+ ADMIN++ """+ User is a member of the team.+ """+ MEMBER+}++"""+A text match within a search result.+"""+type TextMatch @docsCategory(name: "search") {+ """+ The specific text fragment within the property matched on.+ """+ fragment: String!++ """+ Highlights within the matched fragment.+ """+ highlights: [TextMatchHighlight!]!++ """+ The property matched on.+ """+ property: String!+}++"""+Represents a single highlight in a search result match.+"""+type TextMatchHighlight @docsCategory(name: "search") {+ """+ The indice in the fragment where the matched text begins.+ """+ beginIndice: Int!++ """+ The indice in the fragment where the matched text ends.+ """+ endIndice: Int!++ """+ The text matched.+ """+ text: String!+}++"""+The possible states of a thread subscription form action+"""+enum ThreadSubscriptionFormAction @docsCategory(name: "activity") {+ """+ The User cannot subscribe or unsubscribe to the thread+ """+ NONE++ """+ The User can subscribe to the thread+ """+ SUBSCRIBE++ """+ The User can unsubscribe to the thread+ """+ UNSUBSCRIBE+}++"""+The possible states of a subscription.+"""+enum ThreadSubscriptionState @docsCategory(name: "activity") {+ """+ The subscription status is currently disabled.+ """+ DISABLED++ """+ The User is never notified because they are ignoring the list+ """+ IGNORING_LIST++ """+ The User is never notified because they are ignoring the thread+ """+ IGNORING_THREAD++ """+ The User is not recieving notifications from this thread+ """+ NONE++ """+ The User is notified becuase they are watching the list+ """+ SUBSCRIBED_TO_LIST++ """+ The User is notified because they are subscribed to the thread+ """+ SUBSCRIBED_TO_THREAD++ """+ The User is notified because they chose custom settings for this thread.+ """+ SUBSCRIBED_TO_THREAD_EVENTS++ """+ The User is notified because they chose custom settings for this thread.+ """+ SUBSCRIBED_TO_THREAD_TYPE++ """+ The subscription status is currently unavailable.+ """+ UNAVAILABLE+}++"""+A topic aggregates entities that are related to a subject.+"""+type Topic implements Node & Starrable @docsCategory(name: "repos") {+ """+ The Node ID of the Topic object+ """+ id: ID!++ """+ The topic's name.+ """+ name: String!++ """+ A list of related topics, including aliases of this topic, sorted with the most relevant+ first. Returns up to 10 Topics.+ """+ relatedTopics(+ """+ How many topics to return.+ """+ first: Int = 3+ ): [Topic!]!++ """+ A list of repositories.+ """+ repositories(+ """+ Array of viewer's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ current viewer owns.+ """+ affiliations: [RepositoryAffiliation]++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ If non-null, filters repositories according to whether they have issues enabled+ """+ hasIssuesEnabled: Boolean++ """+ If non-null, filters repositories according to whether they have been locked+ """+ isLocked: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder++ """+ Array of owner's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ organization or user being viewed owns.+ """+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]++ """+ If non-null, filters repositories according to privacy. Internal+ repositories are considered private; consider using the visibility argument+ if only internal repositories are needed. Cannot be combined with the+ visibility argument.+ """+ privacy: RepositoryPrivacy++ """+ If true, only repositories whose owner can be sponsored via GitHub Sponsors will be returned.+ """+ sponsorableOnly: Boolean = false++ """+ If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.+ """+ visibility: RepositoryVisibility+ ): RepositoryConnection!++ """+ Returns a count of how many stargazers there are on this object+ """+ stargazerCount: Int!++ """+ A list of users who have starred this starrable.+ """+ stargazers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: StarOrder+ ): StargazerConnection!++ """+ Returns a boolean indicating whether the viewing user has starred this starrable.+ """+ viewerHasStarred: Boolean!+}++"""+Metadata for an audit entry with a topic.+"""+interface TopicAuditEntryData @docsCategory(name: "enterprise-admin") {+ """+ The name of the topic added to the repository+ """+ topic: Topic++ """+ The name of the topic added to the repository+ """+ topicName: String+}++"""+Reason that the suggested topic is declined.+"""+enum TopicSuggestionDeclineReason @docsCategory(name: "repos") {+ """+ The suggested topic is not relevant to the repository.+ """+ NOT_RELEVANT @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")++ """+ The viewer does not like the suggested topic.+ """+ PERSONAL_PREFERENCE @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")++ """+ The suggested topic is too general for the repository.+ """+ TOO_GENERAL @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")++ """+ The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1).+ """+ TOO_SPECIFIC @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")+}++"""+The possible states of a tracked issue.+"""+enum TrackedIssueStates @docsCategory(name: "issues") {+ """+ The tracked issue is closed+ """+ CLOSED++ """+ The tracked issue is open+ """+ OPEN+}++"""+Autogenerated input type of TransferEnterpriseOrganization+"""+input TransferEnterpriseOrganizationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise where the organization should be transferred.+ """+ destinationEnterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The ID of the organization to transfer.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of TransferEnterpriseOrganization.+"""+type TransferEnterpriseOrganizationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The organization for which a transfer was initiated.+ """+ organization: Organization+}++"""+Autogenerated input type of TransferIssue+"""+input TransferIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether to create labels if they don't exist in the target repository (matched by name)+ """+ createLabelsIfMissing: Boolean = false++ """+ The Node ID of the issue to be transferred+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The Node ID of the repository the issue should be transferred to+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of TransferIssue.+"""+type TransferIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue that was transferred+ """+ issue: Issue+}++"""+Represents a 'transferred' event on a given issue or pull request.+"""+type TransferredEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The repository this came from+ """+ fromRepository: Repository++ """+ The Node ID of the TransferredEvent object+ """+ id: ID!++ """+ Identifies the issue associated with the event.+ """+ issue: Issue!+}++"""+Represents a Git tree.+"""+type Tree implements GitObject & Node @docsCategory(name: "git") {+ """+ An abbreviated version of the Git object ID+ """+ abbreviatedOid: String!++ """+ The HTTP path for this Git object+ """+ commitResourcePath: URI!++ """+ The HTTP URL for this Git object+ """+ commitUrl: URI!++ """+ A list of tree entries.+ """+ entries: [TreeEntry!]++ """+ The Node ID of the Tree object+ """+ id: ID!++ """+ The Git object ID+ """+ oid: GitObjectID!++ """+ The Repository the Git object belongs to+ """+ repository: Repository!+}++"""+Represents a Git tree entry.+"""+type TreeEntry @docsCategory(name: "git") {+ """+ The extension of the file+ """+ extension: String++ """+ Whether or not this tree entry is generated+ """+ isGenerated: Boolean!++ """+ The programming language this file is written in.+ """+ language: Language++ """+ Number of lines in the file.+ """+ lineCount: Int++ """+ Entry file mode.+ """+ mode: Int!++ """+ Entry file name.+ """+ name: String!++ """+ Entry file name. (Base64-encoded)+ """+ nameRaw: Base64String!++ """+ Entry file object.+ """+ object: GitObject++ """+ Entry file Git object ID.+ """+ oid: GitObjectID!++ """+ The full path of the file.+ """+ path: String++ """+ The full path of the file. (Base64-encoded)+ """+ pathRaw: Base64String++ """+ The Repository the tree entry belongs to+ """+ repository: Repository!++ """+ Entry byte size+ """+ size: Int!++ """+ If the TreeEntry is for a directory occupied by a submodule project, this returns the corresponding submodule+ """+ submodule: Submodule++ """+ Entry file type.+ """+ type: String!+}++"""+Filters by whether or not 2FA is enabled and if the method configured is considered secure or insecure.+"""+enum TwoFactorCredentialSecurityType @docsCategory(name: "enterprise-admin") {+ """+ No method of two-factor authentication.+ """+ DISABLED++ """+ Has an insecure method of two-factor authentication. GitHub currently defines this as SMS two-factor authentication.+ """+ INSECURE++ """+ Has only secure methods of two-factor authentication.+ """+ SECURE+}++"""+An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.+"""+scalar URI++"""+Autogenerated input type of UnarchiveProjectV2Item+"""+input UnarchiveProjectV2ItemInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the ProjectV2Item to unarchive.+ """+ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ The ID of the Project to archive the item from.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of UnarchiveProjectV2Item.+"""+type UnarchiveProjectV2ItemPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item unarchived from the project.+ """+ item: ProjectV2Item+}++"""+Autogenerated input type of UnarchivePullRequest+"""+input UnarchivePullRequestInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pull request to unarchive.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of UnarchivePullRequest.+"""+type UnarchivePullRequestPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The pull request that was unarchived.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of UnarchiveRepository+"""+input UnarchiveRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the repository to unarchive.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of UnarchiveRepository.+"""+type UnarchiveRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository that was unarchived.+ """+ repository: Repository+}++"""+Represents an 'unassigned' event on any assignable object.+"""+type UnassignedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the assignable associated with the event.+ """+ assignable: Assignable!++ """+ Identifies the user or mannequin that was unassigned.+ """+ assignee: Assignee++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the UnassignedEvent object+ """+ id: ID!++ """+ Identifies the subject (user) who was unassigned.+ """+ user: User+ @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.")+}++"""+Autogenerated input type of UnfollowOrganization+"""+input UnfollowOrganizationInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the organization to unfollow.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of UnfollowOrganization.+"""+type UnfollowOrganizationPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The organization that was unfollowed.+ """+ organization: Organization+}++"""+Autogenerated input type of UnfollowUser+"""+input UnfollowUserInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the user to unfollow.+ """+ userId: ID! @possibleTypes(concreteTypes: ["User"])+}++"""+Autogenerated return type of UnfollowUser.+"""+type UnfollowUserPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The user that was unfollowed.+ """+ user: User+}++"""+Represents a type that can be retrieved by a URL.+"""+interface UniformResourceLocatable @docsCategory(name: "meta") {+ """+ The HTML path to this resource.+ """+ resourcePath: URI!++ """+ The URL to this resource.+ """+ url: URI!+}++"""+Represents an unknown signature on a Commit or Tag.+"""+type UnknownSignature implements GitSignature @docsCategory(name: "git") {+ """+ Email used to sign this object.+ """+ email: String!++ """+ True if the signature is valid and verified by GitHub.+ """+ isValid: Boolean!++ """+ Payload for GPG signing object. Raw ODB object without the signature header.+ """+ payload: String!++ """+ ASCII-armored signature header from object.+ """+ signature: String!++ """+ GitHub user corresponding to the email signing this commit.+ """+ signer: User++ """+ The state of this signature. `VALID` if signature is valid and verified by+ GitHub, otherwise represents reason why signature is considered invalid.+ """+ state: GitSignatureState!++ """+ The date the signature was verified, if valid+ """+ verifiedAt: DateTime++ """+ True if the signature was made with GitHub's signing key.+ """+ wasSignedByGitHub: Boolean!+}++"""+Represents an 'unlabeled' event on a given issue or pull request.+"""+type UnlabeledEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the UnlabeledEvent object+ """+ id: ID!++ """+ The intent behind the agent's action, including rationale and confidence.+ """+ intent: IssueUpdateIntent++ """+ Identifies the label associated with the 'unlabeled' event.+ """+ label: Label!++ """+ Identifies the `Labelable` associated with the event.+ """+ labelable: Labelable!+}++"""+Autogenerated input type of UnlinkProjectV2FromRepository+"""+input UnlinkProjectV2FromRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the project to unlink from the repository.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The ID of the repository to unlink from the project.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of UnlinkProjectV2FromRepository.+"""+type UnlinkProjectV2FromRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository the project is no longer linked to.+ """+ repository: Repository+}++"""+Autogenerated input type of UnlinkProjectV2FromTeam+"""+input UnlinkProjectV2FromTeamInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the project to unlink from the team.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The ID of the team to unlink from the project.+ """+ teamId: ID! @possibleTypes(concreteTypes: ["Team"])+}++"""+Autogenerated return type of UnlinkProjectV2FromTeam.+"""+type UnlinkProjectV2FromTeamPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The team the project is unlinked from+ """+ team: Team+}++"""+Autogenerated input type of UnlinkRepositoryFromProject+"""+input UnlinkRepositoryFromProjectInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Project linked to the Repository.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["Project"])++ """+ The ID of the Repository linked to the Project.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of UnlinkRepositoryFromProject.+"""+type UnlinkRepositoryFromProjectPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The linked Project.+ """+ project: Project++ """+ The linked Repository.+ """+ repository: Repository+}++"""+Autogenerated input type of UnlockLockable+"""+input UnlockLockableInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the item to be unlocked.+ """+ lockableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Lockable")+}++"""+Autogenerated return type of UnlockLockable.+"""+type UnlockLockablePayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item that was unlocked.+ """+ unlockedRecord: Lockable+}++"""+Represents an 'unlocked' event on a given issue or pull request.+"""+type UnlockedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the UnlockedEvent object+ """+ id: ID!++ """+ Object that was unlocked.+ """+ lockable: Lockable!+}++"""+Autogenerated input type of UnmarkDiscussionCommentAsAnswer+"""+input UnmarkDiscussionCommentAsAnswerInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion comment to unmark as an answer.+ """+ id: ID! @possibleTypes(concreteTypes: ["DiscussionComment"])+}++"""+Autogenerated return type of UnmarkDiscussionCommentAsAnswer.+"""+type UnmarkDiscussionCommentAsAnswerPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The discussion that includes the comment.+ """+ discussion: Discussion+}++"""+Autogenerated input type of UnmarkFileAsViewed+"""+input UnmarkFileAsViewedInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The path of the file to mark as unviewed+ """+ path: String!++ """+ The Node ID of the pull request.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])+}++"""+Autogenerated return type of UnmarkFileAsViewed.+"""+type UnmarkFileAsViewedPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated pull request.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of UnmarkIssueAsDuplicate+"""+input UnmarkIssueAsDuplicateInput {+ """+ ID of the issue or pull request currently considered canonical/authoritative/original.+ """+ canonicalId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest")++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ ID of the issue or pull request currently marked as a duplicate.+ """+ duplicateId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest")+}++"""+Autogenerated return type of UnmarkIssueAsDuplicate.+"""+type UnmarkIssueAsDuplicatePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue or pull request that was marked as a duplicate.+ """+ duplicate: IssueOrPullRequest+}++"""+Autogenerated input type of UnmarkProjectV2AsTemplate+"""+input UnmarkProjectV2AsTemplateInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Project to unmark as a template.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of UnmarkProjectV2AsTemplate.+"""+type UnmarkProjectV2AsTemplatePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The project.+ """+ projectV2: ProjectV2+}++"""+Represents an 'unmarked_as_duplicate' event on a given issue or pull request.+"""+type UnmarkedAsDuplicateEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ The authoritative issue or pull request which has been duplicated by another.+ """+ canonical: IssueOrPullRequest++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The issue or pull request which has been marked as a duplicate of another.+ """+ duplicate: IssueOrPullRequest++ """+ The Node ID of the UnmarkedAsDuplicateEvent object+ """+ id: ID!++ """+ Canonical and duplicate belong to different repositories.+ """+ isCrossRepository: Boolean!+}++"""+Autogenerated input type of UnminimizeComment+"""+input UnminimizeCommentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the subject to modify.+ """+ subjectId: ID!+ @possibleTypes(+ concreteTypes: [+ "CommitComment"+ "DiscussionComment"+ "GistComment"+ "IssueComment"+ "PullRequestReview"+ "PullRequestReviewComment"+ ]+ abstractType: "Minimizable"+ )+}++"""+Autogenerated return type of UnminimizeComment.+"""+type UnminimizeCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The comment that was unminimized.+ """+ unminimizedComment: Minimizable+}++"""+Autogenerated input type of UnpinIssueComment+"""+input UnpinIssueCommentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Issue Comment to unpin. Comment pinning is not supported on Pull Requests.+ """+ issueCommentId: ID! @possibleTypes(concreteTypes: ["IssueComment"])+}++"""+Autogenerated return type of UnpinIssueComment.+"""+type UnpinIssueCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Issue Comment that was unpinned+ """+ issueComment: IssueComment+}++"""+Autogenerated input type of UnpinIssue+"""+input UnpinIssueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue to be unpinned+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of UnpinIssue.+"""+type UnpinIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The id of the pinned issue that was unpinned+ """+ id: ID++ """+ The issue that was unpinned+ """+ issue: Issue+}++"""+Represents an 'unpinned' event on a given issue or pull request.+"""+type UnpinnedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the UnpinnedEvent object+ """+ id: ID!++ """+ Identifies the issue associated with the event.+ """+ issue: Issue!+}++"""+Autogenerated input type of UnresolveReviewThread+"""+input UnresolveReviewThreadInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the thread to unresolve+ """+ threadId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewThread"])+}++"""+Autogenerated return type of UnresolveReviewThread.+"""+type UnresolveReviewThreadPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The thread to resolve.+ """+ thread: PullRequestReviewThread+}++"""+Represents an 'unsubscribed' event on a given `Subscribable`.+"""+type UnsubscribedEvent implements Node @docsCategory(name: "issues") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the UnsubscribedEvent object+ """+ id: ID!++ """+ Object referenced by event.+ """+ subscribable: Subscribable!+}++"""+Entities that can be updated.+"""+interface Updatable @docsCategory(name: "issues") {+ """+ Check if the current viewer can update this object.+ """+ viewerCanUpdate: Boolean!+}++"""+Comments that can be updated.+"""+interface UpdatableComment @docsCategory(name: "issues") {+ """+ Reasons why the current viewer can not update this comment.+ """+ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!+}++"""+Autogenerated input type of UpdateBranchProtectionRule+"""+input UpdateBranchProtectionRuleInput {+ """+ Can this branch be deleted.+ """+ allowsDeletions: Boolean++ """+ Are force pushes allowed on this branch.+ """+ allowsForcePushes: Boolean++ """+ Is branch creation a protected operation.+ """+ blocksCreations: Boolean++ """+ The global relay id of the branch protection rule to be updated.+ """+ branchProtectionRuleId: ID! @possibleTypes(concreteTypes: ["BranchProtectionRule"])++ """+ A list of User, Team, or App IDs allowed to bypass force push targeting matching branches.+ """+ bypassForcePushActorIds: [ID!]++ """+ A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches.+ """+ bypassPullRequestActorIds: [ID!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Will new commits pushed to matching branches dismiss pull request review approvals.+ """+ dismissesStaleReviews: Boolean++ """+ Can admins override branch protection.+ """+ isAdminEnforced: Boolean++ """+ Whether users can pull changes from upstream when the branch is locked. Set to+ `true` to allow fork syncing. Set to `false` to prevent fork syncing.+ """+ lockAllowsFetchAndMerge: Boolean++ """+ Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.+ """+ lockBranch: Boolean++ """+ The glob-like pattern used to determine matching branches.+ """+ pattern: String++ """+ A list of User, Team, or App IDs allowed to push to matching branches.+ """+ pushActorIds: [ID!]++ """+ Whether the most recent push must be approved by someone other than the person who pushed it+ """+ requireLastPushApproval: Boolean++ """+ Number of approving reviews required to update matching branches.+ """+ requiredApprovingReviewCount: Int++ """+ The list of required deployment environments+ """+ requiredDeploymentEnvironments: [String!]++ """+ List of required status check contexts that must pass for commits to be accepted to matching branches.+ """+ requiredStatusCheckContexts: [String!]++ """+ The list of required status checks+ """+ requiredStatusChecks: [RequiredStatusCheckInput!]++ """+ Are approving reviews required to update matching branches.+ """+ requiresApprovingReviews: Boolean++ """+ Are reviews from code owners required to update matching branches.+ """+ requiresCodeOwnerReviews: Boolean++ """+ Are commits required to be signed.+ """+ requiresCommitSignatures: Boolean++ """+ Are conversations required to be resolved before merging.+ """+ requiresConversationResolution: Boolean++ """+ Are successful deployments required before merging.+ """+ requiresDeployments: Boolean++ """+ Are merge commits prohibited from being pushed to this branch.+ """+ requiresLinearHistory: Boolean++ """+ Are status checks required to update matching branches.+ """+ requiresStatusChecks: Boolean++ """+ Are branches required to be up to date before merging.+ """+ requiresStrictStatusChecks: Boolean++ """+ Is pushing to matching branches restricted.+ """+ restrictsPushes: Boolean++ """+ Is dismissal of pull request reviews restricted.+ """+ restrictsReviewDismissals: Boolean++ """+ A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches.+ """+ reviewDismissalActorIds: [ID!]+}++"""+Autogenerated return type of UpdateBranchProtectionRule.+"""+type UpdateBranchProtectionRulePayload {+ """+ The newly created BranchProtectionRule.+ """+ branchProtectionRule: BranchProtectionRule++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of UpdateCheckRun+"""+input UpdateCheckRunInput {+ """+ Possible further actions the integrator can perform, which a user may trigger.+ """+ actions: [CheckRunAction!]++ """+ The node of the check.+ """+ checkRunId: ID! @possibleTypes(concreteTypes: ["CheckRun"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The time that the check run finished.+ """+ completedAt: DateTime++ """+ The final conclusion of the check.+ """+ conclusion: CheckConclusionState++ """+ The URL of the integrator's site that has the full details of the check.+ """+ detailsUrl: URI++ """+ A reference for the run on the integrator's system.+ """+ externalId: String++ """+ The name of the check.+ """+ name: String++ """+ Descriptive details about the run.+ """+ output: CheckRunOutput++ """+ The node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ The time that the check run began.+ """+ startedAt: DateTime++ """+ The current status.+ """+ status: RequestableCheckStatusState+}++"""+Autogenerated return type of UpdateCheckRun.+"""+type UpdateCheckRunPayload {+ """+ The updated check run.+ """+ checkRun: CheckRun++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of UpdateCheckSuitePreferences+"""+input UpdateCheckSuitePreferencesInput {+ """+ The check suite preferences to modify.+ """+ autoTriggerPreferences: [CheckSuiteAutoTriggerPreference!]!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of UpdateCheckSuitePreferences.+"""+type UpdateCheckSuitePreferencesPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated repository.+ """+ repository: Repository+}++"""+Autogenerated input type of UpdateDiscussionComment+"""+input UpdateDiscussionCommentInput {+ """+ The new contents of the comment body.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion comment to update.+ """+ commentId: ID! @possibleTypes(concreteTypes: ["DiscussionComment"])+}++"""+Autogenerated return type of UpdateDiscussionComment.+"""+type UpdateDiscussionCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The modified discussion comment.+ """+ comment: DiscussionComment+}++"""+Autogenerated input type of UpdateDiscussion+"""+input UpdateDiscussionInput {+ """+ The new contents of the discussion body.+ """+ body: String++ """+ The Node ID of a discussion category within the same repository to change this discussion to.+ """+ categoryId: ID @possibleTypes(concreteTypes: ["DiscussionCategory"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the discussion to update.+ """+ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"])++ """+ The new discussion title.+ """+ title: String+}++"""+Autogenerated return type of UpdateDiscussion.+"""+type UpdateDiscussionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The modified discussion.+ """+ discussion: Discussion+}++"""+Autogenerated input type of UpdateEnterpriseAdministratorRole+"""+input UpdateEnterpriseAdministratorRoleInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Enterprise which the admin belongs to.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The login of a administrator whose role is being changed.+ """+ login: String!++ """+ The new role for the Enterprise administrator.+ """+ role: EnterpriseAdministratorRole!+}++"""+Autogenerated return type of UpdateEnterpriseAdministratorRole.+"""+type UpdateEnterpriseAdministratorRolePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A message confirming the result of changing the administrator's role.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting+"""+input UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the allow private repository forking setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the allow private repository forking policy on the enterprise.+ """+ policyValue: EnterpriseAllowPrivateRepositoryForkingPolicyValue++ """+ The value for the allow private repository forking setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting.+"""+type UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated allow private repository forking setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the allow private repository forking setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseDefaultRepositoryPermissionSetting+"""+input UpdateEnterpriseDefaultRepositoryPermissionSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the base repository permission setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the base repository permission setting on the enterprise.+ """+ settingValue: EnterpriseDefaultRepositoryPermissionSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseDefaultRepositoryPermissionSetting.+"""+type UpdateEnterpriseDefaultRepositoryPermissionSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated base repository permission setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the base repository permission setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseDeployKeySetting+"""+input UpdateEnterpriseDeployKeySettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the deploy key setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the deploy key setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseDeployKeySetting.+"""+type UpdateEnterpriseDeployKeySettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated deploy key setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the deploy key setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting+"""+input UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can change repository visibility setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the members can change repository visibility setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting.+"""+type UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can change repository visibility setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can change repository visibility setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanCreateRepositoriesSetting+"""+input UpdateEnterpriseMembersCanCreateRepositoriesSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can create repositories setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ Allow members to create internal repositories. Defaults to current value.+ """+ membersCanCreateInternalRepositories: Boolean++ """+ Allow members to create private repositories. Defaults to current value.+ """+ membersCanCreatePrivateRepositories: Boolean++ """+ Allow members to create public repositories. Defaults to current value.+ """+ membersCanCreatePublicRepositories: Boolean++ """+ When false, allow member organizations to set their own repository creation member privileges.+ """+ membersCanCreateRepositoriesPolicyEnabled: Boolean++ """+ Value for the members can create repositories setting on the enterprise. This+ or the granular public/private/internal allowed fields (but not both) must be provided.+ """+ settingValue: EnterpriseMembersCanCreateRepositoriesSettingValue+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanCreateRepositoriesSetting.+"""+type UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can create repositories setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can create repositories setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanDeleteIssuesSetting+"""+input UpdateEnterpriseMembersCanDeleteIssuesSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can delete issues setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the members can delete issues setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanDeleteIssuesSetting.+"""+type UpdateEnterpriseMembersCanDeleteIssuesSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can delete issues setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can delete issues setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting+"""+input UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can delete repositories setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the members can delete repositories setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting.+"""+type UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can delete repositories setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can delete repositories setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting+"""+input UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can invite collaborators setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the members can invite collaborators setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting.+"""+type UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can invite collaborators setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can invite collaborators setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanMakePurchasesSetting+"""+input UpdateEnterpriseMembersCanMakePurchasesSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can make purchases setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the members can make purchases setting on the enterprise.+ """+ settingValue: EnterpriseMembersCanMakePurchasesSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanMakePurchasesSetting.+"""+type UpdateEnterpriseMembersCanMakePurchasesSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can make purchases setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can make purchases setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting+"""+input UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can update protected branches setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the members can update protected branches setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting.+"""+type UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can update protected branches setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can update protected branches setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting+"""+input UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the members can view dependency insights setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the members can view dependency insights setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting.+"""+type UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated members can view dependency insights setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the members can view dependency insights setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseOrganizationProjectsSetting+"""+input UpdateEnterpriseOrganizationProjectsSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the organization projects setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the organization projects setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseOrganizationProjectsSetting.+"""+type UpdateEnterpriseOrganizationProjectsSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated organization projects setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the organization projects setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseOwnerOrganizationRole+"""+input UpdateEnterpriseOwnerOrganizationRoleInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Enterprise which the owner belongs to.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The ID of the organization for membership change.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])++ """+ The role to assume in the organization.+ """+ organizationRole: RoleInOrganization!+}++"""+Autogenerated return type of UpdateEnterpriseOwnerOrganizationRole.+"""+type UpdateEnterpriseOwnerOrganizationRolePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A message confirming the result of changing the owner's organization role.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseProfile+"""+input UpdateEnterpriseProfileInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The description of the enterprise.+ """+ description: String++ """+ The Enterprise ID to update.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The location of the enterprise.+ """+ location: String++ """+ The name of the enterprise.+ """+ name: String++ """+ The security contact email address of the enterprise.+ """+ securityContactEmail: String++ """+ The URL of the enterprise's website.+ """+ websiteUrl: String+}++"""+Autogenerated return type of UpdateEnterpriseProfile.+"""+type UpdateEnterpriseProfilePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated enterprise.+ """+ enterprise: Enterprise+}++"""+Autogenerated input type of UpdateEnterpriseRepositoryProjectsSetting+"""+input UpdateEnterpriseRepositoryProjectsSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the repository projects setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the repository projects setting on the enterprise.+ """+ settingValue: EnterpriseEnabledDisabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseRepositoryProjectsSetting.+"""+type UpdateEnterpriseRepositoryProjectsSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated repository projects setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the repository projects setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting+"""+input UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the two-factor authentication disallowed methods setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the two-factor authentication disallowed methods setting on the enterprise.+ """+ settingValue: EnterpriseDisallowedMethodsSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting.+"""+type UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated two-factor authentication disallowed methods setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the two-factor authentication disallowed methods setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting+"""+input UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the enterprise on which to set the two factor authentication required setting.+ """+ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])++ """+ The value for the two factor authentication required setting on the enterprise.+ """+ settingValue: EnterpriseEnabledSettingValue!+}++"""+Autogenerated return type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting.+"""+type UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The enterprise with the updated two factor authentication required setting.+ """+ enterprise: Enterprise++ """+ A message confirming the result of updating the two factor authentication required setting.+ """+ message: String+}++"""+Autogenerated input type of UpdateEnvironment+"""+input UpdateEnvironmentInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The node ID of the environment.+ """+ environmentId: ID! @possibleTypes(concreteTypes: ["Environment"])++ """+ Whether deployments to this environment can be approved by the user who created the deployment.+ """+ preventSelfReview: Boolean++ """+ The ids of users or teams that can approve deployments to this environment+ """+ reviewers: [ID!]++ """+ The wait timer in minutes.+ """+ waitTimer: Int+}++"""+Autogenerated return type of UpdateEnvironment.+"""+type UpdateEnvironmentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated environment.+ """+ environment: Environment+}++"""+Autogenerated input type of UpdateIpAllowListEnabledSetting+"""+input UpdateIpAllowListEnabledSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the owner on which to set the IP allow list enabled setting.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner")++ """+ The value for the IP allow list enabled setting.+ """+ settingValue: IpAllowListEnabledSettingValue!+}++"""+Autogenerated return type of UpdateIpAllowListEnabledSetting.+"""+type UpdateIpAllowListEnabledSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The IP allow list owner on which the setting was updated.+ """+ owner: IpAllowListOwner+}++"""+Autogenerated input type of UpdateIpAllowListEntry+"""+input UpdateIpAllowListEntryInput {+ """+ An IP address or range of addresses in CIDR notation. Ranges that cover the+ entire address space, such as `0.0.0.0/0` or `::/0`, are not accepted for+ organizations or enterprises.+ """+ allowListValue: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the IP allow list entry to update.+ """+ ipAllowListEntryId: ID! @possibleTypes(concreteTypes: ["IpAllowListEntry"])++ """+ Whether the IP allow list entry is active when an IP allow list is enabled.+ """+ isActive: Boolean!++ """+ An optional name for the IP allow list entry.+ """+ name: String+}++"""+Autogenerated return type of UpdateIpAllowListEntry.+"""+type UpdateIpAllowListEntryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The IP allow list entry that was updated.+ """+ ipAllowListEntry: IpAllowListEntry+}++"""+Autogenerated input type of UpdateIpAllowListForInstalledAppsEnabledSetting+"""+input UpdateIpAllowListForInstalledAppsEnabledSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the owner.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner")++ """+ The value for the IP allow list configuration for installed GitHub Apps setting.+ """+ settingValue: IpAllowListForInstalledAppsEnabledSettingValue!+}++"""+Autogenerated return type of UpdateIpAllowListForInstalledAppsEnabledSetting.+"""+type UpdateIpAllowListForInstalledAppsEnabledSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The IP allow list owner on which the setting was updated.+ """+ owner: IpAllowListOwner+}++"""+Autogenerated input type of UpdateIpAllowListUserLevelEnforcementEnabledSetting+"""+input UpdateIpAllowListUserLevelEnforcementEnabledSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the owner.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner")++ """+ The value for the IP allow list user-level enforcement enabled setting.+ """+ settingValue: IpAllowListUserLevelEnforcementEnabledSettingValue!+}++"""+Autogenerated return type of UpdateIpAllowListUserLevelEnforcementEnabledSetting.+"""+type UpdateIpAllowListUserLevelEnforcementEnabledSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The IP allow list owner on which the setting was updated.+ """+ owner: IpAllowListOwner+}++"""+Autogenerated input type of UpdateIssueComment+"""+input UpdateIssueCommentInput {+ """+ The updated text of the comment.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the IssueComment to modify.+ """+ id: ID! @possibleTypes(concreteTypes: ["IssueComment"])+}++"""+Autogenerated return type of UpdateIssueComment.+"""+type UpdateIssueCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated comment.+ """+ issueComment: IssueComment+}++"""+Autogenerated input type of UpdateIssueField+"""+input UpdateIssueFieldInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A description of the issue field.+ """+ description: String++ """+ The ID of the issue field to update.+ """+ id: ID!+ @possibleTypes(+ concreteTypes: [+ "IssueFieldDate"+ "IssueFieldMultiSelect"+ "IssueFieldNumber"+ "IssueFieldSingleSelect"+ "IssueFieldText"+ ]+ abstractType: "IssueFields"+ )++ """+ The name of the issue field.+ """+ name: String++ """+ The options for the issue field if applicable.+ """+ options: [IssueFieldSingleSelectOptionInput!]++ """+ The visibility of the issue field.+ """+ visibility: IssueFieldVisibility+}++"""+Autogenerated return type of UpdateIssueField.+"""+type UpdateIssueFieldPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated issue field.+ """+ issueField: IssueFields+}++"""+Autogenerated input type of UpdateIssueFieldValue+"""+input UpdateIssueFieldValueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The field value to update. May include an optional `rationale` or be flagged+ with `suggest: true` to be stored as a pending suggestion instead of being+ applied directly.+ """+ issueField: IssueFieldCreateOrUpdateInput!++ """+ The ID of the issue.+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])+}++"""+Autogenerated return type of UpdateIssueFieldValue.+"""+type UpdateIssueFieldValuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue object.+ """+ issue: Issue++ """+ The updated issue field value.+ """+ issueFieldValue: IssueFieldValue+}++"""+Autogenerated input type of UpdateIssue+"""+input UpdateIssueInput {+ """+ Configuration for assigning an AI agent to this issue.+ """+ agentAssignment: AgentAssignmentInput++ """+ An array of Node IDs of users or bots for this issue.+ """+ assigneeIds: [ID!]+ @possibleTypes(+ concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"]+ abstractType: "Actor"+ )++ """+ An array of actors to assign to this issue, each with optional rationale or+ suggest flag. Mutually exclusive with `assigneeIds`.+ """+ assignees: [AssigneeUpdateInput!]++ """+ The body for the issue description.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the Issue to modify.+ """+ id: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ Issue field updates resolved by field and option names.+ """+ issueFieldUpdates: [IssueFieldUpdateInput!]++ """+ The Issue Type to set on this issue, with optional rationale. Mutually exclusive with `issueTypeId`.+ """+ issueType: IssueTypeUpdateInput++ """+ The ID of the Issue Type for this issue.+ """+ issueTypeId: ID++ """+ An array of Node IDs of labels for this issue.+ """+ labelIds: [ID!] @possibleTypes(concreteTypes: ["Label"])++ """+ An array of labels to set on this issue, each with optional rationale or suggest flag. Mutually exclusive with `labelIds`.+ """+ labels: [LabelUpdateInput!]++ """+ The Node ID of the milestone for this issue.+ """+ milestoneId: ID @possibleTypes(concreteTypes: ["Milestone"])++ """+ An array of Node IDs for projects associated with this issue.+ """+ projectIds: [ID!]++ """+ The desired issue state.+ """+ state: IssueState++ """+ The desired issue state, with optional rationale, state reason, or duplicate reference. Mutually exclusive with `state`.+ """+ stateInput: IssueStateUpdateInput++ """+ The title for the issue.+ """+ title: String+}++"""+Autogenerated input type of UpdateIssueIssueType+"""+input UpdateIssueIssueTypeInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the issue to update+ """+ issueId: ID! @possibleTypes(concreteTypes: ["Issue"])++ """+ The ID of the issue type to update on the issue+ """+ issueTypeId: ID+}++"""+Autogenerated return type of UpdateIssueIssueType.+"""+type UpdateIssueIssueTypePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated issue+ """+ issue: Issue+}++"""+Autogenerated return type of UpdateIssue.+"""+type UpdateIssuePayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The issue.+ """+ issue: Issue+}++"""+Autogenerated input type of UpdateIssueType+"""+input UpdateIssueTypeInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Color for the issue type+ """+ color: IssueTypeColor++ """+ The description of the issue type+ """+ description: String++ """+ Whether or not the issue type is enabled for the organization+ """+ isEnabled: Boolean++ """+ The ID of the issue type to update+ """+ issueTypeId: ID! @possibleTypes(concreteTypes: ["IssueType"])++ """+ The name of the issue type+ """+ name: String+}++"""+Autogenerated return type of UpdateIssueType.+"""+type UpdateIssueTypePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated issue type+ """+ issueType: IssueType+}++"""+Autogenerated input type of UpdateLabel+"""+input UpdateLabelInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A 6 character hex code, without the leading #, identifying the updated color of the label.+ """+ color: String++ """+ A brief description of the label, such as its purpose.+ """+ description: String++ """+ The Node ID of the label to be updated.+ """+ id: ID! @possibleTypes(concreteTypes: ["Label"])++ """+ The updated name of the label.+ """+ name: String+}++"""+Autogenerated return type of UpdateLabel.+"""+type UpdateLabelPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated label.+ """+ label: Label+}++"""+Autogenerated input type of UpdateNotificationRestrictionSetting+"""+input UpdateNotificationRestrictionSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the owner on which to set the restrict notifications setting.+ """+ ownerId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization"], abstractType: "VerifiableDomainOwner")++ """+ The value for the restrict notifications setting.+ """+ settingValue: NotificationRestrictionSettingValue!+}++"""+Autogenerated return type of UpdateNotificationRestrictionSetting.+"""+type UpdateNotificationRestrictionSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The owner on which the setting was updated.+ """+ owner: VerifiableDomainOwner+}++"""+Autogenerated input type of UpdateOrganizationAllowPrivateRepositoryForkingSetting+"""+input UpdateOrganizationAllowPrivateRepositoryForkingSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Enable forking of private repositories in the organization?+ """+ forkingEnabled: Boolean!++ """+ The ID of the organization on which to set the allow private repository forking setting.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])+}++"""+Autogenerated return type of UpdateOrganizationAllowPrivateRepositoryForkingSetting.+"""+type UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A message confirming the result of updating the allow private repository forking setting.+ """+ message: String++ """+ The organization with the updated allow private repository forking setting.+ """+ organization: Organization+}++"""+Autogenerated input type of UpdateOrganizationWebCommitSignoffSetting+"""+input UpdateOrganizationWebCommitSignoffSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the organization on which to set the web commit signoff setting.+ """+ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])++ """+ Enable signoff on web-based commits for repositories in the organization?+ """+ webCommitSignoffRequired: Boolean!+}++"""+Autogenerated return type of UpdateOrganizationWebCommitSignoffSetting.+"""+type UpdateOrganizationWebCommitSignoffSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A message confirming the result of updating the web commit signoff setting.+ """+ message: String++ """+ The organization with the updated web commit signoff setting.+ """+ organization: Organization+}++"""+Only allow users with bypass permission to update matching refs.+"""+type UpdateParameters @docsCategory(name: "repos") {+ """+ Branch can pull changes from its upstream repository+ """+ updateAllowsFetchAndMerge: Boolean!+}++"""+Only allow users with bypass permission to update matching refs.+"""+input UpdateParametersInput @docsCategory(name: "repos") {+ """+ Branch can pull changes from its upstream repository+ """+ updateAllowsFetchAndMerge: Boolean!+}++"""+Autogenerated input type of UpdatePatreonSponsorability+"""+input UpdatePatreonSponsorabilityInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether Patreon tiers should be shown on the GitHub Sponsors profile page,+ allowing potential sponsors to make their payment through Patreon instead of GitHub.+ """+ enablePatreonSponsorships: Boolean!++ """+ The username of the organization with the GitHub Sponsors profile, if any.+ Defaults to the GitHub Sponsors profile for the authenticated user if omitted.+ """+ sponsorableLogin: String+}++"""+Autogenerated return type of UpdatePatreonSponsorability.+"""+type UpdatePatreonSponsorabilityPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The GitHub Sponsors profile.+ """+ sponsorsListing: SponsorsListing+}++"""+Autogenerated input type of UpdateProjectCard+"""+input UpdateProjectCardInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Whether or not the ProjectCard should be archived+ """+ isArchived: Boolean++ """+ The note of ProjectCard.+ """+ note: String++ """+ The ProjectCard ID to update.+ """+ projectCardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"])+}++"""+Autogenerated return type of UpdateProjectCard.+"""+type UpdateProjectCardPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated ProjectCard.+ """+ projectCard: ProjectCard+}++"""+Autogenerated input type of UpdateProjectColumn+"""+input UpdateProjectColumnInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of project column.+ """+ name: String!++ """+ The ProjectColumn ID to update.+ """+ projectColumnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"])+}++"""+Autogenerated return type of UpdateProjectColumn.+"""+type UpdateProjectColumnPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated project column.+ """+ projectColumn: ProjectColumn+}++"""+Autogenerated input type of UpdateProject+"""+input UpdateProjectInput {+ """+ The description of project.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The name of project.+ """+ name: String++ """+ The Project ID to update.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["Project"])++ """+ Whether the project is public or not.+ """+ public: Boolean++ """+ Whether the project is open or closed.+ """+ state: ProjectState+}++"""+Autogenerated return type of UpdateProject.+"""+type UpdateProjectPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated project.+ """+ project: Project+}++"""+Autogenerated input type of UpdateProjectV2Collaborators+"""+input UpdateProjectV2CollaboratorsInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The collaborators to update.+ """+ collaborators: [ProjectV2Collaborator!]!++ """+ The ID of the project to update the collaborators for.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of UpdateProjectV2Collaborators.+"""+type UpdateProjectV2CollaboratorsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The collaborators granted a role+ """+ collaborators(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2ActorConnection+}++"""+Autogenerated input type of UpdateProjectV2DraftIssue+"""+input UpdateProjectV2DraftIssueInput {+ """+ The IDs of the assignees of the draft issue.+ """+ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"])++ """+ The body of the draft issue.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the draft issue to update.+ """+ draftIssueId: ID! @possibleTypes(concreteTypes: ["DraftIssue"])++ """+ The title of the draft issue.+ """+ title: String+}++"""+Autogenerated return type of UpdateProjectV2DraftIssue.+"""+type UpdateProjectV2DraftIssuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The draft issue updated in the project.+ """+ draftIssue: DraftIssue+}++"""+Autogenerated input type of UpdateProjectV2Field+"""+input UpdateProjectV2FieldInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the field to update.+ """+ fieldId: ID!+ @possibleTypes(+ concreteTypes: [+ "ProjectV2Field"+ "ProjectV2IterationField"+ "ProjectV2MultiSelectField"+ "ProjectV2SingleSelectField"+ ]+ abstractType: "ProjectV2FieldConfiguration"+ )++ """+ Configuration for a field of type ITERATION. Empty input is ignored, provided+ values overwrite the existing configuration, and existing configuration should+ be fetched for partial updates.+ """+ iterationConfiguration: ProjectV2IterationFieldConfigurationInput++ """+ Options for a field of type MULTI_SELECT. Empty input is ignored, provided+ values overwrite existing options, and existing options should be fetched for+ partial updates.+ """+ multiSelectOptions: [ProjectV2MultiSelectFieldOptionInput!]++ """+ The name to update.+ """+ name: String++ """+ Options for a field of type SINGLE_SELECT. Empty input is ignored, provided+ values overwrite existing options, and existing options should be fetched for+ partial updates.+ """+ singleSelectOptions: [ProjectV2SingleSelectFieldOptionInput!]+}++"""+Autogenerated return type of UpdateProjectV2Field.+"""+type UpdateProjectV2FieldPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated field.+ """+ projectV2Field: ProjectV2FieldConfiguration+}++"""+Autogenerated input type of UpdateProjectV2+"""+input UpdateProjectV2Input {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Set the project to closed or open.+ """+ closed: Boolean++ """+ The ID of the Project to update.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ Set the project to public or private.+ """+ public: Boolean++ """+ Set the readme description of the project.+ """+ readme: String++ """+ Set the short description of the project.+ """+ shortDescription: String++ """+ Set the title of the project.+ """+ title: String+}++"""+Autogenerated input type of UpdateProjectV2ItemFieldValue+"""+input UpdateProjectV2ItemFieldValueInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the field to be updated.+ """+ fieldId: ID!+ @possibleTypes(+ concreteTypes: [+ "ProjectV2Field"+ "ProjectV2IterationField"+ "ProjectV2MultiSelectField"+ "ProjectV2SingleSelectField"+ ]+ abstractType: "ProjectV2FieldConfiguration"+ )++ """+ The ID of the item to be updated.+ """+ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ The ID of the Project.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])++ """+ The value which will be set on the field.+ """+ value: ProjectV2FieldValue!+}++"""+Autogenerated return type of UpdateProjectV2ItemFieldValue.+"""+type UpdateProjectV2ItemFieldValuePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated item.+ """+ projectV2Item: ProjectV2Item+}++"""+Autogenerated input type of UpdateProjectV2ItemPosition+"""+input UpdateProjectV2ItemPositionInput {+ """+ The ID of the item to position this item after. If omitted or set to null the item will be moved to top.+ """+ afterId: ID @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the item to be moved.+ """+ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"])++ """+ The ID of the Project.+ """+ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"])+}++"""+Autogenerated return type of UpdateProjectV2ItemPosition.+"""+type UpdateProjectV2ItemPositionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The items in the new order+ """+ items(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2ItemConnection+}++"""+Autogenerated return type of UpdateProjectV2.+"""+type UpdateProjectV2Payload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated Project.+ """+ projectV2: ProjectV2+}++"""+Autogenerated input type of UpdateProjectV2StatusUpdate+"""+input UpdateProjectV2StatusUpdateInput {+ """+ The body of the status update.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The start date of the status update.+ """+ startDate: Date++ """+ The status of the status update.+ """+ status: ProjectV2StatusUpdateStatus++ """+ The ID of the status update to be updated.+ """+ statusUpdateId: ID! @possibleTypes(concreteTypes: ["ProjectV2StatusUpdate"])++ """+ The target date of the status update.+ """+ targetDate: Date+}++"""+Autogenerated return type of UpdateProjectV2StatusUpdate.+"""+type UpdateProjectV2StatusUpdatePayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The status update updated in the project.+ """+ statusUpdate: ProjectV2StatusUpdate+}++"""+Autogenerated input type of UpdateProjectV2View+"""+input UpdateProjectV2ViewInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new configuration for the view.+ """+ configuration: ProjectV2ViewConfigurationInput++ """+ The new filter for the view.+ """+ filter: String++ """+ The new layout for the view.+ """+ layout: ProjectV2ViewLayout++ """+ The new name for the view.+ """+ name: String++ """+ The ID of the view to update.+ """+ viewId: ID! @possibleTypes(concreteTypes: ["ProjectV2View"])+}++"""+Autogenerated return type of UpdateProjectV2View.+"""+type UpdateProjectV2ViewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated view.+ """+ projectV2View: ProjectV2View+}++"""+Autogenerated input type of UpdatePullRequestBranch+"""+input UpdatePullRequestBranchInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The head ref oid for the upstream branch.+ """+ expectedHeadOid: GitObjectID++ """+ The Node ID of the pull request.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The update branch method to use. If omitted, defaults to 'MERGE'+ """+ updateMethod: PullRequestBranchUpdateMethod+}++"""+Autogenerated return type of UpdatePullRequestBranch.+"""+type UpdatePullRequestBranchPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated pull request.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of UpdatePullRequest+"""+input UpdatePullRequestInput {+ """+ An array of Node IDs of users for this pull request.+ """+ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"])++ """+ The name of the branch you want your changes pulled into. This should be an existing branch+ on the current repository.+ """+ baseRefName: String++ """+ The contents of the pull request.+ """+ body: String++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ An array of Node IDs of labels for this pull request.+ """+ labelIds: [ID!] @possibleTypes(concreteTypes: ["Label"])++ """+ Indicates whether maintainers can modify the pull request.+ """+ maintainerCanModify: Boolean++ """+ The Node ID of the milestone for this pull request.+ """+ milestoneId: ID @possibleTypes(concreteTypes: ["Milestone"])++ """+ An array of Node IDs for projects associated with this pull request.+ """+ projectIds: [ID!]++ """+ The Node ID of the pull request.+ """+ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])++ """+ The target state of the pull request.+ """+ state: PullRequestUpdateState++ """+ The title of the pull request.+ """+ title: String+}++"""+Autogenerated return type of UpdatePullRequest.+"""+type UpdatePullRequestPayload {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated pull request.+ """+ pullRequest: PullRequest+}++"""+Autogenerated input type of UpdatePullRequestReviewComment+"""+input UpdatePullRequestReviewCommentInput {+ """+ The text of the comment.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the comment to modify.+ """+ pullRequestReviewCommentId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewComment"])+}++"""+Autogenerated return type of UpdatePullRequestReviewComment.+"""+type UpdatePullRequestReviewCommentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated comment.+ """+ pullRequestReviewComment: PullRequestReviewComment+}++"""+Autogenerated input type of UpdatePullRequestReview+"""+input UpdatePullRequestReviewInput {+ """+ The contents of the pull request review body.+ """+ body: String!++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the pull request review to modify.+ """+ pullRequestReviewId: ID! @possibleTypes(concreteTypes: ["PullRequestReview"])+}++"""+Autogenerated return type of UpdatePullRequestReview.+"""+type UpdatePullRequestReviewPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated pull request review.+ """+ pullRequestReview: PullRequestReview+}++"""+Autogenerated input type of UpdateRef+"""+input UpdateRefInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Permit updates of branch Refs that are not fast-forwards?+ """+ force: Boolean = false++ """+ The GitObjectID that the Ref shall be updated to target.+ """+ oid: GitObjectID!++ """+ The Node ID of the Ref to be updated.+ """+ refId: ID! @possibleTypes(concreteTypes: ["Ref"])+}++"""+Autogenerated return type of UpdateRef.+"""+type UpdateRefPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated Ref.+ """+ ref: Ref+}++"""+Autogenerated input type of UpdateRefs+"""+input UpdateRefsInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A list of ref updates.+ """+ refUpdates: [RefUpdate!]!++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])+}++"""+Autogenerated return type of UpdateRefs.+"""+type UpdateRefsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String+}++"""+Autogenerated input type of UpdateRepositoryCustomProperty+"""+input UpdateRepositoryCustomPropertyInput {+ """+ The updated allowed values for the custom property.+ """+ allowedValues: [String!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated default value for the custom property if the property is required.+ """+ defaultValue: String++ """+ The updated description of the custom property.+ """+ description: String++ """+ The regex pattern that the value of the custom property must match, if the `value_type` is `string`.+ """+ regex: String++ """+ The global relay id of the source of the custom property.+ """+ repositoryCustomPropertyId: ID! @possibleTypes(concreteTypes: ["RepositoryCustomProperty"])++ """+ Whether this repository custom property requires explicit values.+ """+ requireExplicitValues: Boolean++ """+ Whether the updated custom property is required.+ """+ required: Boolean++ """+ The updated actors who can edit the values of the custom property.+ """+ valuesEditableBy: RepositoryCustomPropertyValuesEditableBy+}++"""+Autogenerated return type of UpdateRepositoryCustomProperty.+"""+type UpdateRepositoryCustomPropertyPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated repository custom property.+ """+ repositoryCustomProperty: RepositoryCustomProperty+}++"""+Autogenerated input type of UpdateRepository+"""+input UpdateRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A new description for the repository. Pass an empty string to erase the existing description.+ """+ description: String++ """+ Indicates if the repository should have the discussions feature enabled.+ """+ hasDiscussionsEnabled: Boolean++ """+ Indicates if the repository should have the issues feature enabled.+ """+ hasIssuesEnabled: Boolean++ """+ Indicates if the repository should have the project boards feature enabled.+ """+ hasProjectsEnabled: Boolean++ """+ Indicates if the repository should have the pull requests feature enabled.+ """+ hasPullRequestsEnabled: Boolean++ """+ Indicates if the repository displays a Sponsor button for financial contributions.+ """+ hasSponsorshipsEnabled: Boolean++ """+ Indicates if the repository should have the wiki feature enabled.+ """+ hasWikiEnabled: Boolean++ """+ The URL for a web page about this repository. Pass an empty string to erase the existing URL.+ """+ homepageUrl: URI++ """+ The policy controlling who can create issues in this repository.+ """+ issueCreationPolicy: IssueCreationPolicy++ """+ The new name of the repository.+ """+ name: String++ """+ The policy controlling who can create pull requests in this repository.+ """+ pullRequestCreationPolicy: PullRequestCreationPolicy++ """+ The ID of the repository to update.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ Whether this repository should be marked as a template such that anyone who+ can access it can create new repositories with the same files and directory structure.+ """+ template: Boolean+}++"""+Autogenerated return type of UpdateRepository.+"""+type UpdateRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The updated repository.+ """+ repository: Repository+}++"""+Autogenerated input type of UpdateRepositoryRuleset+"""+input UpdateRepositoryRulesetInput {+ """+ A list of actors that are allowed to bypass rules in this ruleset.+ """+ bypassActors: [RepositoryRulesetBypassActorInput!]++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The list of conditions for this ruleset+ """+ conditions: RepositoryRuleConditionsInput++ """+ The enforcement level for this ruleset+ """+ enforcement: RuleEnforcement++ """+ The name of the ruleset.+ """+ name: String++ """+ The global relay id of the repository ruleset to be updated.+ """+ repositoryRulesetId: ID! @possibleTypes(concreteTypes: ["RepositoryRuleset"])++ """+ The list of rules for this ruleset+ """+ rules: [RepositoryRuleInput!]++ """+ The target of the ruleset.+ """+ target: RepositoryRulesetTarget+}++"""+Autogenerated return type of UpdateRepositoryRuleset.+"""+type UpdateRepositoryRulesetPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The newly created Ruleset.+ """+ ruleset: RepositoryRuleset+}++"""+Autogenerated input type of UpdateRepositoryWebCommitSignoffSetting+"""+input UpdateRepositoryWebCommitSignoffSettingInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the repository to update.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ Indicates if the repository should require signoff on web-based commits.+ """+ webCommitSignoffRequired: Boolean!+}++"""+Autogenerated return type of UpdateRepositoryWebCommitSignoffSetting.+"""+type UpdateRepositoryWebCommitSignoffSettingPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A message confirming the result of updating the web commit signoff setting.+ """+ message: String++ """+ The updated repository.+ """+ repository: Repository+}++"""+Autogenerated input type of UpdateSponsorshipPreferences+"""+input UpdateSponsorshipPreferencesInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Specify whether others should be able to see that the sponsor is sponsoring+ the sponsorable. Public visibility still does not reveal which tier is used.+ """+ privacyLevel: SponsorshipPrivacy = PUBLIC++ """+ Whether the sponsor should receive email updates from the sponsorable.+ """+ receiveEmails: Boolean = true++ """+ The ID of the user or organization who is acting as the sponsor, paying for+ the sponsorship. Required if sponsorLogin is not given.+ """+ sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor")++ """+ The username of the user or organization who is acting as the sponsor, paying+ for the sponsorship. Required if sponsorId is not given.+ """+ sponsorLogin: String++ """+ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given.+ """+ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable")++ """+ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.+ """+ sponsorableLogin: String+}++"""+Autogenerated return type of UpdateSponsorshipPreferences.+"""+type UpdateSponsorshipPreferencesPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The sponsorship that was updated.+ """+ sponsorship: Sponsorship+}++"""+Autogenerated input type of UpdateSubscription+"""+input UpdateSubscriptionInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The new state of the subscription.+ """+ state: SubscriptionState!++ """+ The Node ID of the subscribable object to modify.+ """+ subscribableId: ID!+ @possibleTypes(+ concreteTypes: ["Commit", "Discussion", "Issue", "PullRequest", "Repository", "Team"]+ abstractType: "Subscribable"+ )+}++"""+Autogenerated return type of UpdateSubscription.+"""+type UpdateSubscriptionPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The input subscribable entity.+ """+ subscribable: Subscribable+}++"""+Autogenerated input type of UpdateTeamReviewAssignment+"""+input UpdateTeamReviewAssignmentInput {+ """+ The algorithm to use for review assignment+ """+ algorithm: TeamReviewAssignmentAlgorithm = ROUND_ROBIN++ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Count any members whose review has already been requested against the required number of members assigned to review+ """+ countMembersAlreadyRequested: Boolean = true++ """+ Turn on or off review assignment+ """+ enabled: Boolean!++ """+ An array of team member IDs to exclude+ """+ excludedTeamMemberIds: [ID!] @possibleTypes(concreteTypes: ["User"])++ """+ The Node ID of the team to update review assignments of+ """+ id: ID! @possibleTypes(concreteTypes: ["Team"])++ """+ Include the members of any child teams when assigning+ """+ includeChildTeamMembers: Boolean = true++ """+ Notify the entire team of the PR if it is delegated+ """+ notifyTeam: Boolean = true++ """+ Remove the team review request when assigning+ """+ removeTeamRequest: Boolean = true++ """+ The number of team members to assign+ """+ teamMemberCount: Int = 1+}++"""+Autogenerated return type of UpdateTeamReviewAssignment.+"""+type UpdateTeamReviewAssignmentPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The team that was modified+ """+ team: Team+}++"""+Autogenerated input type of UpdateTeamsRepository+"""+input UpdateTeamsRepositoryInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Permission that should be granted to the teams.+ """+ permission: RepositoryPermission!++ """+ Repository ID being granted access to.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ A list of teams being granted access. Limit: 10+ """+ teamIds: [ID!]! @possibleTypes(concreteTypes: ["Team"])+}++"""+Autogenerated return type of UpdateTeamsRepository.+"""+type UpdateTeamsRepositoryPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The repository that was updated.+ """+ repository: Repository++ """+ The teams granted permission on the repository.+ """+ teams: [Team!]+}++"""+Autogenerated input type of UpdateTopics+"""+input UpdateTopicsInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The Node ID of the repository.+ """+ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])++ """+ An array of topic names.+ """+ topicNames: [String!]!+}++"""+Autogenerated return type of UpdateTopics.+"""+type UpdateTopicsPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ Names of the provided topics that are not valid.+ """+ invalidTopicNames: [String!]++ """+ The updated repository.+ """+ repository: Repository+}++"""+Autogenerated input type of UpdateUserList+"""+input UpdateUserListInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ A description of the list+ """+ description: String++ """+ Whether or not the list is private+ """+ isPrivate: Boolean++ """+ The ID of the list to update.+ """+ listId: ID! @possibleTypes(concreteTypes: ["UserList"])++ """+ The name of the list+ """+ name: String+}++"""+Autogenerated return type of UpdateUserList.+"""+type UpdateUserListPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The list that was just updated+ """+ list: UserList+}++"""+Autogenerated input type of UpdateUserListsForItem+"""+input UpdateUserListsForItemInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item to add to the list+ """+ itemId: ID! @possibleTypes(concreteTypes: ["Repository"], abstractType: "UserListItems")++ """+ The lists to which this item should belong+ """+ listIds: [ID!]! @possibleTypes(concreteTypes: ["UserList"])++ """+ The suggested lists to create and add this item to+ """+ suggestedListIds: [ID!] @possibleTypes(concreteTypes: ["UserListSuggestion"])+}++"""+Autogenerated return type of UpdateUserListsForItem.+"""+type UpdateUserListsForItemPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The item that was added+ """+ item: UserListItems++ """+ The lists to which this item belongs+ """+ lists: [UserList!]++ """+ The user who owns the lists+ """+ user: User+}++"""+A user is an individual's account on GitHub that owns repositories and can make new content.+"""+type User implements Actor &+ Agentic &+ Node &+ PackageOwner &+ ProfileOwner &+ ProjectOwner &+ ProjectV2Owner &+ ProjectV2Recent &+ RepositoryDiscussionAuthor &+ RepositoryDiscussionCommentAuthor &+ RepositoryOwner &+ Sponsorable &+ UniformResourceLocatable @docsCategory(name: "users") {+ """+ Determine if this repository owner has any items that can be pinned to their profile.+ """+ anyPinnableItems(+ """+ Filter to only a particular kind of pinnable item.+ """+ type: PinnableItemType+ ): Boolean!++ """+ A URL pointing to the user's public avatar.+ """+ avatarUrl(+ """+ The size of the resulting square image.+ """+ size: Int+ ): URI!++ """+ The user's public profile bio.+ """+ bio: String++ """+ The user's public profile bio as HTML.+ """+ bioHTML: HTML!++ """+ Could this user receive email notifications, if the organization had notification restrictions enabled?+ """+ canReceiveOrganizationEmailsWhenNotificationsRestricted(+ """+ The login of the organization to check.+ """+ login: String!+ ): Boolean!++ """+ A list of commit comments made by this user.+ """+ commitComments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): CommitCommentConnection!++ """+ The user's public profile company.+ """+ company: String++ """+ The user's public profile company as HTML.+ """+ companyHTML: HTML!++ """+ The collection of contributions this user has made to different repositories.+ """+ contributionsCollection(+ """+ Only contributions made at this time or later will be counted. If omitted, defaults to a year ago.+ """+ from: DateTime++ """+ The ID of the organization used to filter contributions.+ """+ organizationID: ID++ """+ Only contributions made before and up to (including) this time will be+ counted. If omitted, defaults to the current time or one year from the+ provided from argument.+ """+ to: DateTime+ ): ContributionsCollection!++ """+ The user's Copilot endpoint information+ """+ copilotEndpoints: CopilotEndpoints++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The user's publicly visible profile email.+ """+ email: String!++ """+ A list of enterprises that the user belongs to.+ """+ enterprises(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter enterprises returned based on the user's membership type.+ """+ membershipType: EnterpriseMembershipType = ALL++ """+ Ordering options for the User's enterprises.+ """+ orderBy: EnterpriseOrder = {field: NAME, direction: ASC}+ ): EnterpriseConnection++ """+ The estimated next GitHub Sponsors payout for this user/organization in cents (USD).+ """+ estimatedNextSponsorsPayoutInCents: Int!++ """+ A list of users the given user is followed by.+ """+ followers(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): FollowerConnection!++ """+ A list of users the given user is following.+ """+ following(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): FollowingConnection!++ """+ Find gist by repo name.+ """+ gist(+ """+ The gist name to find.+ """+ name: String!+ ): Gist++ """+ A list of gist comments made by this user.+ """+ gistComments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): GistCommentConnection!++ """+ A list of the Gists the user has created.+ """+ gists(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for gists returned from the connection+ """+ orderBy: GistOrder++ """+ Filters Gists according to privacy.+ """+ privacy: GistPrivacy+ ): GistConnection!++ """+ True if this user/organization has a GitHub Sponsors listing.+ """+ hasSponsorsListing: Boolean!++ """+ The hovercard information for this user in a given context+ """+ hovercard(+ """+ The ID of the subject to get the hovercard in the context of+ """+ primarySubjectId: ID+ ): Hovercard!++ """+ The Node ID of the User object+ """+ id: ID!++ """+ The interaction ability settings for this user.+ """+ interactionAbility: RepositoryInteractionAbility++ """+ Whether or not this user is a participant in the GitHub Security Bug Bounty.+ """+ isBountyHunter: Boolean!++ """+ Whether or not this user is a participant in the GitHub Campus Experts Program.+ """+ isCampusExpert: Boolean!++ """+ Whether or not this user is a GitHub Developer Program member.+ """+ isDeveloperProgramMember: Boolean!++ """+ Whether or not this user is a GitHub employee.+ """+ isEmployee: Boolean!++ """+ Whether or not this user is following the viewer. Inverse of viewerIsFollowing+ """+ isFollowingViewer: Boolean!++ """+ Whether or not this user is a member of the GitHub Stars Program.+ """+ isGitHubStar: Boolean!++ """+ Whether or not the user has marked themselves as for hire.+ """+ isHireable: Boolean!++ """+ Whether or not this user is a site administrator.+ """+ isSiteAdmin: Boolean!++ """+ Whether the given account is sponsoring this user/organization.+ """+ isSponsoredBy(+ """+ The target account's login.+ """+ accountLogin: String!+ ): Boolean!++ """+ True if the viewer is sponsored by this user/organization.+ """+ isSponsoringViewer: Boolean!++ """+ Whether or not this user is the viewing user.+ """+ isViewer: Boolean!++ """+ A list of issue comments made by this user.+ """+ issueComments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issue comments returned from the connection.+ """+ orderBy: IssueCommentOrder+ ): IssueCommentConnection!++ """+ A list of issues associated with this user.+ """+ issues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Filtering options for issues returned from the connection.+ """+ filterBy: IssueFilters++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for issues returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the issues by.+ """+ states: [IssueState!]+ ): IssueConnection!++ """+ Showcases a selection of repositories and gists that the profile owner has+ either curated or that have been selected automatically based on popularity.+ """+ itemShowcase: ProfileItemShowcase!++ """+ Calculate how much each sponsor has ever paid total to this maintainer via+ GitHub Sponsors. Does not include sponsorships paid via Patreon.+ """+ lifetimeReceivedSponsorshipValues(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for results returned from the connection.+ """+ orderBy: SponsorAndLifetimeValueOrder = {field: SPONSOR_LOGIN, direction: ASC}+ ): SponsorAndLifetimeValueConnection!++ """+ A user-curated list of repositories+ """+ lists(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserListConnection!++ """+ The user's public profile location.+ """+ location: String++ """+ The username used to login.+ """+ login: String!++ """+ The estimated monthly GitHub Sponsors income for this user/organization in cents (USD).+ """+ monthlyEstimatedSponsorsIncomeInCents: Int!++ """+ The user's public profile name.+ """+ name: String++ """+ Find an organization by its login that the user belongs to.+ """+ organization(+ """+ The login of the organization to find.+ """+ login: String!+ ): Organization++ """+ Verified email addresses that match verified domains for a specified organization the user is a member of.+ """+ organizationVerifiedDomainEmails(+ """+ The login of the organization to match verified domains from.+ """+ login: String!+ ): [String!]!++ """+ A list of organizations the user belongs to.+ """+ organizations(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the User's organizations.+ """+ orderBy: OrganizationOrder = null+ ): OrganizationConnection!++ """+ A list of packages under the owner.+ """+ packages(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Find packages by their names.+ """+ names: [String]++ """+ Ordering of the returned packages.+ """+ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC}++ """+ Filter registry package by type.+ """+ packageType: PackageType++ """+ Find packages in a repository by ID.+ """+ repositoryId: ID+ ): PackageConnection!++ """+ A list of repositories and gists this profile owner can pin to their profile.+ """+ pinnableItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter the types of pinnable items that are returned.+ """+ types: [PinnableItemType!]+ ): PinnableItemConnection!++ """+ A list of repositories and gists this profile owner has pinned to their profile+ """+ pinnedItems(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter the types of pinned items that are returned.+ """+ types: [PinnableItemType!]+ ): PinnableItemConnection!++ """+ Returns how many more items this profile owner can pin to their profile.+ """+ pinnedItemsRemaining: Int!++ """+ Find project by number.+ """+ project(+ """+ The project number to find.+ """+ number: Int!+ ): Project+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Find a project by number.+ """+ projectV2(+ """+ The project number.+ """+ number: Int!+ ): ProjectV2++ """+ A list of projects under the owner.+ """+ projects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for projects returned from the connection+ """+ orderBy: ProjectOrder++ """+ Query to search projects by, currently only searching by name.+ """+ search: String++ """+ A list of states to filter the projects by.+ """+ states: [ProjectState!]+ ): ProjectConnection!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ The HTTP path listing user's projects+ """+ projectsResourcePath: URI!++ """+ The HTTP URL listing user's projects+ """+ projectsUrl: URI!++ """+ A list of projects under the owner.+ """+ projectsV2(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter projects based on user role.+ """+ minPermissionLevel: ProjectV2PermissionLevel = READ++ """+ How to order the returned projects.+ """+ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC}++ """+ A project to search for under the owner.+ """+ query: String+ ): ProjectV2Connection!++ """+ The user's profile pronouns+ """+ pronouns: String++ """+ A list of public keys associated with this user.+ """+ publicKeys(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): PublicKeyConnection!++ """+ A list of pull requests associated with this user.+ """+ pullRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ The base ref name to filter the pull requests by.+ """+ baseRefName: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ The head ref name to filter the pull requests by.+ """+ headRefName: String++ """+ A list of label names to filter the pull requests by.+ """+ labels: [String!]++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for pull requests returned from the connection.+ """+ orderBy: IssueOrder++ """+ A list of states to filter the pull requests by.+ """+ states: [PullRequestState!]+ ): PullRequestConnection!++ """+ Recent projects that this user has modified in the context of the owner.+ """+ recentProjects(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): ProjectV2Connection!++ """+ A list of repositories that the user owns.+ """+ repositories(+ """+ Array of viewer's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ current viewer owns.+ """+ affiliations: [RepositoryAffiliation]++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ If non-null, filters repositories according to whether they have issues enabled+ """+ hasIssuesEnabled: Boolean++ """+ If non-null, filters repositories according to whether they are archived and not maintained+ """+ isArchived: Boolean++ """+ If non-null, filters repositories according to whether they are forks of another repository+ """+ isFork: Boolean++ """+ If non-null, filters repositories according to whether they have been locked+ """+ isLocked: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder++ """+ Array of owner's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ organization or user being viewed owns.+ """+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]++ """+ If non-null, filters repositories according to privacy. Internal+ repositories are considered private; consider using the visibility argument+ if only internal repositories are needed. Cannot be combined with the+ visibility argument.+ """+ privacy: RepositoryPrivacy++ """+ If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.+ """+ visibility: RepositoryVisibility+ ): RepositoryConnection!++ """+ A list of repositories that the user recently contributed to.+ """+ repositoriesContributedTo(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ If non-null, include only the specified types of contributions. The+ GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]+ """+ contributionTypes: [RepositoryContributionType]++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ If non-null, filters repositories according to whether they have issues enabled+ """+ hasIssues: Boolean++ """+ If true, include user repositories+ """+ includeUserRepositories: Boolean++ """+ If non-null, filters repositories according to whether they have been locked+ """+ isLocked: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder++ """+ If non-null, filters repositories according to privacy+ """+ privacy: RepositoryPrivacy+ ): RepositoryConnection!++ """+ Find Repository.+ """+ repository(+ """+ Follow repository renames. If disabled, a repository referenced by its old name will return an error.+ """+ followRenames: Boolean = true++ """+ Name of Repository to find.+ """+ name: String!+ ): Repository++ """+ Discussion comments this user has authored.+ """+ repositoryDiscussionComments(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter discussion comments to only those that were marked as the answer+ """+ onlyAnswers: Boolean = false++ """+ Filter discussion comments to only those in a specific repository.+ """+ repositoryId: ID+ ): DiscussionCommentConnection!++ """+ Discussions this user has started.+ """+ repositoryDiscussions(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Filter discussions to only those that have been answered or not. Defaults to+ including both answered and unanswered discussions.+ """+ answered: Boolean = null++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for discussions returned from the connection.+ """+ orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC}++ """+ Filter discussions to only those in a specific repository.+ """+ repositoryId: ID++ """+ A list of states to filter the discussions by.+ """+ states: [DiscussionState!] = []+ ): DiscussionConnection!++ """+ The HTTP path for this user+ """+ resourcePath: URI!++ """+ Replies this user has saved+ """+ savedReplies(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ The field to order saved replies by.+ """+ orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC}+ ): SavedReplyConnection++ """+ The user's social media accounts, ordered as they appear on the user's profile.+ """+ socialAccounts(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): SocialAccountConnection!++ """+ List of users and organizations this entity is sponsoring.+ """+ sponsoring(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the users and organizations returned from the connection.+ """+ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}+ ): SponsorConnection!++ """+ List of sponsors for this user or organization.+ """+ sponsors(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsors returned from the connection.+ """+ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}++ """+ If given, will filter for sponsors at the given tier. Will only return+ sponsors whose tier the viewer is permitted to see.+ """+ tierId: ID+ ): SponsorConnection!++ """+ Events involving this sponsorable, such as new sponsorships.+ """+ sponsorsActivities(+ """+ Filter activities to only the specified actions.+ """+ actions: [SponsorsActivityAction!] = []++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether to include those events where this sponsorable acted as the sponsor.+ Defaults to only including events where this sponsorable was the recipient+ of a sponsorship.+ """+ includeAsSponsor: Boolean = false++ """+ Whether or not to include private activities in the result set. Defaults to including public and private activities.+ """+ includePrivate: Boolean = true++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for activity returned from the connection.+ """+ orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC}++ """+ Filter activities returned to only those that occurred in the most recent+ specified time period. Set to ALL to avoid filtering by when the activity+ occurred. Will be ignored if `since` or `until` is given.+ """+ period: SponsorsActivityPeriod = MONTH++ """+ Filter activities to those that occurred on or after this time.+ """+ since: DateTime++ """+ Filter activities to those that occurred before this time.+ """+ until: DateTime+ ): SponsorsActivityConnection!++ """+ The GitHub Sponsors listing for this user or organization.+ """+ sponsorsListing: SponsorsListing++ """+ The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor.+ """+ sponsorshipForViewerAsSponsor(+ """+ Whether to return the sponsorship only if it's still active. Pass false to+ get the viewer's sponsorship back even if it has been cancelled.+ """+ activeOnly: Boolean = true+ ): Sponsorship++ """+ The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving.+ """+ sponsorshipForViewerAsSponsorable(+ """+ Whether to return the sponsorship only if it's still active. Pass false to+ get the sponsorship back even if it has been cancelled.+ """+ activeOnly: Boolean = true+ ): Sponsorship++ """+ List of sponsorship updates sent from this sponsorable to sponsors.+ """+ sponsorshipNewsletters(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsorship updates returned from the connection.+ """+ orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC}+ ): SponsorshipNewsletterConnection!++ """+ The sponsorships where this user or organization is the maintainer receiving the funds.+ """+ sponsorshipsAsMaintainer(+ """+ Whether to include only sponsorships that are active right now, versus all+ sponsorships this maintainer has ever received.+ """+ activeOnly: Boolean = true++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Whether or not to include private sponsorships in the result set+ """+ includePrivate: Boolean = false++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for sponsorships returned from this connection. If left+ blank, the sponsorships will be ordered based on relevancy to the viewer.+ """+ orderBy: SponsorshipOrder+ ): SponsorshipConnection!++ """+ The sponsorships where this user or organization is the funder.+ """+ sponsorshipsAsSponsor(+ """+ Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made.+ """+ activeOnly: Boolean = true++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Filter sponsorships returned to those for the specified maintainers. That+ is, the recipient of the sponsorship is a user or organization with one of+ the given logins.+ """+ maintainerLogins: [String!]++ """+ Ordering options for sponsorships returned from this connection. If left+ blank, the sponsorships will be ordered based on relevancy to the viewer.+ """+ orderBy: SponsorshipOrder+ ): SponsorshipConnection!++ """+ Repositories the user has starred.+ """+ starredRepositories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Order for connection+ """+ orderBy: StarOrder++ """+ Filters starred repositories to only return repositories owned by the viewer.+ """+ ownedByViewer: Boolean+ ): StarredRepositoryConnection!++ """+ The user's description of what they're currently doing.+ """+ status: UserStatus++ """+ Suggested names for user lists+ """+ suggestedListNames: [UserListSuggestion!]!++ """+ Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created+ """+ topRepositories(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder!++ """+ How far back in time to fetch contributed repositories+ """+ since: DateTime+ ): RepositoryConnection!++ """+ The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has+ spent on GitHub to fund sponsorships. Only returns a value when viewed by the+ user themselves or by a user who can manage sponsorships for the requested organization.+ """+ totalSponsorshipAmountAsSponsorInCents(+ """+ Filter payments to those that occurred on or after this time.+ """+ since: DateTime++ """+ Filter payments to those made to the users or organizations with the specified usernames.+ """+ sponsorableLogins: [String!] = []++ """+ Filter payments to those that occurred before this time.+ """+ until: DateTime+ ): Int++ """+ The user's Twitter username.+ """+ twitterUsername: String++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this user+ """+ url: URI!++ """+ Whether the request returns publicly visible information or privately visible information about the user+ """+ userViewType: UserViewType!++ """+ Can the viewer pin repositories and gists to the profile?+ """+ viewerCanChangePinnedItems: Boolean!++ """+ Can the current viewer create new projects on this owner.+ """+ viewerCanCreateProjects: Boolean!+ @deprecated(+ reason: "Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC."+ )++ """+ Whether or not the viewer is able to follow the user.+ """+ viewerCanFollow: Boolean!++ """+ Whether or not the viewer is able to sponsor this user/organization.+ """+ viewerCanSponsor: Boolean!++ """+ Channel value for subscribing to live updates for session creations.+ """+ viewerCopilotAgentCreatesChannel: String++ """+ Channel value for subscribing to live updates for session log updates.+ """+ viewerCopilotAgentLogUpdatesChannel: String++ """+ Channel value for subscribing to live updates for task updates.+ """+ viewerCopilotAgentTaskUpdatesChannel: String++ """+ Channel value for subscribing to live updates for session updates.+ """+ viewerCopilotAgentUpdatesChannel: String++ """+ Whether or not this user is followed by the viewer. Inverse of isFollowingViewer.+ """+ viewerIsFollowing: Boolean!++ """+ True if the viewer is sponsoring this user/organization.+ """+ viewerIsSponsoring: Boolean!++ """+ A list of repositories the given user is watching.+ """+ watching(+ """+ Affiliation options for repositories returned from the connection. If none+ specified, the results will include repositories for which the current+ viewer is an owner or collaborator, or member.+ """+ affiliations: [RepositoryAffiliation]++ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ If non-null, filters repositories according to whether they have issues enabled+ """+ hasIssuesEnabled: Boolean++ """+ If non-null, filters repositories according to whether they have been locked+ """+ isLocked: Boolean++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for repositories returned from the connection+ """+ orderBy: RepositoryOrder++ """+ Array of owner's affiliation options for repositories returned from the+ connection. For example, OWNER will include only repositories that the+ organization or user being viewed owns.+ """+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]++ """+ If non-null, filters repositories according to privacy. Internal+ repositories are considered private; consider using the visibility argument+ if only internal repositories are needed. Cannot be combined with the+ visibility argument.+ """+ privacy: RepositoryPrivacy++ """+ If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.+ """+ visibility: RepositoryVisibility+ ): RepositoryConnection!++ """+ A URL pointing to the user's public website/blog.+ """+ websiteUrl: URI+}++"""+The possible durations that a user can be blocked for.+"""+enum UserBlockDuration @docsCategory(name: "users") {+ """+ The user was blocked for 1 day+ """+ ONE_DAY++ """+ The user was blocked for 30 days+ """+ ONE_MONTH++ """+ The user was blocked for 7 days+ """+ ONE_WEEK++ """+ The user was blocked permanently+ """+ PERMANENT++ """+ The user was blocked for 3 days+ """+ THREE_DAYS+}++"""+Represents a 'user_blocked' event on a given user.+"""+type UserBlockedEvent implements Node @docsCategory(name: "users") {+ """+ Identifies the actor who performed the event.+ """+ actor: Actor++ """+ Number of days that the user was blocked for.+ """+ blockDuration: UserBlockDuration!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The Node ID of the UserBlockedEvent object+ """+ id: ID!++ """+ The user who was blocked.+ """+ subject: User+}++"""+A list of users.+"""+type UserConnection {+ """+ A list of edges.+ """+ edges: [UserEdge]++ """+ A list of nodes.+ """+ nodes: [User]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edit on user content+"""+type UserContentEdit implements Node @docsCategory(name: "users") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the date and time when the object was deleted.+ """+ deletedAt: DateTime++ """+ The actor who deleted this content+ """+ deletedBy: Actor++ """+ A summary of the changes for this edit+ """+ diff: String++ """+ When this content was edited+ """+ editedAt: DateTime!++ """+ The actor who edited this content+ """+ editor: Actor++ """+ The Node ID of the UserContentEdit object+ """+ id: ID!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!+}++"""+A list of edits to content.+"""+type UserContentEditConnection {+ """+ A list of edges.+ """+ edges: [UserContentEditEdge]++ """+ A list of nodes.+ """+ nodes: [UserContentEdit]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type UserContentEditEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: UserContentEdit+}++"""+Represents a user.+"""+type UserEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: User+}++"""+Email attributes from External Identity+"""+type UserEmailMetadata @docsCategory(name: "users") {+ """+ Boolean to identify primary emails+ """+ primary: Boolean++ """+ Type of email+ """+ type: String++ """+ Email id+ """+ value: String!+}++"""+A user-curated list of repositories+"""+type UserList implements Node @docsCategory(name: "users") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ The description of this list+ """+ description: String++ """+ The Node ID of the UserList object+ """+ id: ID!++ """+ Whether or not this list is private+ """+ isPrivate: Boolean!++ """+ The items associated with this list+ """+ items(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): UserListItemsConnection!++ """+ The date and time at which this list was created or last had items added to it+ """+ lastAddedAt: DateTime!++ """+ The name of this list+ """+ name: String!++ """+ The slug of this list+ """+ slug: String!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The user to which this list belongs+ """+ user: User!+}++"""+The connection type for UserList.+"""+type UserListConnection {+ """+ A list of edges.+ """+ edges: [UserListEdge]++ """+ A list of nodes.+ """+ nodes: [UserList]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type UserListEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: UserList+}++"""+Types that can be added to a user list.+"""+union UserListItems @docsCategory(name: "users") = Repository++"""+The connection type for UserListItems.+"""+type UserListItemsConnection {+ """+ A list of edges.+ """+ edges: [UserListItemsEdge]++ """+ A list of nodes.+ """+ nodes: [UserListItems]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type UserListItemsEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: UserListItems+}++"""+Represents a suggested user list.+"""+type UserListSuggestion @docsCategory(name: "users") {+ """+ The ID of the suggested user list+ """+ id: ID++ """+ The name of the suggested user list+ """+ name: String+}++"""+A repository owned by an Enterprise Managed user.+"""+type UserNamespaceRepository implements Node @docsCategory(name: "enterprise-admin") {+ """+ The Node ID of the UserNamespaceRepository object+ """+ id: ID!++ """+ The name of the repository.+ """+ name: String!++ """+ The repository's name with owner.+ """+ nameWithOwner: String!++ """+ The user owner of the repository.+ """+ owner: RepositoryOwner!+}++"""+A list of repositories owned by users in an enterprise with Enterprise Managed Users.+"""+type UserNamespaceRepositoryConnection {+ """+ A list of edges.+ """+ edges: [UserNamespaceRepositoryEdge]++ """+ A list of nodes.+ """+ nodes: [UserNamespaceRepository]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type UserNamespaceRepositoryEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: UserNamespaceRepository+}++"""+The user's description of what they're currently doing.+"""+type UserStatus implements Node @docsCategory(name: "users") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ An emoji summarizing the user's status.+ """+ emoji: String++ """+ The status emoji as HTML.+ """+ emojiHTML: HTML++ """+ If set, the status will not be shown after this date.+ """+ expiresAt: DateTime++ """+ The Node ID of the UserStatus object+ """+ id: ID!++ """+ Whether this status indicates the user is not fully available on GitHub.+ """+ indicatesLimitedAvailability: Boolean!++ """+ A brief message describing what the user is doing.+ """+ message: String++ """+ The organization whose members can see this status. If null, this status is publicly visible.+ """+ organization: Organization++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The user who has this status.+ """+ user: User!+}++"""+The connection type for UserStatus.+"""+type UserStatusConnection {+ """+ A list of edges.+ """+ edges: [UserStatusEdge]++ """+ A list of nodes.+ """+ nodes: [UserStatus]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type UserStatusEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: UserStatus+}++"""+Ordering options for user status connections.+"""+input UserStatusOrder @docsCategory(name: "users") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order user statuses by.+ """+ field: UserStatusOrderField!+}++"""+Properties by which user status connections can be ordered.+"""+enum UserStatusOrderField @docsCategory(name: "users") {+ """+ Order user statuses by when they were updated.+ """+ UPDATED_AT+}++"""+Whether a user being viewed contains public or private information.+"""+enum UserViewType @docsCategory(name: "users") {+ """+ A user containing information only visible to the authenticated user.+ """+ PRIVATE++ """+ A user that is publicly visible.+ """+ PUBLIC+}++"""+A domain that can be verified or approved for an organization or an enterprise.+"""+type VerifiableDomain implements Node @docsCategory(name: "orgs") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The DNS host name that should be used for verification.+ """+ dnsHostName: URI++ """+ The unicode encoded domain.+ """+ domain: URI!++ """+ Whether a TXT record for verification with the expected host name was found.+ """+ hasFoundHostName: Boolean!++ """+ Whether a TXT record for verification with the expected verification token was found.+ """+ hasFoundVerificationToken: Boolean!++ """+ The Node ID of the VerifiableDomain object+ """+ id: ID!++ """+ Whether or not the domain is approved.+ """+ isApproved: Boolean!++ """+ Whether this domain is required to exist for an organization or enterprise policy to be enforced.+ """+ isRequiredForPolicyEnforcement: Boolean!++ """+ Whether or not the domain is verified.+ """+ isVerified: Boolean!++ """+ The owner of the domain.+ """+ owner: VerifiableDomainOwner!++ """+ The punycode encoded domain.+ """+ punycodeEncodedDomain: URI!++ """+ The time that the current verification token will expire.+ """+ tokenExpirationTime: DateTime++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The current verification token for the domain.+ """+ verificationToken: String+}++"""+The connection type for VerifiableDomain.+"""+type VerifiableDomainConnection {+ """+ A list of edges.+ """+ edges: [VerifiableDomainEdge]++ """+ A list of nodes.+ """+ nodes: [VerifiableDomain]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type VerifiableDomainEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: VerifiableDomain+}++"""+Ordering options for verifiable domain connections.+"""+input VerifiableDomainOrder @docsCategory(name: "orgs") {+ """+ The ordering direction.+ """+ direction: OrderDirection!++ """+ The field to order verifiable domains by.+ """+ field: VerifiableDomainOrderField!+}++"""+Properties by which verifiable domain connections can be ordered.+"""+enum VerifiableDomainOrderField @docsCategory(name: "orgs") {+ """+ Order verifiable domains by their creation date.+ """+ CREATED_AT++ """+ Order verifiable domains by the domain name.+ """+ DOMAIN+}++"""+Types that can own a verifiable domain.+"""+union VerifiableDomainOwner @docsCategory(name: "orgs") = Enterprise | Organization++"""+Autogenerated input type of VerifyVerifiableDomain+"""+input VerifyVerifiableDomainInput {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The ID of the verifiable domain to verify.+ """+ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"])+}++"""+Autogenerated return type of VerifyVerifiableDomain.+"""+type VerifyVerifiableDomainPayload {+ """+ A unique identifier for the client performing the mutation.+ """+ clientMutationId: String++ """+ The verifiable domain that was verified.+ """+ domain: VerifiableDomain+}++"""+A hovercard context with a message describing how the viewer is related.+"""+type ViewerHovercardContext implements HovercardContext @docsCategory(name: "users") {+ """+ A string describing this context+ """+ message: String!++ """+ An octicon to accompany this context+ """+ octicon: String!++ """+ Identifies the user who is related to this context.+ """+ viewer: User!+}++"""+A subject that may be upvoted.+"""+interface Votable @docsCategory(name: "discussions") {+ """+ Number of upvotes that this subject has received.+ """+ upvoteCount: Int!++ """+ Whether or not the current user can add or remove an upvote on this subject.+ """+ viewerCanUpvote: Boolean!++ """+ Whether or not the current user has already upvoted this subject.+ """+ viewerHasUpvoted: Boolean!+}++"""+A workflow contains meta information about an Actions workflow file.+"""+type Workflow implements Node & UniformResourceLocatable @docsCategory(name: "actions") {+ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The Node ID of the Workflow object+ """+ id: ID!++ """+ The name of the workflow.+ """+ name: String!++ """+ The HTTP path for this workflow+ """+ resourcePath: URI!++ """+ The runs of the workflow.+ """+ runs(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int++ """+ Ordering options for the connection+ """+ orderBy: WorkflowRunOrder = {field: CREATED_AT, direction: DESC}+ ): WorkflowRunConnection!++ """+ The state of the workflow.+ """+ state: WorkflowState!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this workflow+ """+ url: URI!+}++"""+A workflow that must run for this rule to pass+"""+type WorkflowFileReference @docsCategory(name: "actions") {+ """+ The path to the workflow file+ """+ path: String!++ """+ The ref (branch or tag) of the workflow file to use+ """+ ref: String++ """+ The ID of the repository where the workflow is defined+ """+ repositoryId: Int!++ """+ The commit SHA of the workflow file to use+ """+ sha: String+}++"""+A workflow that must run for this rule to pass+"""+input WorkflowFileReferenceInput @docsCategory(name: "actions") {+ """+ The path to the workflow file+ """+ path: String!++ """+ The ref (branch or tag) of the workflow file to use+ """+ ref: String++ """+ The ID of the repository where the workflow is defined+ """+ repositoryId: Int!++ """+ The commit SHA of the workflow file to use+ """+ sha: String+}++"""+A workflow run.+"""+type WorkflowRun implements Node & UniformResourceLocatable @docsCategory(name: "actions") {+ """+ The check suite this workflow run belongs to.+ """+ checkSuite: CheckSuite!++ """+ Identifies the date and time when the object was created.+ """+ createdAt: DateTime!++ """+ Identifies the primary key from the database.+ """+ databaseId: Int++ """+ The log of deployment reviews+ """+ deploymentReviews(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DeploymentReviewConnection!++ """+ The human-readable title of the workflow run.+ """+ displayTitle: String++ """+ The event that triggered the workflow run+ """+ event: String!++ """+ The workflow file+ """+ file: WorkflowRunFile++ """+ The Node ID of the WorkflowRun object+ """+ id: ID!++ """+ The pending deployment requests of all check runs in this workflow run+ """+ pendingDeploymentRequests(+ """+ Returns the elements in the list that come after the specified cursor.+ """+ after: String++ """+ Returns the elements in the list that come before the specified cursor.+ """+ before: String++ """+ Returns the first _n_ elements from the list.+ """+ first: Int++ """+ Returns the last _n_ elements from the list.+ """+ last: Int+ ): DeploymentRequestConnection!++ """+ The HTTP path for this workflow run+ """+ resourcePath: URI!++ """+ The attempt number of this workflow run.+ """+ runAttempt: Int!++ """+ A number that uniquely identifies this workflow run in its parent workflow.+ """+ runNumber: Int!++ """+ Identifies the date and time when the object was last updated.+ """+ updatedAt: DateTime!++ """+ The HTTP URL for this workflow run+ """+ url: URI!++ """+ The workflow executed in this workflow run.+ """+ workflow: Workflow!+}++"""+The connection type for WorkflowRun.+"""+type WorkflowRunConnection {+ """+ A list of edges.+ """+ edges: [WorkflowRunEdge]++ """+ A list of nodes.+ """+ nodes: [WorkflowRun]++ """+ Information to aid in pagination.+ """+ pageInfo: PageInfo!++ """+ Identifies the total count of items in the connection.+ """+ totalCount: Int!+}++"""+An edge in a connection.+"""+type WorkflowRunEdge {+ """+ A cursor for use in pagination.+ """+ cursor: String!++ """+ The item at the end of the edge.+ """+ node: WorkflowRun+}++"""+An executed workflow file for a workflow run.+"""+type WorkflowRunFile implements Node & UniformResourceLocatable @docsCategory(name: "actions") {+ """+ The Node ID of the WorkflowRunFile object+ """+ id: ID!++ """+ The path of the workflow file relative to its repository.+ """+ path: String!++ """+ The direct link to the file in the repository which stores the workflow file.+ """+ repositoryFileUrl: URI!++ """+ The repository name and owner which stores the workflow file.+ """+ repositoryName: URI!++ """+ The HTTP path for this workflow run file+ """+ resourcePath: URI!++ """+ The parent workflow run execution for this file.+ """+ run: WorkflowRun!++ """+ The HTTP URL for this workflow run file+ """+ url: URI!++ """+ If the viewer has permissions to push to the repository which stores the workflow.+ """+ viewerCanPushRepository: Boolean!++ """+ If the viewer has permissions to read the repository which stores the workflow.+ """+ viewerCanReadRepository: Boolean!+}++"""+Ways in which lists of workflow runs can be ordered upon return.+"""+input WorkflowRunOrder @docsCategory(name: "actions") {+ """+ The direction in which to order workflow runs by the specified field.+ """+ direction: OrderDirection!++ """+ The field by which to order workflows.+ """+ field: WorkflowRunOrderField!+}++"""+Properties by which workflow run connections can be ordered.+"""+enum WorkflowRunOrderField @docsCategory(name: "actions") {+ """+ Order workflow runs by most recently created+ """+ CREATED_AT+}++"""+The possible states for a workflow.+"""+enum WorkflowState @docsCategory(name: "actions") {+ """+ The workflow is active.+ """+ ACTIVE++ """+ The workflow was deleted from the git repository.+ """+ DELETED++ """+ The workflow was disabled by default on a fork.+ """+ DISABLED_FORK++ """+ The workflow was disabled for inactivity in the repository.+ """+ DISABLED_INACTIVITY++ """+ The workflow was disabled manually.+ """+ DISABLED_MANUALLY+}++"""+Require all changes made to a targeted branch to pass the specified workflows before they can be merged.+"""+type WorkflowsParameters @docsCategory(name: "actions") {+ """+ Allow repositories and branches to be created if a check would otherwise prohibit it.+ """+ doNotEnforceOnCreate: Boolean!++ """+ Workflows that must pass for this rule to pass.+ """+ workflows: [WorkflowFileReference!]!+}++"""+Require all changes made to a targeted branch to pass the specified workflows before they can be merged.+"""+input WorkflowsParametersInput @docsCategory(name: "actions") {+ """+ Allow repositories and branches to be created if a check would otherwise prohibit it.+ """+ doNotEnforceOnCreate: Boolean++ """+ Workflows that must pass for this rule to pass.+ """+ workflows: [WorkflowFileReferenceInput!]!+}++"""+A valid x509 certificate string+"""+scalar X509Certificatediff --git a/packages/source-control-github/schema/github.graphql.ts b/packages/source-control-github/schema/github.graphql.tsnew file mode 100644index 00000000000..9ac930c9ffe--- /dev/null+++ b/packages/source-control-github/schema/github.graphql.ts@@ -0,0 +1,404 @@+// Generated by @effect/graphql-generator. Do not edit.+import * as Schema from "effect/Schema"++export const Int = Schema.Number.check(Schema.isInt32())++export const ID = Schema.String++/** An ISO-8601 encoded UTC date string. */+export const DateTime = Schema.String++/** An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string. */+export const URI = Schema.String++/** A Git object ID. */+export const GitObjectID = Schema.String++/** A fully qualified reference name (e.g. `refs/heads/master`). */+export const GitRefname = Schema.String++/**+ * The possible states for a check suite or run conclusion.+ *+ * - `ACTION_REQUIRED`: The check suite or run requires action.+ * - `CANCELLED`: The check suite or run has been cancelled.+ * - `FAILURE`: The check suite or run has failed.+ * - `NEUTRAL`: The check suite or run was neutral.+ * - `SKIPPED`: The check suite or run was skipped.+ * - `STALE`: The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion.+ * - `STARTUP_FAILURE`: The check suite or run has failed at startup.+ * - `SUCCESS`: The check suite or run has succeeded.+ * - `TIMED_OUT`: The check suite or run has timed out.+ */+export const CheckConclusionState = Schema.Literals(["ACTION_REQUIRED", "CANCELLED", "FAILURE", "NEUTRAL", "SKIPPED", "STALE", "STARTUP_FAILURE", "SUCCESS", "TIMED_OUT"])+export type CheckConclusionState = typeof CheckConclusionState.Type++/**+ * The possible states of a check run in a status rollup.+ *+ * - `ACTION_REQUIRED`: The check run requires action.+ * - `CANCELLED`: The check run has been cancelled.+ * - `COMPLETED`: The check run has been completed.+ * - `FAILURE`: The check run has failed.+ * - `IN_PROGRESS`: The check run is in progress.+ * - `NEUTRAL`: The check run was neutral.+ * - `PENDING`: The check run is in pending state.+ * - `QUEUED`: The check run has been queued.+ * - `SKIPPED`: The check run was skipped.+ * - `STALE`: The check run was marked stale by GitHub. Only GitHub can use this conclusion.+ * - `STARTUP_FAILURE`: The check run has failed at startup.+ * - `SUCCESS`: The check run has succeeded.+ * - `TIMED_OUT`: The check run has timed out.+ * - `WAITING`: The check run is in waiting state.+ */+export const CheckRunState = Schema.Literals(["ACTION_REQUIRED", "CANCELLED", "COMPLETED", "FAILURE", "IN_PROGRESS", "NEUTRAL", "PENDING", "QUEUED", "SKIPPED", "STALE", "STARTUP_FAILURE", "SUCCESS", "TIMED_OUT", "WAITING"])+export type CheckRunState = typeof CheckRunState.Type++/**+ * The possible states for a check suite or run status.+ *+ * - `COMPLETED`: The check suite or run has been completed.+ * - `IN_PROGRESS`: The check suite or run is in progress.+ * - `PENDING`: The check suite or run is in pending state.+ * - `QUEUED`: The check suite or run has been queued.+ * - `REQUESTED`: The check suite or run has been requested.+ * - `WAITING`: The check suite or run is in waiting state.+ */+export const CheckStatusState = Schema.Literals(["COMPLETED", "IN_PROGRESS", "PENDING", "QUEUED", "REQUESTED", "WAITING"])+export type CheckStatusState = typeof CheckStatusState.Type++/**+ * The possible sides of a diff.+ *+ * - `LEFT`: The left side of the diff.+ * - `RIGHT`: The right side of the diff.+ */+export const DiffSide = Schema.Literals(["LEFT", "RIGHT"])+export type DiffSide = typeof DiffSide.Type++/**+ * The possible viewed states of a file .+ *+ * - `DISMISSED`: The file has new changes since last viewed.+ * - `UNVIEWED`: The file has not been marked as viewed.+ * - `VIEWED`: The file has been marked as viewed.+ */+export const FileViewedState = Schema.Literals(["DISMISSED", "UNVIEWED", "VIEWED"])+export type FileViewedState = typeof FileViewedState.Type++/**+ * Detailed status information about a pull request merge.+ *+ * - `BEHIND`: The head ref is out of date.+ * - `BLOCKED`: The merge is blocked.+ * - `CLEAN`: Mergeable and passing commit status.+ * - `DIRTY`: The merge commit cannot be cleanly created.+ * - `DRAFT`: The merge is blocked due to the pull request being a draft. Deprecated: DRAFT state will be removed from this enum and `isDraft` should be used instead Use PullRequest.isDraft instead. Removal on 2021-01-01 UTC.+ * - `HAS_HOOKS`: Mergeable with passing commit status and pre-receive hooks.+ * - `UNKNOWN`: The state cannot currently be determined.+ * - `UNSTABLE`: Mergeable with non-passing commit status.+ */+export const MergeStateStatus = Schema.Literals(["BEHIND", "BLOCKED", "CLEAN", "DIRTY", "DRAFT", "HAS_HOOKS", "UNKNOWN", "UNSTABLE"])+export type MergeStateStatus = typeof MergeStateStatus.Type++/**+ * Whether or not a PullRequest can be merged.+ *+ * - `CONFLICTING`: The pull request cannot be merged due to merge conflicts.+ * - `MERGEABLE`: The pull request can be merged.+ * - `UNKNOWN`: The mergeability of the pull request is still being calculated.+ */+export const MergeableState = Schema.Literals(["CONFLICTING", "MERGEABLE", "UNKNOWN"])+export type MergeableState = typeof MergeableState.Type++/**+ * The possible methods for updating a pull request's head branch with the base branch.+ *+ * - `MERGE`: Update branch via merge+ * - `REBASE`: Update branch via rebase+ */+export const PullRequestBranchUpdateMethod = Schema.Literals(["MERGE", "REBASE"])+export type PullRequestBranchUpdateMethod = typeof PullRequestBranchUpdateMethod.Type++/**+ * Represents available types of methods to use when merging a pull request.+ *+ * - `MERGE`: Add all commits from the head branch to the base branch with a merge commit.+ * - `REBASE`: Add all commits from the head branch onto the base branch individually.+ * - `SQUASH`: Combine all commits from the head branch into a single commit in the base branch.+ */+export const PullRequestMergeMethod = Schema.Literals(["MERGE", "REBASE", "SQUASH"])+export type PullRequestMergeMethod = typeof PullRequestMergeMethod.Type++/**+ * The review status of a pull request.+ *+ * - `APPROVED`: The pull request has received an approving review.+ * - `CHANGES_REQUESTED`: Changes have been requested on the pull request.+ * - `REVIEW_REQUIRED`: A review is required before the pull request can be merged.+ */+export const PullRequestReviewDecision = Schema.Literals(["APPROVED", "CHANGES_REQUESTED", "REVIEW_REQUIRED"])+export type PullRequestReviewDecision = typeof PullRequestReviewDecision.Type++/**+ * The possible states of a pull request review.+ *+ * - `APPROVED`: A review allowing the pull request to merge.+ * - `CHANGES_REQUESTED`: A review blocking the pull request from merging.+ * - `COMMENTED`: An informational review.+ * - `DISMISSED`: A review that has been dismissed.+ * - `PENDING`: A review that has not yet been submitted.+ */+export const PullRequestReviewState = Schema.Literals(["APPROVED", "CHANGES_REQUESTED", "COMMENTED", "DISMISSED", "PENDING"])+export type PullRequestReviewState = typeof PullRequestReviewState.Type++/**+ * The possible states of a pull request.+ *+ * - `CLOSED`: A pull request that has been closed without being merged.+ * - `MERGED`: A pull request that has been closed by being merged.+ * - `OPEN`: A pull request that is still open.+ */+export const PullRequestState = Schema.Literals(["CLOSED", "MERGED", "OPEN"])+export type PullRequestState = typeof PullRequestState.Type++/**+ * Emojis that can be attached to Issues, Pull Requests and Comments.+ *+ * - `CONFUSED`: Represents the `:confused:` emoji.+ * - `EYES`: Represents the `:eyes:` emoji.+ * - `HEART`: Represents the `:heart:` emoji.+ * - `HOORAY`: Represents the `:hooray:` emoji.+ * - `LAUGH`: Represents the `:laugh:` emoji.+ * - `ROCKET`: Represents the `:rocket:` emoji.+ * - `THUMBS_DOWN`: Represents the `:-1:` emoji.+ * - `THUMBS_UP`: Represents the `:+1:` emoji.+ */+export const ReactionContent = Schema.Literals(["CONFUSED", "EYES", "HEART", "HOORAY", "LAUGH", "ROCKET", "THUMBS_DOWN", "THUMBS_UP"])+export type ReactionContent = typeof ReactionContent.Type++/**+ * The access level to a repository+ *+ * - `ADMIN`: Can read, clone, and push to this repository. Can also manage issues, pull requests, and repository settings, including adding collaborators+ * - `MAINTAIN`: Can read, clone, and push to this repository. They can also manage issues, pull requests, and some repository settings+ * - `READ`: Can read and clone this repository. Can also open and comment on issues and pull requests+ * - `TRIAGE`: Can read and clone this repository. Can also manage issues and pull requests+ * - `TRIAGE_PLUS`: Can read and clone this repository. Can also manage issues and pull requests, plus additional triage abilities+ * - `WRITE`: Can read, clone, and push to this repository. Can also manage issues and pull requests+ */+export const RepositoryPermission = Schema.Literals(["ADMIN", "MAINTAIN", "READ", "TRIAGE", "TRIAGE_PLUS", "WRITE"])+export type RepositoryPermission = typeof RepositoryPermission.Type++/**+ * The possible commit status states.+ *+ * - `ERROR`: Status is errored.+ * - `EXPECTED`: Status is expected.+ * - `FAILURE`: Status is failing.+ * - `PENDING`: Status is pending.+ * - `SUCCESS`: Status is successful.+ */+export const StatusState = Schema.Literals(["ERROR", "EXPECTED", "FAILURE", "PENDING", "SUCCESS"])+export type StatusState = typeof StatusState.Type++/** Autogenerated input type of EnablePullRequestAutoMerge */+export const EnablePullRequestAutoMergeInput = Schema.Struct({+ /** The email address to associate with this merge. */+ authorEmail: Schema.optional(Schema.NullOr(Schema.String)),+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.optional(Schema.NullOr(Schema.String)),+ /**+ * Commit body to use for the commit when the PR is mergable; if omitted, a+ * default message will be used. NOTE: when merging with a merge queue any input+ * value for commit message is ignored.+ */+ commitBody: Schema.optional(Schema.NullOr(Schema.String)),+ /**+ * Commit headline to use for the commit when the PR is mergable; if omitted, a+ * default message will be used. NOTE: when merging with a merge queue any input+ * value for commit headline is ignored.+ */+ commitHeadline: Schema.optional(Schema.NullOr(Schema.String)),+ /** The expected head OID of the pull request. */+ expectedHeadOid: Schema.optional(Schema.NullOr(GitObjectID)),+ /**+ * The merge method to use. If omitted, defaults to `MERGE`. NOTE: when merging+ * with a merge queue any input value for merge method is ignored.+ *+ * @default MERGE+ */+ mergeMethod: Schema.optional(Schema.NullOr(PullRequestMergeMethod)),+ /** ID of the pull request to enable auto-merge on. */+ pullRequestId: ID+})+export interface EnablePullRequestAutoMergeInput extends Schema.Struct.Type<typeof EnablePullRequestAutoMergeInput.fields> {}++/** Autogenerated input type of MergePullRequest */+export const MergePullRequestInput = Schema.Struct({+ /** The email address to associate with this merge. */+ authorEmail: Schema.optional(Schema.NullOr(Schema.String)),+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.optional(Schema.NullOr(Schema.String)),+ /** Commit body to use for the merge commit; if omitted, a default message will be used */+ commitBody: Schema.optional(Schema.NullOr(Schema.String)),+ /** Commit headline to use for the merge commit; if omitted, a default message will be used. */+ commitHeadline: Schema.optional(Schema.NullOr(Schema.String)),+ /** OID that the pull request head ref must match to allow merge; if omitted, no check is performed. */+ expectedHeadOid: Schema.optional(Schema.NullOr(GitObjectID)),+ /**+ * The merge method to use. If omitted, defaults to 'MERGE'+ *+ * @default MERGE+ */+ mergeMethod: Schema.optional(Schema.NullOr(PullRequestMergeMethod)),+ /** ID of the pull request to be merged. */+ pullRequestId: ID+})+export interface MergePullRequestInput extends Schema.Struct.Type<typeof MergePullRequestInput.fields> {}++/** A ref update */+export const RefUpdate = Schema.Struct({+ /** The value this ref should be updated to. */+ afterOid: GitObjectID,+ /** The value this ref needs to point to before the update. */+ beforeOid: Schema.optional(Schema.NullOr(GitObjectID)),+ /**+ * Force a non fast-forward update.+ *+ * @default false+ */+ force: Schema.optional(Schema.NullOr(Schema.Boolean)),+ /** The fully qualified name of the ref to be update. For example `refs/heads/branch-name` */+ name: GitRefname+})+export interface RefUpdate extends Schema.Struct.Type<typeof RefUpdate.fields> {}++/** Autogenerated input type of UpdateRefs */+export const UpdateRefsInput = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.optional(Schema.NullOr(Schema.String)),+ /** A list of ref updates. */+ refUpdates: Schema.Array(RefUpdate),+ /** The Node ID of the repository. */+ repositoryId: ID+})+export interface UpdateRefsInput extends Schema.Struct.Type<typeof UpdateRefsInput.fields> {}++/** The possible `__typename` values of each interface and union the operations select from. */+export declare namespace Typename {+ /** Every possible `__typename` of interface `Actor`. */+ export type Actor = "Bot" | "EnterpriseUserAccount" | "Mannequin" | "Organization" | "User"+ /** Every possible `__typename` of interface `GitObject`. */+ export type GitObject = "Blob" | "Commit" | "Tag" | "Tree"+ /** Every possible `__typename` of interface `Node`. */+ export type Node =+ | "AddedToMergeQueueEvent" | "AddedToProjectEvent" | "AddedToProjectV2Event" | "AddedToStackEvent" | "App"+ | "AssignedEvent" | "AutoMergeDisabledEvent" | "AutoMergeEnabledEvent" | "AutoRebaseEnabledEvent"+ | "AutoSquashEnabledEvent" | "AutomaticBaseChangeFailedEvent" | "AutomaticBaseChangeSucceededEvent"+ | "BaseRefChangedEvent" | "BaseRefDeletedEvent" | "BaseRefForcePushedEvent" | "Blob" | "BlockedByAddedEvent"+ | "BlockedByRemovedEvent" | "BlockingAddedEvent" | "BlockingRemovedEvent" | "Bot" | "BranchProtectionRule"+ | "BypassForcePushAllowance" | "BypassPullRequestAllowance" | "CWE" | "CheckRun" | "CheckSuite" | "ClosedEvent"+ | "CodeOfConduct" | "CommentDeletedEvent" | "Commit" | "CommitComment" | "CommitCommentThread" | "Comparison"+ | "ConnectedEvent" | "ConvertToDraftEvent" | "ConvertedFromDraftEvent" | "ConvertedNoteToIssueEvent"+ | "ConvertedToDiscussionEvent" | "CrossReferencedEvent" | "DemilestonedEvent" | "DependencyGraphManifest"+ | "DeployKey" | "DeployedEvent" | "Deployment" | "DeploymentEnvironmentChangedEvent" | "DeploymentReview"+ | "DeploymentStatus" | "DisconnectedEvent" | "Discussion" | "DiscussionCategory" | "DiscussionComment"+ | "DiscussionPoll" | "DiscussionPollOption" | "DraftIssue" | "Enterprise" | "EnterpriseAdministratorInvitation"+ | "EnterpriseIdentityProvider" | "EnterpriseMemberInvitation" | "EnterpriseRepositoryInfo"+ | "EnterpriseServerInstallation" | "EnterpriseServerUserAccount" | "EnterpriseServerUserAccountEmail"+ | "EnterpriseServerUserAccountsUpload" | "EnterpriseTeam" | "EnterpriseUserAccount" | "Environment"+ | "ExternalIdentity" | "Gist" | "GistComment" | "HeadRefDeletedEvent" | "HeadRefForcePushedEvent"+ | "HeadRefRestoredEvent" | "IpAllowListEntry" | "Issue" | "IssueComment" | "IssueCommentPinnedEvent"+ | "IssueCommentUnpinnedEvent" | "IssueFieldAddedEvent" | "IssueFieldChangedEvent" | "IssueFieldDate"+ | "IssueFieldDateValue" | "IssueFieldMultiSelect" | "IssueFieldMultiSelectValue" | "IssueFieldNumber"+ | "IssueFieldNumberValue" | "IssueFieldRemovedEvent" | "IssueFieldSingleSelect" | "IssueFieldSingleSelectOption"+ | "IssueFieldSingleSelectValue" | "IssueFieldText" | "IssueFieldTextValue" | "IssueType" | "IssueTypeAddedEvent"+ | "IssueTypeChangedEvent" | "IssueTypeRemovedEvent" | "Label" | "LabeledEvent" | "Language" | "License"+ | "LinkedBranch" | "LockedEvent" | "Mannequin" | "MarkedAsDuplicateEvent" | "MarketplaceCategory"+ | "MarketplaceListing" | "MemberFeatureRequestNotification" | "MembersCanDeleteReposClearAuditEntry"+ | "MembersCanDeleteReposDisableAuditEntry" | "MembersCanDeleteReposEnableAuditEntry" | "MentionedEvent"+ | "MergeQueue" | "MergeQueueEntry" | "MergedEvent" | "MigrationSource" | "Milestone" | "MilestonedEvent"+ | "MovedColumnsInProjectEvent" | "OIDCProvider" | "OauthApplicationCreateAuditEntry"+ | "OrgAddBillingManagerAuditEntry" | "OrgAddMemberAuditEntry" | "OrgBlockUserAuditEntry"+ | "OrgConfigDisableCollaboratorsOnlyAuditEntry" | "OrgConfigEnableCollaboratorsOnlyAuditEntry"+ | "OrgCreateAuditEntry" | "OrgDisableOauthAppRestrictionsAuditEntry" | "OrgDisableSamlAuditEntry"+ | "OrgDisableTwoFactorRequirementAuditEntry" | "OrgEnableOauthAppRestrictionsAuditEntry" | "OrgEnableSamlAuditEntry"+ | "OrgEnableTwoFactorRequirementAuditEntry" | "OrgInviteMemberAuditEntry" | "OrgInviteToBusinessAuditEntry"+ | "OrgOauthAppAccessApprovedAuditEntry" | "OrgOauthAppAccessBlockedAuditEntry" | "OrgOauthAppAccessDeniedAuditEntry"+ | "OrgOauthAppAccessRequestedAuditEntry" | "OrgOauthAppAccessUnblockedAuditEntry"+ | "OrgRemoveBillingManagerAuditEntry" | "OrgRemoveMemberAuditEntry" | "OrgRemoveOutsideCollaboratorAuditEntry"+ | "OrgRestoreMemberAuditEntry" | "OrgUnblockUserAuditEntry" | "OrgUpdateDefaultRepositoryPermissionAuditEntry"+ | "OrgUpdateMemberAuditEntry" | "OrgUpdateMemberRepositoryCreationPermissionAuditEntry"+ | "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" | "Organization" | "OrganizationIdentityProvider"+ | "OrganizationInvitation" | "OrganizationMigration" | "Package" | "PackageFile" | "PackageTag" | "PackageVersion"+ | "ParentIssueAddedEvent" | "ParentIssueRemovedEvent" | "PendingAssigneeSuggestion" | "PendingCloseSuggestion"+ | "PendingFieldSuggestion" | "PendingLabelSuggestion" | "PendingTypeSuggestion" | "PinnedDiscussion"+ | "PinnedEnvironment" | "PinnedEvent" | "PinnedIssue" | "PinnedIssueComment"+ | "PrivateRepositoryForkingDisableAuditEntry" | "PrivateRepositoryForkingEnableAuditEntry" | "Project"+ | "ProjectCard" | "ProjectColumn" | "ProjectV2" | "ProjectV2Field" | "ProjectV2Item" | "ProjectV2ItemFieldDateValue"+ | "ProjectV2ItemFieldIterationValue" | "ProjectV2ItemFieldMultiSelectValue" | "ProjectV2ItemFieldNumberValue"+ | "ProjectV2ItemFieldSingleSelectValue" | "ProjectV2ItemFieldTextValue" | "ProjectV2ItemStatusChangedEvent"+ | "ProjectV2IterationField" | "ProjectV2MultiSelectField" | "ProjectV2SingleSelectField" | "ProjectV2StatusUpdate"+ | "ProjectV2View" | "ProjectV2Workflow" | "PublicKey" | "PullRequest" | "PullRequestCommit"+ | "PullRequestCommitCommentThread" | "PullRequestReview" | "PullRequestReviewComment" | "PullRequestReviewThread"+ | "PullRequestStack" | "PullRequestStackEntry" | "PullRequestThread" | "Push" | "PushAllowance" | "Query"+ | "Reaction" | "ReadyForReviewEvent" | "Ref" | "ReferencedEvent" | "Release" | "ReleaseAsset"+ | "RemovedFromMergeQueueEvent" | "RemovedFromProjectEvent" | "RemovedFromProjectV2Event" | "RemovedFromStackEvent"+ | "RenamedTitleEvent" | "ReopenedEvent" | "RepoAccessAuditEntry" | "RepoAddMemberAuditEntry"+ | "RepoAddTopicAuditEntry" | "RepoArchivedAuditEntry" | "RepoChangeMergeSettingAuditEntry"+ | "RepoConfigDisableAnonymousGitAccessAuditEntry" | "RepoConfigDisableCollaboratorsOnlyAuditEntry"+ | "RepoConfigDisableContributorsOnlyAuditEntry" | "RepoConfigDisableSockpuppetDisallowedAuditEntry"+ | "RepoConfigEnableAnonymousGitAccessAuditEntry" | "RepoConfigEnableCollaboratorsOnlyAuditEntry"+ | "RepoConfigEnableContributorsOnlyAuditEntry" | "RepoConfigEnableSockpuppetDisallowedAuditEntry"+ | "RepoConfigLockAnonymousGitAccessAuditEntry" | "RepoConfigUnlockAnonymousGitAccessAuditEntry"+ | "RepoCreateAuditEntry" | "RepoDestroyAuditEntry" | "RepoRemoveMemberAuditEntry" | "RepoRemoveTopicAuditEntry"+ | "Repository" | "RepositoryCustomProperty" | "RepositoryInvitation" | "RepositoryMigration" | "RepositoryRule"+ | "RepositoryRuleset" | "RepositoryRulesetBypassActor" | "RepositoryTopic"+ | "RepositoryVisibilityChangeDisableAuditEntry" | "RepositoryVisibilityChangeEnableAuditEntry"+ | "RepositoryVulnerabilityAlert" | "ReviewDismissalAllowance" | "ReviewDismissedEvent" | "ReviewRequest"+ | "ReviewRequestRemovedEvent" | "ReviewRequestedEvent" | "SavedReply" | "SecurityAdvisory" | "SponsorsActivity"+ | "SponsorsListing" | "SponsorsListingFeaturedItem" | "SponsorsTier" | "Sponsorship" | "SponsorshipNewsletter"+ | "Status" | "StatusCheckRollup" | "StatusContext" | "SubIssueAddedEvent" | "SubIssueRemovedEvent"+ | "SubscribedEvent" | "Tag" | "Team" | "TeamAddMemberAuditEntry" | "TeamAddRepositoryAuditEntry"+ | "TeamChangeParentTeamAuditEntry" | "TeamRemoveMemberAuditEntry" | "TeamRemoveRepositoryAuditEntry" | "Topic"+ | "TransferredEvent" | "Tree" | "UnassignedEvent" | "UnlabeledEvent" | "UnlockedEvent" | "UnmarkedAsDuplicateEvent"+ | "UnpinnedEvent" | "UnsubscribedEvent" | "User" | "UserBlockedEvent" | "UserContentEdit" | "UserList"+ | "UserNamespaceRepository" | "UserStatus" | "VerifiableDomain" | "Workflow" | "WorkflowRun" | "WorkflowRunFile"+ /** Every possible `__typename` of union `PullRequestTimelineItems`. */+ export type PullRequestTimelineItems =+ | "AddedToMergeQueueEvent" | "AddedToProjectEvent" | "AddedToProjectV2Event" | "AddedToStackEvent" | "AssignedEvent"+ | "AutoMergeDisabledEvent" | "AutoMergeEnabledEvent" | "AutoRebaseEnabledEvent" | "AutoSquashEnabledEvent"+ | "AutomaticBaseChangeFailedEvent" | "AutomaticBaseChangeSucceededEvent" | "BaseRefChangedEvent"+ | "BaseRefDeletedEvent" | "BaseRefForcePushedEvent" | "BlockedByAddedEvent" | "BlockedByRemovedEvent"+ | "BlockingAddedEvent" | "BlockingRemovedEvent" | "ClosedEvent" | "CommentDeletedEvent" | "ConnectedEvent"+ | "ConvertToDraftEvent" | "ConvertedFromDraftEvent" | "ConvertedNoteToIssueEvent" | "ConvertedToDiscussionEvent"+ | "CrossReferencedEvent" | "DemilestonedEvent" | "DeployedEvent" | "DeploymentEnvironmentChangedEvent"+ | "DisconnectedEvent" | "HeadRefDeletedEvent" | "HeadRefForcePushedEvent" | "HeadRefRestoredEvent" | "IssueComment"+ | "IssueCommentPinnedEvent" | "IssueCommentUnpinnedEvent" | "IssueFieldAddedEvent" | "IssueFieldChangedEvent"+ | "IssueFieldRemovedEvent" | "IssueTypeAddedEvent" | "IssueTypeChangedEvent" | "IssueTypeRemovedEvent"+ | "LabeledEvent" | "LockedEvent" | "MarkedAsDuplicateEvent" | "MentionedEvent" | "MergedEvent" | "MilestonedEvent"+ | "MovedColumnsInProjectEvent" | "ParentIssueAddedEvent" | "ParentIssueRemovedEvent" | "PinnedEvent"+ | "ProjectV2ItemStatusChangedEvent" | "PullRequestCommit" | "PullRequestCommitCommentThread" | "PullRequestReview"+ | "PullRequestReviewThread" | "PullRequestRevisionMarker" | "ReadyForReviewEvent" | "ReferencedEvent"+ | "RemovedFromMergeQueueEvent" | "RemovedFromProjectEvent" | "RemovedFromProjectV2Event" | "RemovedFromStackEvent"+ | "RenamedTitleEvent" | "ReopenedEvent" | "ReviewDismissedEvent" | "ReviewRequestRemovedEvent"+ | "ReviewRequestedEvent" | "SubIssueAddedEvent" | "SubIssueRemovedEvent" | "SubscribedEvent" | "TransferredEvent"+ | "UnassignedEvent" | "UnlabeledEvent" | "UnlockedEvent" | "UnmarkedAsDuplicateEvent" | "UnpinnedEvent"+ | "UnsubscribedEvent" | "UserBlockedEvent"+ /** Every possible `__typename` of interface `Reactable`. */+ export type Reactable =+ | "CommitComment" | "Discussion" | "DiscussionComment" | "Issue" | "IssueComment" | "PullRequest"+ | "PullRequestReview" | "PullRequestReviewComment" | "Release"+ /** Every possible `__typename` of union `Reactor`. */+ export type Reactor = "Bot" | "Mannequin" | "Organization" | "User"+ /** Every possible `__typename` of interface `RepositoryOwner`. */+ export type RepositoryOwner = "Organization" | "User"+ /** Every possible `__typename` of union `RequestedReviewer`. */+ export type RequestedReviewer = "Bot" | "EnterpriseTeam" | "Mannequin" | "Team" | "User"+ /** Every possible `__typename` of union `SearchResultItem`. */+ export type SearchResultItem =+ | "App" | "Discussion" | "Issue" | "MarketplaceListing" | "Organization" | "PullRequest" | "Repository" | "User"+ /** Every possible `__typename` of union `StatusCheckRollupContext`. */+ export type StatusCheckRollupContext = "CheckRun" | "StatusContext"+}diff --git a/packages/source-control-github/src/server/GitHubApi.ts b/packages/source-control-github/src/server/GitHubApi.tsdeleted file mode 100644index 63f8531086d..00000000000--- a/packages/source-control-github/src/server/GitHubApi.ts+++ /dev/null@@ -1,587 +0,0 @@-import { SourceControlProviderKind } from "@t3tools/contracts";-import * as Clock from "effect/Clock";-import * as Context from "effect/Context";-import * as Data from "effect/Data";-import * as Duration from "effect/Duration";-import * as Effect from "effect/Effect";-import * as Layer from "effect/Layer";-import * as Option from "effect/Option";-import * as Redacted from "effect/Redacted";-import * as Schema from "effect/Schema";-import * as Semaphore from "effect/Semaphore";-import { HttpClient, HttpClientRequest, type HttpClientResponse } from "effect/http";--import { collectUint8StreamText } from "@t3tools/provider-core/server/collectStreamText";-import * as GitHubCredentials from "./GitHubCredentials.ts";-import * as GitHubQuota from "./GitHubQuota.ts";-import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";--const DEFAULT_TIMEOUT = Duration.seconds(30);-const DEFAULT_MAX_RESPONSE_BYTES = 8 * 1024 * 1024;-/** Polite to GitHub's secondary limits, which punish bursts of concurrent requests. */-const CONCURRENCY = 8;-const API_VERSION = "2022-11-28";--/**- * A credential already verified for one host. Every request made under it must target that- * host, so a page cannot read one account's data with another's token mid-flight. Server-local:- * never put its value in RPC payloads or cache keys.- */-export const PinnedGitHubCredential = Context.Reference<{- readonly host: string;- readonly token: Redacted.Redacted<string>;- readonly credentialFingerprint: string;-} | null>("@t3tools/source-control-github/server/GitHubApi/PinnedGitHubCredential", {- defaultValue: () => null,-});--export class GitHubApiRequestError extends Schema.TaggedError<GitHubApiRequestError>()(- "GitHubApiRequestError",- { host: Schema.String, operation: Schema.String, cause: Schema.Defect() },-) {- override get message(): string {- return `Could not reach GitHub at ${this.host}.`;- }-}--export class GitHubApiAuthenticationError extends Schema.TaggedError<GitHubApiAuthenticationError>()(- "GitHubApiAuthenticationError",- { host: Schema.String, operation: Schema.String },-) {- override get message(): string {- return `GitHub refused the credential for ${this.host}. Run \`gh auth login --hostname ${this.host}\` and retry.`;- }-}--export class GitHubApiRateLimitError extends Schema.TaggedError<GitHubApiRateLimitError>()(- "GitHubApiRateLimitError",- {- host: Schema.String,- operation: Schema.String,- retryAt: Schema.optionalKey(Schema.Finite),- },-) {- override get message(): string {- return "GitHub API rate limit exceeded.";- }-}--export class GitHubApiNotFoundError extends Schema.TaggedError<GitHubApiNotFoundError>()(- "GitHubApiNotFoundError",- { host: Schema.String, operation: Schema.String },-) {- override get message(): string {- return "GitHub could not find the requested resource, or the credential cannot see it.";- }-}--/**- * GitHub answered with a failure that is none of the above. `githubErrors` carries GitHub's own- * error messages, from a GraphQL `errors` list or a REST `message`/`errors` body: they name the- * field and the reason ("A pull request already exists for acme:feature"), never a token.- */-export class GitHubApiResponseError extends Schema.TaggedError<GitHubApiResponseError>()(- "GitHubApiResponseError",- {- host: Schema.String,- operation: Schema.String,- status: Schema.Int,- githubErrors: Schema.optionalKey(Schema.Array(Schema.String)),- },-) {- override get message(): string {- return this.githubErrors !== undefined && this.githubErrors.length > 0- ? `GitHub returned an error: ${this.githubErrors.join("; ")}`- : `GitHub returned HTTP ${this.status}.`;- }-}--export type GitHubApiError =- | GitHubCredentials.GitHubCredentialUnavailableError- | GitHubApiRequestError- | GitHubApiAuthenticationError- | GitHubApiRateLimitError- | GitHubApiNotFoundError- | GitHubApiResponseError- | SourceControlRateLimit.SourceControlRateLimitPausedError;--export interface GitHubRestResponse {- readonly status: number;- readonly headers: Readonly<Record<string, string | undefined>>;- readonly body: string;- readonly truncated: boolean;- /** The body was not valid UTF-8, which a raw file read takes to mean binary. */- readonly invalidUtf8: boolean;-}--export interface GitHubRestInput {- readonly host: string;- readonly operation: string;- readonly method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";- /** Relative to the API root, e.g. `repos/acme/web/pulls/7`; query string included. */- readonly path: string;- readonly body?: unknown;- /** Defaults to `application/vnd.github+json`. */- readonly accept?: string;- /** Revalidates a cached answer. A 304 is returned rather than failed, and is free. */- readonly ifNoneMatch?: string;- readonly maxResponseBytes?: number;- /** Defaults to 30 seconds; a whole pull request's patch may need longer. */- readonly timeout?: Duration.Input;- /** Overrides `SourceControlRateLimit.Interactive` for this one request. */- readonly allowReserve?: boolean;-}--export interface GitHubGraphQlInput {- readonly host: string;- readonly operation: string;- readonly query: string;- readonly variables?: Readonly<Record<string, unknown>>;- readonly allowReserve?: boolean;- readonly maxResponseBytes?: number;-}--export class GitHubApi extends Context.Service<- GitHubApi,- {- /** The raw JSON body of a successful GraphQL answer, with `rateLimit` recorded. */- readonly graphql: (input: GitHubGraphQlInput) => Effect.Effect<string, GitHubApiError>;- readonly rest: (input: GitHubRestInput) => Effect.Effect<GitHubRestResponse, GitHubApiError>;- /** The credential a request to `host` would carry right now. */- readonly credential: (- host: string,- ) => Effect.Effect<- { readonly token: Redacted.Redacted<string>; readonly fingerprint: string },- GitHubApiError- >;- }->()("@t3tools/source-control-github/server/GitHubApi") {}--function normalizeHost(host: string): string {- return host.trim().toLowerCase();-}--/**- * Where the API for a host lives. github.com and GHE.com data residency serve it from an `api.`- * subdomain; GitHub Enterprise Server serves it under `/api` on the instance itself.- */-export function gitHubApiUrls(host: string): { readonly rest: string; readonly graphql: string } {- const normalized = normalizeHost(host);- if (normalized === "github.com") {- return { rest: "https://api.github.com", graphql: "https://api.github.com/graphql" };- }- if (normalized.endsWith(".ghe.com")) {- return {- rest: `https://api.${normalized}`,- graphql: `https://api.${normalized}/graphql`,- };- }- return { rest: `https://${normalized}/api/v3`, graphql: `https://${normalized}/api/graphql` };-}--/** GraphQL documents longer than this are cut in traces; the hash still identifies them. */-const TRACED_QUERY_MAX_CHARS = 4_000;--/** A stable short id for a GraphQL document, so traces group by query without its text. */-function queryHash(query: string): string {- let hash = 0x811c9dc5;- for (let index = 0; index < query.length; index++) {- hash ^= query.charCodeAt(index);- hash = Math.imul(hash, 0x01000193);- }- return (hash >>> 0).toString(16).padStart(8, "0");-}--/** The numeric rate-limit headers GitHub sends, as span attributes. */-function rateLimitAttributes(- headers: Readonly<Record<string, string | undefined>>,-): Record<string, number | string> {- const attributes: Record<string, number | string> = {};- for (const [header, name] of [- ["x-ratelimit-limit", "github.ratelimit.limit"],- ["x-ratelimit-remaining", "github.ratelimit.remaining"],- ["x-ratelimit-used", "github.ratelimit.used"],- ["x-ratelimit-reset", "github.ratelimit.reset"],- ] as const) {- const value = Number(headers[header]);- if (headers[header] !== undefined && Number.isFinite(value)) attributes[name] = value;- }- const resource = headers["x-ratelimit-resource"];- if (resource !== undefined) attributes["github.ratelimit.resource"] = resource;- return attributes;-}--/** The pause GitHub asked for, from `retry-after` or the primary limit's reset. */-function retryAtFrom(- headers: Readonly<Record<string, string | undefined>>,- now: number,-): number | undefined {- const fromRetryAfter = SourceControlRateLimit.retryAtFromHeader(headers["retry-after"], now);- if (fromRetryAfter !== undefined) return fromRetryAfter;- const reset = Number(headers["x-ratelimit-reset"]) * 1_000;- return Number.isFinite(reset) && reset > now ? reset : undefined;-}--const decodeGraphQlErrors = Schema.decodeUnknownOption(- Schema.fromJsonString(- Schema.Struct({- errors: Schema.NonEmptyArray(- Schema.Struct({- type: Schema.optional(Schema.String),- message: Schema.optional(Schema.String),- }),- ),- }),- ),-);--/** A REST failure body: `{ message, errors: [{ message } | { resource, field, code }] }`. */-const decodeRestErrors = Schema.decodeUnknownOption(- Schema.fromJsonString(- Schema.Struct({- message: Schema.optional(Schema.String),- errors: Schema.optional(- Schema.Array(- Schema.Union([- Schema.String,- Schema.Struct({- message: Schema.optional(Schema.String),- field: Schema.optional(Schema.String),- code: Schema.optional(Schema.String),- }),- ]),- ),- ),- }),- ),-);--function restErrorMessages(body: string): ReadonlyArray<string> | undefined {- return Option.match(decodeRestErrors(body), {- onNone: () => undefined,- onSome: (decoded) => {- const details = (decoded.errors ?? []).flatMap((error) =>- typeof error === "string"- ? [error]- : error.message !== undefined- ? [error.message]- : error.field !== undefined && error.code !== undefined- ? [`${error.field} ${error.code}`]- : [],- );- const messages = [...(decoded.message === undefined ? [] : [decoded.message]), ...details];- return messages.length > 0 ? messages : undefined;- },- });-}--/** What one GitHub answer means, decided once from its status, headers and body. */-type Answer = Data.TaggedEnum<{- Ok: {};- RateLimited: {};- Unauthorized: {};- NotFound: {};- Failed: { readonly messages: ReadonlyArray<string> | undefined };-}>;-const Answer = Data.taggedEnum<Answer>();--/**- * GitHub reports a failed GraphQL document with HTTP 200 and an `errors` list, so a GraphQL body- * is read for its error types as well as its status. `gh api graphql` failed those too, and- * callers rely on that to fall back to narrower reads.- */-function classify(input: {- readonly status: number;- readonly headers: Readonly<Record<string, string | undefined>>;- readonly body: string;- readonly graphql: boolean;- readonly acceptNotModified: boolean;-}): Answer {- const { status, headers, body } = input;- const errors = input.graphql- ? Option.getOrUndefined(decodeGraphQlErrors(body))?.errors- : undefined;- const types = errors?.flatMap((error) => (error.type === undefined ? [] : [error.type])) ?? [];- const messages = errors?.flatMap((error) => (error.message === undefined ? [] : [error.message]));- if (- status === 429 ||- types.includes("RATE_LIMITED") ||- // An exhausted GraphQL quota can answer HTTP 200 with an untyped "API rate limit already- // exceeded" error; the headers say the same thing.- (input.graphql && errors !== undefined && headers["x-ratelimit-remaining"] === "0") ||- (input.graphql &&- messages !== undefined &&- messages.some((message) => /rate limit (already )?exceeded/i.test(message))) ||- (status === 403 &&- (headers["x-ratelimit-remaining"] === "0" ||- headers["retry-after"] !== undefined ||- /rate limit/i.test(body)))- ) {- return Answer.RateLimited();- }- if (status === 401) return Answer.Unauthorized();- if (- status === 404 ||- (errors !== undefined && errors.every((error) => error.type === "NOT_FOUND"))- ) {- return Answer.NotFound();- }- if (errors !== undefined) return Answer.Failed({ messages });- if ((status >= 200 && status < 300) || (status === 304 && input.acceptNotModified)) {- return Answer.Ok();- }- return Answer.Failed({ messages: input.graphql ? undefined : restErrorMessages(body) });-}--/** @public Service construction is part of the canonical Effect module API. */-export const make = Effect.gen(function* () {- const httpClient = yield* HttpClient.HttpClient;- const credentials = yield* GitHubCredentials.GitHubCredentials;- const quota = yield* GitHubQuota.GitHubQuota;- const limits = yield* SourceControlRateLimit.SourceControlRateLimit;- const gate = yield* Semaphore.make(CONCURRENCY);-- const credential: GitHubApi["Service"]["credential"] = Effect.fn("GitHubApi.credential")(- function* (host) {- const normalized = normalizeHost(host);- const pinned = yield* PinnedGitHubCredential;- if (pinned !== null) {- // A pinned page only ever talks to the host it verified.- if (pinned.host !== normalized) {- return yield* new GitHubApiAuthenticationError({- host: normalized,- operation: "credential",- });- }- return { token: pinned.token, fingerprint: pinned.credentialFingerprint };- }- const held = yield* credentials.get(normalized);- return { token: held.token, fingerprint: held.fingerprint };- },- );-- /**- * Sends one request under the host's rate-limit pause and fails a refusal with the error that- * says why. `onSuccess` sees the answer only once it is known to be one.- */- const send = Effect.fn("GitHubApi.send")(function* (input: {- readonly host: string;- readonly operation: string;- readonly request: HttpClientRequest.HttpClientRequest;- readonly maxResponseBytes: number;- readonly timeout?: Duration.Input | undefined;- readonly allowReserve: boolean;- readonly acceptNotModified: boolean;- /** Reads the body for GraphQL `errors`, which GitHub sends with HTTP 200. */- readonly graphql?: boolean;- }) {- const host = normalizeHost(input.host);- // Only the path: a query string can carry a SHA or a branch, and never needs to be in a trace.- yield* Effect.annotateCurrentSpan({- "github.host": host,- "github.operation": input.operation,- "github.kind": input.graphql === true ? "graphql" : "rest",- "http.request.method": input.request.method,- "url.path": new URL(input.request.url).pathname,- });- const { token, fingerprint } = yield* credential(host);- const scope = yield* SourceControlRateLimit.CredentialScope;- // REST spends `core` and GraphQL its own quota, each with its own reserve. Every REST path- // this reads today is `core`; a `search/` read would need its own resource here. A refusal- // still pauses the whole host, the key PullRequestService records its own backoff under.- const resource = input.graphql === true ? "graphql" : "core";- const key = { provider: SourceControlProviderKind.make("github"), host };- const run = Effect.gen(function* () {- const lease = yield* quota- .admit(host, resource, { allowReserve: input.allowReserve })- .pipe(- Effect.andThen(limits.check(key, input.allowReserve ? { allowPaused: true } : undefined)),- )- .pipe(- Effect.tapError((paused) =>- Effect.annotateCurrentSpan({- "github.paused": true,- "github.retry_at": paused.retryAt,- }),- ),- );- // One deadline covers the headers and the body: a host that answers headers and then stalls- // must not hold a slot of the shared gate for undici's own five-minute body timeout.- const { response, collected } = yield* Effect.gen(function* () {- const response: HttpClientResponse.HttpClientResponse = yield* httpClient- .execute(- input.request.pipe(- HttpClientRequest.bearerToken(Redacted.value(token)),- HttpClientRequest.setHeaders({- "x-github-api-version": API_VERSION,- "user-agent": "t3code",- }),- ),- )- .pipe(- // `GitHubApi.send` is the request's span. The client's own span would add `url.full`- // and `url.query`, which can carry SHAs and branch names, so it is off for GitHub.- Effect.provideService(HttpClient.TracerDisabledWhen, () => true),- );- const collected = yield* collectUint8StreamText({- stream: response.stream,- maxBytes: input.maxResponseBytes,- }).pipe(- // 204, 304 and many refusals carry no body at all, which is an empty answer.- Effect.catchIf(- (error) => error.reason._tag === "EmptyBodyError",- () => Effect.succeed({ text: "", truncated: false, invalidUtf8: false }),- ),- );- return { response, collected };- }).pipe(- Effect.timeout(input.timeout ?? DEFAULT_TIMEOUT),- Effect.mapError(- (cause) => new GitHubApiRequestError({ host, operation: input.operation, cause }),- ),- );- const headers = response.headers;- const status = response.status;- yield* quota.observe(host, headers);- yield* Effect.annotateCurrentSpan({- "http.response.status_code": status,- ...rateLimitAttributes(headers),- });- const context = { host, operation: input.operation };- return yield* Answer.$match(- classify({- status,- headers,- body: collected.text,- graphql: input.graphql === true,- acceptNotModified: input.acceptNotModified,- }),- {- Ok: () =>- limits.recordSuccess({ ...key, lease }).pipe(- Effect.as({- status,- headers,- body: collected.text,- truncated: collected.truncated,- invalidUtf8: collected.invalidUtf8,- }),- ),- RateLimited: () =>- Effect.gen(function* () {- const retryAt = retryAtFrom(headers, yield* Clock.currentTimeMillis);- yield* limits.recordRateLimit({ ...key, lease, retryAt });- yield* Effect.annotateCurrentSpan({- "github.rate_limited": true,- ...(retryAt === undefined ? {} : { "github.retry_at": retryAt }),- });- return yield* new GitHubApiRateLimitError({- ...context,- ...(retryAt === undefined ? {} : { retryAt }),- });- }),- // The source may hold a newer token than the one that was refused.- Unauthorized: () =>- credentials- .invalidate(host)- .pipe(Effect.andThen(Effect.fail(new GitHubApiAuthenticationError(context)))),- NotFound: () => Effect.fail(new GitHubApiNotFoundError(context)),- Failed: ({ messages }) =>- Effect.fail(- new GitHubApiResponseError({- ...context,- status,- ...(messages === undefined ? {} : { githubErrors: messages }),- }),- ),- },- );- });- // The rate-limit scope follows the credential, so a pause on one account never blocks another.- return yield* gate- .withPermit(run)- .pipe(Effect.provideService(SourceControlRateLimit.CredentialScope, scope || fingerprint));- });-- const rest: GitHubApi["Service"]["rest"] = (input) => {- const url = `${gitHubApiUrls(input.host).rest}/${input.path.replace(/^\/+/, "")}`;- const base = HttpClientRequest.make(input.method ?? "GET")(url).pipe(- HttpClientRequest.setHeader("accept", input.accept ?? "application/vnd.github+json"),- );- const withEtag =- input.ifNoneMatch === undefined- ? base- : base.pipe(HttpClientRequest.setHeader("if-none-match", input.ifNoneMatch));- const request =- input.body === undefined- ? withEtag- : withEtag.pipe(HttpClientRequest.bodyJsonUnsafe(input.body));- return SourceControlRateLimit.Interactive.pipe(- Effect.flatMap((interactive) =>- send({- host: input.host,- operation: input.operation,- request,- maxResponseBytes: input.maxResponseBytes ?? DEFAULT_MAX_RESPONSE_BYTES,- timeout: input.timeout,- allowReserve: input.allowReserve ?? interactive,- acceptNotModified: input.ifNoneMatch !== undefined,- }),- ),- );- };-- const graphql: GitHubApi["Service"]["graphql"] = Effect.fn("GitHubApi.graphql")(- function* (input) {- const host = normalizeHost(input.host);- const allowReserve = input.allowReserve ?? (yield* SourceControlRateLimit.Interactive);- // The document, never its variables: user text (bodies, search terms) travels as variables.- yield* Effect.annotateCurrentSpan({- "github.operation": input.operation,- "github.graphql.query_hash": queryHash(input.query),- "github.graphql.query":- input.query.length > TRACED_QUERY_MAX_CHARS- ? `${input.query.slice(0, TRACED_QUERY_MAX_CHARS)}…`- : input.query,- });- const response = yield* send({- host,- operation: input.operation,- request: HttpClientRequest.post(gitHubApiUrls(host).graphql).pipe(- HttpClientRequest.acceptJson,- HttpClientRequest.bodyJsonUnsafe({- query: input.query,- variables: input.variables ?? {},- }),- ),- maxResponseBytes: input.maxResponseBytes ?? DEFAULT_MAX_RESPONSE_BYTES,- allowReserve,- acceptNotModified: false,- graphql: true,- });- // A body cut at the byte cap hides any `errors` past the cut and cannot be decoded.- if (response.truncated) {- return yield* new GitHubApiResponseError({- host,- operation: input.operation,- status: response.status,- });- }- return response.body;- },- );-- return GitHubApi.of({ graphql, rest, credential });-});--export const layer = Layer.effect(GitHubApi, make);--/**- * The transport with the credential, quota reserve and rate-limit pause it reads through. An- * application builds this once so every GitHub reader shares one view of each quota per host.- */-export const layerWithDependencies = layer.pipe(- Layer.provideMerge(GitHubCredentials.layer),- Layer.provideMerge(GitHubQuota.layer),- Layer.provideMerge(SourceControlRateLimit.layer),-);diff --git a/packages/source-control-github/src/server/GitHubPullRequestApi.test.ts b/packages/source-control-github/src/server/GitHubPullRequestApi.test.tsindex 0881add16e8..1aff0879bec 100644--- a/packages/source-control-github/src/server/GitHubPullRequestApi.test.ts+++ b/packages/source-control-github/src/server/GitHubPullRequestApi.test.ts@@ -6,13 +6,15 @@ import * as Clock from "effect/Clock";import * as Deferred from "effect/Deferred";import * as Fiber from "effect/Fiber";import * as Layer from "effect/Layer";+import * as Result from "effect/Result";import * as Schema from "effect/Schema";import * as TestClock from "effect/testing/TestClock";import * as Redacted from "effect/Redacted";import { HttpClient, HttpClientResponse } from "effect/http";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import * as GitHubCredentials from "./GitHubCredentials.ts";import * as GitHubQuota from "./GitHubQuota.ts";import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";@@ -34,6 +36,21 @@ const coreResponse = (pullRequest: Readonly<Record<string, unknown>> = {}) => ({number: 7,title: "Pull request 7",url: "https://github.com/acme/web/pull/7",+ body: "",+ isDraft: false,+ mergeable: "MERGEABLE",+ reviewDecision: null,+ additions: 0,+ deletions: 0,+ changedFiles: 0,+ mergedAt: null,+ closedAt: null,+ isCrossRepository: false,+ headRepositoryOwner: null,+ headRepository: null,+ headRef: null,+ author: null,+ autoMergeRequest: null,headRefName: "feature",baseRefName: "main",headRefOid: "abc123",@@ -55,10 +72,19 @@ const coreResponse = (pullRequest: Readonly<Record<string, unknown>> = {}) => ({/** One request the CLI made, as the transport received it. */type ApiCall =- | ({ readonly kind: "graphql" } & GitHubApi.GitHubGraphQlInput)- | ({ readonly kind: "rest" } & GitHubApi.GitHubRestInput);--type ApiAnswer = Effect.Effect<GitHubApi.GitHubRestResponse, GitHubApi.GitHubApiError>;+ | {+ readonly kind: "graphql";+ readonly partial?: boolean;+ /** The generated operation's name, which the routes below match on. */+ readonly operationName?: string;+ readonly host: string;+ readonly operation: string;+ readonly query: string;+ readonly variables?: Readonly<Record<string, unknown>>;+ }+ | ({ readonly kind: "rest" } & GitHubRest.GitHubRestInput);++type ApiAnswer = Effect.Effect<GitHubRest.GitHubRestResponse, GitHubRequestPolicy.GitHubApiError>;const mockedExecute = vi.fn<(call: ApiCall) => ApiAnswer>();const defaultCredential = (host: string) =>@@ -68,40 +94,85 @@ const mockedStackMemberships = vi.fn<(call: ApiCall) => ApiAnswer>(() =>Effect.succeed(output('{"data":{}}')),);+/** The REST transport, answered from the mocks above. */+const mockApi = Layer.succeed(+ GitHubRest.GitHubRest,+ GitHubRest.GitHubRest.of({+ rest: (input) => mockedExecute({ kind: "rest", ...input }),+ credential: (host) => mockedCredential(host),+ }),+);+/**- * A transport that answers from the mocks above but spends the real GraphQL quota from each- * answer's headers, the way GitHubApi does, so the reserve behaviour is still the module's to prove.+ * The HTTP side of the generated GraphQL reads, answered from the same mocks: a request to a+ * host's GraphQL endpoint is recorded as a `graphql` call, carrying the `partial` flag the batches+ * read with, and answered with the mocked body, status and headers.*/-const mockApi = Layer.effect(- GitHubApi.GitHubApi,- Effect.gen(function* () {- const quota = yield* GitHubQuota.GitHubQuota;- return GitHubApi.GitHubApi.of({- graphql: (input) =>- SourceControlRateLimit.Interactive.pipe(- Effect.flatMap((interactive) =>- quota.admit(input.host, "graphql", {- allowReserve: input.allowReserve ?? interactive,- }),- ),- Effect.andThen(() =>- (input.query.includes("query PullRequestStackMemberships")- ? mockedStackMemberships- : mockedExecute)({ kind: "graphql", ...input }),- ),- Effect.tap((answer) => quota.observe(input.host, answer.headers)),- Effect.map((answer) => answer.body),- ),- rest: (input) => mockedExecute({ kind: "rest", ...input }),- credential: (host) => mockedCredential(host),- });- }),+const mockHttp = Layer.succeed(+ HttpClient.HttpClient,+ HttpClient.make((request) =>+ Effect.gen(function* () {+ const host = new URL(request.url).hostname.replace(/^api\./, "");+ const sent =+ request.body._tag === "Uint8Array"+ ? (JSON.parse(new TextDecoder().decode(request.body.body)) as {+ readonly query: string;+ readonly operationName: string;+ readonly variables: Readonly<Record<string, unknown>>;+ })+ : { query: "", operationName: "", variables: {} };+ const call: ApiCall = {+ kind: "graphql",+ host,+ operation: "batch",+ operationName: sent.operationName,+ query: sent.query,+ variables: sent.variables,+ partial: true,+ };+ // A mocked failure with a status is what GitHub would have answered with it.+ const answer = yield* (+ sent.query.startsWith("query PullRequestStackMembership(")+ ? mockedStackMemberships+ : mockedExecute+ )(call).pipe(+ Effect.catchTags({+ GitHubApiResponseError: (error) =>+ Effect.succeed(output('{"message":"Bad gateway"}', false, false, {}, error.status)),+ }),+ Effect.orDie,+ );+ // A mutation mocked as `{}` is one whose answer the test does not read. GitHub always+ // answers a mutation that ran with `data`, so it is sent as the null payload it selects.+ const body =+ answer.body === "{}" && sent.query.startsWith("mutation ")+ ? encodeJson(mutationAnswer(sent.query))+ : answer.body;+ return HttpClientResponse.fromWeb(+ request,+ new Response(body, {+ status: answer.status,+ headers: { "content-type": "application/json", ...answer.headers },+ }),+ );+ }),+ ),);const layer = it.layer(GitHubPullRequestApi.layer.pipe(Layer.provideMerge(mockApi),+ Layer.provideMerge(GitHubRequestPolicy.layer),Layer.provideMerge(GitHubQuota.layer),+ Layer.provideMerge(SourceControlRateLimit.layer),+ Layer.provideMerge(mockHttp),+ Layer.provideMerge(+ Layer.succeed(GitHubCredentials.GitHubCredentials, {+ get: (host) =>+ Effect.map(mockedCredential(host), (held) => ({ ...held, host, source: "gh" as const })),+ invalidate: () => Effect.void,+ }),+ ),Layer.provide(NodeCrypto.layer),Layer.provide(TestSourceControlHost.layer()),Layer.provide(NodeServices.layer),@@ -114,8 +185,9 @@ function output(truncated = false,invalidUtf8 = false,headers: Readonly<Record<string, string>> = {},-): GitHubApi.GitHubRestResponse {- return { status: 200, headers, body, truncated, invalidUtf8 };+ status = 200,+): GitHubRest.GitHubRestResponse {+ return { status, headers, body, truncated, invalidUtf8 };}/** GitHub's GraphQL quota headers, leaving `remaining` of 5,000 until `resetAt`. */@@ -128,6 +200,23 @@ function graphqlQuota(remaining: number, resetAt = "2099-08-13T14:00:00Z") {};}+/** What every listing row answers with, which a fixture overrides only where it matters. */+const rowDefaults = {+ author: null,+ state: "OPEN",+ isDraft: false,+ mergeable: "UNKNOWN",+ reviewDecision: null,+ latestReviews: { nodes: [] },+ mergedAt: null,+ reviewRequests: { nodes: [] },+ labels: { nodes: [] },+ commits: { nodes: [] },+};++/** A connection's page info with no next page, as GitHub sends it: the cursor is always there. */+const lastPage = { hasNextPage: false, endCursor: null };+/*** Listing rows as GraphQL answers them. Overrides may use the flat shapes a test reads most* easily: `reviewRequests` as `[{ login }]` or `[{ slug }]`, and `checks` as the rollup state.@@ -144,6 +233,7 @@ function rows(checks?: string;} & Record<string, unknown>;return {+ ...rowDefaults,number,title: `Pull request ${number}`,url: `https://github.com/acme/web/pull/${number}`,@@ -156,7 +246,12 @@ function rows(? {}: {reviewRequests: {- nodes: reviewRequests.map((requestedReviewer) => ({ requestedReviewer })),+ nodes: reviewRequests.map((requestedReviewer) => ({+ requestedReviewer: {+ __typename: "slug" in requestedReviewer ? "Team" : "User",+ ...requestedReviewer,+ },+ })),},}),...(checks === undefined@@ -175,7 +270,7 @@ function pullRequests(): string {return encodeJson({data: {- search: { pageInfo: { hasNextPage: false }, nodes: rows(count, firstNumber, overrides) },+ search: { pageInfo: lastPage, nodes: rows(count, firstNumber, overrides) },},});}@@ -190,7 +285,7 @@ function listedPullRequests(data: {repository: {pullRequests: {- pageInfo: { hasNextPage: false },+ pageInfo: lastPage,nodes: rows(count, firstNumber, overrides),},},@@ -221,7 +316,15 @@ function threadComments(return {totalCount,pageInfo: { hasNextPage: endCursor !== null, endCursor },- nodes: ids.map((id) => ({ id, body: id, createdAt: "2026-07-01T00:00:00Z" })),+ nodes: ids.map((id) => ({+ id,+ author: null,+ body: id,+ createdAt: "2026-07-01T00:00:00Z",+ lastEditedAt: null,+ url: `https://github.com/acme/web/pull/7#discussion_${id}`,+ reactionGroups: [],+ })),};}@@ -243,6 +346,7 @@ function reviewThreadsPage(): string {return encodeJson({data: {+ viewer: { login: "viewer" },repository: {pullRequest: {reviewThreads: {@@ -250,6 +354,16 @@ function reviewThreadsPage(pageInfo: { hasNextPage: endCursor !== null, endCursor },nodes,},+ viewerCanUpdate: true,+ viewerDidAuthor: false,+ author: null,+ reactionGroups: [],+ comments: { nodes: [] },+ reviews: { nodes: [] },+ reviewRequests: { nodes: [] },+ latestReviews: { nodes: [] },+ reviewDismissals: { pageInfo: lastPage, nodes: [] },+ commits: { nodes: [] },},},},@@ -264,8 +378,10 @@ function threadCommentsPage(): string {return encodeJson({data: {+ viewer: { login: "viewer" },repository: { pullRequest: { id: "PR_7" } },node: {+ __typename: "PullRequestReviewThread",pullRequest: { id: pullRequestId },comments: threadComments(ids, endCursor, totalCount),},@@ -274,7 +390,7 @@ function threadCommentsPage(}/** What GitHub answers for a pull request it will not serve a whole diff for. */-const diffRefused = new GitHubApi.GitHubApiResponseError({+const diffRefused = new GitHubRequestPolicy.GitHubApiResponseError({host: "github.com",operation: "getPullRequestDiff",status: 406,@@ -315,10 +431,16 @@ function searchOfCall(index: number): string | undefined {/** One row as a search answers it, which is the listing's row one connection deeper. */function searchItem(number: number, repository: string, updatedAt: string) {return {+ ...rowDefaults,number,title: `Pull request ${number}`,url: `https://github.com/${repository}/pull/${number}`,- author: { login: "octocat", avatarUrl: "https://avatars/octocat" },+ author: {+ __typename: "User",+ login: "octocat",+ avatarUrl: "https://avatars/octocat",+ name: null,+ },headRefName: "feat/page",baseRefName: "main",state: "OPEN",@@ -327,38 +449,64 @@ function searchItem(number: number, repository: string, updatedAt: string) {createdAt: "2026-07-01T00:00:00Z",updatedAt,repository: { nameWithOwner: repository },- reviewRequests: { nodes: [{ requestedReviewer: { login: "hubot" } }] },+ reviewRequests: { nodes: [{ requestedReviewer: { __typename: "User", login: "hubot" } }] },labels: { nodes: [{ name: "bug", color: "ff0000" }] },};}function searchPage(nodes: ReadonlyArray<unknown>, hasNextPage = false) {- return output(encodeJson({ data: { search: { pageInfo: { hasNextPage }, nodes } } }));+ return output(+ encodeJson({+ data: {+ search: { pageInfo: { hasNextPage, endCursor: hasNextPage ? "next" : null }, nodes },+ },+ }),+ );}const searchQueryOfCall = searchOfCall;+/** Whether a request is the GraphQL operation `needle` names, or its document or path holds it. */+function matches(call: ApiCall, needle: string): boolean {+ return call.kind === "graphql"+ ? call.operationName === needle || call.query.includes(needle)+ : call.path.includes(needle);+}+/**- * Answers every request with the body of the first route whose needle its GraphQL document or- * REST path contains, and anything unrouted with an empty object, which a mutation never reads.+ * Answers every request with the body of the first route whose needle it matches, and any+ * unrouted mutation with the empty payload each one selects, which nothing reads back.*/function route(...routes: ReadonlyArray<readonly [needle: string, body: unknown]>): void {mockedExecute.mockImplementation((call) => {- const target = call.kind === "graphql" ? call.query : call.path;- const match = routes.find(([needle]) => target.includes(needle));- return Effect.succeed(output(match === undefined ? "{}" : encodeJson(match[1])));+ const match = routes.find(([needle]) => matches(call, needle));+ return Effect.succeed(+ output(+ match !== undefined+ ? encodeJson(match[1])+ : call.kind === "graphql" && call.query.startsWith("mutation ")+ ? encodeJson(mutationAnswer(call.query))+ : "{}",+ ),+ );});}-/** The variables of every GraphQL request whose document contains `needle`, in order. */+/** What a mutation answers when nothing is asked of its payload: each root field, null. */+function mutationAnswer(query: string) {+ const root = /\)\{(\w+)(?:\(|\{|@)/.exec(query)?.[1];+ return { data: root === undefined ? {} : { [root]: null } };+}++/** The variables of every GraphQL request `needle` matches, in order. */function variablesOf(needle: string): ReadonlyArray<Readonly<Record<string, unknown>>> {return mockedExecute.mock.calls.flatMap(([call]) =>- call.kind === "graphql" && call.query.includes(needle) ? [call.variables ?? {}] : [],+ call.kind === "graphql" && matches(call, needle) ? [call.variables ?? {}] : [],);}/** Every REST request whose path contains `needle`, in order. */-function restCallsTo(needle: string): ReadonlyArray<GitHubApi.GitHubRestInput> {+function restCallsTo(needle: string): ReadonlyArray<GitHubRest.GitHubRestInput> {return mockedExecute.mock.calls.flatMap(([call]) =>call.kind === "rest" && call.path.includes(needle) ? [call] : [],);@@ -368,14 +516,27 @@ function restCallsTo(needle: string): ReadonlyArray<GitHubApi.GitHubRestInput> {* The check that a client-given node hangs off the pull request it names. Routed before the node* id lookup, whose document it contains.*/-const SUBJECT_SCOPE_QUERY = "node(id: $subjectId)";+const SUBJECT_SCOPE_QUERY = "PullRequestSubject";const subjectScope = (subjectId: string, pullRequestId: string) => ({data: {repository: { pullRequest: { id: pullRequestId } },- node: { id: subjectId, pullRequest: { id: pullRequestId } },+ node: { __typename: "IssueComment", id: subjectId, pullRequest: { id: pullRequestId } },},});+/** A check run as the `CheckContext` fragment answers it, with `fields` over the defaults. */+const checkRun = (fields: Record<string, unknown>) => ({+ __typename: "CheckRun",+ name: "",+ status: "COMPLETED",+ conclusion: null,+ startedAt: null,+ completedAt: null,+ detailsUrl: null,+ checkSuite: { workflowRun: null },+ ...fields,+});+/** One page of a head commit's check contexts, the read a rollup past one page is walked by. */const checkContextsPage = (nodes: ReadonlyArray<Record<string, unknown>>,@@ -412,7 +573,7 @@ const crossRepositoryDetail = (headRefOid = "abc123") =>headRefName: "feat/page",headRefOid,isCrossRepository: true,- headRepositoryOwner: { login: "octocat" },+ headRepositoryOwner: { __typename: "User", login: "octocat" },});/** Open pull requests on one head branch, every one of them from the same fork head. */@@ -425,7 +586,7 @@ const heads = (numbers: ReadonlyArray<number>) => ({number,headRefOid: "abc123",isCrossRepository: true,- headRepositoryOwner: { login: "octocat" },+ headRepositoryOwner: { __typename: "User", login: "octocat" },})),},},@@ -453,7 +614,7 @@ function workflowApprovalRoutes(? call.path.endsWith("/approve")? "": encodeJson(runsAnswer)- : call.query.includes("headRefName: $head")+ : call.operationName === "PullRequestHeads"? encodeJson(headsAnswer): encodeJson(detail()),),@@ -462,7 +623,7 @@ function workflowApprovalRoutes(}/** The pull request node id lookup, which the layer caches for every test after the first. */-const NODE_ID_QUERY = "pullRequest(number: $number) { id }";+const NODE_ID_QUERY = "PullRequestNodeId";const nodeIdAnswer = (id: string) => ({ data: { repository: { pullRequest: { id } } } });afterEach(() => {@@ -499,17 +660,25 @@ it.effect(requests.push({ url: request.url, authorization: request.headers["authorization"] });const body = request.url.endsWith("/user")? { id: 123, login: "same-account" }- : { data: { repository: { pullRequest: { id: "PR_1" } }, addComment: {} } };- return HttpClientResponse.fromWeb(request, new Response(encodeJson(body)));+ : {+ data: {+ repository: { pullRequest: { id: "PR_1" } },+ addComment: { clientMutationId: null },+ },+ };+ return HttpClientResponse.fromWeb(+ request,+ new Response(encodeJson(body), { headers: { "content-type": "application/json" } }),+ );}),),);const cli = yield* GitHubPullRequestApi.make.pipe(Effect.provide(- GitHubApi.layer.pipe(- Layer.provide(Layer.mergeAll(credentials, http)),- Layer.provide(GitHubQuota.layer),- Layer.provide(SourceControlRateLimit.layer),+ GitHubRest.layer.pipe(+ Layer.provideMerge(Layer.mergeAll(credentials, http)),+ Layer.provideMerge(GitHubQuota.layer),+ Layer.provideMerge(SourceControlRateLimit.layer),Layer.merge(TestSourceControlHost.layer()),Layer.provideMerge(NodeServices.layer),),@@ -618,6 +787,7 @@ layer("GitHubPullRequestApi.layer", (it) => {isDraft: false,createdAt: "2026-07-01T00:00:00Z",author: {+ __typename: "User",login: "octocat",name: "Octo Cat",avatarUrl: "https://github.example/avatar.png",@@ -708,14 +878,21 @@ layer("GitHubPullRequestApi.layer", (it) => {number,title: `Pull request ${number}`,url: `https://github.com/acme/web/pull/${number}`,- author: { __typename: "User", login: "octocat", name: "Octo Cat", avatarUrl: null },+ author: {+ __typename: "User",+ login: "octocat",+ name: "Octo Cat",+ avatarUrl: "https://avatars.githubusercontent.com/u/1",+ },baseRefName: "main",headRefName: `feat/${number}`,state: "OPEN",isDraft: false,mergeable: "MERGEABLE",reviewDecision: null,- latestReviews: { nodes: [{ state: "APPROVED", author: { login: "reviewer" } }] },+ latestReviews: {+ nodes: [{ state: "APPROVED", author: { __typename: "User", login: "reviewer" } }],+ },additions: 12,deletions: 3,changedFiles: 2,@@ -728,7 +905,10 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.succeed(output(encodeJson({- data: { s0: { pullRequest: node(7) }, s1: { pullRequest: node(8) } },+ data: {+ _0_repository: { pullRequest: node(7) },+ _1_repository: { pullRequest: node(8) },+ },}),),),@@ -774,13 +954,14 @@ layer("GitHubPullRequestApi.layer", (it) => {assert.strictEqual(eight?.headBranch, "feat/8");expect(mockedExecute).toHaveBeenCalledOnce();expect(queryAt(0)).toContain(- "s0: repository(owner: $s0_owner, name: $s0_name) { pullRequest(number: $s0_number)",+ "_0_repository:repository(owner:$_0_owner name:$_0_name){pullRequest(number:$_0_number)",);expect(varsAt(0)).toMatchObject({- s0_owner: "acme",- s0_name: "web",- s0_number: 7,- s1_number: 8,+ _0_owner: "acme",+ _0_name: "web",+ _0_number: 7,+ _0_stacks: true,+ _1_number: 8,});}),);@@ -800,7 +981,10 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.succeed(output(JSON.stringify({- data: { w0: { pullRequest: node(1) }, w1: { pullRequest: null } },+ data: {+ _0_repository: { pullRequest: node(1) },+ _1_repository: { pullRequest: null },+ },}),),),@@ -826,58 +1010,82 @@ layer("GitHubPullRequestApi.layer", (it) => {expect(eight).toBeNull();expect(mockedExecute).toHaveBeenCalledOnce();expect(queryAt(0)).toContain(- "w1: repository(owner: $w1_owner, name: $w1_name) { pullRequest(number: $w1_number)",+ "_1_repository:repository(owner:$_1_owner name:$_1_name){pullRequest(number:$_1_number)",);- expect(varsAt(0)).toMatchObject({ w1_owner: "acme", w1_name: "web", w1_number: 8 });+ expect(varsAt(0)).toMatchObject({ _1_owner: "acme", _1_name: "web", _1_number: 8 });}),);- it.effect("reads a pull request the batch said nothing about on its own", () =>- Effect.gen(function* () {- mockedExecute- .mockReturnValueOnce(Effect.succeed(output('{"data":{"s0":{"pullRequest":null}}}')))- .mockReturnValueOnce(+ it.effect(+ "fails only the pull request GitHub cannot find, and answers the rest of its batch",+ () =>+ Effect.gen(function* () {+ mockedExecute.mockReturnValueOnce(Effect.succeed(output(encodeJson({data: {- s0: {+ _0_repository: { pullRequest: null },+ _1_repository: {pullRequest: {- number: 7,- title: "Reuse the summary",- url: "https://github.com/acme/web/pull/7",- author: { login: "octocat", name: "Octo Cat" },+ number: 8,+ title: "Still here",+ url: "https://github.com/acme/web/pull/8",+ author: null,baseRefName: "main",- headRefName: "feat/summary",+ headRefName: "feat/eight",state: "OPEN",isDraft: false,mergeable: "MERGEABLE",- reviewDecision: "APPROVED",- additions: 12,- deletions: 3,- changedFiles: 2,+ reviewDecision: null,+ latestReviews: { nodes: [] },+ additions: 1,+ deletions: 1,+ changedFiles: 1,updatedAt: "2026-08-24T12:34:56.000Z",- commits: { nodes: [{ commit: { statusCheckRollup: { state: "SUCCESS" } } }] },+ mergedAt: null,+ closedAt: null,+ commits: { nodes: [] },+ stack: null,+ stackEntry: null,},},},+ errors: [+ {+ type: "NOT_FOUND",+ path: ["_0_repository", "pullRequest"],+ message: "Could not resolve to a PullRequest with the number of 7.",+ },+ ],}),),),);- const cli = yield* GitHubPullRequestApi.GitHubPullRequestApi;-- const read = yield* cli- .getPullRequestSummary({ cwd: "/w", repository: "acme/web", host: "github.com", number: 7 })- .pipe(Effect.forkChild);- yield* TestClock.adjust("10 millis");- const summary = yield* Fiber.join(read);+ const cli = yield* GitHubPullRequestApi.GitHubPullRequestApi;- assert.strictEqual(summary.headBranch, "feat/summary");- assert.strictEqual(summary.checksState, "passing");- assert.strictEqual(mockedExecute.mock.calls.length, 2);- expect(varsAt(1)).toEqual({ owner: "acme", name: "web", number: 7 });- }),+ const reads = yield* Effect.forEach(+ [7, 8],+ (number) =>+ cli+ .getPullRequestSummary({+ cwd: "/w",+ repository: "acme/web",+ host: "github.com",+ number,+ })+ .pipe(Effect.result),+ { concurrency: "unbounded" },+ ).pipe(Effect.forkChild);+ yield* TestClock.adjust("10 millis");+ const [seven, eight] = yield* Fiber.join(reads);++ expect(Result.isFailure(seven!) ? seven.failure._tag : null).toBe("GitHubApiNotFoundError");+ expect(Result.isSuccess(eight!) ? eight.success.headBranch : null).toBe("feat/eight");+ // One request answered both; nothing was read again on its own.+ expect(mockedExecute).toHaveBeenCalledOnce();+ expect(callAt(0)).toMatchObject({ kind: "graphql", partial: true });+ }),);it.effect("reads the stack a pull request is in through the stacks preview, on its host", () =>@@ -990,7 +1198,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockReturnValueOnce(Effect.fail(- new GitHubApi.GitHubApiNotFoundError({+ new GitHubRequestPolicy.GitHubApiNotFoundError({host: "github.com",operation: "getPullRequestStack",}),@@ -1013,7 +1221,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockReturnValueOnce(Effect.fail(- new GitHubApi.GitHubApiAuthenticationError({+ new GitHubRequestPolicy.GitHubApiAuthenticationError({host: "github.com",operation: "getPullRequestStack",}),@@ -1036,7 +1244,7 @@ layer("GitHubPullRequestApi.layer", (it) => {it.effect("preserves transient stack failures instead of reporting no stack", () =>Effect.gen(function* () {- const failure = new GitHubApi.GitHubApiResponseError({+ const failure = new GitHubRequestPolicy.GitHubApiResponseError({host: "github.com",operation: "getPullRequestStack",status: 503,@@ -1094,7 +1302,7 @@ layer("GitHubPullRequestApi.layer", (it) => {assert.isFalse(batch.truncated);expect(callAt(0)).toMatchObject({ kind: "graphql", host: "github.com" });expect(searchOfCall(0)).toBe("is:pr is:open sort:updated-desc repo:acme/web");- expect(queryAt(0)).toContain("first: 11");+ expect(varsAt(0)["first"]).toBe(11);}),);@@ -1153,7 +1361,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1179,7 +1387,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1204,7 +1412,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1419,13 +1627,13 @@ layer("GitHubPullRequestApi.layer", (it) => {output(encodeJson({data: {- s0: {+ _0_repository: {pullRequest: {stack: { number: 3, size: 2, baseRefName: "main" },stackEntry: { position: 1 },},},- s1: { pullRequest: { stack: null, stackEntry: null } },+ _1_repository: { pullRequest: { stack: null, stackEntry: null } },},}),),@@ -1464,7 +1672,7 @@ layer("GitHubPullRequestApi.layer", (it) => {mockedStackMemberships.mockImplementation((input) =>input.kind === "graphql" && Object.values(input.variables ?? {}).includes(26)? Effect.fail(- new GitHubApi.GitHubApiResponseError({+ new GitHubRequestPolicy.GitHubApiResponseError({host: "github.com",operation: "listPullRequestStackMemberships",status: 502,@@ -1473,14 +1681,22 @@ layer("GitHubPullRequestApi.layer", (it) => {: Effect.succeed(output(encodeJson({- data: {- s0: {- pullRequest: {- stack: { number: 3, size: 2, baseRefName: "main" },- stackEntry: { position: 1 },- },- },- },+ data: Object.fromEntries(+ Object.keys(input.kind === "graphql" ? (input.variables ?? {}) : {})+ .filter((name) => name.endsWith("_number"))+ .map((name, index) => [+ name.replace(/number$/, "repository"),+ {+ pullRequest:+ index === 0+ ? {+ stack: { number: 3, size: 2, baseRefName: "main" },+ stackEntry: { position: 1 },+ }+ : { stack: null, stackEntry: null },+ },+ ]),+ ),}),),),@@ -1534,11 +1750,22 @@ layer("GitHubPullRequestApi.layer", (it) => {repository: "acme/web",number: index + 1,}));- mockedExecute.mockImplementation(() =>- // Every chunk answers for its first alias only, so a row GitHub said nothing about is+ mockedExecute.mockImplementation((call) =>+ // Every chunk finds only its first pull request, so a row GitHub had nothing for is// dropped rather than shown as a change of no size.Effect.succeed(- output(encodeJson({ data: { s0: { pullRequest: { additions: 4, deletions: 1 } } } })),+ output(+ encodeJson({+ data: Object.fromEntries(+ Object.keys(call.kind === "graphql" ? (call.variables ?? {}) : {})+ .filter((name) => name.endsWith("_number"))+ .map((name, index) => [+ name.replace(/number$/, "repository"),+ { pullRequest: index === 0 ? { additions: 4, deletions: 1 } : null },+ ]),+ ),+ }),+ ),),);const cli = yield* GitHubPullRequestApi.GitHubPullRequestApi;@@ -1555,8 +1782,8 @@ layer("GitHubPullRequestApi.layer", (it) => {{ repository: "acme/web", number: 1, additions: 4, deletions: 1 },{ repository: "acme/web", number: 26, additions: 4, deletions: 1 },]);- expect(queryAt(0)).toContain("s0: repository(owner: $s0_owner, name: $s0_name)");- expect(varsAt(0)).toMatchObject({ s0_owner: "acme", s0_name: "web", s24_number: 25 });+ expect(queryAt(0)).toContain("_0_repository:repository(owner:$_0_owner name:$_0_name)");+ expect(varsAt(0)).toMatchObject({ _0_owner: "acme", _0_name: "web", _24_number: 25 });}),);@@ -1581,7 +1808,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1611,7 +1838,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1639,7 +1866,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1677,7 +1904,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1703,7 +1930,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1849,7 +2076,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1879,7 +2106,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -1909,7 +2136,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -2074,8 +2301,8 @@ layer("GitHubPullRequestApi.layer", (it) => {});expect(batch.items.map((item) => item.number)).toEqual([4]);- expect(queryAt(1)).toContain("first: 3,");- expect(queryAt(2)).toContain("first: 6,");+ expect(varsAt(1)["first"]).toBe(3);+ expect(varsAt(2)["first"]).toBe(6);assert.isFalse(batch.truncated);}),);@@ -2085,10 +2312,10 @@ layer("GitHubPullRequestApi.layer", (it) => {// A repository with far more pull requests than the bound, none of them for this reader.let listed = 0;mockedExecute.mockImplementation((call) => {- if (call.kind !== "graphql" || !call.query.includes("pullRequests(")) {+ if (call.kind !== "graphql" || call.operationName !== "PullRequestList") {return Effect.succeed(emptySearch());}- const first = Number(/first: (\d+)/.exec(call.query)?.[1]);+ const first = Number(call.variables?.["first"]);const nodes = rows(first, listed + 1, () => ({reviewRequests: [{ login: "somebody-else" }],}));@@ -2130,7 +2357,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -2265,7 +2492,10 @@ layer("GitHubPullRequestApi.layer", (it) => {({ basePermission, sourcePermission, headRef, expected, actionAllowed }) =>Effect.gen(function* () {const answer = coreResponse({- headRepository: sourcePermission === null ? null : { viewerPermission: sourcePermission },+ headRepository:+ sourcePermission === null+ ? null+ : { nameWithOwner: "acme/web", viewerPermission: sourcePermission },headRef,});answer.data.repository.viewerPermission = basePermission;@@ -2276,19 +2506,8 @@ layer("GitHubPullRequestApi.layer", (it) => {expect((yield* cli.getPullRequestDetail(input)).viewerAccess.canDeleteBranch).toBe(expected,);- for (const [call] of mockedExecute.mock.calls) {- if (- call.kind === "graphql" &&- !call.query.includes("query PullRequestStackMemberships")- ) {- if (call.query.includes("$headRef: String!")) {- expect(call.query).toContain("headRepository { nameWithOwner viewerPermission }");- expect(call.query).toContain("headRef { id }");- } else {- expect(call.query).toContain("headRepository { viewerPermission }");- }- }- }+ expect(variablesOf("ViewerPermissions")).toHaveLength(1);+ expect(variablesOf("PullRequestCore")).toHaveLength(1);}),);@@ -2310,7 +2529,7 @@ layer("GitHubPullRequestApi.layer", (it) => {});expect(detail.headRepositoryNameWithOwner).toBe("contributor/web-fork");expect(detail.viewerPermissions.actions).toContain("delete-branch");- expect(queryAt(0)).toContain("headRepository { nameWithOwner viewerPermission }");+ expect(queryAt(0)).toContain("headRepository{nameWithOwner viewerPermission}");}),);@@ -2331,8 +2550,9 @@ layer("GitHubPullRequestApi.layer", (it) => {const sourceBranch = (repository: Readonly<Record<string, unknown>> = {}) => ({data: {node: {+ __typename: "Repository",defaultBranchRef: { name: "main" },- ref: { target: { oid: "abc123" } },+ ref: { target: { __typename: "Commit", oid: "abc123" } },...repository,},},@@ -2341,8 +2561,8 @@ layer("GitHubPullRequestApi.layer", (it) => {it.effect.each(["MERGED", "CLOSED"])("deletes the exact remote fork branch of a %s PR", (state) =>Effect.gen(function* () {route(- ["query PullRequestBranchToDelete", branchToDelete({ state })],- ["query PullRequestSourceBranch", sourceBranch()],+ ["PullRequestBranchToDelete", branchToDelete({ state })],+ ["PullRequestSourceBranch", sourceBranch()],);const cli = yield* GitHubPullRequestApi.GitHubPullRequestApi;yield* cli.runPullRequestAction({@@ -2352,10 +2572,10 @@ layer("GitHubPullRequestApi.layer", (it) => {number: 7,action: "delete-branch",});- expect(variablesOf("query PullRequestBranchToDelete")).toEqual([+ expect(variablesOf("PullRequestBranchToDelete")).toEqual([{ owner: "acme", name: "web", number: 7 },]);- expect(variablesOf("query PullRequestSourceBranch")).toEqual([+ expect(variablesOf("PullRequestSourceBranch")).toEqual([{ repositoryId: "FORK_REPO", ref: "refs/heads/feat/delete" },]);expect(variablesOf("updateRefs(")).toEqual([@@ -2391,15 +2611,15 @@ layer("GitHubPullRequestApi.layer", (it) => {{description: "a changed branch",head: {},- source: { ref: { target: { oid: "new-commit" } } },+ source: { ref: { target: { __typename: "Commit", oid: "new-commit" } } },},{ description: "an unavailable source repository", head: {}, source: null },])("refuses to delete $description", ({ head, source }) =>Effect.gen(function* () {route(- ["query PullRequestBranchToDelete", branchToDelete(head)],+ ["PullRequestBranchToDelete", branchToDelete(head)],[- "query PullRequestSourceBranch",+ "PullRequestSourceBranch",source === null ? { data: { node: null } } : sourceBranch(source),],);@@ -2421,8 +2641,8 @@ layer("GitHubPullRequestApi.layer", (it) => {it.effect("accepts an already deleted source branch", () =>Effect.gen(function* () {route(- ["query PullRequestBranchToDelete", branchToDelete()],- ["query PullRequestSourceBranch", sourceBranch({ ref: null })],+ ["PullRequestBranchToDelete", branchToDelete()],+ ["PullRequestSourceBranch", sourceBranch({ ref: null })],);const cli = yield* GitHubPullRequestApi.GitHubPullRequestApi;yield* cli.runPullRequestAction({@@ -2439,14 +2659,14 @@ layer("GitHubPullRequestApi.layer", (it) => {it.effect("keeps the source branch when GitHub refuses deletion", () =>Effect.gen(function* () {route(- ["query PullRequestBranchToDelete", branchToDelete()],- ["query PullRequestSourceBranch", sourceBranch()],+ ["PullRequestBranchToDelete", branchToDelete()],+ ["PullRequestSourceBranch", sourceBranch()],);const answer = mockedExecute.getMockImplementation()!;mockedExecute.mockImplementation((call) =>call.kind === "graphql" && call.query.includes("updateRefs(")? Effect.fail(- new GitHubApi.GitHubApiResponseError({+ new GitHubRequestPolicy.GitHubApiResponseError({host: call.host,operation: call.operation,status: 422,@@ -2716,7 +2936,7 @@ layer("GitHubPullRequestApi.layer", (it) => {headRefName: "feat/page",headRefOid: "abc123",isCrossRepository: false,- headRepositoryOwner: { login: "acme" },+ headRepositoryOwner: { __typename: "Organization", login: "acme" },baseRefName: "main",createdAt: "2026-07-01T00:00:00Z",updatedAt: "2026-07-02T00:00:00Z",@@ -2753,11 +2973,11 @@ layer("GitHubPullRequestApi.layer", (it) => {});// Open pull requests on this head branch, and runs scoped to this exact head.- expect(variablesOf("headRefName: $head")[0]).toEqual({+ // The first page sends no cursor at all, which reads from the start.+ expect(variablesOf("PullRequestHeads")[0]).toEqual({owner: "acme",name: "web",head: "feat/page",- after: null,});expect(restCallsTo("actions/runs?")[0]?.path).toBe("repos/acme/web/actions/runs?head_sha=abc123&branch=feat%2Fpage&event=pull_request&status=action_required&per_page=100&page=1",@@ -3054,7 +3274,7 @@ layer("GitHubPullRequestApi.layer", (it) => {Effect.gen(function* () {mockedExecute.mockImplementation((call) =>Effect.succeed(- call.kind === "graphql" && call.query.includes("pullRequests(")+ call.kind === "graphql" && call.operationName === "PullRequestList"? emptyList(): emptySearch(),),@@ -3082,17 +3302,7 @@ layer("GitHubPullRequestApi.layer", (it) => {it.effect("asks a GitHub Enterprise host for its own review threads", () =>Effect.gen(function* () {- mockedExecute.mockReturnValueOnce(- Effect.succeed(- output(- encodeJson({- data: {- repository: { pullRequest: { reviewThreads: { totalCount: 0, nodes: [] } } },- },- }),- ),- ),- );+ mockedExecute.mockReturnValueOnce(Effect.succeed(output(reviewThreadsPage([], null))));const cli = yield* GitHubPullRequestApi.GitHubPullRequestApi;yield* cli.listReviewThreadComments({@@ -3476,7 +3686,9 @@ layer("GitHubPullRequestApi.layer", (it) => {output(encodeJson({data: {- nodes: [{ login: "octocat", avatarUrl: "https://avatars/octocat" }],+ nodes: [+ { __typename: "User", login: "octocat", avatarUrl: "https://avatars/octocat" },+ ],},}),),@@ -3548,7 +3760,7 @@ layer("GitHubPullRequestApi.layer", (it) => {);mockedExecute.mockReturnValueOnce(Effect.fail(- new GitHubApi.GitHubApiResponseError({+ new GitHubRequestPolicy.GitHubApiResponseError({host: "github.com",operation: "getRoutingIdentity",status: 502,@@ -3682,7 +3894,11 @@ layer("GitHubPullRequestApi.layer", (it) => {repository: { pullRequest: { id: "PR_thisOne" } },// A comment on pull request #99 of a different repository, named as though it// belonged to #7 here.- node: { id: "IC_99", pullRequest: { id: "PR_someOtherOne" } },+ node: {+ __typename: "IssueComment",+ id: "IC_99",+ pullRequest: { id: "PR_someOtherOne" },+ },},}),),@@ -3815,7 +4031,11 @@ layer("GitHubPullRequestApi.layer", (it) => {encodeJson({data: {repository: { pullRequest: { id: "PR_thisOne" } },- node: { id: "IC_99", pullRequest: { id: "PR_someOtherOne" } },+ node: {+ __typename: "IssueComment",+ id: "IC_99",+ pullRequest: { id: "PR_someOtherOne" },+ },},}),),@@ -3869,7 +4089,13 @@ layer("GitHubPullRequestApi.layer", (it) => {encodeJson(coreResponse({title: "Progressive detail",- author: { login: "octocat" },+ author: {+ __typename: "User",+ id: "U_octocat",+ login: "octocat",+ name: null,+ avatarUrl: "https://a/o",+ },body: "Core body",changedFiles: 2,}),@@ -3884,7 +4110,12 @@ layer("GitHubPullRequestApi.layer", (it) => {data: {repository: {pullRequest: {- author: { __typename: "User", login: "octocat", avatarUrl: "https://a/o" },+ author: {+ __typename: "User",+ login: "octocat",+ avatarUrl: "https://a/o",+ name: null,+ },commits: { nodes: [] },comments: { pageInfo: { hasNextPage: false, endCursor: null }, nodes: [] },reviews: { pageInfo: { hasNextPage: false, endCursor: null }, nodes: [] },@@ -3934,13 +4165,14 @@ layer("GitHubPullRequestApi.layer", (it) => {baseRef: null,reviewRequests: {nodes: [- { requestedReviewer: { login: "reviewer" } },+ { requestedReviewer: { __typename: "User", login: "reviewer", name: null } },{requestedReviewer: {+ __typename: "Team",slug: "maintainers",combinedSlug: "octo/maintainers",- name: "Maintainers",- avatarUrl: "https://avatars.githubusercontent.com/t/1",+ teamName: "Maintainers",+ teamAvatarUrl: "https://avatars.githubusercontent.com/t/1",},},],@@ -3953,20 +4185,18 @@ layer("GitHubPullRequestApi.layer", (it) => {statusCheckRollup: {contexts: {nodes: [- {- __typename: "CheckRun",+ checkRun({name: "build",status: "COMPLETED",conclusion: "SUCCESS",checkSuite: { workflowRun: { workflow: { name: "linux" } } },- },- {- __typename: "CheckRun",+ }),+ checkRun({name: "build",status: "COMPLETED",conclusion: "FAILURE",checkSuite: { workflowRun: { workflow: { name: "windows" } } },- },+ }),],pageInfo: { hasNextPage: false },},@@ -4017,7 +4247,13 @@ layer("GitHubPullRequestApi.layer", (it) => {commit: {statusCheckRollup: {contexts: {- nodes: [{ name: "first", status: "COMPLETED", conclusion: "SUCCESS" }],+ nodes: [+ checkRun({+ name: "first",+ status: "COMPLETED",+ conclusion: "SUCCESS",+ }),+ ],pageInfo: { hasNextPage: true, endCursor: "c1" },},},@@ -4035,8 +4271,8 @@ layer("GitHubPullRequestApi.layer", (it) => {output(checkContextsPage([- { name: "first", status: "COMPLETED", conclusion: "SUCCESS" },- { name: "last", status: "COMPLETED", conclusion: "FAILURE" },+ checkRun({ name: "first", status: "COMPLETED", conclusion: "SUCCESS" }),+ checkRun({ name: "last", status: "COMPLETED", conclusion: "FAILURE" }),],null,),@@ -4054,7 +4290,8 @@ layer("GitHubPullRequestApi.layer", (it) => {expect(detail.checksState).toBe("failing");expect(detail.checksTruncated).toBe(false);// The whole rollup is walked from its start, so no check is counted twice or skipped.- expect(varsAt(1)).toMatchObject({ number: 7, after: null });+ expect(varsAt(1)).toMatchObject({ number: 7 });+ expect(varsAt(1)).not.toHaveProperty("after");assert.strictEqual(mockedExecute.mock.calls.length, 2);}),);@@ -4192,8 +4429,8 @@ layer("GitHubPullRequestApi.layer", (it) => {});// The first page asks from the beginning; the next carries on from where it stopped.- expect(varsAt(0)["cursor"]).toBeNull();- expect(varsAt(1)["cursor"]).toBe("Y3Vyc29yOjE");+ expect(varsAt(0)["after"]).toBeNull();+ expect(varsAt(1)["after"]).toBe("Y3Vyc29yOjE");expect(conversation.comments.map((comment) => comment.id)).toEqual(["c1", "c2"]);assert.isFalse(conversation.truncated);}),@@ -4280,7 +4517,7 @@ layer("GitHubPullRequestApi.layer", (it) => {name: "web",number: 7,threadId: "PRRT_1",- cursor: "Y3Vyc29yOjI",+ after: "Y3Vyc29yOjI",});assert.strictEqual(mockedExecute.mock.calls.length, 1);expect(page.comments.map((comment) => comment.id)).toEqual(["c2", "c3"]);@@ -4324,7 +4561,11 @@ layer("GitHubPullRequestApi.layer", (it) => {squashMergeAllowed: false,rebaseMergeAllowed: true,viewerPermission: "READ",- pullRequest: { viewerCanUpdate: true, viewerDidAuthor: true },+ pullRequest: {+ viewerCanUpdate: true,+ viewerDidAuthor: true,+ headRepository: null,+ },},},}),@@ -4367,7 +4608,11 @@ layer("GitHubPullRequestApi.layer", (it) => {squashMergeAllowed: false,rebaseMergeAllowed: true,viewerPermission: "READ",- pullRequest: { viewerCanUpdate: true, viewerDidAuthor: true },+ pullRequest: {+ viewerCanUpdate: true,+ viewerDidAuthor: true,+ headRepository: null,+ },},},}),@@ -4411,7 +4656,11 @@ layer("GitHubPullRequestApi.layer", (it) => {squashMergeAllowed: false,rebaseMergeAllowed: true,viewerPermission: "READ",- pullRequest: { viewerCanUpdate: true, viewerDidAuthor: true },+ pullRequest: {+ viewerCanUpdate: true,+ viewerDidAuthor: true,+ headRepository: null,+ },},},}),@@ -4431,7 +4680,11 @@ layer("GitHubPullRequestApi.layer", (it) => {squashMergeAllowed: false,rebaseMergeAllowed: true,viewerPermission: "READ",- pullRequest: { viewerCanUpdate: true, viewerDidAuthor: true },+ pullRequest: {+ viewerCanUpdate: true,+ viewerDidAuthor: true,+ headRepository: null,+ },},},}),@@ -4526,11 +4779,26 @@ layer("GitHubPullRequestApi.layer", (it) => {repository: {assignableUsers: {pageInfo: { hasNextPage: false },- nodes: [{ login: "bilal" }, { login: "octocat" }, { login: "hubot" }],+ nodes: ["bilal", "octocat", "hubot"].map((login) => ({+ login,+ name: null,+ avatarUrl: `https://avatars/${login}`,+ })),},pullRequest: {- author: { login: "bilal" },- reviewRequests: { nodes: [{ requestedReviewer: { login: "octocat" } }] },+ author: { __typename: "User", login: "bilal" },+ reviewRequests: {+ nodes: [+ {+ requestedReviewer: {+ __typename: "User",+ login: "octocat",+ name: null,+ avatarUrl: "https://avatars/octocat",+ },+ },+ ],+ },},},},@@ -4646,7 +4914,7 @@ layer("GitHubPullRequestApi.layer", (it) => {assert.strictEqual(mockedExecute.mock.calls.length, 3);// The first page asks from the start; each one after it carries the cursor before it.expect([varsAt(0)["after"], varsAt(1)["after"], varsAt(2)["after"]]).toEqual([- null,+ undefined,"cursor-0","cursor-1",]);@@ -4721,12 +4989,16 @@ layer("GitHubPullRequestApi.layer", (it) => {// One request to learn the pull request's node id, one for every press together.assert.strictEqual(mockedExecute.mock.calls.length, 2);- expect(queryAt(1)).toContain("f0: markFileAsViewed");- expect(queryAt(1)).toContain("f1: unmarkFileAsViewed");+ expect(queryAt(1)).toContain("_0_markFileAsViewed:markFileAsViewed(");+ expect(queryAt(1)).toContain("_1_unmarkFileAsViewed:unmarkFileAsViewed(");+ // Each path travels as a variable, so none can be read as part of the document.expect(varsAt(1)).toEqual({- pullRequestId: "PR_1",- f0_path: "src/a.ts",- f1_path: "src/b.ts",+ _0_pullRequestId: "PR_1",+ _0_path: "src/a.ts",+ _0_viewed: true,+ _1_pullRequestId: "PR_1",+ _1_path: "src/b.ts",+ _1_viewed: false,});}),);@@ -4772,11 +5044,11 @@ layer("GitHubPullRequestApi.layer", (it) => {// One lookup, then a mutation per write, every one of them addressed by the id it answered.assert.strictEqual(mockedExecute.mock.calls.length, 4);expect(varsAt(0)).toEqual({ owner: "acme", name: "web", number: 24 });- expect([1, 2, 3].map((index) => varsAt(index)["pullRequestId"])).toEqual([- "PR_24",- "PR_24",- "PR_24",- ]);+ expect(+ [1, 2, 3].map(+ (index) => varsAt(index)["pullRequestId"] ?? varsAt(index)["_0_pullRequestId"],+ ),+ ).toEqual(["PR_24", "PR_24", "PR_24"]);}),);@@ -4806,7 +5078,7 @@ layer("GitHubPullRequestApi.layer", (it) => {yield* write();assert.strictEqual(mockedExecute.mock.calls.length, 3);- expect(varsAt(2)["pullRequestId"]).toEqual("PR_25");+ expect(varsAt(2)["_0_pullRequestId"]).toEqual("PR_25");}),);it.effect("keeps the pull request being ticked through, not the one looked up first", () =>@@ -4818,7 +5090,7 @@ layer("GitHubPullRequestApi.layer", (it) => {const HOT = 9_000;const lookupsOf = new Map<number, number>();mockedExecute.mockImplementation((input) => {- if (input.kind !== "graphql" || !input.query.includes(NODE_ID_QUERY)) {+ if (input.kind !== "graphql" || input.operationName !== NODE_ID_QUERY) {return Effect.succeed(output("{}"));}const number = Number(input.variables?.["number"]);diff --git a/packages/source-control-github/src/server/GitHubPullRequestApi.ts b/packages/source-control-github/src/server/GitHubPullRequestApi.tsindex 15ceb701633..261dad81c94 100644--- a/packages/source-control-github/src/server/GitHubPullRequestApi.ts+++ b/packages/source-control-github/src/server/GitHubPullRequestApi.ts@@ -1,20 +1,20 @@import { removeAgentCredits } from "@t3tools/source-control-core/server/mergeMessage";import { KnownWorkflowRuns, makeChecksRevalidator } from "./gitHubConditionalChecks.ts";import { runGitHubStackAction, type GitHubStackActionError } from "./githubStackActions.ts";-import * as Cause from "effect/Cause";import * as Context from "effect/Context";import * as Clock from "effect/Clock";import * as Duration from "effect/Duration";import * as Effect from "effect/Effect";import * as FileSystem from "effect/FileSystem";import * as Layer from "effect/Layer";-import * as Exit from "effect/Exit";import * as Option from "effect/Option";-import * as Request from "effect/Request";+import { GraphQLClient, GraphQLClientError, GraphQLGroup, GraphQLResolver } from "effect/graphql";+import { HttpClient } from "effect/http";import * as RequestResolver from "effect/RequestResolver";import * as Result from "effect/Result";import * as Schema from "effect/Schema";import * as Semaphore from "effect/Semaphore";+import * as Stream from "effect/Stream";import {resolvePullRequestAuthorFilter,PositiveInt,@@ -42,78 +42,52 @@ import {type PullRequestPreview,} from "@t3tools/contracts";-import * as GitHubApi from "./GitHubApi.ts";-import { readGraphQlPages } from "./githubGraphQl.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";+import * as GitHubGraphQlClient from "./gitHubGraphQlClient.ts";+import { PullRequestBatchesGraphQLGroup } from "./pullRequestBatches.graphql.ts";+import { PullRequestMutationsGraphQLGroup } from "./pullRequestMutations.graphql.ts";+import { PullRequestReadsGraphQLGroup } from "./pullRequestReads.graphql.ts";+import { PullRequestReviewsGraphQLGroup } from "./pullRequestReviews.graphql.ts";import * as SourceControlHost from "@t3tools/source-control-core/server/SourceControlHost";import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";import {- ACTOR_AVATARS_GRAPHQL_QUERY,- ADD_REACTION_GRAPHQL_MUTATION,buildReviewSubmission,buildReviewerRequest,- buildSetFilesViewedGraphQlMutation,- decodeActorAvatarsJson,- decodePullRequestActivityJson,- decodePullRequestCheckContextsJson,- decodePullRequestCoreJson,decodeCommitFilesJson,- pullRequestCheckContextsGraphQlQuery,pullRequestChecksFromContexts,- pullRequestListGraphQlQuery,- pullRequestSummaryGraphQlQuery,- PULL_REQUEST_ACTIVITY_GRAPHQL_QUERY,- PULL_REQUEST_HEADS_GRAPHQL_QUERY,decodeWorkflowRunsJson,- pullRequestCoreGraphQlQuery,type GitHubPullRequestCore,- type GitHubPullRequestSummary,type GitHubPullRequestWatchFingerprint,- decodePullRequestPreviewJson,- PULL_REQUEST_PREVIEW_GRAPHQL_QUERY,+ isSubjectOfPullRequest,+ LenientPullRequestList,+ LenientPullRequestSearch,+ pageRows,+ pullRequestLookup,+ toActorAvatars,+ toLabelCandidates,+ toPullRequestActivityPage,+ toPullRequestCheckContextsPage,+ toPullRequestCore,+ toPullRequestFilesViewedPage,+ toPullRequestHeads,+ toPullRequestNodeId,+ toPullRequestPreview,+ toPullRequestRows,+ toPullRequestSummary,+ toPullRequestWatchFingerprint,+ toReviewDismissalsPage,+ toReviewerCandidates,+ toReviewThreadCommentsPage,+ toReviewThreadPage,+ toStackMembership,+ toViewerPermissions,decodePullRequestFilesJson,- decodePullRequestFilesViewedJson,- decodePullRequestHeadsJson,- decodePullRequestListJson,- decodePullRequestNodeIdJson,- decodePullRequestSearchJson,decodePullRequestStacksJson,- decodePullRequestStatsJson,- decodePullRequestSummariesJson,- decodePullRequestWatchFingerprintsJson,- decodeReactionSubjectScopeJson,- decodeReviewerCandidatesJson,- decodeLabelCandidatesJson,buildLabelRequest,- LABEL_CANDIDATES_GRAPHQL_QUERY,- decodeReviewDismissalsJson,- decodeReviewThreadCommentsJson,- decodeReviewThreadsJson,- buildPullRequestStatsGraphQlQuery,- buildPullRequestSummariesGraphQlQuery,- buildPullRequestWatchFingerprintsGraphQlQuery,- buildPullRequestStackMembershipsGraphQlQuery,- decodePullRequestStackMembershipsJson,- pullRequestSearchGraphQlQuery,PULL_REQUEST_SEARCH_MAX_ROWS,- PULL_REQUEST_FILES_VIEWED_GRAPHQL_QUERY,- PULL_REQUEST_NODE_ID_GRAPHQL_QUERY,- REACTION_SUBJECT_PULL_REQUEST_GRAPHQL_QUERY,- REMOVE_REACTION_GRAPHQL_MUTATION,- REVERT_PULL_REQUEST_GRAPHQL_MUTATION,gitHubReactionContent,- RESOLVE_REVIEW_THREAD_GRAPHQL_MUTATION,- REVIEWER_CANDIDATES_GRAPHQL_QUERY,- REVIEW_THREAD_COMMENTS_GRAPHQL_QUERY,- REVIEW_DISMISSALS_GRAPHQL_QUERY,- REVIEW_THREAD_REPLY_GRAPHQL_MUTATION,- REVIEW_THREADS_GRAPHQL_QUERY,reviewThreadConversation,- UNRESOLVE_REVIEW_THREAD_GRAPHQL_MUTATION,- UPDATE_ISSUE_COMMENT_GRAPHQL_MUTATION,- UPDATE_PULL_REQUEST_GRAPHQL_MUTATION,- UPDATE_REVIEW_COMMENT_GRAPHQL_MUTATION,- VIEWER_PERMISSIONS_GRAPHQL_QUERY,- decodeViewerPermissionsJson,type GitHubPullRequestActivity,type GitHubPullRequestActivityPage,type GitHubWorkflowRunPage,@@ -343,7 +317,7 @@ export class GitHubBranchDeletionRefusedError extends Schema.TaggedError<GitHubBexport type GitHubPullRequestApiError =| GitHubBranchDeletionRefusedError| GitHubStackActionError- | GitHubApi.GitHubApiError+ | GitHubRequestPolicy.GitHubApiError| GitHubPullRequestReadError| GitHubDiffCursorError| GitHubDiffCommitError@@ -358,6 +332,11 @@ export type GitHubPullRequestApiError =| GitHubViewerLoginUnavailableError| GitHubPullRequestUpdatedAtUnavailableError;+const isGraphQlClientError = (error: unknown): error is GraphQLClientError.GraphQLClientError =>+ GraphQLClientError.isGraphQLClientError(error);++const { isNotFoundOnly } = GitHubGraphQlClient;+/** A large pull request can produce a multi-megabyte patch; past this it is truncated. */const DIFF_MAX_OUTPUT_BYTES = 8 * 1024 * 1024;const DIFF_TIMEOUT = Duration.seconds(60);@@ -391,6 +370,8 @@ const DIFF_FILES_PAGE_SIZE = 100;* hundred files: beyond this the read stops and says it was cut short.*/const FILES_VIEWED_MAX_PAGES = 5;+/** Files cleared or restored per request; a reader rarely ticks more than a page of them at once. */+const FILES_VIEWED_PER_REQUEST = 100;/*** How many pull requests' node ids are remembered at once. A long-lived server sees far more of@@ -424,11 +405,10 @@ export interface GitHubPullRequestStat {}/**- * Aliased lookups per request, and requests at once. Measured over a hundred rows: one request- * carrying all hundred takes ~5.2s, four of twenty-five in parallel ~2.1s.+ * Aliased lookups per request. Measured over a hundred rows: one request carrying all hundred+ * takes ~5.2s, four of twenty-five in parallel ~2.1s. `GitHubRequestPolicy` bounds how many run at once.*/const STAT_ALIASES_PER_REQUEST = 25;-const STAT_REQUEST_CONCURRENCY = 4;/*** How long a summary read waits for company. The background sync asks for every linked pull* request at once, and each read reaches the resolver after its own cache check, so a batch@@ -436,28 +416,6 @@ const STAT_REQUEST_CONCURRENCY = 4;*/const SUMMARY_BATCH_WINDOW = "10 millis";-class PullRequestSummaryRead extends Request.Class<- {- readonly cwd: string;- readonly repository: string;- readonly host: string;- readonly number: number;- },- ProviderChangeRequestSummary,- GitHubPullRequestApiError-> {}--class PullRequestWatchFingerprintRead extends Request.Class<- {- readonly cwd: string;- readonly repository: string;- readonly host: string;- readonly number: number;- },- GitHubPullRequestWatchFingerprint | null,- GitHubPullRequestApiError-> {}-export interface GitHubPullRequestSearchBatch {/** Rows across every repository asked for, newest update first, each naming its own. */readonly items: ReadonlyArray<GitHubPullRequestSearchItem>;@@ -1007,17 +965,6 @@ function searchQuery(input: {].join(" ");}-const MERGE_MESSAGE_GRAPHQL_QUERY = `-query PullRequestMergeMessage($owner: String!, $name: String!, $number: Int!, $method: PullRequestMergeMethod!) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- isMergeQueueEnabled- headRefOid- viewerMergeBodyText(mergeType: $method)- }- }-}`;-/** The two revisions a file is expanded between: a pull request's base and head, or a commit's parent and itself. */const decodeRevisionRefs = Schema.decodeUnknownOption(Schema.fromJsonString(@@ -1030,165 +977,29 @@ const decodeRevisionRefs = Schema.decodeUnknownOption(),);-const decodeMergeMessageResponse = Schema.decodeUnknownResult(- Schema.fromJsonString(- Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({- isMergeQueueEnabled: Schema.Boolean,- headRefOid: Schema.String,- viewerMergeBodyText: Schema.String,- }),- }),- }),- }),- ),-);-const decodeMergeMessage = (raw: string) =>- Result.map(decodeMergeMessageResponse(raw), (response) => response.data.repository.pullRequest);--/** What `gh pr merge` and `gh pr update-branch` read before they act. */-const ACTION_STATE_GRAPHQL_QUERY = `-query PullRequestActionState($owner: String!, $name: String!, $number: Int!, $headRef: String!) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- id- headRefOid- isMergeQueueEnabled- mergeStateStatus- baseRef { compare(headRef: $headRef) { behindBy } }- }- }-}`;--const decodeActionStateResponse = Schema.decodeUnknownResult(- Schema.fromJsonString(- Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({- id: Schema.String,- headRefOid: Schema.String,- isMergeQueueEnabled: Schema.optional(Schema.Boolean),- mergeStateStatus: Schema.optional(Schema.NullOr(Schema.String)),- baseRef: Schema.optional(- Schema.NullOr(- Schema.Struct({ compare: Schema.NullOr(Schema.Struct({ behindBy: Schema.Int })) }),- ),- ),- }),- }),- }),- }),- ),-);-const decodeActionState = (raw: string) =>- Result.map(decodeActionStateResponse(raw), (response) => response.data.repository.pullRequest);--const MERGE_PULL_REQUEST_GRAPHQL_MUTATION = `mutation($input: MergePullRequestInput!) {- mergePullRequest(input: $input) { clientMutationId }-}`;-const ENABLE_AUTO_MERGE_GRAPHQL_MUTATION = `mutation($input: EnablePullRequestAutoMergeInput!) {- enablePullRequestAutoMerge(input: $input) { clientMutationId }-}`;--const BRANCH_TO_DELETE_GRAPHQL_QUERY = `query PullRequestBranchToDelete($owner: String!, $name: String!, $number: Int!) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- state- headRefName- baseRefName- headRefOid- headRepository { id }- }- }-}`;-const decodeBranchToDelete = Schema.decodeUnknownResult(- Schema.fromJsonString(- Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({- state: Schema.Literals(["OPEN", "CLOSED", "MERGED"]),- headRefName: Schema.String,- baseRefName: Schema.String,- headRefOid: Schema.String,- headRepository: Schema.NullOr(Schema.Struct({ id: Schema.String })),- }),- }),- }),- }),- ),-);-const SOURCE_BRANCH_GRAPHQL_QUERY = `query PullRequestSourceBranch($repositoryId: ID!, $ref: String!) {- node(id: $repositoryId) {- ... on Repository {- defaultBranchRef { name }- ref(qualifiedName: $ref) { target { oid } }- }- }-}`;-const decodeSourceBranch = Schema.decodeUnknownResult(- Schema.fromJsonString(- Schema.Struct({- data: Schema.Struct({- node: Schema.NullOr(- Schema.Struct({- defaultBranchRef: Schema.NullOr(Schema.Struct({ name: Schema.String })),- ref: Schema.NullOr(Schema.Struct({ target: Schema.Struct({ oid: Schema.String }) })),- }),- ),- }),- }),- ),-);-const DELETE_BRANCH_GRAPHQL_MUTATION = `mutation($input: UpdateRefsInput!) {- updateRefs(input: $input) { clientMutationId }-}`;-const DISABLE_AUTO_MERGE_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!) {- disablePullRequestAutoMerge(input: { pullRequestId: $pullRequestId }) { clientMutationId }-}`;-const UPDATE_BRANCH_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!, $expectedHeadOid: GitObjectID!, $updateMethod: PullRequestBranchUpdateMethod!) {- updatePullRequestBranch(input: { pullRequestId: $pullRequestId, expectedHeadOid: $expectedHeadOid, updateMethod: $updateMethod }) { clientMutationId }-}`;-const READY_FOR_REVIEW_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!) {- markPullRequestReadyForReview(input: { pullRequestId: $pullRequestId }) { clientMutationId }-}`;-const CONVERT_TO_DRAFT_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!) {- convertPullRequestToDraft(input: { pullRequestId: $pullRequestId }) { clientMutationId }-}`;-const CLOSE_PULL_REQUEST_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!) {- closePullRequest(input: { pullRequestId: $pullRequestId }) { clientMutationId }-}`;-const REOPEN_PULL_REQUEST_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!) {- reopenPullRequest(input: { pullRequestId: $pullRequestId }) { clientMutationId }-}`;-const ADD_COMMENT_GRAPHQL_MUTATION = `mutation($subjectId: ID!, $body: String!) {- addComment(input: { subjectId: $subjectId, body: $body }) { clientMutationId }-}`;-const GRAPHQL_MERGE_METHODS = {merge: "MERGE",squash: "SQUASH",rebase: "REBASE",} as const satisfies Record<PullRequestMergeMethod, string>;+/** Every GraphQL read and write this module makes, through GitHub's auth and rate limits. */+const PullRequestGraphQLGroup = GraphQLGroup.merge(+ PullRequestBatchesGraphQLGroup,+ GraphQLGroup.make(LenientPullRequestSearch, LenientPullRequestList),+ PullRequestReadsGraphQLGroup,+ PullRequestReviewsGraphQLGroup,+ PullRequestMutationsGraphQLGroup,+).middleware(GitHubGraphQlClient.GitHubGraphQlAuth);+/** States in which `gh pr merge --auto` merges at once instead of arming auto-merge. */const IMMEDIATELY_MERGEABLE = new Set(["CLEAN", "HAS_HOOKS", "UNSTABLE"]);-/** The mutations that only need the pull request's node id. */-const SIMPLE_ACTION_MUTATIONS = {- "disable-auto-merge": DISABLE_AUTO_MERGE_GRAPHQL_MUTATION,- ready: READY_FOR_REVIEW_GRAPHQL_MUTATION,- draft: CONVERT_TO_DRAFT_GRAPHQL_MUTATION,- close: CLOSE_PULL_REQUEST_GRAPHQL_MUTATION,- reopen: REOPEN_PULL_REQUEST_GRAPHQL_MUTATION,-} as const satisfies Partial<Record<PullRequestAction, string>>;-/** @public Service construction is part of the canonical Effect module API. */export const make = Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;+ const policy = yield* GitHubRequestPolicy.GitHubRequestPolicy;+ const httpClient = yield* HttpClient.HttpClient;const sourceControlHost = yield* SourceControlHost.SourceControlHost;const fileSystem = yield* FileSystem.FileSystem;const revalidateChecks = yield* makeChecksRevalidator;@@ -1235,7 +1046,7 @@ export const make = Effect.gen(function* () {const response = yield* api.rest({ host, operation: "getRoutingIdentity", path: "user", allowReserve: true }).pipe(- Effect.provideService(GitHubApi.PinnedGitHubCredential, credential),+ Effect.provideService(GitHubRequestPolicy.PinnedGitHubCredential, credential),Effect.provideService(SourceControlRateLimit.CredentialScope, key),);const identity = yield* decodeRoutingIdentity(response.body).pipe(@@ -1264,7 +1075,7 @@ export const make = Effect.gen(function* () {Effect.flatMap(({ host, token, accountId, viewer, credentialFingerprint }) =>use({ accountId, viewer, credentialFingerprint }).pipe(Effect.provideService(SourceControlRateLimit.CredentialScope, credentialFingerprint),- Effect.provideService(GitHubApi.PinnedGitHubCredential, {+ Effect.provideService(GitHubRequestPolicy.PinnedGitHubCredential, {host,token,credentialFingerprint,@@ -1277,6 +1088,103 @@ export const make = Effect.gen(function* () {Effect.map(({ accountId, viewer }) => ({ accountId, viewer })),);+ const client = yield* GraphQLClient.make(PullRequestGraphQLGroup).pipe(+ Effect.provide(GitHubGraphQlClient.layer),+ );++ const readError = (cwd: string, operation: string, cause: unknown) =>+ new GitHubPullRequestReadError({ cwd, operation, cause });++ /**+ * Runs one generated GraphQL call against `host`, reported as `operation`. GitHub's `errors`+ * fail it as a not found, or a response error with GitHub's messages; an answer that does not+ * decode is a read error against `operation`.+ */+ const graphql =+ (input: {+ readonly cwd: string;+ readonly host: string;+ readonly operation: string;+ readonly allowReserve?: boolean | undefined;+ }) =>+ <A, E, R>(+ effect: Effect.Effect<A, E, R>,+ ): Effect.Effect<+ A,+ | Exclude<E, GraphQLClientError.GraphQLClientError>+ | GitHubRequestPolicy.GitHubApiNotFoundError+ | GitHubRequestPolicy.GitHubApiResponseError+ | GitHubPullRequestReadError,+ Exclude<R, GitHubGraphQlClient.GitHubGraphQlTarget>+ > =>+ effect.pipe(+ GitHubGraphQlClient.call({+ host: input.host,+ operation: input.operation,+ ...(input.allowReserve === true ? { allowReserve: true } : {}),+ }),+ Effect.mapError((error) =>+ isGraphQlClientError(error)+ ? readError(input.cwd, input.operation, error)+ : (error as Exclude<typeof error, GraphQLClientError.GraphQLClientError>),+ ),+ );++ /** Fails a read GitHub answered with nothing for the pull request it was asked about. */+ const found =+ (input: { readonly host: string; readonly operation: string }) =>+ <A>(value: A | null): Effect.Effect<A, GitHubRequestPolicy.GitHubApiNotFoundError> =>+ value === null+ ? Effect.fail(+ new GitHubRequestPolicy.GitHubApiNotFoundError({+ host: GitHubRequestPolicy.normalizeHost(input.host),+ operation: input.operation,+ }),+ )+ : Effect.succeed(value);++ /**+ * The pages of a cursor connection, read one after another until GitHub has no more,+ * `maxPages` have been read, or `until` is satisfied. `truncated` says pages remained when+ * reading stopped; a cursor GitHub hands back a second time stops the read as truncated too.+ */+ const readPages = <Page, E, R>(+ stream: Stream.Stream<Page, E | GraphQLClientError.GraphQLClientError, R>,+ options: {+ readonly cwd: string;+ readonly operation: string;+ readonly hasNextPage: (page: NoInfer<Page>) => boolean;+ readonly maxPages?: number;+ readonly until?: (pages: ReadonlyArray<NoInfer<Page>>) => boolean;+ },+ ) =>+ Effect.gen(function* () {+ const pages: Page[] = [];+ let repeated = false;+ yield* stream.pipe(+ // `pages` fails a cursor GitHub hands back unchanged, which would page forever.+ Stream.catch((error) =>+ isGraphQlClientError(error) && error.reason._tag === "PaginationError"+ ? Stream.sync(() => {+ repeated = true;+ }).pipe(Stream.drain)+ : Stream.fail(error),+ ),+ Stream.runForEachWhile((page) =>+ Effect.sync(() => {+ pages.push(page);+ return (+ options.hasNextPage(page) &&+ pages.length < (options.maxPages ?? Infinity) &&+ options.until?.(pages) !== true+ );+ }),+ ),+ );+ const last = pages.at(-1);+ return { pages, truncated: repeated || (last !== undefined && options.hasNextPage(last)) };+ });+/*** The pull request's own node id, which is what a mutation against the pull request itself is* addressed by: a reaction on its description, or a rewrite of its words.@@ -1304,15 +1212,10 @@ export const make = Effect.gen(function* () {nodeIds.set(key, held);return Effect.succeed(held);}- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: input.operation,- allowReserve: true,- variables: { owner, name, number: input.number },- query: PULL_REQUEST_NODE_ID_GRAPHQL_QUERY,- decode: decodePullRequestNodeIdJson,- }).pipe(+ return client.PullRequestNodeId({ owner, name, number: input.number }).pipe(+ graphql({ ...input, allowReserve: true }),+ Effect.map(toPullRequestNodeId),+ Effect.flatMap(found(input)),Effect.tap((nodeId) =>Effect.sync(() => {if (nodeIds.size >= NODE_ID_CACHE_CAPACITY) {@@ -1340,28 +1243,11 @@ export const make = Effect.gen(function* () {readonly operation: string;}) => {const { owner, name } = parseRepositorySelector(input.repository);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: input.operation,- allowReserve: true,- variables: { owner, name, number: input.number, subjectId: input.subjectId },- query: REACTION_SUBJECT_PULL_REQUEST_GRAPHQL_QUERY,- decode: decodeReactionSubjectScopeJson,- });+ return client+ .PullRequestSubject({ owner, name, number: input.number, subjectId: input.subjectId })+ .pipe(graphql({ ...input, allowReserve: true }), Effect.map(isSubjectOfPullRequest));};- /** A GraphQL mutation whose answer is not read back; a GraphQL error fails it. */- const graphql = (input: {- readonly host: string;- readonly operation: string;- readonly query: string;- readonly variables: Readonly<Record<string, unknown>>;- }) => api.graphql(input).pipe(Effect.asVoid);-- const readError = (cwd: string, operation: string, cause: unknown) =>- new GitHubPullRequestReadError({ cwd, operation, cause });-/** Decodes an answer, reporting a failure against the read that made it. */const decodeWith = <A>(cwd: string,@@ -1375,26 +1261,6 @@ export const make = Effect.gen(function* () {: Effect.fail(readError(cwd, operation, decoded.failure));};- /** A GraphQL read whose answer is decoded, reporting a failure against the read that made it. */- const graphqlRead = <A>(input: {- readonly cwd: string;- readonly host: string;- readonly operation: string;- readonly allowReserve?: boolean | undefined;- readonly variables?: Readonly<Record<string, unknown>>;- readonly query: string;- readonly decode: (raw: string) => Result.Result<A, unknown>;- }): Effect.Effect<A, GitHubPullRequestApiError> =>- api- .graphql({- host: input.host,- operation: input.operation,- query: input.query,- ...(input.variables === undefined ? {} : { variables: input.variables }),- ...(input.allowReserve === true ? { allowReserve: true } : {}),- })- .pipe(Effect.flatMap((raw) => decodeWith(input.cwd, input.operation, input.decode, raw)));-/** A REST read whose JSON answer is decoded the same way. */const restRead = <A>(input: {readonly cwd: string;@@ -1562,45 +1428,55 @@ export const make = Effect.gen(function* () {return { oldContents, newContents };});+ /** `isRequired` is asked for on github.com only: an older Enterprise server may not know it. */+ const asksRequired = (host: string) => host.toLowerCase() === "github.com";+/*** Every check context of the head commit, a page at a time, for a rollup the detail read cut at* its first hundred. Each page names the head it read, so a push mid-walk fails rather than* mixing two revisions' checks.*/- type CheckContextsPage = Result.Result.Success<- ReturnType<typeof decodePullRequestCheckContextsJson>- >;const readAllCheckContexts = (input: Parameters<GitHubPullRequestApi["Service"]["getPullRequestDetail"]>[0],allowReserve: boolean,) =>Effect.gen(function* () {const { owner, name } = parseRepositorySelector(input.repository);- const { pages, truncated } = yield* readGraphQlPages(- (after, previous: ReadonlyArray<CheckContextsPage>) =>- graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "getPullRequestDetail",- allowReserve,- variables: { owner, name, number: input.number, after },- query: pullRequestCheckContextsGraphQlQuery(input.host),- decode: decodePullRequestCheckContextsJson,- }).pipe(- // Each page names the head it read, so a push mid-walk fails rather than mixing- // two revisions' checks.- Effect.filterOrFail(- (page) => previous.length === 0 || page.headSha === previous[0]!.headSha,- () =>- readError(- input.cwd,- "getPullRequestDetail",- new Error("Pull request head changed while reading checks."),- ),- ),+ const target = { ...input, operation: "getPullRequestDetail", allowReserve };+ let headSha: string | null = null;+ const { pages, truncated } = yield* readPages(+ GraphQLClient.pages(client.PullRequestCheckContexts, {+ variables: { owner, name, number: input.number, required: asksRequired(input.host) },+ connection: (result) => {+ const page = toPullRequestCheckContextsPage(result);+ if (page === null) return null;+ headSha ??= page.headSha;+ return {+ ...page,+ // Past the first page a different head is a push mid-walk.+ changed: page.headSha !== headSha,+ pageInfo: { hasNextPage: page.nextCursor !== null, endCursor: page.nextCursor },+ };+ },+ }).pipe(+ Stream.mapEffect((page) =>+ page.changed+ ? Effect.fail(+ readError(+ input.cwd,+ "getPullRequestDetail",+ new Error("Pull request head changed while reading checks."),+ ),+ )+ : Effect.succeed(page),),- { maxPages: CHECK_CONTEXT_PAGES, nextCursor: (page) => page.nextCursor },- );+ ),+ {+ ...target,+ maxPages: CHECK_CONTEXT_PAGES,+ hasNextPage: (page) => page.nextCursor !== null,+ },+ ).pipe(graphql(target));return {headSha: pages[0]?.headSha ?? null,contexts: pages.flatMap((page) => page.contexts),@@ -1610,45 +1486,44 @@ export const make = Effect.gen(function* () {const getPullRequestDetail: GitHubPullRequestApi["Service"]["getPullRequestDetail"] = (input) => {const { owner, name } = parseRepositorySelector(input.repository);+ const operation = "getPullRequestDetail";return SourceControlRateLimit.Interactive.pipe(Effect.flatMap((allowReserve) =>- graphqlRead({- allowReserve,- cwd: input.cwd,- host: input.host,- operation: "getPullRequestDetail",- variables: {+ client+ .PullRequestCore({owner,name,number: input.number,headRef: `refs/pull/${input.number}/head`,- },- query: pullRequestCoreGraphQlQuery(input.host),- decode: decodePullRequestCoreJson,- }).pipe(- // Past a hundred checks the first page would let the rest imply success, so the whole- // rollup is walked instead.- Effect.filterOrElse(- (core) => !core.checksTruncated,- (core) =>- readAllCheckContexts(input, allowReserve).pipe(- Effect.filterOrFail(- (all) => all.headSha === core.headSha,- () =>- readError(- input.cwd,- "getPullRequestDetail",- new Error("Pull request head changed while reading checks."),- ),+ required: asksRequired(input.host),+ })+ .pipe(+ graphql({ ...input, operation, allowReserve }),+ Effect.map(toPullRequestCore),+ Effect.flatMap(found({ ...input, operation })),+ // Past a hundred checks the first page would let the rest imply success, so the whole+ // rollup is walked instead.+ Effect.filterOrElse(+ (core) => !core.checksTruncated,+ (core) =>+ readAllCheckContexts(input, allowReserve).pipe(+ Effect.filterOrFail(+ (all) => all.headSha === core.headSha,+ () =>+ readError(+ input.cwd,+ operation,+ new Error("Pull request head changed while reading checks."),+ ),+ ),+ Effect.map((all) => ({+ ...core,+ ...pullRequestChecksFromContexts(all.contexts),+ checksTruncated: all.truncated,+ })),),- Effect.map((all) => ({- ...core,- ...pullRequestChecksFromContexts(all.contexts),- checksTruncated: all.truncated,- })),- ),+ ),),- ),),);};@@ -1671,22 +1546,28 @@ export const make = Effect.gen(function* () {const { owner, name } = parseRepositorySelector(input.repository);const countHeads = (pages: ReadonlyArray<{ readonly heads: ReadonlyArray<unknown> }>) =>pages.reduce((total, page) => total + page.heads.length, 0);- const { pages, truncated } = yield* readGraphQlPages(- (after) =>- graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listWorkflowRunsRequiringApproval",- allowReserve: true,- variables: { owner, name, head: input.headBranch, after },- query: PULL_REQUEST_HEADS_GRAPHQL_QUERY,- decode: decodePullRequestHeadsJson,- }),+ const target = {+ ...input,+ operation: "listWorkflowRunsRequiringApproval",+ allowReserve: true,+ };+ const { pages, truncated } = yield* readPages(+ GraphQLClient.pages(client.PullRequestHeads, {+ variables: { owner, name, head: input.headBranch },+ connection: (result) => {+ const page = toPullRequestHeads(result);+ return {+ ...page,+ pageInfo: { hasNextPage: page.nextCursor !== null, endCursor: page.nextCursor },+ };+ },+ }),{- nextCursor: (page) => page.nextCursor,+ ...target,+ hasNextPage: (page) => page.nextCursor !== null,until: (pages) => countHeads(pages) > workflowApprovalLimit,},- );+ ).pipe(graphql(target));return { heads: pages.flatMap((page) => page.heads), truncated };});@@ -1801,166 +1682,123 @@ export const make = Effect.gen(function* () {{ concurrency: 2 },).pipe(Effect.map(([, runs]) => runs));- /** One pull request's summary, through the same aliased query the batch uses. */- const viewPullRequestSummary = (input: PullRequestSummaryRead) => {- const { owner, name } = parseRepositorySelector(input.repository);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "getPullRequestSummary",- variables: { owner, name, number: input.number },- query: pullRequestSummaryGraphQlQuery(input.host === "github.com"),- decode: decodePullRequestSummariesJson,- }).pipe(- Effect.flatMap((summaries) => {- const summary = summaries.get(0);- return summary === undefined- ? Effect.fail(- readError(- input.cwd,- "getPullRequestSummary",- new Error(`GitHub answered nothing for ${input.repository}#${input.number}.`),- ),- )- : Effect.succeed(summary);+ /** The mutations that only need the pull request's node id. */+ const simpleActionMutations = {+ "disable-auto-merge": (pullRequestId: string) =>+ client.DisablePullRequestAutoMerge({ pullRequestId }).pipe(Effect.asVoid),+ ready: (pullRequestId: string) =>+ client.MarkPullRequestReadyForReview({ pullRequestId }).pipe(Effect.asVoid),+ draft: (pullRequestId: string) =>+ client.ConvertPullRequestToDraft({ pullRequestId }).pipe(Effect.asVoid),+ close: (pullRequestId: string) =>+ client.ClosePullRequest({ pullRequestId }).pipe(Effect.asVoid),+ reopen: (pullRequestId: string) =>+ client.ReopenPullRequest({ pullRequestId }).pipe(Effect.asVoid),+ } satisfies Partial<Record<PullRequestAction, unknown>>;++ /**+ * Runs batched lookups for one read on `host`. The resolver groups them by host and credential.+ * GitHub saying one pull request does not exist fails that lookup as not found; any other client+ * failure is a read error against `operation`, and a request policy failure (a rate limit, a+ * refused credential) passes through as itself.+ */+ const batchedRead = <A, E, R>(+ input: { readonly cwd: string; readonly host: string; readonly operation: string },+ effect: Effect.Effect<A, E, R>,+ ): Effect.Effect<+ A,+ | Exclude<E, GraphQLClientError.GraphQLClientError>+ | GitHubPullRequestReadError+ | GitHubRequestPolicy.GitHubApiNotFoundError,+ Exclude<R, GitHubGraphQlClient.GitHubGraphQlTarget>+ > =>+ effect.pipe(+ Effect.provideService(GitHubGraphQlClient.GitHubGraphQlTarget, {+ host: input.host,+ operation: input.operation,}),+ Effect.mapError((error) =>+ !isGraphQlClientError(error)+ ? (error as Exclude<E, GraphQLClientError.GraphQLClientError>)+ : isNotFoundOnly(error)+ ? new GitHubRequestPolicy.GitHubApiNotFoundError({+ host: input.host,+ operation: input.operation,+ })+ : readError(input.cwd, input.operation, error),+ ),);- };/*** Summaries asked for together, on one host under one credential, share aliased GraphQL reads- * of twenty-five: the background sync reads every linked pull request each minute, and one- * `gh pr view` apiece is most of what it spends. Whatever the batch cannot answer — a selector- * GraphQL cannot address, a pull request GitHub returned nothing for — is read on its own.+ * of twenty-five: the background sync reads every linked pull request each minute, and one read+ * apiece is most of what it spends. A pull request GitHub cannot find fails on its own; the+ * rest of its batch still answers.*/- const summaryResolver = RequestResolver.makeGrouped<PullRequestSummaryRead, string>({- key: ({ request, context }) =>- JSON.stringify([- request.host.toLowerCase(),- Context.getOrElse(context, GitHubApi.PinnedGitHubCredential, () => null)- ?.credentialFingerprint ?? null,- Context.getOrElse(context, SourceControlRateLimit.CredentialScope, () => ""),- ]),- resolver: (entries) => {- const [first] = entries;- const batchable = entries.filter(- (entry) => buildPullRequestSummariesGraphQlQuery([entry.request]) !== null,- );- // Stack membership rides along where GitHub serves stacks, so the background sync can skip- // the REST stack read for pull requests that are in none.- const document = buildPullRequestSummariesGraphQlQuery(- batchable.map((entry) => entry.request),- first.request.host === "github.com",- );- const batched =- document === null- ? Effect.succeed(new Map<number, GitHubPullRequestSummary>())- : graphqlRead({- cwd: first.request.cwd,- host: first.request.host,- operation: "getPullRequestSummary",- ...document,- decode: decodePullRequestSummariesJson,- });- return batched.pipe(- // A GraphQL error anywhere fails the whole document — one repository gone or out of- // reach — so a batch that could not be read leaves every entry to its own read. A paused- // budget is the exception: reading one at a time would only spend what is being saved.- Effect.catchCauseIf(- (cause) =>- !Cause.hasInterruptsOnly(cause) &&- !Cause.findErrorOption(cause).pipe(- Option.exists((error) => error._tag === "SourceControlRateLimitPausedError"),- ),- (cause) =>- Effect.logDebug("batched pull request summary read failed", { cause }).pipe(- Effect.as(new Map<number, GitHubPullRequestSummary>()),- ),- ),- Effect.flatMap((summaries) => {- const unanswered = entries.filter((entry) => {- const summary = summaries.get(batchable.indexOf(entry));- if (summary === undefined) return true;- entry.completeUnsafe(Exit.succeed(summary));- return false;- });- return Effect.forEach(- unanswered,- (entry) =>- viewPullRequestSummary(entry.request).pipe(- Effect.exit,- Effect.map((exit) => entry.completeUnsafe(exit)),- ),- { concurrency: STAT_REQUEST_CONCURRENCY, discard: true },- );- }),- Effect.catchCause((cause) =>- Effect.sync(() => {- for (const entry of entries) entry.completeUnsafe(Exit.failCause(cause));- }),- ),- );- },+ const summaryResolver = GraphQLResolver.aliased(client.PullRequestSummary, {+ batchKey: GitHubGraphQlClient.batchKey,}).pipe(RequestResolver.setDelay(SUMMARY_BATCH_WINDOW),RequestResolver.batchN(STAT_ALIASES_PER_REQUEST),);const getPullRequestSummary: GitHubPullRequestApi["Service"]["getPullRequestSummary"] = (input) =>- Effect.request(new PullRequestSummaryRead(input), summaryResolver);+ Effect.gen(function* () {+ const lookup = pullRequestLookup(input);+ if (lookup === null) {+ return yield* new GitHubRepositorySelectorError({+ cwd: input.cwd,+ operation: "getPullRequestSummary",+ });+ }+ const result = yield* GraphQLResolver.request(+ { ...lookup, stacks: input.host.toLowerCase() === "github.com" },+ summaryResolver,+ );+ const pullRequest = result.repository?.pullRequest;+ if (pullRequest == null) {+ return yield* new GitHubRequestPolicy.GitHubApiNotFoundError({+ host: input.host,+ operation: "getPullRequestSummary",+ });+ }+ return toPullRequestSummary(pullRequest);+ }).pipe((effect) => batchedRead({ ...input, operation: "getPullRequestSummary" }, effect));// Every watched pull request on a host in one read per pass. A pull request the batch has no- // answer for gets null, and its watch reads it in full; a failed batch fails every entry.- const watchFingerprintResolver = RequestResolver.makeGrouped<- PullRequestWatchFingerprintRead,- string- >({- key: ({ request, context }) =>- JSON.stringify([- request.host.toLowerCase(),- Context.getOrElse(context, GitHubApi.PinnedGitHubCredential, () => null)- ?.credentialFingerprint ?? null,- Context.getOrElse(context, SourceControlRateLimit.CredentialScope, () => ""),- ]),- resolver: (entries) => {- const [first] = entries;- const batchable = entries.filter(- (entry) => buildPullRequestWatchFingerprintsGraphQlQuery([entry.request]) !== null,- );- const document = buildPullRequestWatchFingerprintsGraphQlQuery(- batchable.map((entry) => entry.request),- );- const read =- document === null- ? Effect.succeed(new Map<number, GitHubPullRequestWatchFingerprint>())- : graphqlRead({- cwd: first.request.cwd,- host: first.request.host,- operation: "getPullRequestWatchFingerprint",- ...document,- decode: decodePullRequestWatchFingerprintsJson,- });- return read.pipe(- Effect.map((fingerprints) => {- for (const entry of entries) {- const index = batchable.indexOf(entry);- entry.completeUnsafe(- Exit.succeed(index === -1 ? null : (fingerprints.get(index) ?? null)),- );- }- }),- Effect.catchCause((cause) =>- Effect.sync(() => {- for (const entry of entries) entry.completeUnsafe(Exit.failCause(cause));- }),- ),- );- },+ // answer for gets null, and its watch reads it in full; a failed request fails every entry.+ const watchFingerprintResolver = GraphQLResolver.aliased(client.PullRequestWatchFingerprint, {+ batchKey: GitHubGraphQlClient.batchKey,}).pipe(RequestResolver.setDelay(SUMMARY_BATCH_WINDOW),RequestResolver.batchN(STAT_ALIASES_PER_REQUEST),);const getPullRequestWatchFingerprint: GitHubPullRequestApi["Service"]["getPullRequestWatchFingerprint"] =- (input) => Effect.request(new PullRequestWatchFingerprintRead(input), watchFingerprintResolver);+ (input) => {+ const lookup = pullRequestLookup(input);+ if (lookup === null) return Effect.succeed(null);+ return GraphQLResolver.request(lookup, watchFingerprintResolver).pipe(+ Effect.map((result) => {+ const pullRequest = result.repository?.pullRequest;+ return pullRequest == null ? null : toPullRequestWatchFingerprint(pullRequest);+ }),+ Effect.catchIf(isNotFoundOnly, () => Effect.succeed(null)),+ (effect) => batchedRead({ ...input, operation: "getPullRequestWatchFingerprint" }, effect),+ );+ };++ // Rows already on a page, enriched with what the listing query leaves out. They are many, so+ // their lookups share aliased requests of twenty-five, four at a time.+ const statsResolver = GraphQLResolver.aliased(client.PullRequestStats, {+ batchKey: GitHubGraphQlClient.batchKey,+ }).pipe(RequestResolver.batchN(STAT_ALIASES_PER_REQUEST));+ const stackMembershipResolver = GraphQLResolver.aliased(client.PullRequestStackMembership, {+ batchKey: GitHubGraphQlClient.batchKey,+ }).pipe(RequestResolver.batchN(STAT_ALIASES_PER_REQUEST));+ // A burst of ticks is one request, each file under its own alias. GitHub has no bulk form of+ // `markFileAsViewed`/`unmarkFileAsViewed`, which each take a single path.+ const setFileViewedResolver = GraphQLResolver.aliased(client.SetFileViewed, {+ batchKey: GitHubGraphQlClient.batchKey,+ }).pipe(RequestResolver.batchN(FILES_VIEWED_PER_REQUEST));return GitHubPullRequestApi.of({withVerifiedCredential,@@ -1981,7 +1819,19 @@ export const make = Effect.gen(function* () {}),);}- /** Pages of up to a hundred until `rows` have arrived or GitHub has no more. */+ const target = { cwd: input.cwd, host: input.host, operation: "listPullRequests" };+ const toPage = (+ page: ReturnType<typeof toPullRequestRows>,+ ): GitHubPullRequestListPage & { readonly pageInfo: GraphQLClient.PageInfo } => ({+ items: page.rows.map((row) => row.item),+ rawCount: page.rawCount,+ endCursor: page.endCursor,+ pageInfo: { hasNextPage: page.endCursor !== null, endCursor: page.endCursor },+ });+ /**+ * Pages of up to a hundred until `rows` have arrived or GitHub has no more. Each page asks+ * for only the rows still missing, so the last one does not overshoot.+ */const collect = (rows: number,page: (@@ -1992,44 +1842,65 @@ export const make = Effect.gen(function* () {Effect.gen(function* () {const countRows = (pages: ReadonlyArray<GitHubPullRequestListPage>) =>pages.reduce((total, read) => total + read.rawCount, 0);- const { pages, truncated } = yield* readGraphQlPages(- (after, pages: ReadonlyArray<GitHubPullRequestListPage>) =>- page(after, rows - countRows(pages)),- {- nextCursor: (read) => read.endCursor,- until: (pages) => countRows(pages) >= rows,- },- );- // `truncated` also covers a cursor GitHub repeated before `rows` arrived.+ const pages: GitHubPullRequestListPage[] = [];+ const seen = new Set<string>();+ let after: string | null = null;+ let truncated = false;+ while (true) {+ const read: GitHubPullRequestListPage = yield* page(after, rows - countRows(pages));+ pages.push(read);+ const next = read.endCursor;+ if (next === null) break;+ // `truncated` also covers a cursor GitHub repeated before `rows` arrived.+ if (seen.has(next) || countRows(pages) >= rows) {+ truncated = true;+ break;+ }+ seen.add(next);+ after = next;+ }return {items: pages.flatMap((read) => read.items),rawCount: countRows(pages),truncated,};});+ const stacks = input.host.toLowerCase() === "github.com";const read = (continues: boolean,requestedRows = input.limit + 1,): Effect.Effect<GitHubPullRequestListBatch, GitHubPullRequestApiError> =>collect(requestedRows, (after, rows) =>- continues- ? graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listPullRequests",- // The reader's own words are in the query.- variables: { q: query, after },- query: pullRequestSearchGraphQlQuery(rows, false, true),- decode: decodePullRequestSearchJson,- })- : graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listPullRequests",- variables: { owner, name, states: LIST_STATES[input.state], after },- query: pullRequestListGraphQlQuery(rows),- decode: decodePullRequestListJson,- }),+ (continues+ ? client+ .PullRequestSearch({+ // The reader's own words are in the query.+ q: query,+ first: pageRows(rows),+ after,+ // Stack badges come from their own batched read below, for the rows that stay.+ stacks: false,+ stats: true,+ })+ .pipe(Effect.map((result) => toPage(toPullRequestRows(result.search))))+ : client+ .PullRequestList({+ owner,+ name,+ states: LIST_STATES[input.state],+ first: pageRows(rows),+ after,+ stacks: false,+ stats: true,+ })+ .pipe(+ // A repository the viewer cannot see answers as an empty page, which is what+ // `gh pr list` printed for it too.+ Effect.map((result) =>+ toPage(toPullRequestRows(result.repository?.pullRequests)),+ ),+ )+ ).pipe(graphql(target)),).pipe(Effect.flatMap(({ items: rawItems, rawCount, truncated: cutShort }) => {const items = continues@@ -2082,44 +1953,39 @@ export const make = Effect.gen(function* () {),Effect.flatMap((batch) => {// Match the search query's host support, and enrich only rows that survived paging.- if (input.host !== "github.com" || batch.items.length === 0) return Effect.succeed(batch);- const chunks: Array<ReadonlyArray<GitHubPullRequestListItem>> = [];- for (let start = 0; start < batch.items.length; start += STAT_ALIASES_PER_REQUEST) {- chunks.push(batch.items.slice(start, start + STAT_ALIASES_PER_REQUEST));- }+ if (!stacks || batch.items.length === 0) return Effect.succeed(batch);return Effect.forEach(- chunks,- (chunk) => {- const document = buildPullRequestStackMembershipsGraphQlQuery(- input.repository,- chunk.map((item) => item.number),- );- if (document === null) return Effect.succeed(chunk);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listPullRequestStackMemberships",- ...document,- decode: decodePullRequestStackMembershipsJson,- }).pipe(- Effect.map((memberships) =>- chunk.map((item, index) => {- const stack = memberships.get(index);- return stack === undefined ? item : { ...item, stack };- }),- ),+ batch.items,+ (item) => {+ const lookup = pullRequestLookup({+ repository: input.repository,+ number: item.number,+ });+ if (lookup === null) return Effect.succeed(item);+ return GraphQLResolver.request(lookup, stackMembershipResolver).pipe(+ Effect.map((result) => {+ const pullRequest = result.repository?.pullRequest;+ const stack = pullRequest == null ? undefined : toStackMembership(pullRequest);+ return stack === undefined ? item : { ...item, stack };+ }),// Optional badges must not take down a listing that already read successfully.- Effect.catch(() =>+ Effect.catch((error) =>Effect.logWarning("Pull request stack membership enrichment failed", {operation: "listPullRequestStackMemberships",host: input.host,- rows: chunk.length,- }).pipe(Effect.as(chunk)),+ error: error._tag,+ }).pipe(Effect.as(item)),),);},- { concurrency: STAT_REQUEST_CONCURRENCY },- ).pipe(Effect.map((chunks) => ({ ...batch, items: chunks.flat() })));+ { concurrency: "unbounded" },+ ).pipe(+ Effect.provideService(GitHubGraphQlClient.GitHubGraphQlTarget, {+ host: input.host,+ operation: "listPullRequestStackMemberships",+ }),+ Effect.map((items) => ({ ...batch, items })),+ );}),);},@@ -2138,57 +2004,59 @@ export const make = Effect.gen(function* () {// per-repository read does — up to GitHub's own ceiling on a search page, past which// `hasNextPage` is what says there is more.const rows = Math.min(input.limit + 1, PULL_REQUEST_SEARCH_MAX_ROWS);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "searchPullRequests",- variables: { q: query, after: null },- query: pullRequestSearchGraphQlQuery(rows, input.host === "github.com"),- decode: decodePullRequestSearchJson,- }).pipe(- Effect.map((batch) => ({- items: batch.items.slice(0, input.limit),- truncated: batch.rawCount > input.limit || batch.hasNextPage,- })),- );+ return client+ .PullRequestSearch({+ q: query,+ first: rows,+ stacks: input.host.toLowerCase() === "github.com",+ stats: false,+ })+ .pipe(+ graphql({ ...input, operation: "searchPullRequests" }),+ Effect.map(({ search }) => {+ const page = toPullRequestRows(search);+ // A search row names its repository; one that does not cannot be placed on a page.+ const items = page.rows.flatMap(({ item, repository }) =>+ repository === null ? [] : [{ ...item, repository }],+ );+ return {+ items: items.slice(0, input.limit),+ truncated: page.rawCount > input.limit || page.hasNextPage,+ };+ }),+ );},- listPullRequestStats: (input) => {- const chunks: Array<ReadonlyArray<{ readonly repository: string; readonly number: number }>> =- [];- for (let start = 0; start < input.changeRequests.length; start += STAT_ALIASES_PER_REQUEST) {- chunks.push(input.changeRequests.slice(start, start + STAT_ALIASES_PER_REQUEST));- }- return Effect.forEach(- chunks,- (chunk) => {- const document = buildPullRequestStatsGraphQlQuery(chunk);- if (document === null) {- return Effect.fail(- new GitHubRepositorySelectorError({- cwd: input.cwd,- operation: "listPullRequestStats",- }),- );- }- return graphqlRead({+ listPullRequestStats: (input) =>+ Effect.gen(function* () {+ const lookups = input.changeRequests.map((changeRequest) => ({+ changeRequest,+ lookup: pullRequestLookup(changeRequest),+ }));+ if (lookups.some(({ lookup }) => lookup === null)) {+ return yield* new GitHubRepositorySelectorError({cwd: input.cwd,- host: input.host,operation: "listPullRequestStats",- ...document,- decode: decodePullRequestStatsJson,- }).pipe(- Effect.map((stats) =>- chunk.flatMap((changeRequest, index) => {- const stat = stats.get(index);- return stat === undefined ? [] : [{ ...changeRequest, ...stat }];+ });+ }+ // A repository or pull request GitHub answered nothing for is left out, which leaves the+ // row with whatever it already had.+ const stats = yield* Effect.forEach(+ lookups,+ ({ changeRequest, lookup }) =>+ GraphQLResolver.request(lookup!, statsResolver).pipe(+ Effect.map((result) => {+ const pullRequest = result.repository?.pullRequest;+ return pullRequest == null+ ? []+ : [{ ...changeRequest, ...pullRequest } satisfies GitHubPullRequestStat];}),+ Effect.catchIf(isNotFoundOnly, () => Effect.succeed([])),),- );- },- { concurrency: STAT_REQUEST_CONCURRENCY },- ).pipe(Effect.map((results) => results.flat()));- },+ { concurrency: "unbounded" },+ );+ return stats.flat();+ }).pipe((effect) => batchedRead({ ...input, operation: "listPullRequestStats" }, effect)),getPullRequestSummary,getPullRequestWatchFingerprint,@@ -2196,14 +2064,14 @@ export const make = Effect.gen(function* () {getPullRequestDetail,getPullRequestPreview: (input) => {const { owner, name } = parseRepositorySelector(input.repository);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "getPullRequestPreview",- variables: { owner, name, number: input.number },- query: PULL_REQUEST_PREVIEW_GRAPHQL_QUERY,- decode: decodePullRequestPreviewJson,- });+ const operation = "getPullRequestPreview";+ return client+ .PullRequestPreview({ owner, name, number: input.number })+ .pipe(+ graphql({ ...input, operation }),+ Effect.map(toPullRequestPreview),+ Effect.flatMap(found({ ...input, operation })),+ );},listWorkflowRunsRequiringApproval,@@ -2245,13 +2113,11 @@ export const make = Effect.gen(function* () {let reviewsAfter: string | null = null;let withComments = true;let withReviews = true;+ const target = { ...input, operation: "getPullRequestActivity" };// Both remark lists page on their own; a page asks only for the ones with more to give.for (let page = 0; page < REVIEW_THREAD_PAGES && (withComments || withReviews); page++) {- const read: GitHubPullRequestActivityPage = yield* graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "getPullRequestActivity",- variables: {+ const read: GitHubPullRequestActivityPage = yield* client+ .PullRequestActivity({owner,name,number: input.number,@@ -2260,10 +2126,12 @@ export const make = Effect.gen(function* () {commentsAfter,withReviews,reviewsAfter,- },- query: PULL_REQUEST_ACTIVITY_GRAPHQL_QUERY,- decode: decodePullRequestActivityJson,- });+ })+ .pipe(+ graphql(target),+ Effect.map(toPullRequestActivityPage),+ Effect.flatMap(found(target)),+ );if (page === 0) {author = read.author ?? null;commits = read.commits ?? [];@@ -2344,47 +2212,40 @@ export const make = Effect.gen(function* () {getReviewThreadComments: (input) => {const { owner, name } = parseRepositorySelector(input.repository);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "getReviewThreadComments",- variables: {+ return client+ .ReviewThreadComments({owner,name,number: input.number,threadId: input.threadId,- cursor: input.cursor,- },- query: REVIEW_THREAD_COMMENTS_GRAPHQL_QUERY,- decode: decodeReviewThreadCommentsJson,- }).pipe(- Effect.flatMap(({ belongsToPullRequest, comments, nextCursor }) =>- belongsToPullRequest- ? Effect.succeed({ comments, nextCursor })- : Effect.fail(- new GitHubSubjectScopeError({- cwd: input.cwd,- operation: "getReviewThreadComments",- }),- ),- ),- );+ after: input.cursor,+ })+ .pipe(+ graphql({ ...input, operation: "getReviewThreadComments" }),+ Effect.map(toReviewThreadCommentsPage),+ Effect.flatMap(({ belongsToPullRequest, comments, nextCursor }) =>+ belongsToPullRequest+ ? Effect.succeed({ comments, nextCursor })+ : Effect.fail(+ new GitHubSubjectScopeError({+ cwd: input.cwd,+ operation: "getReviewThreadComments",+ }),+ ),+ ),+ );},listReviewThreadComments: (input) =>Effect.gen(function* () {const { owner, name } = parseRepositorySelector(input.repository);+ const target = { ...input, operation: "listReviewThreadComments" };const threadPage = (- cursor: string | null,+ after: string | null,): Effect.Effect<GitHubReviewThreadPage, GitHubPullRequestApiError> =>- graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listReviewThreadComments",- variables: { owner, name, number: input.number, cursor },- query: REVIEW_THREADS_GRAPHQL_QUERY,- decode: decodeReviewThreadsJson,- });+ client+ .ReviewThreads({ owner, name, number: input.number, after })+ .pipe(graphql(target), Effect.map(toReviewThreadPage), Effect.flatMap(found(target)));const entries: GitHubReviewThreadEntry[] = [];const avatarsByLogin = new Map<string, string>();const botLogins = new Set<string>();@@ -2430,22 +2291,27 @@ export const make = Effect.gen(function* () {// ordinarily accrues. Followed so a review whose event fell past that page still finds// its reason.if (dismissalCursor !== null) {- const { pages } = yield* readGraphQlPages(- (cursor) =>- graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listReviewThreadComments",- variables: { owner, name, number: input.number, cursor },- query: REVIEW_DISMISSALS_GRAPHQL_QUERY,- decode: decodeReviewDismissalsJson,- }),- {- from: dismissalCursor,- maxPages: REVIEW_THREAD_PAGES,- nextCursor: (read) => read.nextCursor,- },- );+ let after: string | null = dismissalCursor;+ const pages: Array<{+ readonly dismissalsByReviewId: ReadonlyMap<string, string>;+ }> = [];+ const seen = new Set<string>();+ // Carries on from the thread read's own cursor, which `GraphQLClient.pages` cannot.+ while (after !== null && pages.length < REVIEW_THREAD_PAGES && !seen.has(after)) {+ seen.add(after);+ const read: {+ readonly dismissalsByReviewId: ReadonlyMap<string, string>;+ readonly nextCursor: string | null;+ } = yield* client+ .ReviewDismissals({ owner, name, number: input.number, after })+ .pipe(+ graphql(target),+ Effect.map(toReviewDismissalsPage),+ Effect.flatMap(found(target)),+ );+ pages.push(read);+ after = read.nextCursor;+ }for (const read of pages)for (const [id, message] of read.dismissalsByReviewId)dismissalsByReviewId.set(id, message);@@ -2483,40 +2349,33 @@ export const make = Effect.gen(function* () {if (input.ids.length === 0) {return Effect.succeed(new Map<string, string>());}- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listActorAvatars",- variables: { ids: input.ids },- query: ACTOR_AVATARS_GRAPHQL_QUERY,- decode: decodeActorAvatarsJson,- });+ return client+ .ActorAvatars({ ids: input.ids })+ .pipe(graphql({ ...input, operation: "listActorAvatars" }), Effect.map(toActorAvatars));},getViewerAccess: (input) => {const { owner, name } = parseRepositorySelector(input.repository);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "getViewerAccess",- ...(input.allowReserve === true ? { allowReserve: true } : {}),- variables: { owner, name, number: input.number },- query: VIEWER_PERMISSIONS_GRAPHQL_QUERY,- decode: decodeViewerPermissionsJson,- });+ const operation = "getViewerAccess";+ return client+ .ViewerPermissions({ owner, name, number: input.number })+ .pipe(+ graphql({ ...input, operation }),+ Effect.map(toViewerPermissions),+ Effect.flatMap(found({ ...input, operation })),+ );},listReviewerCandidates: (input) => {const { owner, name } = parseRepositorySelector(input.repository);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listReviewerCandidates",- allowReserve: true,- variables: { owner, name, number: input.number },- query: REVIEWER_CANDIDATES_GRAPHQL_QUERY,- decode: decodeReviewerCandidatesJson,- });+ const operation = "listReviewerCandidates";+ return client+ .ReviewerCandidates({ owner, name, number: input.number })+ .pipe(+ graphql({ ...input, operation, allowReserve: true }),+ Effect.map(toReviewerCandidates),+ Effect.flatMap(found({ ...input, operation })),+ );},setReviewerRequest: (input) => {@@ -2536,15 +2395,14 @@ export const make = Effect.gen(function* () {listLabelCandidates: (input) => {const { owner, name } = parseRepositorySelector(input.repository);- return graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "listLabelCandidates",- allowReserve: true,- variables: { owner, name, number: input.number },- query: LABEL_CANDIDATES_GRAPHQL_QUERY,- decode: decodeLabelCandidatesJson,- });+ const operation = "listLabelCandidates";+ return client+ .LabelCandidates({ owner, name, number: input.number })+ .pipe(+ graphql({ ...input, operation, allowReserve: true }),+ Effect.map(toLabelCandidates),+ Effect.flatMap(found({ ...input, operation })),+ );},setLabels: (input) => {@@ -2587,28 +2445,22 @@ export const make = Effect.gen(function* () {});}const { owner, name } = parseRepositorySelector(input.repository);- const response = yield* graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "deletePullRequestBranch",- allowReserve: true,- query: BRANCH_TO_DELETE_GRAPHQL_QUERY,- variables: { owner, name, number: input.number },- decode: decodeBranchToDelete,- });- const branch = response.data.repository.pullRequest;+ const target = { ...input, operation: "deletePullRequestBranch" };+ const branch = yield* client+ .PullRequestBranchToDelete({ owner, name, number: input.number })+ .pipe(+ graphql({ ...target, allowReserve: true }),+ Effect.map((result) => result.repository?.pullRequest ?? null),+ Effect.flatMap(found(target)),+ );if (branch.state === "OPEN") {return yield* new GitHubBranchDeletionRefusedError({number: input.number,reason: "open-pr",});}- if (- branch.headRepository === null ||- !branch.headRepository.id ||- !branch.headRefName ||- !branch.headRefOid- ) {+ const repositoryId = branch.headRepository?.id;+ if (!repositoryId || !branch.headRefName || !branch.headRefOid) {return yield* new GitHubBranchDeletionRefusedError({number: input.number,reason: "source-unavailable",@@ -2621,22 +2473,17 @@ export const make = Effect.gen(function* () {});}const ref = `refs/heads/${branch.headRefName}`;- const source = yield* graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "deletePullRequestBranch",- allowReserve: true,- query: SOURCE_BRANCH_GRAPHQL_QUERY,- variables: { repositoryId: branch.headRepository.id, ref },- decode: decodeSourceBranch,- });- const repository = source.data.node;+ const source = yield* client+ .PullRequestSourceBranch({ repositoryId, ref })+ .pipe(graphql({ ...target, allowReserve: true }));+ const repository = source.node?.__typename === "Repository" ? source.node : null;if (repository === null) {return yield* new GitHubBranchDeletionRefusedError({number: input.number,reason: "source-unavailable",});}+ // Already gone, which is what was asked for.if (repository.ref === null) return;if (repository.defaultBranchRef === null ||@@ -2647,19 +2494,16 @@ export const make = Effect.gen(function* () {reason: "unsafe-branch",});}- if (repository.ref.target.oid !== branch.headRefOid) {+ if (repository.ref.target?.oid !== branch.headRefOid) {return yield* new GitHubBranchDeletionRefusedError({number: input.number,reason: "head-changed",});}- yield* graphql({- host: input.host,- operation: "deletePullRequestBranch",- query: DELETE_BRANCH_GRAPHQL_MUTATION,- variables: {+ yield* client+ .DeletePullRequestBranch({input: {- repositoryId: branch.headRepository.id,+ repositoryId,refUpdates: [{name: ref,@@ -2668,26 +2512,26 @@ export const make = Effect.gen(function* () {},],},- },- });+ })+ .pipe(graphql(target));});}if (input.stackNumber !== undefined)return runGitHubStackAction({ ...input, stackNumber: input.stackNumber }).pipe(- Effect.provideService(GitHubApi.GitHubApi, api),+ Effect.provideService(GitHubRest.GitHubRest, api),+ Effect.provideService(GitHubRequestPolicy.GitHubRequestPolicy, policy),+ Effect.provideService(HttpClient.HttpClient, httpClient),Effect.provideService(SourceControlHost.SourceControlHost, sourceControlHost),Effect.provideService(FileSystem.FileSystem, fileSystem),);if (input.action === "revert") {return pullRequestNodeId({ ...input, operation: "revertPullRequest" }).pipe(Effect.flatMap((pullRequestId) =>- graphql({- host: input.host,- operation: "revertPullRequest",- query: REVERT_PULL_REQUEST_GRAPHQL_MUTATION,- variables: { pullRequestId },- }),+ client+ .RevertPullRequest({ pullRequestId })+ .pipe(graphql({ ...input, operation: "revertPullRequest" })),),+ Effect.asVoid,);}if (input.action === "approve-workflows") {@@ -2770,15 +2614,11 @@ export const make = Effect.gen(function* () {);}const action = input.action;- if (action in SIMPLE_ACTION_MUTATIONS) {+ if (action in simpleActionMutations) {+ const mutate = simpleActionMutations[action as keyof typeof simpleActionMutations];return pullRequestNodeId({ ...input, operation: "runPullRequestAction" }).pipe(Effect.flatMap((pullRequestId) =>- graphql({- host: input.host,- operation: "runPullRequestAction",- query: SIMPLE_ACTION_MUTATIONS[action as keyof typeof SIMPLE_ACTION_MUTATIONS],- variables: { pullRequestId },- }),+ mutate(pullRequestId).pipe(graphql({ ...input, operation: "runPullRequestAction" })),),);}@@ -2786,52 +2626,46 @@ export const make = Effect.gen(function* () {const { owner, name } = parseRepositorySelector(input.repository);// Read fresh rather than from the node id cache: merging and updating act on the head// as it stands now, and the merge queue decides which mutation a merge is.- const state = yield* graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "runPullRequestAction",- allowReserve: true,- query: ACTION_STATE_GRAPHQL_QUERY,- variables: {+ const target = { ...input, operation: "runPullRequestAction" };+ const state = yield* client+ .PullRequestActionState({owner,name,number: input.number,headRef: `refs/pull/${input.number}/head`,- },- decode: decodeActionState,- });+ })+ .pipe(+ graphql({ ...target, allowReserve: true }),+ Effect.map((result) => result.repository?.pullRequest ?? null),+ Effect.flatMap(found(target)),+ );if (action === "update-branch") {// Already current is done, the way `gh pr update-branch` reports it.if (state.baseRef?.compare?.behindBy === 0) return;// GitHub updates with a merge commit unless asked to rebase, which is its own default.- return yield* graphql({- host: input.host,- operation: "runPullRequestAction",- query: UPDATE_BRANCH_GRAPHQL_MUTATION,- variables: {+ return yield* client+ .UpdatePullRequestBranch({pullRequestId: state.id,expectedHeadOid: state.headRefOid,updateMethod: input.updateMethod === "rebase" ? "REBASE" : "MERGE",- },- });+ })+ .pipe(graphql(target), Effect.asVoid);}let body: string | undefined;let expectedHead: string | undefined;if (input.removeAgentCreditsOnMerge === true && input.mergeMethod !== "rebase") {- const message = yield* graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "runPullRequestAction",- allowReserve: true,- query: MERGE_MESSAGE_GRAPHQL_QUERY,- variables: {+ const message = yield* client+ .PullRequestMergeMessage({owner,name,number: input.number,method: input.mergeMethod === "squash" ? "SQUASH" : "MERGE",- },- decode: decodeMergeMessage,- });+ })+ .pipe(+ graphql({ ...target, allowReserve: true }),+ Effect.map((result) => result.repository?.pullRequest ?? null),+ Effect.flatMap(found(target)),+ );// GitHub's merge queue chooses its own message and ignores custom text.if (!message.isMergeQueueEnabled) {const cleaned = removeAgentCredits(message.viewerMergeBodyText);@@ -2849,32 +2683,28 @@ export const make = Effect.gen(function* () {state.isMergeQueueEnabled === true ||(action === "enable-auto-merge" &&!IMMEDIATELY_MERGEABLE.has(state.mergeStateStatus?.toUpperCase() ?? ""));- yield* graphql({- host: input.host,- operation: "runPullRequestAction",- query: auto ? ENABLE_AUTO_MERGE_GRAPHQL_MUTATION : MERGE_PULL_REQUEST_GRAPHQL_MUTATION,- variables: {- input: {- pullRequestId: state.id,- mergeMethod: GRAPHQL_MERGE_METHODS[input.mergeMethod ?? "merge"],- ...(expectedHead === undefined ? {} : { expectedHeadOid: expectedHead }),- ...(body === undefined ? {} : { commitBody: body }),- },- },- });+ const merge = {+ pullRequestId: state.id,+ mergeMethod: GRAPHQL_MERGE_METHODS[input.mergeMethod ?? "merge"],+ ...(expectedHead === undefined ? {} : { expectedHeadOid: expectedHead }),+ ...(body === undefined ? {} : { commitBody: body }),+ };+ yield* (+ auto+ ? client.EnablePullRequestAutoMerge({ input: merge }).pipe(Effect.asVoid)+ : client.MergePullRequest({ input: merge }).pipe(Effect.asVoid)+ ).pipe(graphql(target));});},commentOnPullRequest: (input) =>pullRequestNodeId({ ...input, operation: "commentOnPullRequest" }).pipe(Effect.flatMap((subjectId) =>- graphql({- host: input.host,- operation: "commentOnPullRequest",- query: ADD_COMMENT_GRAPHQL_MUTATION,- variables: { subjectId, body: input.body },- }),+ client+ .AddComment({ subjectId, body: input.body })+ .pipe(graphql({ ...input, operation: "commentOnPullRequest" })),),+ Effect.asVoid,),submitReview: (input) => {@@ -2897,27 +2727,31 @@ export const make = Effect.gen(function* () {},replyToReviewThread: (input) =>- graphql({- host: input.host,- operation: "replyToReviewThread",- query: REVIEW_THREAD_REPLY_GRAPHQL_MUTATION,- variables: { threadId: input.threadId, body: input.body },- }),+ client+ .AddReviewThreadReply({ threadId: input.threadId, body: input.body })+ .pipe(graphql({ ...input, operation: "replyToReviewThread" }), Effect.asVoid),getPullRequestFilesViewed: (input) => {const { owner, name } = parseRepositorySelector(input.repository);- return readGraphQlPages(- (after) =>- graphqlRead({- cwd: input.cwd,- host: input.host,- operation: "getPullRequestFilesViewed",- variables: { owner, name, number: input.number, after },- query: PULL_REQUEST_FILES_VIEWED_GRAPHQL_QUERY,- decode: decodePullRequestFilesViewedJson,- }),- { maxPages: FILES_VIEWED_MAX_PAGES, nextCursor: (page) => page.nextCursor },+ const target = { ...input, operation: "getPullRequestFilesViewed" };+ return readPages(+ GraphQLClient.pages(client.PullRequestFilesViewed, {+ variables: { owner, name, number: input.number },+ connection: (result) => {+ const page = toPullRequestFilesViewedPage(result);+ return {+ ...page,+ pageInfo: { hasNextPage: page.nextCursor !== null, endCursor: page.nextCursor },+ };+ },+ }),+ {+ ...target,+ maxPages: FILES_VIEWED_MAX_PAGES,+ hasNextPage: (page) => page.nextCursor !== null,+ },).pipe(+ graphql(target),Effect.map(({ pages, truncated }) => ({files: pages.flatMap((page) => page.files),truncated,@@ -2927,25 +2761,30 @@ export const make = Effect.gen(function* () {setPullRequestFilesViewed: (input) => {if (input.files.length === 0) return Effect.void;- return pullRequestNodeId({ ...input, operation: "setPullRequestFilesViewed" }).pipe(- Effect.flatMap((pullRequestId) => {- const mutation = buildSetFilesViewedGraphQlMutation(pullRequestId, input.files);- return mutation === null- ? Effect.void- : graphql({ host: input.host, operation: "setPullRequestFilesViewed", ...mutation });- }),+ const target = { ...input, operation: "setPullRequestFilesViewed" };+ return pullRequestNodeId(target).pipe(+ Effect.flatMap((pullRequestId) =>+ // One aliased document for the burst: top-level mutation fields run in write order,+ // so the last word about a path is the one that sticks.+ Effect.forEach(+ input.files,+ (file) =>+ GraphQLResolver.request(+ { pullRequestId, path: file.path, viewed: file.viewed },+ setFileViewedResolver,+ ),+ { concurrency: "unbounded", discard: true },+ ),+ ),+ graphql(target),);},setReviewThreadResolution: (input) =>- graphql({- host: input.host,- operation: "setReviewThreadResolution",- query: input.resolved- ? RESOLVE_REVIEW_THREAD_GRAPHQL_MUTATION- : UNRESOLVE_REVIEW_THREAD_GRAPHQL_MUTATION,- variables: { threadId: input.threadId },- }),+ (input.resolved+ ? client.ResolveReviewThread({ threadId: input.threadId }).pipe(Effect.asVoid)+ : client.UnresolveReviewThread({ threadId: input.threadId }).pipe(Effect.asVoid)+ ).pipe(graphql({ ...input, operation: "setReviewThreadResolution" })),setReaction: (input) => {const givenSubjectId = input.subjectId;@@ -2969,33 +2808,31 @@ export const make = Effect.gen(function* () {),);return subjectId.pipe(- Effect.flatMap((subjectId) =>- graphql({- host: input.host,- operation: "setReaction",- query: input.reacted ? ADD_REACTION_GRAPHQL_MUTATION : REMOVE_REACTION_GRAPHQL_MUTATION,- variables: { subjectId, content: gitHubReactionContent(input.content) },- }),- ),+ Effect.flatMap((subjectId) => {+ const variables = { subjectId, content: gitHubReactionContent(input.content) };+ return (+ input.reacted+ ? client.AddReaction(variables).pipe(Effect.asVoid)+ : client.RemoveReaction(variables).pipe(Effect.asVoid)+ ).pipe(graphql({ ...input, operation: "setReaction" }));+ }),);},updatePullRequest: (input) =>pullRequestNodeId({ ...input, operation: "updatePullRequest" }).pipe(Effect.flatMap((pullRequestId) =>- graphql({- host: input.host,- operation: "updatePullRequest",- query: UPDATE_PULL_REQUEST_GRAPHQL_MUTATION,- // A field the caller did not name is left out of the request entirely, so GitHub- // keeps the words that are there rather than being asked for an empty one.- variables: {+ client+ .UpdatePullRequest({pullRequestId,+ // A field the caller did not name is left out of the request entirely, so GitHub+ // keeps the words that are there rather than being asked for an empty one....(input.title === undefined ? {} : { title: input.title }),...(input.body === undefined ? {} : { body: input.body }),- },- }),+ })+ .pipe(graphql({ ...input, operation: "updatePullRequest" })),),+ Effect.asVoid,),updateComment: (input) =>@@ -3017,17 +2854,14 @@ export const make = Effect.gen(function* () {}),),),- Effect.flatMap((commentId) =>- graphql({- host: input.host,- operation: "updateComment",- query:- input.kind === "issue-comment"- ? UPDATE_ISSUE_COMMENT_GRAPHQL_MUTATION- : UPDATE_REVIEW_COMMENT_GRAPHQL_MUTATION,- variables: { commentId, body: input.body },- }),- ),+ Effect.flatMap((commentId) => {+ const variables = { commentId, body: input.body };+ return (+ input.kind === "issue-comment"+ ? client.UpdateIssueComment(variables).pipe(Effect.asVoid)+ : client.UpdateReviewComment(variables).pipe(Effect.asVoid)+ ).pipe(graphql({ ...input, operation: "updateComment" }));+ }),),});});diff --git a/packages/source-control-github/src/server/GitHubPullRequestProvider.test.ts b/packages/source-control-github/src/server/GitHubPullRequestProvider.test.tsindex e2a155f19cf..d98fbc108f1 100644--- a/packages/source-control-github/src/server/GitHubPullRequestProvider.test.ts+++ b/packages/source-control-github/src/server/GitHubPullRequestProvider.test.ts@@ -6,7 +6,7 @@ import * as Result from "effect/Result";import type { PullRequestReaction } from "@t3tools/contracts";import { decodePullRequestDetailJson } from "./gitHubPullRequestJson.ts";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";import * as GitHubPullRequestApi from "./GitHubPullRequestApi.ts";import type { GitHubPullRequestCore } from "./gitHubPullRequestJson.ts";@@ -376,7 +376,7 @@ describe("gitHubViewerPermissions", () => {number: 7,}).pipe(- Effect.provideService(GitHubApi.PinnedGitHubCredential, {+ Effect.provideService(GitHubRequestPolicy.PinnedGitHubCredential, {host: "github.com",token: Redacted.make("credential"),credentialFingerprint: fingerprint,@@ -423,7 +423,7 @@ describe("gitHubViewerPermissions", () => {commits: [],}).pipe(Effect.flatMap((detail) =>- GitHubApi.PinnedGitHubCredential.pipe(+ GitHubRequestPolicy.PinnedGitHubCredential.pipe(Effect.map((credential) => ({...detail,viewerAccess: {@@ -711,7 +711,7 @@ it.effect("propagates workflow discovery rate limits", () =>getPullRequestDetail: () => Effect.succeed(openDetail),listWorkflowRunsRequiringApproval: () =>Effect.fail(- new GitHubApi.GitHubApiRateLimitError({+ new GitHubRequestPolicy.GitHubApiRateLimitError({host: "github.com",operation: "listWorkflowRunsRequiringApproval",}),diff --git a/packages/source-control-github/src/server/GitHubRequestPolicy.ts b/packages/source-control-github/src/server/GitHubRequestPolicy.tsnew file mode 100644index 00000000000..831ba010b9c--- /dev/null+++ b/packages/source-control-github/src/server/GitHubRequestPolicy.ts@@ -0,0 +1,357 @@+import { SourceControlProviderKind } from "@t3tools/contracts";+import * as Cause from "effect/Cause";+import * as Clock from "effect/Clock";+import * as Context from "effect/Context";+import * as Duration from "effect/Duration";+import * as Effect from "effect/Effect";+import * as Layer from "effect/Layer";+import * as Redacted from "effect/Redacted";+import * as Schema from "effect/Schema";+import * as Semaphore from "effect/Semaphore";+import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";++import * as GitHubCredentials from "./GitHubCredentials.ts";+import * as GitHubQuota from "./GitHubQuota.ts";++const DEFAULT_TIMEOUT = Duration.seconds(30);+/** Polite to GitHub's secondary limits, which punish bursts of concurrent requests. */+const CONCURRENCY = 8;+/** The headers every GitHub request carries besides its token. */+const REQUEST_HEADERS = { "x-github-api-version": "2022-11-28", "user-agent": "t3code" };++/**+ * A credential already verified for one host. Every request made under it must target that+ * host, so a page cannot read one account's data with another's token mid-flight. Server-local:+ * never put its value in RPC payloads or cache keys.+ */+export const PinnedGitHubCredential = Context.Reference<{+ readonly host: string;+ readonly token: Redacted.Redacted<string>;+ readonly credentialFingerprint: string;+} | null>("@t3tools/source-control-github/server/GitHubRequestPolicy/PinnedGitHubCredential", {+ defaultValue: () => null,+});++export class GitHubApiRequestError extends Schema.TaggedError<GitHubApiRequestError>()(+ "GitHubApiRequestError",+ { host: Schema.String, operation: Schema.String, cause: Schema.Defect() },+) {+ override get message(): string {+ return `Could not reach GitHub at ${this.host}.`;+ }+}++export class GitHubApiAuthenticationError extends Schema.TaggedError<GitHubApiAuthenticationError>()(+ "GitHubApiAuthenticationError",+ { host: Schema.String, operation: Schema.String },+) {+ override get message(): string {+ return `GitHub refused the credential for ${this.host}. Run \`gh auth login --hostname ${this.host}\` and retry.`;+ }+}++export class GitHubApiRateLimitError extends Schema.TaggedError<GitHubApiRateLimitError>()(+ "GitHubApiRateLimitError",+ {+ host: Schema.String,+ operation: Schema.String,+ retryAt: Schema.optionalKey(Schema.Finite),+ },+) {+ override get message(): string {+ return "GitHub API rate limit exceeded.";+ }+}++export class GitHubApiNotFoundError extends Schema.TaggedError<GitHubApiNotFoundError>()(+ "GitHubApiNotFoundError",+ { host: Schema.String, operation: Schema.String },+) {+ override get message(): string {+ return "GitHub could not find the requested resource, or the credential cannot see it.";+ }+}++/**+ * GitHub answered with a failure that is none of the above. `githubErrors` carries GitHub's own+ * error messages, from a GraphQL `errors` list or a REST `message`/`errors` body: they name the+ * field and the reason ("A pull request already exists for acme:feature"), never a token.+ */+export class GitHubApiResponseError extends Schema.TaggedError<GitHubApiResponseError>()(+ "GitHubApiResponseError",+ {+ host: Schema.String,+ operation: Schema.String,+ status: Schema.Int,+ githubErrors: Schema.optionalKey(Schema.Array(Schema.String)),+ },+) {+ override get message(): string {+ return this.githubErrors !== undefined && this.githubErrors.length > 0+ ? `GitHub returned an error: ${this.githubErrors.join("; ")}`+ : `GitHub returned HTTP ${this.status}.`;+ }+}++export type GitHubApiError =+ | GitHubCredentials.GitHubCredentialUnavailableError+ | GitHubApiRequestError+ | GitHubApiAuthenticationError+ | GitHubApiRateLimitError+ | GitHubApiNotFoundError+ | GitHubApiResponseError+ | SourceControlRateLimit.SourceControlRateLimitPausedError;++export function normalizeHost(host: string): string {+ return host.trim().toLowerCase();+}++/**+ * Where the API for a host lives. github.com and GHE.com data residency serve it from an `api.`+ * subdomain; GitHub Enterprise Server serves it under `/api` on the instance itself.+ */+export function gitHubApiUrls(host: string): { readonly rest: string; readonly graphql: string } {+ const normalized = normalizeHost(host);+ if (normalized === "github.com") {+ return { rest: "https://api.github.com", graphql: "https://api.github.com/graphql" };+ }+ if (normalized.endsWith(".ghe.com")) {+ return {+ rest: `https://api.${normalized}`,+ graphql: `https://api.${normalized}/graphql`,+ };+ }+ return { rest: `https://${normalized}/api/v3`, graphql: `https://${normalized}/api/graphql` };+}++/** The numeric rate-limit headers GitHub sends, as span attributes. */+function rateLimitAttributes(+ headers: Readonly<Record<string, string | undefined>>,+): Record<string, number | string> {+ const attributes: Record<string, number | string> = {};+ for (const [header, name] of [+ ["x-ratelimit-limit", "github.ratelimit.limit"],+ ["x-ratelimit-remaining", "github.ratelimit.remaining"],+ ["x-ratelimit-used", "github.ratelimit.used"],+ ["x-ratelimit-reset", "github.ratelimit.reset"],+ ] as const) {+ const value = Number(headers[header]);+ if (headers[header] !== undefined && Number.isFinite(value)) attributes[name] = value;+ }+ const resource = headers["x-ratelimit-resource"];+ if (resource !== undefined) attributes["github.ratelimit.resource"] = resource;+ return attributes;+}++/** The pause GitHub asked for, from `retry-after` or the primary limit's reset. */+function retryAtFrom(+ headers: Readonly<Record<string, string | undefined>>,+ now: number,+): number | undefined {+ const fromRetryAfter = SourceControlRateLimit.retryAtFromHeader(headers["retry-after"], now);+ if (fromRetryAfter !== undefined) return fromRetryAfter;+ const reset = Number(headers["x-ratelimit-reset"]) * 1_000;+ return Number.isFinite(reset) && reset > now ? reset : undefined;+}++/**+ * Whether GitHub refused a request for its rate limit. A GraphQL answer can say so with HTTP 200:+ * a `RATE_LIMITED` error, or an exhausted quota that answers an untyped "API rate limit already+ * exceeded" error, which the headers confirm.+ */+export function isRateLimited(input: {+ readonly status: number;+ readonly headers: Readonly<Record<string, string | undefined>>;+ /** The GraphQL `errors` list, when the answer is a GraphQL one and has any. */+ readonly graphqlErrors?: ReadonlyArray<{ readonly type?: unknown; readonly message?: unknown }>;+ readonly body?: string;+}): boolean {+ const { status, headers, graphqlErrors: errors } = input;+ return (+ status === 429 ||+ (errors !== undefined &&+ (headers["x-ratelimit-remaining"] === "0" ||+ errors.some(+ (error) =>+ error.type === "RATE_LIMITED" ||+ (typeof error.message === "string" &&+ /rate limit (already )?exceeded/i.test(error.message)),+ ))) ||+ (status === 403 &&+ (headers["x-ratelimit-remaining"] === "0" ||+ headers["retry-after"] !== undefined ||+ /rate limit/i.test(input.body ?? "")))+ );+}++/**+ * What one GitHub answer means, as the transport that read it decided: `Ok` carries what the+ * request returns; every other verdict fails with the `GitHubApi*Error` that says why.+ */+export type GitHubAnswer<A> = {+ /** Unset when the transport reported none. */+ readonly status: number | undefined;+ readonly headers: Readonly<Record<string, string | undefined>>;+} & (+ | { readonly _tag: "Ok"; readonly value: A }+ | { readonly _tag: "RateLimited" | "Unauthorized" | "NotFound" }+ | { readonly _tag: "Failed"; readonly messages?: ReadonlyArray<string> | undefined }+);++export interface GitHubRequest {+ readonly host: string;+ readonly operation: string;+ /** The quota the request spends: `core` for REST, `graphql` for GraphQL. */+ readonly resource: string;+ readonly allowReserve: boolean;+ /** Covers sending and reading the answer. Defaults to 30 seconds. */+ readonly timeout?: Duration.Input | undefined;+}++/**+ * What every GitHub request goes through, REST and GraphQL alike: the host's credential, one+ * shared pool of request slots, the quota reserve and the host-wide pause before it is sent, and+ * what GitHub's answer says about them after. Each transport only sends and reads its answer.+ */+export class GitHubRequestPolicy extends Context.Service<+ GitHubRequestPolicy,+ {+ /**+ * Sends one request. `send` receives the headers it must carry (the token and GitHub's API+ * version) and reports the answer; a failure of its own passes through untouched.+ */+ readonly request: <A, E, R>(+ input: GitHubRequest,+ send: (headers: Readonly<Record<string, string>>) => Effect.Effect<GitHubAnswer<A>, E, R>,+ ) => Effect.Effect<A, E | GitHubApiError, R>;+ /** The credential a request to `host` would carry right now. */+ readonly credential: (+ host: string,+ ) => Effect.Effect<+ { readonly token: Redacted.Redacted<string>; readonly fingerprint: string },+ GitHubApiError+ >;+ }+>()("@t3tools/source-control-github/server/GitHubRequestPolicy") {}++/** @public Service construction is part of the canonical Effect module API. */+export const make = Effect.gen(function* () {+ const credentials = yield* GitHubCredentials.GitHubCredentials;+ const quota = yield* GitHubQuota.GitHubQuota;+ const limits = yield* SourceControlRateLimit.SourceControlRateLimit;+ const slots = yield* Semaphore.make(CONCURRENCY);++ const credential: GitHubRequestPolicy["Service"]["credential"] = Effect.fn(+ "GitHubRest.credential",+ )(function* (host) {+ const normalized = normalizeHost(host);+ const pinned = yield* PinnedGitHubCredential;+ if (pinned !== null) {+ // A pinned page only ever talks to the host it verified.+ if (pinned.host !== normalized) {+ return yield* new GitHubApiAuthenticationError({+ host: normalized,+ operation: "credential",+ });+ }+ return { token: pinned.token, fingerprint: pinned.credentialFingerprint };+ }+ const held = yield* credentials.get(normalized);+ return { token: held.token, fingerprint: held.fingerprint };+ });++ const request: GitHubRequestPolicy["Service"]["request"] = <A, E, R>(+ input: GitHubRequest,+ send: (headers: Readonly<Record<string, string>>) => Effect.Effect<GitHubAnswer<A>, E, R>,+ ) =>+ Effect.gen(function* () {+ const host = normalizeHost(input.host);+ const context = { host, operation: input.operation };+ yield* Effect.annotateCurrentSpan({+ "github.host": host,+ "github.operation": input.operation,+ });+ const { token, fingerprint } = yield* credential(host);+ const scope = yield* SourceControlRateLimit.CredentialScope;+ // A refusal pauses the whole host, whichever quota it spent: the key PullRequestService+ // records its own backoff under.+ const key = { provider: SourceControlProviderKind.make("github"), host };++ const settle = (lease: number, answer: GitHubAnswer<A>) =>+ Effect.gen(function* () {+ yield* quota.observe(host, answer.headers);+ yield* Effect.annotateCurrentSpan({+ ...(answer.status === undefined ? {} : { "http.response.status_code": answer.status }),+ ...rateLimitAttributes(answer.headers),+ });+ switch (answer._tag) {+ case "Ok":+ yield* limits.recordSuccess({ ...key, lease });+ return answer.value;+ case "RateLimited": {+ const retryAt = retryAtFrom(answer.headers, yield* Clock.currentTimeMillis);+ yield* limits.recordRateLimit({ ...key, lease, retryAt });+ yield* Effect.annotateCurrentSpan({+ "github.rate_limited": true,+ ...(retryAt === undefined ? {} : { "github.retry_at": retryAt }),+ });+ return yield* new GitHubApiRateLimitError({+ ...context,+ ...(retryAt === undefined ? {} : { retryAt }),+ });+ }+ case "Unauthorized":+ // The source may hold a newer token than the one that was refused.+ yield* credentials.invalidate(host);+ return yield* new GitHubApiAuthenticationError(context);+ case "NotFound":+ return yield* new GitHubApiNotFoundError(context);+ case "Failed":+ return yield* new GitHubApiResponseError({+ ...context,+ status: answer.status ?? 200,+ ...(answer.messages === undefined ? {} : { githubErrors: answer.messages }),+ });+ }+ });++ const run = Effect.gen(function* () {+ const lease = yield* quota+ .admit(host, input.resource, { allowReserve: input.allowReserve })+ .pipe(+ Effect.andThen(+ limits.check(key, input.allowReserve ? { allowPaused: true } : undefined),+ ),+ Effect.tapError((paused) =>+ Effect.annotateCurrentSpan({+ "github.paused": true,+ "github.retry_at": paused.retryAt,+ }),+ ),+ );+ // One deadline covers the headers and the body: a host that answers headers and then+ // stalls must not hold a shared slot for undici's own five-minute body timeout.+ const answer = yield* send({+ ...REQUEST_HEADERS,+ authorization: `Bearer ${Redacted.value(token)}`,+ }).pipe(+ Effect.timeoutOrElse({+ duration: input.timeout ?? DEFAULT_TIMEOUT,+ orElse: () =>+ Effect.fail(+ new GitHubApiRequestError({ ...context, cause: new Cause.TimeoutError() }),+ ),+ }),+ );+ return yield* settle(lease, answer);+ });+ // The rate-limit scope follows the credential, so a pause on one account never blocks another.+ return yield* slots+ .withPermit(run)+ .pipe(Effect.provideService(SourceControlRateLimit.CredentialScope, scope || fingerprint));+ });++ return GitHubRequestPolicy.of({ request, credential });+});++export const layer = Layer.effect(GitHubRequestPolicy, make);diff --git a/packages/source-control-github/src/server/GitHubApi.test.ts b/packages/source-control-github/src/server/GitHubRest.test.tssimilarity index 57%rename from packages/source-control-github/src/server/GitHubApi.test.tsrename to packages/source-control-github/src/server/GitHubRest.test.tsindex 44aa7f50874..92c7dde57fd 100644--- a/packages/source-control-github/src/server/GitHubApi.test.ts+++ b/packages/source-control-github/src/server/GitHubRest.test.ts@@ -10,7 +10,8 @@ import { ChildProcessSpawner } from "effect/process";import { VcsProcessSpawnError, VcsProcessTimeoutError } from "@t3tools/contracts";import { HttpClient, HttpClientResponse, type HttpClientRequest } from "effect/http";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import * as GitHubCredentials from "./GitHubCredentials.ts";import * as GitHubQuota from "./GitHubQuota.ts";import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";@@ -51,7 +52,7 @@ function harness(respond: (request: HttpClientRequest.HttpClientRequest) => Respreturn Effect.succeed(HttpClientResponse.fromWeb(request, respond(request)));}),);- const layer = GitHubApi.layer.pipe(+ const layer = GitHubRest.layer.pipe(Layer.provide(Layer.mergeAll(credentials, http)),Layer.provideMerge(GitHubQuota.layer),Layer.provideMerge(SourceControlRateLimit.layer),@@ -72,14 +73,14 @@ const json = (body: unknown, init?: ResponseInit) =>describe("gitHubApiUrls", () => {it("maps github.com, GHE.com and GitHub Enterprise Server", () => {- expect(GitHubApi.gitHubApiUrls("GitHub.com")).toEqual({+ expect(GitHubRequestPolicy.gitHubApiUrls("GitHub.com")).toEqual({rest: "https://api.github.com",graphql: "https://api.github.com/graphql",});- expect(GitHubApi.gitHubApiUrls("acme.ghe.com").graphql).toBe(+ expect(GitHubRequestPolicy.gitHubApiUrls("acme.ghe.com").graphql).toBe("https://api.acme.ghe.com/graphql",);- expect(GitHubApi.gitHubApiUrls("git.acme.internal")).toEqual({+ expect(GitHubRequestPolicy.gitHubApiUrls("git.acme.internal")).toEqual({rest: "https://git.acme.internal/api/v3",graphql: "https://git.acme.internal/api/graphql",});@@ -105,184 +106,43 @@ describe("environmentToken", () => {});});-describe("GitHubApi", () => {- it.effect("sends GraphQL with the token, and the document as written", () => {- const { layer, requests } = harness(() => json({ data: { viewer: { login: "julius" } } }));- return Effect.gen(function* () {- yield* TestClock.setTime(NOW);- const api = yield* GitHubApi.GitHubApi;- const body = yield* api.graphql({- host: "github.com",- operation: "viewer",- query: "query { viewer { login } }",- });- expect(body).toContain('"login":"julius"');- expect(requests[0]!.url).toBe("https://api.github.com/graphql");- expect(requests[0]!.headers.authorization).toBe("Bearer first");- // No `rateLimit` selection is added: the quota is read off the response headers.- const sent = requests[0]!.body;- expect(sent._tag === "Uint8Array" ? new TextDecoder().decode(sent.body) : "").toContain(- '"query":"query { viewer { login } }"',- );- }).pipe(Effect.provide(layer));- });-- it.effect("resolves GraphQL credentials once per request and refreshes after refusal", () => {- const { layer, requests, invalidations, credentialReads } = harness((request) =>- request.headers.authorization === "Bearer first"- ? new Response(null, { status: 401 })- : json({ data: { viewer: { login: "julius" } } }),- );- return Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;- const input = {- host: "github.com",- operation: "viewer",- query: "query { viewer { login } }",- };- const refused = yield* Effect.flip(api.graphql(input));- expect(refused._tag).toBe("GitHubApiAuthenticationError");- expect(credentialReads()).toBe(1);- expect(invalidations()).toBe(1);-- const body = yield* api.graphql(input);- expect(body).toContain('"login":"julius"');- expect(credentialReads()).toBe(2);- expect(requests.map((request) => request.headers.authorization)).toEqual([- "Bearer first",- "Bearer second",- ]);- }).pipe(Effect.provide(layer));- });-- it.effect(- "traces the operation, path, query and quota, never the query string or variables",- () => {- const spans: Array<Tracer.NativeSpan> = [];- const tracer = Tracer.make({- span: (options) => {- const span = new Tracer.NativeSpan(options);- spans.push(span);- return span;- },- });- const { layer } = harness((request) =>- request.url.endsWith("/graphql")- ? json(- { data: { viewer: { login: "julius" } } },- { headers: { "x-ratelimit-remaining": "4990", "x-ratelimit-resource": "graphql" } },- )- : json({ ok: true }, { headers: { "x-ratelimit-remaining": "4800" } }),- );- return Effect.gen(function* () {- yield* TestClock.setTime(NOW);- const api = yield* GitHubApi.GitHubApi;- yield* api.graphql({- host: "github.com",- operation: "getPullRequestDetail",- query: "query($body: String!) { viewer { login } }",- variables: { body: "secret user text" },- });- yield* api.rest({- host: "github.com",- operation: "listWorkflowRuns",- path: "repos/acme/web/actions/runs?head_sha=abc123&branch=feat%2Fx",- });- const byName = (name: string) => spans.filter((span) => span.name === name);- const graphql = Object.fromEntries(byName("GitHubApi.graphql")[0]!.attributes);- expect(graphql).toMatchObject({- "github.operation": "getPullRequestDetail",- "github.graphql.query": "query($body: String!) { viewer { login } }",- });- expect(Object.fromEntries(byName("GitHubApi.send")[0]!.attributes)).toMatchObject({- "github.ratelimit.remaining": 4990,- "github.ratelimit.resource": "graphql",- });- expect(String(graphql["github.graphql.query_hash"])).toMatch(/^[0-9a-f]{8}$/);- const rest = Object.fromEntries(byName("GitHubApi.send")[1]!.attributes);- expect(rest).toMatchObject({- "github.operation": "listWorkflowRuns",- "github.kind": "rest",- "url.path": "/repos/acme/web/actions/runs",- "http.response.status_code": 200,- "github.ratelimit.remaining": 4800,- });- // Nothing recorded carries the query string, the variables, or the token.- const everything = spans- .flatMap((span) => [...span.attributes].map(([key, value]) => `${key}=${String(value)}`))- .join("\n");- expect(everything).not.toContain("head_sha");- expect(everything).not.toContain("secret user text");- expect(everything).not.toContain("first");- expect(spans.some((span) => span.attributes.has("url.full"))).toBe(false);- }).pipe(Effect.provide(layer), Effect.withTracer(tracer));- },- );-- it.effect("fails a GraphQL answer that carries errors, naming GitHub's reason", () => {+describe("GitHubRest", () => {+ it.effect("traces the operation, path and quota, never the query string or the token", () => {+ const spans: Array<Tracer.NativeSpan> = [];+ const tracer = Tracer.make({+ span: (options) => {+ const span = new Tracer.NativeSpan(options);+ spans.push(span);+ return span;+ },+ });const { layer } = harness(() =>- json({ data: null, errors: [{ type: "FORBIDDEN", message: "Resource not accessible" }] }),- );- return Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;- const error = yield* Effect.flip(- api.graphql({ host: "github.com", operation: "detail", query: "query { viewer { id } }" }),- );- expect(error._tag).toBe("GitHubApiResponseError");- expect(error.message).toContain("Resource not accessible");- }).pipe(Effect.provide(layer));- });-- it.effect(- "reads a NOT_FOUND answer with another error as a failure, not a missing resource",- () => {- const { layer } = harness(() =>- json({- data: null,- errors: [- { type: "NOT_FOUND", message: "Could not resolve" },- { message: "Something went wrong" },- ],- }),- );- return Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;- const error = yield* Effect.flip(- api.graphql({- host: "github.com",- operation: "detail",- query: "query { viewer { id } }",- }),- );- expect(error._tag).toBe("GitHubApiResponseError");- }).pipe(Effect.provide(layer));- },- );-- it.effect("pauses the host after a GraphQL RATE_LIMITED answer until the reset", () => {- const reset = Math.floor(NOW / 1000) + 600;- const { layer, requests } = harness(() =>- json(- { errors: [{ type: "RATE_LIMITED", message: "API rate limit exceeded" }] },- { headers: { "x-ratelimit-remaining": "0", "x-ratelimit-reset": String(reset) } },- ),+ json({ ok: true }, { headers: { "x-ratelimit-remaining": "4800" } }),);return Effect.gen(function* () {yield* TestClock.setTime(NOW);- const api = yield* GitHubApi.GitHubApi;- const first = yield* Effect.flip(- api.graphql({ host: "github.com", operation: "summary", query: "query { viewer { id } }" }),- );- expect(first).toMatchObject({ _tag: "GitHubApiRateLimitError", retryAt: reset * 1000 });- const second = yield* Effect.flip(- api.rest({ host: "github.com", operation: "stack", path: "repos/acme/web/stacks" }),- );- expect(second).toMatchObject({- _tag: "SourceControlRateLimitPausedError",- retryAt: reset * 1000,+ const api = yield* GitHubRest.GitHubRest;+ yield* api.rest({+ host: "github.com",+ operation: "listWorkflowRuns",+ path: "repos/acme/web/actions/runs?head_sha=abc123&branch=feat%2Fx",});- expect(requests).toHaveLength(1);- }).pipe(Effect.provide(layer));+ const send = spans.find((span) => span.name === "GitHubRest.send")!;+ expect(Object.fromEntries(send.attributes)).toMatchObject({+ "github.operation": "listWorkflowRuns",+ "github.kind": "rest",+ "url.path": "/repos/acme/web/actions/runs",+ "http.response.status_code": 200,+ "github.ratelimit.remaining": 4800,+ });+ // Nothing recorded carries the query string or the token.+ const everything = spans+ .flatMap((span) => [...span.attributes].map(([key, value]) => `${key}=${String(value)}`))+ .join("\n");+ expect(everything).not.toContain("head_sha");+ expect(everything).not.toContain("first");+ expect(spans.some((span) => span.attributes.has("url.full"))).toBe(false);+ }).pipe(Effect.provide(layer), Effect.withTracer(tracer));});it.effect("keeps the last tenth of a quota for interactive requests until it resets", () => {@@ -294,14 +154,10 @@ describe("GitHubApi", () => {"x-ratelimit-reset": String(reset),});let remaining = 499;- const { layer, requests } = harness((request) =>- request.url.endsWith("/graphql")- ? json({ data: { viewer: { id: "1" } } })- : json({ ok: true }, { headers: quota(remaining--) }),- );+ const { layer, requests } = harness(() => json({ ok: true }, { headers: quota(remaining--) }));return Effect.gen(function* () {yield* TestClock.setTime(NOW);- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const read = { host: "github.com", operation: "sweep", path: "repos/acme/web/pulls" };// The first answer leaves 499 of 5000, under the last tenth; the next background read waits.yield* api.rest(read);@@ -310,14 +166,13 @@ describe("GitHubApi", () => {_tag: "SourceControlRateLimitPausedError",retryAt: reset * 1000,});- // A user's own request may spend the reserve, and GraphQL has a quota of its own.+ // A user's own request may spend the reserve.yield* api.rest(read).pipe(Effect.provideService(SourceControlRateLimit.Interactive, true));- yield* api.graphql({ host: "github.com", operation: "x", query: "query { viewer { id } }" });- expect(requests).toHaveLength(3);+ expect(requests).toHaveLength(2);// The reset gives the background its quota back.yield* TestClock.setTime(reset * 1000);yield* api.rest(read);- expect(requests).toHaveLength(4);+ expect(requests).toHaveLength(3);}).pipe(Effect.provide(layer));});@@ -338,7 +193,7 @@ describe("GitHubApi", () => {),);return Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const error = yield* Effect.flip(api.rest({host: "github.com",@@ -369,7 +224,7 @@ describe("GitHubApi", () => {);return Effect.gen(function* () {yield* TestClock.setTime(NOW);- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const read = { host: "github.com", operation: "sweep", path: "repos/acme/web/pulls" };yield* Effect.flip(api.rest(read));expect((yield* Effect.flip(api.rest(read)))._tag).toBe("SourceControlRateLimitPausedError");@@ -386,24 +241,6 @@ describe("GitHubApi", () => {}).pipe(Effect.provide(layer));});- it.effect("reads an untyped GraphQL quota error as a rate limit", () => {- const reset = Math.floor(NOW / 1000) + 900;- const { layer } = harness(() =>- json(- { errors: [{ message: "API rate limit already exceeded for user ID 1." }] },- { headers: { "x-ratelimit-remaining": "0", "x-ratelimit-reset": String(reset) } },- ),- );- return Effect.gen(function* () {- yield* TestClock.setTime(NOW);- const api = yield* GitHubApi.GitHubApi;- const error = yield* Effect.flip(- api.graphql({ host: "github.com", operation: "lookup", query: "query { viewer { id } }" }),- );- expect(error).toMatchObject({ _tag: "GitHubApiRateLimitError", retryAt: reset * 1000 });- }).pipe(Effect.provide(layer));- });-it.effect("maps REST 403 with an exhausted quota to a rate limit, and 304 to an answer", () => {let call = 0;const { layer } = harness(() =>@@ -419,7 +256,7 @@ describe("GitHubApi", () => {);return Effect.gen(function* () {yield* TestClock.setTime(NOW);- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const notModified = yield* api.rest({host: "github.com",operation: "checks",@@ -441,7 +278,7 @@ describe("GitHubApi", () => {: json({ ok: true }),);return Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const refused = yield* Effect.flip(api.rest({ host: "github.com", operation: "user", path: "user" }),);@@ -459,11 +296,11 @@ describe("GitHubApi", () => {it.effect("refuses to send a pinned credential to another host", () => {const { layer, requests } = harness(() => json({}));return Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const error = yield* Effect.flip(api.rest({ host: "git.acme.internal", operation: "user", path: "user" }),).pipe(- Effect.provideService(GitHubApi.PinnedGitHubCredential, {+ Effect.provideService(GitHubRequestPolicy.PinnedGitHubCredential, {host: "github.com",token: Redacted.make("pinned"),credentialFingerprint: "github.com:pinned",diff --git a/packages/source-control-github/src/server/GitHubRest.ts b/packages/source-control-github/src/server/GitHubRest.tsnew file mode 100644index 00000000000..6ed65eebabf--- /dev/null+++ b/packages/source-control-github/src/server/GitHubRest.ts@@ -0,0 +1,243 @@+import * as Context from "effect/Context";+import * as Duration from "effect/Duration";+import * as Effect from "effect/Effect";+import * as Layer from "effect/Layer";+import * as Option from "effect/Option";+import * as Redacted from "effect/Redacted";+import * as Schema from "effect/Schema";+import { HttpClient, HttpClientRequest, type HttpClientResponse } from "effect/http";++import { collectUint8StreamText } from "@t3tools/provider-core/server/collectStreamText";+import * as GitHubCredentials from "./GitHubCredentials.ts";+import * as GitHubQuota from "./GitHubQuota.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";+import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";++const DEFAULT_MAX_RESPONSE_BYTES = 8 * 1024 * 1024;+const { gitHubApiUrls, normalizeHost } = GitHubRequestPolicy;+type GitHubApiError = GitHubRequestPolicy.GitHubApiError;++export interface GitHubRestResponse {+ readonly status: number;+ readonly headers: Readonly<Record<string, string | undefined>>;+ readonly body: string;+ readonly truncated: boolean;+ /** The body was not valid UTF-8, which a raw file read takes to mean binary. */+ readonly invalidUtf8: boolean;+}++export interface GitHubRestInput {+ readonly host: string;+ readonly operation: string;+ readonly method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";+ /** Relative to the API root, e.g. `repos/acme/web/pulls/7`; query string included. */+ readonly path: string;+ readonly body?: unknown;+ /** Defaults to `application/vnd.github+json`. */+ readonly accept?: string;+ /** Revalidates a cached answer. A 304 is returned rather than failed, and is free. */+ readonly ifNoneMatch?: string;+ readonly maxResponseBytes?: number;+ /** Defaults to 30 seconds; a whole pull request's patch may need longer. */+ readonly timeout?: Duration.Input;+ /** Overrides `SourceControlRateLimit.Interactive` for this one request. */+ readonly allowReserve?: boolean;+}++export class GitHubRest extends Context.Service<+ GitHubRest,+ {+ readonly rest: (input: GitHubRestInput) => Effect.Effect<GitHubRestResponse, GitHubApiError>;+ /** The credential a request to `host` would carry right now. */+ readonly credential: (+ host: string,+ ) => Effect.Effect<+ { readonly token: Redacted.Redacted<string>; readonly fingerprint: string },+ GitHubApiError+ >;+ }+>()("@t3tools/source-control-github/server/GitHubRest") {}++/** A REST failure body: `{ message, errors: [{ message } | { resource, field, code }] }`. */+const decodeRestErrors = Schema.decodeUnknownOption(+ Schema.fromJsonString(+ Schema.Struct({+ message: Schema.optional(Schema.String),+ errors: Schema.optional(+ Schema.Array(+ Schema.Union([+ Schema.String,+ Schema.Struct({+ message: Schema.optional(Schema.String),+ field: Schema.optional(Schema.String),+ code: Schema.optional(Schema.String),+ }),+ ]),+ ),+ ),+ }),+ ),+);++function restErrorMessages(body: string): ReadonlyArray<string> | undefined {+ return Option.match(decodeRestErrors(body), {+ onNone: () => undefined,+ onSome: (decoded) => {+ const details = (decoded.errors ?? []).flatMap((error) =>+ typeof error === "string"+ ? [error]+ : error.message !== undefined+ ? [error.message]+ : error.field !== undefined && error.code !== undefined+ ? [`${error.field} ${error.code}`]+ : [],+ );+ const messages = [...(decoded.message === undefined ? [] : [decoded.message]), ...details];+ return messages.length > 0 ? messages : undefined;+ },+ });+}++/** What a REST answer means: a 304 is an answer only when the request revalidated a cached one. */+function classify(input: {+ readonly answer: GitHubRestResponse;+ readonly acceptNotModified: boolean;+}): GitHubRequestPolicy.GitHubAnswer<GitHubRestResponse> {+ const { status, headers, body } = input.answer;+ const meta = { status, headers };+ if (GitHubRequestPolicy.isRateLimited({ status, headers, body })) {+ return { _tag: "RateLimited", ...meta };+ }+ if (status === 401) return { _tag: "Unauthorized", ...meta };+ if (status === 404) return { _tag: "NotFound", ...meta };+ if ((status >= 200 && status < 300) || (status === 304 && input.acceptNotModified)) {+ return { _tag: "Ok", value: input.answer, ...meta };+ }+ return { _tag: "Failed", messages: restErrorMessages(body), ...meta };+}++/** @public Service construction is part of the canonical Effect module API. */+export const make = Effect.gen(function* () {+ const httpClient = yield* HttpClient.HttpClient;+ const policy = yield* GitHubRequestPolicy.GitHubRequestPolicy;++ /**+ * Sends one request through the request policy and fails a refusal with the error that says+ * why. The answer is returned only once it is known to be one.+ */+ const send = Effect.fn("GitHubRest.send")(function* (input: {+ readonly host: string;+ readonly operation: string;+ readonly request: HttpClientRequest.HttpClientRequest;+ readonly maxResponseBytes: number;+ readonly timeout?: Duration.Input | undefined;+ readonly allowReserve: boolean;+ readonly acceptNotModified: boolean;+ }) {+ const host = normalizeHost(input.host);+ // Only the path: a query string can carry a SHA or a branch, and never needs to be in a trace.+ yield* Effect.annotateCurrentSpan({+ "github.kind": "rest",+ "http.request.method": input.request.method,+ "url.path": new URL(input.request.url).pathname,+ });+ return yield* policy.request(+ {+ host,+ operation: input.operation,+ // Every REST path this reads today spends `core`; a `search/` read would need its own+ // resource here.+ resource: "core",+ allowReserve: input.allowReserve,+ timeout: input.timeout,+ },+ (headers) =>+ Effect.gen(function* () {+ const response: HttpClientResponse.HttpClientResponse = yield* httpClient+ .execute(input.request.pipe(HttpClientRequest.setHeaders(headers)))+ .pipe(+ // `GitHubRest.send` is the request's span. The client's own span would add+ // `url.full` and `url.query`, which can carry SHAs and branch names, so it is off.+ Effect.provideService(HttpClient.TracerDisabledWhen, () => true),+ );+ const collected = yield* collectUint8StreamText({+ stream: response.stream,+ maxBytes: input.maxResponseBytes,+ }).pipe(+ // 204, 304 and many refusals carry no body at all, which is an empty answer.+ Effect.catchIf(+ (error) => error.reason._tag === "EmptyBodyError",+ () => Effect.succeed({ text: "", truncated: false, invalidUtf8: false }),+ ),+ );+ const { status, headers: responseHeaders } = response;+ const answer = {+ status,+ headers: responseHeaders,+ body: collected.text,+ truncated: collected.truncated,+ invalidUtf8: collected.invalidUtf8,+ };+ return classify({ answer, acceptNotModified: input.acceptNotModified });+ }).pipe(+ Effect.mapError(+ (cause) =>+ new GitHubRequestPolicy.GitHubApiRequestError({+ host,+ operation: input.operation,+ cause,+ }),+ ),+ ),+ );+ });++ const rest: GitHubRest["Service"]["rest"] = (input) => {+ const url = `${gitHubApiUrls(input.host).rest}/${input.path.replace(/^\/+/, "")}`;+ const base = HttpClientRequest.make(input.method ?? "GET")(url).pipe(+ HttpClientRequest.setHeader("accept", input.accept ?? "application/vnd.github+json"),+ );+ const withEtag =+ input.ifNoneMatch === undefined+ ? base+ : base.pipe(HttpClientRequest.setHeader("if-none-match", input.ifNoneMatch));+ const request =+ input.body === undefined+ ? withEtag+ : withEtag.pipe(HttpClientRequest.bodyJsonUnsafe(input.body));+ return SourceControlRateLimit.Interactive.pipe(+ Effect.flatMap((interactive) =>+ send({+ host: input.host,+ operation: input.operation,+ request,+ maxResponseBytes: input.maxResponseBytes ?? DEFAULT_MAX_RESPONSE_BYTES,+ timeout: input.timeout,+ allowReserve: input.allowReserve ?? interactive,+ acceptNotModified: input.ifNoneMatch !== undefined,+ }),+ ),+ );+ };++ return GitHubRest.of({ rest, credential: policy.credential });+});++/**+ * The REST transport together with the request policy it sends through. The generated GraphQL+ * client sends through the same policy, so REST and GraphQL share one set of request slots.+ */+export const layer = Layer.effect(GitHubRest, make).pipe(+ Layer.provideMerge(GitHubRequestPolicy.layer),+);++/**+ * REST and the request policy, with the credential, quota reserve and rate-limit pause the policy+ * reads through: everything both transports need. An application builds this once so every GitHub+ * reader shares one view of each quota per host.+ */+export const layerWithDependencies = layer.pipe(+ Layer.provideMerge(GitHubCredentials.layer),+ Layer.provideMerge(GitHubQuota.layer),+ Layer.provideMerge(SourceControlRateLimit.layer),+);diff --git a/packages/source-control-github/src/server/GitHubSourceControlProvider.test.ts b/packages/source-control-github/src/server/GitHubSourceControlProvider.test.tsindex 73475840ae2..1fbe0dd10cb 100644--- a/packages/source-control-github/src/server/GitHubSourceControlProvider.test.ts+++ b/packages/source-control-github/src/server/GitHubSourceControlProvider.test.ts@@ -7,14 +7,19 @@ import * as Fiber from "effect/Fiber";import * as FileSystem from "effect/FileSystem";import * as Layer from "effect/Layer";import * as Option from "effect/Option";+import * as Redacted from "effect/Redacted";import * as Schema from "effect/Schema";+import { HttpClient, HttpClientResponse } from "effect/http";import { ChildProcessSpawner } from "effect/process";import * as TestClock from "effect/testing/TestClock";+import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";import type * as SourceControlHost from "@t3tools/source-control-core/server/SourceControlHost";import * as TestSourceControlHost from "@t3tools/source-control-testing/TestSourceControlHost";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import * as GitHubCredentials from "./GitHubCredentials.ts";+import * as GitHubQuota from "./GitHubQuota.ts";import { parseGitHubAuthStatus } from "./gitHubAuthStatus.ts";import * as GitHubSourceControlProvider from "./GitHubSourceControlProvider.ts";@@ -50,7 +55,7 @@ const remotesOutput = (...entries: ReadonlyArray<readonly [string, string]>) =>.flatMap(([name, url]) => [`${name}\t${url} (fetch)`, `${name}\t${url} (push)`]).join("\n");-const restResponse = (body: unknown, status = 200): GitHubApi.GitHubRestResponse => ({+const restResponse = (body: unknown, status = 200): GitHubRest.GitHubRestResponse => ({status,headers: {},body: body === undefined ? "" : encodeJson(body),@@ -64,26 +69,113 @@ const node = (number: number, headRefName: string, owner = "acme") => ({url: `https://github.com/acme/web/pull/${number}`,baseRefName: "main",headRefName,+ headRefOid: "f".repeat(40),state: "OPEN",+ isDraft: false,+ mergedAt: null,+ closedAt: null,isCrossRepository: owner !== "acme",updatedAt: "2026-01-02T00:00:00Z",headRepository: { name: "web", nameWithOwner: `${owner}/web` },- headRepositoryOwner: { login: owner },+ headRepositoryOwner: { __typename: "User", login: owner },});/**- * The provider over a mocked GitHubApi, git driver and process. `remotes` is what- * `git remote -v` prints; `git` records every driver call.+ * One GraphQL request as the fake GitHub saw it. An aliased batch is split back into its+ * lookups, each with its own variables, in order.+ */+interface GraphQlCall {+ readonly host: string;+ readonly operationName: string;+ readonly query: string;+ readonly lookups: ReadonlyArray<Readonly<Record<string, unknown>>>;+}++/**+ * What GitHub answers for one lookup: the `repository` it reads, or a whole HTTP response for the+ * request (a refusal, a rate limit).+ */+type GraphQlAnswer = unknown;+type GraphQlRespond = (+ lookup: Readonly<Record<string, unknown>>,+ call: GraphQlCall,+) => GraphQlAnswer | Response;++/** GitHub's GraphQL endpoint for the generated reads: answers each lookup with `respond`. */+function graphQlHttp(respond: GraphQlRespond, calls: Array<GraphQlCall>) {+ return HttpClient.make((request) =>+ Effect.sync(() => {+ const sent =+ request.body._tag === "Uint8Array"+ ? (JSON.parse(new TextDecoder().decode(request.body.body)) as {+ readonly query: string;+ readonly operationName: string;+ readonly variables: Readonly<Record<string, unknown>>;+ })+ : { query: "", operationName: "", variables: {} };+ const prefixes = [+ ...new Set(Object.keys(sent.variables).flatMap((key) => /^_\d+_/.exec(key) ?? [])),+ ];+ const lookups =+ prefixes.length === 0+ ? [sent.variables]+ : prefixes.map((prefix) =>+ Object.fromEntries(+ Object.entries(sent.variables)+ .filter(([key]) => key.startsWith(prefix))+ .map(([key, value]) => [key.slice(prefix.length), value]),+ ),+ );+ const call: GraphQlCall = {+ host: new URL(request.url).hostname.replace(/^api\./, ""),+ operationName: sent.operationName,+ query: sent.query,+ lookups,+ };+ calls.push(call);+ const answers = lookups.map((lookup) => respond(lookup, call));+ const refusal = answers.find((answer) => answer instanceof Response);+ const response =+ refusal ??+ new Response(+ encodeJson({+ data: Object.fromEntries(+ answers.map((answer, index) => [+ prefixes.length === 0 ? "repository" : `${prefixes[index]}repository`,+ answer,+ ]),+ ),+ }),+ { headers: { "content-type": "application/json" } },+ );+ return HttpClientResponse.fromWeb(request, response);+ }),+ );+}++/**+ * The provider over a mocked GitHubRest, git driver and process. `remotes` is what+ * `git remote -v` prints; `git` records every driver call. GraphQL reads go over HTTP to+ * `graphql`, through the real request policy; `graphqlCalls` records each request.*/function harness(input: {readonly remotes: string;- readonly api: Partial<GitHubApi.GitHubApi["Service"]>;+ readonly api?: Partial<GitHubRest.GitHubRest["Service"]>;+ readonly graphql?: GraphQlRespond;+ /** The credential a GraphQL read is sent with; github.com's token by default. */+ readonly credential?: (+ host: string,+ ) => Effect.Effect<+ GitHubCredentials.GitHubCredential,+ GitHubCredentials.GitHubCredentialUnavailableError+ >;readonly localBranches?: ReadonlyArray<string>;readonly resolved?: string;/** Fails the local branch listing, the first git read a checkout makes. */readonly gitFailure?: unknown;}) {const git: Array<readonly [string, unknown]> = [];+ const graphqlCalls: Array<GraphQlCall> = [];const record =<A>(name: string, value: A) =>(args: unknown) =>@@ -124,17 +216,44 @@ function harness(input: {),},});+ const graphql =+ input.graphql ??+ (() => {+ throw new Error("Unexpected GraphQL read");+ });+ const policy = GitHubRequestPolicy.layer.pipe(+ Layer.provide(+ Layer.mergeAll(+ Layer.succeed(GitHubCredentials.GitHubCredentials, {+ get:+ input.credential ??+ ((host) =>+ Effect.succeed({+ host,+ token: Redacted.make("token"),+ source: "gh" as const,+ fingerprint: `${host}:token`,+ })),+ invalidate: () => Effect.void,+ }),+ GitHubQuota.layer,+ SourceControlRateLimit.layer,+ ),+ ),+ );const layer = Layer.mergeAll(host,- Layer.mock(GitHubApi.GitHubApi)(input.api),+ Layer.mock(GitHubRest.GitHubRest)(input.api ?? {}),+ policy,+ Layer.succeed(HttpClient.HttpClient, graphQlHttp(graphql, graphqlCalls)),NodeServices.layer,);- return { layer, git };+ return { layer, git, graphqlCalls };}/** The provider context for a checkout whose remote is on `host`. */-/** The provider over a mocked GitHubApi, for reads that never touch the checkout. */-const makeProvider = (api: Partial<GitHubApi.GitHubApi["Service"]>) =>+/** The provider over a mocked GitHubRest, for reads that never touch the checkout. */+const makeProvider = (api: Partial<GitHubRest.GitHubRest["Service"]>) =>GitHubSourceControlProvider.make.pipe(Effect.provide(harness({ remotes: "", api }).layer));const githubContext = (host: string) => ({@@ -207,7 +326,10 @@ describe("GitHubSourceControlProvider repository resolution", () => {api: {rest: (input) =>Effect.fail(- new GitHubApi.GitHubApiNotFoundError({ host: input.host, operation: input.operation }),+ new GitHubRequestPolicy.GitHubApiNotFoundError({+ host: input.host,+ operation: input.operation,+ }),),},});@@ -236,23 +358,16 @@ describe("GitHubSourceControlProvider change request lookups by head", () => {const remotes = remotesOutput(["origin", "[email protected]:acme/web.git"]);it.effect("reads a background sweep's staggered heads in one GraphQL document", () => {- const documents: Array<GitHubApi.GitHubGraphQlInput> = [];- const { layer } = harness({+ const { layer, graphqlCalls } = harness({remotes,- api: {- graphql: (input) =>- Effect.sync(() => {- documents.push(input);- return encodeJson({- data: {- repository: {- h0: { nodes: [{ ...node(7, "feature/a"), headRefOid: "a".repeat(40) }] },- h1: { nodes: [] },- },- },- });- }),- },+ graphql: (lookup) => ({+ pullRequests: {+ nodes:+ lookup.head === "feature/a"+ ? [{ ...node(7, "feature/a"), headRefOid: "a".repeat(40) }]+ : [],+ },+ }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -279,33 +394,70 @@ describe("GitHubSourceControlProvider change request lookups by head", () => {);assert.strictEqual(first?.[0]?.headSha, "a".repeat(40));assert.deepStrictEqual(second, []);- assert.strictEqual(documents.length, 1);- assert.include(documents[0]!.query, "headRefOid");- assert.deepStrictEqual(documents[0]!.variables, {- owner: "acme",- name: "web",- h0: "feature/a",- s0: ["OPEN", "CLOSED", "MERGED"],- h1: "feature/b",- s1: ["OPEN", "CLOSED", "MERGED"],- });+ assert.strictEqual(graphqlCalls.length, 1);+ assert.include(graphqlCalls[0]!.query, "headRefOid");+ assert.deepStrictEqual(graphqlCalls[0]!.lookups, [+ {+ owner: "acme",+ name: "web",+ head: "feature/a",+ states: ["OPEN", "CLOSED", "MERGED"],+ first: 100,+ },+ {+ owner: "acme",+ name: "web",+ head: "feature/b",+ states: ["OPEN", "CLOSED", "MERGED"],+ first: 100,+ },+ ]);+ }).pipe(Effect.provide(layer));+ });++ it.effect("skips a row that does not decode and keeps the rest of the batch", () => {+ const { layer, graphqlCalls } = harness({+ remotes,+ graphql: (lookup) => ({+ pullRequests: {+ nodes:+ lookup.head === "feature/a"+ ? [{ ...node(8, "feature/a"), number: "eight" }, node(7, "feature/a")]+ : [node(9, "feature/b")],+ },+ }),+ });+ return Effect.gen(function* () {+ const gh = yield* GitHubSourceControlProvider.make;+ const lookup = (headSelector: string) =>+ gh.listChangeRequests({+ cwd: "/repo",+ headSelector,+ state: "all",+ limit: 100,+ context: githubContext("github.com"),+ });+ const both = yield* Effect.all([lookup("feature/a"), lookup("feature/b")], {+ concurrency: "unbounded",+ }).pipe(Effect.forkChild);+ yield* TestClock.adjust("500 millis");+ const [first, second] = yield* Fiber.join(both);+ assert.strictEqual(graphqlCalls.length, 1);+ assert.deepStrictEqual(+ first.map((pr) => pr.number),+ [7],+ );+ assert.deepStrictEqual(+ second.map((pr) => pr.number),+ [9],+ );}).pipe(Effect.provide(layer));});it.effect("caps a background document at twenty-five heads", () => {- const headCounts: Array<number> = [];- const { layer } = harness({+ const { layer, graphqlCalls } = harness({remotes,- api: {- graphql: (input) =>- Effect.sync(() => {- const heads = Object.keys(input.variables ?? {}).filter((key) => /^h\d+$/.test(key));- headCounts.push(heads.length);- return encodeJson({- data: { repository: Object.fromEntries(heads.map((key) => [key, { nodes: [] }])) },- });- }),- },+ graphql: () => ({ pullRequests: { nodes: [] } }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -324,7 +476,7 @@ describe("GitHubSourceControlProvider change request lookups by head", () => {yield* TestClock.adjust("500 millis");yield* Fiber.join(lookups);assert.deepStrictEqual(- headCounts.toSorted((a, b) => a - b),+ graphqlCalls.map((call) => call.lookups.length).toSorted((a, b) => a - b),[1, 25],);}).pipe(Effect.provide(layer));@@ -333,23 +485,14 @@ describe("GitHubSourceControlProvider change request lookups by head", () => {it.effect("matches an owner:branch selector on the head owner", () => {const { layer } = harness({remotes,- api: {- graphql: (input) =>- Effect.succeed(- encodeJson({- data: {- repository: {- h0: {- nodes:- input.variables?.h0 === "main"- ? [node(9, "main", "someone"), node(8, "main", "me"), node(7, "main", "me")]- : [],- },- },- },- }),- ),- },+ graphql: (lookup) => ({+ pullRequests: {+ nodes:+ lookup.head === "main"+ ? [node(9, "main", "someone"), node(8, "main", "me"), node(7, "main", "me")]+ : [],+ },+ }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -365,20 +508,23 @@ describe("GitHubSourceControlProvider change request lookups by head", () => {});it.effect("maps API failures onto the errors callers handle", () => {+ let signedIn = false;const { layer } = harness({remotes,- api: {- graphql: (input) =>- Effect.fail(- input.variables?.h0 === "missing"- ? new GitHubCredentials.GitHubCliMissingError({ host: "github.com" })- : new GitHubApi.GitHubApiRateLimitError({- host: "github.com",- operation: "x",- retryAt: 123,- }),- ),- },+ credential: (host) =>+ signedIn+ ? Effect.succeed({+ host,+ token: Redacted.make("token"),+ source: "gh" as const,+ fingerprint: "fp",+ })+ : Effect.fail(new GitHubCredentials.GitHubCliMissingError({ host })),+ graphql: () =>+ new Response(encodeJson({ message: "API rate limit exceeded" }), {+ status: 403,+ headers: { "x-ratelimit-remaining": "0", "x-ratelimit-reset": "123" },+ }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -389,27 +535,21 @@ describe("GitHubSourceControlProvider change request lookups by head", () => {const missing = yield* read("missing");yield* TestClock.adjust("500 millis");assert.include((yield* Fiber.join(missing)).detail, "No GitHub credential on the server");+ signedIn = true;const limited = yield* read("limited");yield* TestClock.adjust("500 millis");const error = yield* Fiber.join(limited);assert.include(error.detail, "rate limit exceeded");- assert.propertyVal(error.cause, "retryAt", 123);+ assert.propertyVal(error.cause, "retryAt", 123_000);}).pipe(Effect.provide(layer));});});describe("GitHubSourceControlProvider.getChangeRequest", () => {it.effect("reads a pull request by number, and by URL on its own repository", () => {- const variables: Array<unknown> = [];- const { layer } = harness({+ const { layer, graphqlCalls } = harness({remotes: remotesOutput(["origin", "[email protected]:acme/web.git"]),- api: {- graphql: (input) =>- Effect.sync(() => {- variables.push(input.variables);- return encodeJson({ data: { repository: { pullRequest: node(42, "feature") } } });- }),- },+ graphql: () => ({ pullRequest: node(42, "feature") }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -421,19 +561,20 @@ describe("GitHubSourceControlProvider.getChangeRequest", () => {cwd: "/repo",reference: "https://github.com/other/thing/pull/42",});- assert.deepStrictEqual(variables, [- { owner: "acme", name: "web", number: 42 },- { owner: "other", name: "thing", number: 42 },- ]);+ assert.deepStrictEqual(+ graphqlCalls.flatMap((call) => call.lookups),+ [+ { owner: "acme", name: "web", number: 42 },+ { owner: "other", name: "thing", number: 42 },+ ],+ );}).pipe(Effect.provide(layer));});it.effect("fails a missing pull request as not found", () => {const { layer } = harness({remotes: remotesOutput(["origin", "[email protected]:acme/web.git"]),- api: {- graphql: () => Effect.succeed(encodeJson({ data: { repository: { pullRequest: null } } })),- },+ graphql: () => ({ pullRequest: null }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -445,7 +586,7 @@ describe("GitHubSourceControlProvider.getChangeRequest", () => {describe("GitHubSourceControlProvider writes", () => {it.effect("creates a cross-repository pull request with an owner:branch head", () => {- const requests: Array<GitHubApi.GitHubRestInput> = [];+ const requests: Array<GitHubRest.GitHubRestInput> = [];const { layer } = harness({remotes: remotesOutput(["origin", "[email protected]:me/web.git"],@@ -573,12 +714,7 @@ describe("GitHubSourceControlProvider.checkoutChangeRequest", () => {it.effect("checks a same-repository pull request out from its head branch", () => {const { layer, git } = harness({remotes: remotesOutput(["origin", "[email protected]:acme/web.git"]),- api: {- graphql: () =>- Effect.succeed(- encodeJson({ data: { repository: { pullRequest: node(5, "feature/x") } } }),- ),- },+ graphql: () => ({ pullRequest: node(5, "feature/x") }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -602,14 +738,11 @@ describe("GitHubSourceControlProvider.checkoutChangeRequest", () => {const { layer, git } = harness({remotes: remotesOutput(["origin", "[email protected]:acme/web.git"]),localBranches: ["main"],+ graphql: () => ({ pullRequest: node(6, "main", "someone") }),api: {- graphql: () =>- Effect.succeed(- encodeJson({ data: { repository: { pullRequest: node(6, "main", "someone") } } }),- ),rest: () =>Effect.fail(- new GitHubApi.GitHubApiRequestError({+ new GitHubRequestPolicy.GitHubApiRequestError({host: "github.com",operation: "x",cause: "offline",@@ -629,11 +762,8 @@ describe("GitHubSourceControlProvider.checkoutChangeRequest", () => {const { layer, git } = harness({remotes: remotesOutput(["origin", "[email protected]:acme/web.git"]),localBranches: ["someone/main"],+ graphql: () => ({ pullRequest: node(6, "main", "someone") }),api: {- graphql: () =>- Effect.succeed(- encodeJson({ data: { repository: { pullRequest: node(6, "main", "someone") } } }),- ),rest: (input) =>Effect.succeed(repository(input.path === "repos/acme/web" ? "acme/web" : "someone/web")),},@@ -664,12 +794,7 @@ describe("GitHubSourceControlProvider.checkoutChangeRequest", () => {const { layer } = harness({remotes: remotesOutput(["origin", "[email protected]:acme/web.git"]),gitFailure: new Error("fatal: /home/me/secret-path: permission denied"),- api: {- graphql: () =>- Effect.succeed(- encodeJson({ data: { repository: { pullRequest: node(5, "feature/x") } } }),- ),- },+ graphql: () => ({ pullRequest: node(5, "feature/x") }),});return Effect.gen(function* () {const gh = yield* GitHubSourceControlProvider.make;@@ -924,7 +1049,7 @@ it.effect.each(["read", "decode"] as const)("retains the %s failure without exposing its raw contents",(stage) =>Effect.gen(function* () {- const cause = new GitHubApi.GitHubApiResponseError({+ const cause = new GitHubRequestPolicy.GitHubApiResponseError({host: "github.com",operation: "resolveLink",status: 500,@@ -1026,26 +1151,15 @@ it.live.each(["ssh://[email protected]/team/project.git","https://code.example.test/team/project.git",])("keeps Enterprise operations on the selected remote: %s", (remoteUrl) => {- const graphql: GitHubApi.GitHubGraphQlInput[] = [];- const rest: GitHubApi.GitHubRestInput[] = [];+ const rest: GitHubRest.GitHubRestInput[] = [];+ const pr = {+ ...node(42, "feature", "team"),+ url: "https://code.example.test/team/project/pull/42",+ isCrossRepository: false,+ headRepository: { name: "project", nameWithOwner: "team/project" },+ };const api = {- graphql: (input: GitHubApi.GitHubGraphQlInput) =>- Effect.sync(() => {- graphql.push(input);- const pr = {- ...node(42, "feature", "team"),- url: "https://code.example.test/team/project/pull/42",- isCrossRepository: false,- headRepository: { name: "project", nameWithOwner: "team/project" },- };- return encodeJson({- data: {- repository:- input.operation === "getPullRequest" ? { pullRequest: pr } : { h0: { nodes: [pr] } },- },- });- }),- rest: (input: GitHubApi.GitHubRestInput) =>+ rest: (input: GitHubRest.GitHubRestInput) =>Effect.sync(() => {rest.push(input);return restResponse({@@ -1056,12 +1170,16 @@ it.live.each([});}),};- const { layer, git } = harness({+ const { layer, git, graphqlCalls } = harness({remotes: remotesOutput(["origin", "[email protected]:team/project.git"],["enterprise", remoteUrl],),api,+ graphql: (_, call) =>+ call.operationName === "PullRequestByNumber"+ ? { pullRequest: pr }+ : { pullRequests: { nodes: [pr] } },});return Effect.gen(function* () {const provider = yield* GitHubSourceControlProvider.make;@@ -1101,12 +1219,13 @@ it.live.each([yield* provider.checkoutChangeRequest({ ...input, reference: "42" });yield* provider.getRepositoryCloneUrls({ ...input, repository: "team/other" });yield* provider.getRepositoryCloneUrls({ ...input, repository: "github.com/team/explicit" });- assert.strictEqual(graphql.length, 5);- for (const request of graphql) {- assert.strictEqual(request.host, "code.example.test");- assert.strictEqual(request.variables?.owner, "team");- assert.strictEqual(request.variables?.name, "project");- }+ const lookups = graphqlCalls.flatMap((call) =>+ call.lookups.map(({ owner, name }) => [call.host, owner, name]),+ );+ assert.deepStrictEqual(+ lookups,+ Array.from({ length: 5 }, () => ["code.example.test", "team", "project"]),+ );assert.deepStrictEqual(rest.map(({ host, path }) => [host, path]),[diff --git a/packages/source-control-github/src/server/GitHubSourceControlProvider.ts b/packages/source-control-github/src/server/GitHubSourceControlProvider.tsindex 04fe6887441..a3187ec19df 100644--- a/packages/source-control-github/src/server/GitHubSourceControlProvider.ts+++ b/packages/source-control-github/src/server/GitHubSourceControlProvider.ts@@ -1,11 +1,16 @@import { SourceControlProviderKind } from "@t3tools/contracts";-import * as Context from "effect/Context";import * as Data from "effect/Data";+import * as DateTime from "effect/DateTime";import * as Effect from "effect/Effect";-import * as Exit from "effect/Exit";import * as FileSystem from "effect/FileSystem";+import {+ GraphQL,+ GraphQLClient,+ GraphQLClientError,+ GraphQLGroup,+ GraphQLResolver,+} from "effect/graphql";import * as Option from "effect/Option";-import * as Request from "effect/Request";import * as RequestResolver from "effect/RequestResolver";import * as Result from "effect/Result";import * as Schema from "effect/Schema";@@ -21,10 +26,12 @@ import * as HostProcess from "@t3tools/shared/HostProcess";import { decodeJsonResult } from "@t3tools/shared/schemaJson";import { isSshRemoteUrl } from "@t3tools/shared/sourceControl";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import * as GitHubChangeRequestTemplate from "./gitHubChangeRequestTemplate.ts";+import * as GitHubGraphQlClient from "./gitHubGraphQlClient.ts";import {- decodeGitHubPullRequestEntries,+ normalizeGitHubPullRequestRecord,type NormalizedGitHubPullRequestRecord,} from "./gitHubPullRequests.ts";import {@@ -56,6 +63,30 @@ import * as SourceControlHost from "@t3tools/source-control-core/server/SourceCoimport { readSourceControlHostSettings } from "@t3tools/source-control-core/client/definition";import * as GitHubClient from "../client/definition.ts";+import {+ PullRequestByNumber,+ PullRequestNode,+ PullRequestsByHead,+} from "./sourceControlProvider.graphql.ts";++/**+ * The generated head lookup with its rows left undecoded, so `listByHead` decodes them one at a+ * time: a row whose fields no longer decode is skipped rather than failing every lookup that+ * shared its document.+ */+const LenientPullRequestsByHead = GraphQL.query(PullRequestsByHead.name, {+ // The template, not the joined text: `GraphQLResolver.aliased` repeats it per lookup.+ document: PullRequestsByHead.template!,+ variables: PullRequestsByHead.variables,+ result: Schema.Struct({+ repository: Schema.NullOr(+ Schema.Struct({+ pullRequests: Schema.Struct({ nodes: Schema.NullOr(Schema.Array(Schema.Unknown)) }),+ }),+ ),+ }),+});+const decodePullRequestNode = Schema.decodeUnknownOption(PullRequestNode);const decodeLinkSubject = Schema.decodeUnknownEffect(Schema.fromJsonString(@@ -192,7 +223,7 @@ function environmentTokenVariable(environment: NodeJS.ProcessEnv): string | null* token is checked against the API, since `gh auth status` may not know it.*/export const makeDiscovery = Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const sourceControlHost = yield* SourceControlHost.SourceControlHost;const process = sourceControlHost.process;const environment = yield* HostProcess.Environment;@@ -307,7 +338,7 @@ const REPOSITORY_NOT_FOUND = "Repository not found. Check the owner and name and/** `notFound` names what was missing, which only the operation knows. */function fromGitHubApiError(- error: GitHubApi.GitHubApiError,+ error: GitHubRequestPolicy.GitHubApiError,notFound = PULL_REQUEST_NOT_FOUND,): GitHubFailure {switch (error._tag) {@@ -361,10 +392,10 @@ const decodeViewerLogin = decodeJsonResult(Schema.Struct({ login: TrimmedNonEmpttype PullRequestListState = "open" | "closed" | "merged" | "all";-/** The pull request fields every read selects, in GraphQL. */-const PULL_REQUEST_NODE_SELECTION =- "number title url baseRefName headRefName headRefOid state isDraft mergedAt closedAt updatedAt isCrossRepository headRepository { name nameWithOwner } headRepositoryOwner { login }";-const GRAPHQL_STATES: Record<PullRequestListState, ReadonlyArray<string>> = {+const GRAPHQL_STATES: Record<+ PullRequestListState,+ NonNullable<PullRequestsByHead.Variables["states"]>+> = {open: ["OPEN"],closed: ["CLOSED"],merged: ["MERGED"],@@ -398,69 +429,34 @@ const HEAD_LOOKUP_MAX_RESPONSE_BYTES = 16_000_000;*/const OWNER_HEAD_SCAN_LIMIT = 100;-class PullRequestsByHeadRead extends Request.Class<- {- readonly host: string;- readonly owner: string;- readonly name: string;- readonly headRefName: string;- readonly state: PullRequestListState;- readonly limit: number;- readonly allowReserve: boolean;- },- ReadonlyArray<NormalizedGitHubPullRequestRecord>,- GitHubFailure-> {}--/** One aliased `pullRequests` connection per lookup, each head and state passed as a variable. */-function buildPullRequestsByHeadQuery(- lookups: ReadonlyArray<Pick<PullRequestsByHeadRead, "headRefName" | "state" | "limit">>,-): { readonly document: string; readonly variables: Record<string, unknown> } {- const variables: Record<string, unknown> = {};- const declarations: string[] = ["$owner: String!", "$name: String!"];- const selections: string[] = [];- for (const [index, lookup] of lookups.entries()) {- variables[`h${index}`] = lookup.headRefName;- variables[`s${index}`] = GRAPHQL_STATES[lookup.state];- declarations.push(`$h${index}: String!`, `$s${index}: [PullRequestState!]`);- // `gh pr list` orders the same way, so a head with more matches than the limit keeps the- // same rows.- selections.push(- ` h${index}: pullRequests(headRefName: $h${index}, states: $s${index}, first: ${lookup.limit}, orderBy: { field: CREATED_AT, direction: DESC }) { nodes { ${PULL_REQUEST_NODE_SELECTION} } }`,- );- }- return {- document: `query PullRequestsByHead(${declarations.join(", ")}) {\n repository(owner: $owner, name: $name) {\n${selections.join("\n")}\n }\n}`,- variables,- };+function trimmed(value: string): string | null {+ const text = value.trim();+ return text.length > 0 ? text : null;}-const PULL_REQUEST_BY_NUMBER_QUERY = `query PullRequestByNumber($owner: String!, $name: String!, $number: Int!) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) { ${PULL_REQUEST_NODE_SELECTION} }- }-}`;--const decodePullRequestsByHead = decodeJsonResult(- Schema.Struct({- data: Schema.Struct({- repository: Schema.NullOr(- Schema.Record(- Schema.String,- Schema.NullOr(Schema.Struct({ nodes: Schema.Array(Schema.Unknown) })),- ),- ),- }),- }),-);--const decodePullRequestByNumber = decodeJsonResult(- Schema.Struct({- data: Schema.Struct({- repository: Schema.NullOr(Schema.Struct({ pullRequest: Schema.NullOr(Schema.Unknown) })),- }),- }),-);+/**+ * A pull request as every read reports it, or null for a row this cannot use: a number below+ * one, a blank title, URL or branch name, or an `updatedAt` that is not a date. A list skips a+ * null, so one such row cannot hide the rest. The generated schema already holds every row to+ * GitHub's own types, with `state` as a lenient enum.+ */+function toPullRequestRecord(node: PullRequestNode): NormalizedGitHubPullRequestRecord | null {+ const title = trimmed(node.title);+ const url = trimmed(node.url);+ const baseRefName = trimmed(node.baseRefName);+ const headRefName = trimmed(node.headRefName);+ const updatedAt = DateTime.make(node.updatedAt);+ if (node.number < 1 || !title || !url || !baseRefName || !headRefName) return null;+ if (Option.isNone(updatedAt)) return null;+ return normalizeGitHubPullRequestRecord({+ ...node,+ title,+ url,+ baseRefName,+ headRefName,+ updatedAt: Option.some(DateTime.toUtc(updatedAt.value)),+ });+}/** The local branch a pull request checks out into, the way `gh pr checkout` names it. */export function pullRequestCheckoutBranchName(input: {@@ -484,7 +480,7 @@ const contextHost = (context: SourceControlProvider.SourceControlProviderContextcontext === undefined ? undefined : new URL(context.provider.baseUrl).host;export const make = Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const sourceControlHost = yield* SourceControlHost.SourceControlHost;const process = sourceControlHost.process;const environment = yield* HostProcess.Environment;@@ -543,73 +539,42 @@ export const make = Effect.gen(function* () {},);- const graphqlJson = <A>(- input: GitHubApi.GitHubGraphQlInput,- decode: (raw: string) => Result.Result<A, unknown>,+ const client = yield* GraphQLClient.make(+ GraphQLGroup.make(LenientPullRequestsByHead, PullRequestByNumber).middleware(+ GitHubGraphQlClient.GitHubGraphQlAuth,+ ),+ ).pipe(Effect.provide(GitHubGraphQlClient.layer));++ /**+ * Runs a generated read against `target`. GitHub's refusals and `errors` fail the way REST+ * ones do; an answer that does not decode is a `decodeDetail` failure.+ */+ const graphqlRead = <A, E, R>(+ target: GitHubGraphQlClient.GitHubGraphQlTarget["Service"],decodeDetail: string,+ effect: Effect.Effect<A, E, R>,) =>- api.graphql(input).pipe(- Effect.mapError(fromGitHubApiError),- Effect.flatMap((raw) => {- const decoded = decode(raw);- return Result.isSuccess(decoded)- ? Effect.succeed(decoded.success)- : Effect.fail(failure(decodeDetail, decoded.failure));- }),+ effect.pipe(+ GitHubGraphQlClient.call(target),+ Effect.mapError((error) =>+ GraphQLClientError.isGraphQLClientError(error)+ ? failure(decodeDetail, error)+ : fromGitHubApiError(error as GitHubRequestPolicy.GitHubApiError),+ ),);- const rest = (input: GitHubApi.GitHubRestInput, notFoundDetail?: string) =>+ const rest = (input: GitHubRest.GitHubRestInput, notFoundDetail?: string) =>api.rest(input).pipe(Effect.mapError((error) => fromGitHubApiError(error, notFoundDetail)));- const headResolver = RequestResolver.makeGrouped<PullRequestsByHeadRead, string>({- key: ({ request, context }) =>- [- request.host,- request.owner,- request.name,- String(request.allowReserve),- Context.getOrElse(context, GitHubApi.PinnedGitHubCredential, () => null)- ?.credentialFingerprint ?? "",- Context.getOrElse(context, SourceControlRateLimit.CredentialScope, () => ""),- ].join("\0"),- resolver: (entries) => {- const [first] = entries;- const { host, owner, name, allowReserve } = first.request;- const query = buildPullRequestsByHeadQuery(entries.map((entry) => entry.request));- return graphqlJson(- {- host,- operation: "listPullRequestsByHead",- query: query.document,- variables: { owner, name, ...query.variables },- allowReserve,- // Up to 50 heads of 100 rows each. A default branch such as `main` can match a hundred- // fork pull requests, so the usual cap would cut the answer short.- maxResponseBytes: HEAD_LOOKUP_MAX_RESPONSE_BYTES,- },- decodePullRequestsByHead,- "GitHub returned an invalid change request list.",- ).pipe(- Effect.flatMap((decoded) =>- decoded.data.repository === null- ? Effect.fail(notFound("The repository could not be read."))- : Effect.succeed(decoded.data.repository),- ),- Effect.map((aliases) => {- for (const [index, entry] of entries.entries()) {- const alias = aliases[`h${index}`];- entry.completeUnsafe(- Exit.succeed(alias == null ? [] : decodeGitHubPullRequestEntries(alias.nodes)),- );- }- }),- Effect.catchCause((cause) =>- Effect.sync(() => {- for (const entry of entries) entry.completeUnsafe(Exit.failCause(cause));- }),- ),- );- },+ /**+ * Head lookups to one host under one credential share aliased documents: the resolver batches by+ * the host's endpoint and `batchKey`. Each lookup has its own `repository` root, so lookups on+ * different repositories may share a document, and a repository GitHub cannot find fails only+ * its own. Interactive and background lookups never share one, since they use separate+ * resolvers, so a document is sent under one reserve setting.+ */+ const headResolver = GraphQLResolver.aliased(client.PullRequestsByHead, {+ batchKey: GitHubGraphQlClient.batchKey,}).pipe(RequestResolver.batchN(HEAD_LOOKUPS_PER_DOCUMENT));const interactiveHeadResolver = headResolver.pipe(RequestResolver.setDelay(HEAD_LOOKUP_BATCH_WINDOW),@@ -639,16 +604,33 @@ export const make = Effect.gen(function* () {// owner is matched on the rows it returns.const ownerMatch = /^([^:/\s]+):(.+)$/u.exec(input.headSelector.trim());const headRefName = ownerMatch?.[2] ?? input.headSelector.trim();- const rows = yield* Effect.request(- new PullRequestsByHeadRead({- ...locator,- headRefName,- state: input.state,- limit: ownerMatch ? OWNER_HEAD_SCAN_LIMIT : limit,+ const result = yield* graphqlRead(+ {+ host: locator.host,+ operation: "listPullRequestsByHead",allowReserve: input.allowReserve,- }),- input.allowReserve ? interactiveHeadResolver : backgroundHeadResolver,+ // Up to 50 heads of 100 rows each. A default branch such as `main` can match a hundred+ // fork pull requests, so the usual cap would cut the answer short.+ maxResponseBytes: HEAD_LOOKUP_MAX_RESPONSE_BYTES,+ },+ "GitHub returned an invalid change request list.",+ GraphQLResolver.request(+ {+ owner: locator.owner,+ name: locator.name,+ head: headRefName,+ states: GRAPHQL_STATES[input.state],+ first: ownerMatch ? OWNER_HEAD_SCAN_LIMIT : limit,+ },+ input.allowReserve ? interactiveHeadResolver : backgroundHeadResolver,+ ),);+ if (result.repository === null) return yield* notFound("The repository could not be read.");+ const rows = (result.repository.pullRequests.nodes ?? []).flatMap((entry) => {+ const node = Option.getOrNull(decodePullRequestNode(entry));+ const record = node === null ? null : toPullRequestRecord(node);+ return record === null ? [] : [record];+ });if (!ownerMatch) return rows;const headOwner = ownerMatch[1]!.toLowerCase();return rows@@ -683,21 +665,19 @@ export const make = Effect.gen(function* () {}const locator = parsed.kind === "url" ? parsed.locator : yield* resolveRepository(input);const decodeDetail = "GitHub returned an invalid pull request.";- const decoded = yield* graphqlJson(- {- host: locator.host,- operation: "getPullRequest",- query: PULL_REQUEST_BY_NUMBER_QUERY,- variables: { owner: locator.owner, name: locator.name, number: parsed.number },- allowReserve: true,- },- decodePullRequestByNumber,+ const result = yield* graphqlRead(+ { host: locator.host, operation: "getPullRequest", allowReserve: true },decodeDetail,+ client.PullRequestByNumber({+ owner: locator.owner,+ name: locator.name,+ number: parsed.number,+ }),);- const node = decoded.data.repository?.pullRequest;+ const node = result.repository?.pullRequest;if (node == null) return yield* notFound("The pull request does not exist.");- const [record] = decodeGitHubPullRequestEntries([node]);- if (record === undefined)+ const record = toPullRequestRecord(node);+ if (record === null)return yield* failure(decodeDetail, new Error("Malformed pull request."));return record;},diff --git a/packages/source-control-github/src/server/gitHubConditionalChecks.test.ts b/packages/source-control-github/src/server/gitHubConditionalChecks.test.tsindex a621e0e9ebb..2f1398ff46d 100644--- a/packages/source-control-github/src/server/gitHubConditionalChecks.test.ts+++ b/packages/source-control-github/src/server/gitHubConditionalChecks.test.ts@@ -6,7 +6,8 @@ import * as Schema from "effect/Schema";import * as Redacted from "effect/Redacted";import type { PullRequestCheck } from "@t3tools/contracts";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import { KnownWorkflowRuns, makeChecksRevalidator } from "./gitHubConditionalChecks.ts";const encodeJson = Schema.encodeSync(Schema.fromJsonString(Schema.Unknown));@@ -29,7 +30,7 @@ it.effect(const known: Array<unknown> = [];const revalidate = yield* makeChecksRevalidator.pipe(Effect.provide(- Layer.mock(GitHubApi.GitHubApi)({+ Layer.mock(GitHubRest.GitHubRest)({rest: ({ path, ifNoneMatch }) =>Effect.sync(() => {requests.push(path);@@ -78,7 +79,7 @@ it.effect(});const poll = (identity = credential) =>revalidate(reference, read).pipe(- Effect.provideService(GitHubApi.PinnedGitHubCredential, identity),+ Effect.provideService(GitHubRequestPolicy.PinnedGitHubCredential, identity),);yield* poll();expect(reads).toBe(1);@@ -132,11 +133,11 @@ it.effect("does not retain failed or incomplete reads, and supports hosts withoulet reads = 0;const revalidate = yield* makeChecksRevalidator.pipe(Effect.provide(- Layer.mock(GitHubApi.GitHubApi)({+ Layer.mock(GitHubRest.GitHubRest)({rest: ({ path, ifNoneMatch }) =>unavailable? Effect.fail(- new GitHubApi.GitHubApiResponseError({+ new GitHubRequestPolicy.GitHubApiResponseError({host: "github.com",operation: "revalidateChecks",status: 502,@@ -165,7 +166,7 @@ it.effect("does not retain failed or incomplete reads, and supports hosts withoureads++;return fail? Effect.fail(- new GitHubApi.GitHubApiResponseError({+ new GitHubRequestPolicy.GitHubApiResponseError({host: "github.com",operation: "read",status: 500,@@ -180,7 +181,7 @@ it.effect("does not retain failed or incomplete reads, and supports hosts withou});const poll = () =>revalidate(reference, read).pipe(- Effect.provideService(GitHubApi.PinnedGitHubCredential, credential),+ Effect.provideService(GitHubRequestPolicy.PinnedGitHubCredential, credential),);yield* poll().pipe(Effect.flip);fail = false;@@ -218,11 +219,11 @@ it.effect("falls back when REST checks are unavailable without retrying unsupporlet reads = 0;const revalidate = yield* makeChecksRevalidator.pipe(Effect.provide(- Layer.mock(GitHubApi.GitHubApi)({+ Layer.mock(GitHubRest.GitHubRest)({rest: () => {probes++;return Effect.fail(- new GitHubApi.GitHubApiNotFoundError({+ new GitHubRequestPolicy.GitHubApiNotFoundError({host: "github.com",operation: "revalidateChecks",}),@@ -237,7 +238,7 @@ it.effect("falls back when REST checks are unavailable without retrying unsuppor});for (let tick = 0; tick < 2; tick++)yield* revalidate(reference, read).pipe(- Effect.provideService(GitHubApi.PinnedGitHubCredential, credential),+ Effect.provideService(GitHubRequestPolicy.PinnedGitHubCredential, credential),);expect(probes).toBe(1);expect(reads).toBe(2);diff --git a/packages/source-control-github/src/server/gitHubConditionalChecks.ts b/packages/source-control-github/src/server/gitHubConditionalChecks.tsindex afeb14a0935..5d5f4df4907 100644--- a/packages/source-control-github/src/server/gitHubConditionalChecks.ts+++ b/packages/source-control-github/src/server/gitHubConditionalChecks.ts@@ -7,7 +7,8 @@ import * as Schema from "effect/Schema";import * as Semaphore from "effect/Semaphore";import { PositiveInt, type PullRequestChecks } from "@t3tools/contracts";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import type { GitHubPullRequestDetail } from "./gitHubPullRequestJson.ts";import type { GitHubPullRequestApiError } from "./GitHubPullRequestApi.ts";import type { ProviderRepositoryRef } from "@t3tools/source-control-core/server/PullRequestProvider";@@ -53,7 +54,7 @@ type Validator = { etag: string | undefined; next: boolean; body: string };const UNSUPPORTED_STATUSES = new Set([404, 405, 501]);export const makeChecksRevalidator = Effect.gen(function* () {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const entries = yield* Cache.makeWith((_key: string) =>Effect.sync(() => ({@@ -76,7 +77,7 @@ export const makeChecksRevalidator = Effect.gen(function* () {>,) =>Effect.gen(function* () {- const credential = yield* GitHubApi.PinnedGitHubCredential;+ const credential = yield* GitHubRequestPolicy.PinnedGitHubCredential;if (credential === null) return yield* read;const key = `${credential.credentialFingerprint}\0${input.host}\0${input.repository}\0${input.number}`;const entry = yield* Cache.get(entries, key);@@ -84,7 +85,7 @@ export const makeChecksRevalidator = Effect.gen(function* () {Effect.gen(function* () {if (!entry.supported) return yield* read;const fail = (status: number) =>- new GitHubApi.GitHubApiResponseError({+ new GitHubRequestPolicy.GitHubApiResponseError({host: input.host,operation: "revalidateChecks",status,diff --git a/packages/source-control-github/src/server/gitHubGraphQlClient.test.ts b/packages/source-control-github/src/server/gitHubGraphQlClient.test.tsnew file mode 100644index 00000000000..785ae1ac98b--- /dev/null+++ b/packages/source-control-github/src/server/gitHubGraphQlClient.test.ts@@ -0,0 +1,304 @@+import { describe, expect, it } from "@effect/vitest";+import * as Effect from "effect/Effect";+import * as Layer from "effect/Layer";+import * as Redacted from "effect/Redacted";+import * as TestClock from "effect/testing/TestClock";+import * as Tracer from "effect/Tracer";+import { HttpClient, HttpClientResponse, type HttpClientRequest } from "effect/http";+import { GraphQLClient, GraphQLResolver } from "effect/graphql";+import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";++import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubCredentials from "./GitHubCredentials.ts";+import * as GitHubGraphQlClient from "./gitHubGraphQlClient.ts";+import * as GitHubQuota from "./GitHubQuota.ts";+import { PullRequestBatchesGraphQLGroup } from "./pullRequestBatches.graphql.ts";++const NOW = Date.parse("2026-10-05T12:00:00.000Z");++function harness(respond: (request: HttpClientRequest.HttpClientRequest) => Response) {+ const requests: Array<HttpClientRequest.HttpClientRequest> = [];+ let invalidations = 0;+ const services = Layer.mergeAll(+ Layer.succeed(GitHubCredentials.GitHubCredentials, {+ get: (host) =>+ Effect.succeed({+ host,+ token: Redacted.make("secret"),+ source: "gh" as const,+ fingerprint: `${host}:secret`,+ }),+ invalidate: () =>+ Effect.sync(() => {+ invalidations++;+ }),+ }),+ Layer.succeed(+ HttpClient.HttpClient,+ HttpClient.make((request) => {+ requests.push(request);+ return Effect.succeed(HttpClientResponse.fromWeb(request, respond(request)));+ }),+ ),+ GitHubQuota.layer,+ SourceControlRateLimit.layer,+ );+ const layer = GitHubRest.layer.pipe(Layer.provideMerge(services));+ return { layer, requests, invalidations: () => invalidations };+}++const json = (body: unknown, init?: ResponseInit) =>+ new Response(JSON.stringify(body), {+ ...init,+ headers: { "content-type": "application/json", ...init?.headers },+ });++/** One stats lookup on `host`, through the client and middleware the pull request reads use. */+const readStats = (host: string, number = 7) =>+ Effect.gen(function* () {+ const client = yield* GraphQLClient.make(+ PullRequestBatchesGraphQLGroup.middleware(GitHubGraphQlClient.GitHubGraphQlAuth),+ ).pipe(Effect.provide(GitHubGraphQlClient.layer));+ return yield* GraphQLResolver.request(+ { owner: "acme", name: "web", number },+ GraphQLResolver.aliased(client.PullRequestStats, {+ batchKey: GitHubGraphQlClient.batchKey,+ }),+ ).pipe(+ Effect.provideService(GitHubGraphQlClient.GitHubGraphQlTarget, {+ host,+ operation: "stats",+ }),+ );+ });++const stats = { additions: 3, deletions: 1 };++describe("GitHubGraphQlAuth", () => {+ it.effect(+ "sends each host's lookups to its own endpoint with its token, never in one batch",+ () => {+ const { layer, requests } = harness(() =>+ json({ data: { _0_repository: { pullRequest: stats } } }),+ );+ return Effect.gen(function* () {+ const client = yield* GraphQLClient.make(+ PullRequestBatchesGraphQLGroup.middleware(GitHubGraphQlClient.GitHubGraphQlAuth),+ ).pipe(Effect.provide(GitHubGraphQlClient.layer));+ const resolver = GraphQLResolver.aliased(client.PullRequestStats, {+ batchKey: GitHubGraphQlClient.batchKey,+ });+ const lookup = (host: string) =>+ GraphQLResolver.request({ owner: "acme", name: "web", number: 7 }, resolver).pipe(+ Effect.provideService(GitHubGraphQlClient.GitHubGraphQlTarget, {+ host,+ operation: "stats",+ }),+ );+ yield* Effect.all([lookup("github.com"), lookup("github.acme.test")], {+ concurrency: "unbounded",+ });+ expect(requests.map((request) => request.url).toSorted()).toEqual([+ "https://api.github.com/graphql",+ "https://github.acme.test/api/graphql",+ ]);+ expect(requests[0]?.headers["authorization"]).toBe("Bearer secret");+ expect(requests[0]?.headers["x-github-api-version"]).toBe("2022-11-28");+ }).pipe(Effect.provide(layer));+ },+ );++ it.effect("pauses the host on a RATE_LIMITED answer sent with HTTP 200", () => {+ const reset = Math.floor(NOW / 1000) + 600;+ const { layer, requests } = harness(() =>+ json(+ { data: null, errors: [{ type: "RATE_LIMITED", message: "API rate limit exceeded" }] },+ { headers: { "x-ratelimit-remaining": "0", "x-ratelimit-reset": String(reset) } },+ ),+ );+ return Effect.gen(function* () {+ yield* TestClock.setTime(NOW);+ const first = yield* Effect.flip(readStats("github.com"));+ expect(first).toMatchObject({ _tag: "GitHubApiRateLimitError", retryAt: reset * 1000 });+ // The pause is the one REST reads respect too.+ const api = yield* GitHubRest.GitHubRest;+ const rest = yield* Effect.flip(+ api.rest({ host: "github.com", operation: "stack", path: "repos/acme/web/stacks" }),+ );+ expect(rest).toMatchObject({ _tag: "SourceControlRateLimitPausedError" });+ expect(requests).toHaveLength(1);+ }).pipe(Effect.provide(layer));+ });++ it.effect("reads an untyped exhausted-quota error sent with HTTP 200 as a rate limit", () => {+ const reset = Math.floor(NOW / 1000) + 900;+ const { layer } = harness(() =>+ json(+ { data: null, errors: [{ message: "API rate limit already exceeded for user ID 1." }] },+ { headers: { "x-ratelimit-remaining": "0", "x-ratelimit-reset": String(reset) } },+ ),+ );+ return Effect.gen(function* () {+ yield* TestClock.setTime(NOW);+ const error = yield* Effect.flip(readStats("github.com"));+ expect(error).toMatchObject({ _tag: "GitHubApiRateLimitError", retryAt: reset * 1000 });+ }).pipe(Effect.provide(layer));+ });++ it.effect("traces the query hash and quota, never the variables, token or URL", () => {+ const spans: Array<Tracer.NativeSpan> = [];+ const tracer = Tracer.make({+ span: (options) => {+ const span = new Tracer.NativeSpan(options);+ spans.push(span);+ return span;+ },+ });+ const { layer } = harness(() =>+ json(+ { data: { _0_repository: { pullRequest: stats } } },+ { headers: { "x-ratelimit-remaining": "4990", "x-ratelimit-resource": "graphql" } },+ ),+ );+ return Effect.gen(function* () {+ yield* TestClock.setTime(NOW);+ yield* readStats("github.com", 4242);+ const execute = spans.find((span) => span.name === "GitHubGraphQlAuth.execute")!;+ const attributes = Object.fromEntries(execute.attributes);+ expect(attributes).toMatchObject({+ "github.kind": "graphql",+ "github.operation": "stats",+ "http.response.status_code": 200,+ "github.ratelimit.remaining": 4990,+ "github.ratelimit.resource": "graphql",+ });+ expect(String(attributes["github.graphql.query_hash"])).toMatch(/^[0-9a-f]{8}$/);+ const everything = spans+ .flatMap((span) => [...span.attributes].map(([key, value]) => `${key}=${String(value)}`))+ .join("\n");+ expect(everything).not.toContain("4242");+ expect(everything).not.toContain("secret");+ expect(spans.some((span) => span.attributes.has("url.full"))).toBe(false);+ }).pipe(Effect.provide(layer), Effect.withTracer(tracer));+ });++ it.effect("reads a 403 secondary limit as a rate limit, and a 401 as a refused token", () => {+ const answers = [+ json({ message: "You have exceeded a secondary rate limit." }, { status: 403 }),+ json({ message: "Bad credentials" }, { status: 401 }),+ ];+ const { layer, invalidations } = harness(() => answers.shift()!);+ return Effect.gen(function* () {+ yield* TestClock.setTime(NOW);+ expect((yield* Effect.flip(readStats("github.com")))._tag).toBe("GitHubApiRateLimitError");+ expect((yield* Effect.flip(readStats("github.example")))._tag).toBe(+ "GitHubApiAuthenticationError",+ );+ expect(invalidations()).toBe(1);+ }).pipe(Effect.provide(layer));+ });++ it.effect("keeps the quota reserve for interactive requests", () => {+ const reset = Math.floor(NOW / 1000) + 600;+ const { layer, requests } = harness(() =>+ json(+ { data: { _0_repository: { pullRequest: stats } } },+ {+ headers: {+ "x-ratelimit-resource": "graphql",+ "x-ratelimit-limit": "5000",+ "x-ratelimit-remaining": "100",+ "x-ratelimit-reset": String(reset),+ },+ },+ ),+ );+ return Effect.gen(function* () {+ yield* TestClock.setTime(NOW);+ yield* readStats("github.com", 1).pipe(+ Effect.provideService(SourceControlRateLimit.Interactive, true),+ );+ // 100 of 5,000 left is inside the reserve, which a background read may not spend.+ const background = yield* Effect.flip(readStats("github.com", 2));+ expect(background._tag).toBe("SourceControlRateLimitPausedError");+ expect(requests).toHaveLength(1);+ // REST spends a quota of its own, which the GraphQL reserve does not hold back.+ const api = yield* GitHubRest.GitHubRest;+ yield* api.rest({ host: "github.com", operation: "user", path: "user" });+ expect(requests).toHaveLength(2);+ }).pipe(Effect.provide(layer));+ });+});++/** One unbatched stats read on github.com, through `call`. */+const callStats = (target: Partial<GitHubGraphQlClient.GitHubGraphQlTarget["Service"]> = {}) =>+ Effect.gen(function* () {+ const client = yield* GraphQLClient.make(+ PullRequestBatchesGraphQLGroup.middleware(GitHubGraphQlClient.GitHubGraphQlAuth),+ ).pipe(Effect.provide(GitHubGraphQlClient.layer));+ return yield* client+ .PullRequestStats({ owner: "acme", name: "web", number: 7 })+ .pipe(GitHubGraphQlClient.call({ host: "github.com", operation: "stats", ...target }));+ });++describe("call", () => {+ it.effect("fails an answer whose errors all say NOT_FOUND as a missing resource", () => {+ const { layer } = harness(() =>+ json({+ data: { repository: null },+ errors: [{ type: "NOT_FOUND", message: "Could not resolve to a Repository" }],+ }),+ );+ return Effect.gen(function* () {+ const error = yield* Effect.flip(callStats());+ expect(error).toMatchObject({+ _tag: "GitHubApiNotFoundError",+ host: "github.com",+ operation: "stats",+ });+ }).pipe(Effect.provide(layer));+ });++ it.effect(+ "fails NOT_FOUND alongside another error as a failure carrying GitHub's reasons",+ () => {+ const { layer } = harness(() =>+ json({+ data: null,+ errors: [+ { type: "NOT_FOUND", message: "Could not resolve" },+ { type: "FORBIDDEN", message: "Resource not accessible" },+ ],+ }),+ );+ return Effect.gen(function* () {+ const error = yield* Effect.flip(callStats());+ expect(error).toMatchObject({+ _tag: "GitHubApiResponseError",+ status: 200,+ githubErrors: ["Could not resolve", "Resource not accessible"],+ });+ }).pipe(Effect.provide(layer));+ },+ );++ it.effect("leaves an answer that does not decode to the caller", () => {+ const { layer } = harness(() =>+ json({ data: { repository: { pullRequest: { additions: "many" } } } }),+ );+ return Effect.gen(function* () {+ const error = yield* Effect.flip(callStats());+ expect(error).toMatchObject({ _tag: "GraphQLClientError", reason: { _tag: "DecodeError" } });+ }).pipe(Effect.provide(layer));+ });++ it.effect("fails an answer past the byte cap with its status", () => {+ const { layer } = harness(() =>+ json({ data: { repository: { pullRequest: { ...stats, padding: "x".repeat(200) } } } }),+ );+ return Effect.gen(function* () {+ const error = yield* Effect.flip(callStats({ maxResponseBytes: 64 }));+ expect(error).toMatchObject({ _tag: "GitHubApiResponseError", status: 200 });+ }).pipe(Effect.provide(layer));+ });+});diff --git a/packages/source-control-github/src/server/gitHubGraphQlClient.ts b/packages/source-control-github/src/server/gitHubGraphQlClient.tsnew file mode 100644index 00000000000..f1f6ee8944e--- /dev/null+++ b/packages/source-control-github/src/server/gitHubGraphQlClient.ts@@ -0,0 +1,295 @@+import * as Context from "effect/Context";+import * as Effect from "effect/Effect";+import { dual } from "effect/Function";+import * as Layer from "effect/Layer";+import * as Option from "effect/Option";+import * as Stream from "effect/Stream";+import { HttpClient, HttpClientError, HttpClientResponse } from "effect/http";+import * as Headers from "effect/http/Headers";+import { GraphQLClientError, GraphQLMiddleware, GraphQLProtocol } from "effect/graphql";+import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";+import { collectUint8StreamText } from "@t3tools/provider-core/server/collectStreamText";++import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";++const DEFAULT_MAX_RESPONSE_BYTES = 8 * 1024 * 1024;++/**+ * The GitHub host and operation a generated GraphQL call is sent as. One client serves every host,+ * so each call names its own.+ */+export class GitHubGraphQlTarget extends Context.Service<+ GitHubGraphQlTarget,+ {+ readonly host: string;+ readonly operation: string;+ /** Overrides `SourceControlRateLimit.Interactive` for this one call. */+ readonly allowReserve?: boolean | undefined;+ /** A longer answer fails as a `GitHubApiResponseError`. Defaults to 8 MB. */+ readonly maxResponseBytes?: number | undefined;+ }+>()("@t3tools/source-control-github/server/gitHubGraphQlClient/GitHubGraphQlTarget") {}++/** A stable short id for a GraphQL document, so traces group by query without its text. */+function queryHash(query: string): string {+ let hash = 0x811c9dc5;+ for (let index = 0; index < query.length; index++) {+ hash ^= query.charCodeAt(index);+ hash = Math.imul(hash, 0x01000193);+ }+ return (hash >>> 0).toString(16).padStart(8, "0");+}++/**+ * Whether GitHub's `errors` all say the thing asked for does not exist, or that the credential+ * cannot see it. A batch reports that for one pull request alone.+ */+export const isNotFoundOnly = (error: unknown): boolean =>+ GraphQLClientError.isGraphQLClientError(error) &&+ error.reason._tag === "ResponseError" &&+ error.reason.errors.every((graphQlError) => graphQlError["type"] === "NOT_FOUND");++/**+ * GitHub's auth and rate limits around a generated GraphQL call, through `GitHubRequestPolicy`:+ * the same credential, request slots, quota and pause as REST. It fails with the policy's+ * errors, which every GitHub caller already maps. GraphQL `errors` that are not a rate limit are+ * the client's: a batch settles them per pull request, and `call` maps the rest.+ */+export class GitHubGraphQlAuth extends GraphQLMiddleware.Service<+ GitHubGraphQlAuth,+ { requires: GitHubGraphQlTarget; error: GitHubRequestPolicy.GitHubApiError }+>()("@t3tools/source-control-github/server/gitHubGraphQlClient/GitHubGraphQlAuth") {+ static readonly layer = Layer.effect(+ GitHubGraphQlAuth,+ Effect.gen(function* () {+ const policy = yield* GitHubRequestPolicy.GitHubRequestPolicy;+ return GitHubGraphQlAuth.of({+ execute: ({ request, next }) =>+ Effect.gen(function* () {+ const target = yield* GitHubGraphQlTarget;+ const host = GitHubRequestPolicy.normalizeHost(target.host);+ yield* Effect.annotateCurrentSpan({+ "github.kind": "graphql",+ "github.graphql.query_hash": queryHash(request.query),+ });+ return yield* policy.request(+ {+ host,+ operation: target.operation,+ resource: "graphql",+ allowReserve: target.allowReserve ?? (yield* SourceControlRateLimit.Interactive),+ },+ (headers) =>+ next({ ...request, headers: Headers.setAll(request.headers, headers) }).pipe(+ Effect.map((answer) => {+ const status = answer.status;+ const responseHeaders = answer.headers ?? Headers.empty;+ const rateLimited = GitHubRequestPolicy.isRateLimited({+ status: status ?? 200,+ headers: responseHeaders,+ ...(answer.errors === undefined ? {} : { graphqlErrors: answer.errors }),+ });+ return rateLimited+ ? { _tag: "RateLimited" as const, status, headers: responseHeaders }+ : { _tag: "Ok" as const, value: answer, status, headers: responseHeaders };+ }),+ Effect.catchIf(GraphQLClientError.isGraphQLClientError, (error) =>+ refused(error, { host, operation: target.operation }),+ ),+ ),+ );+ }).pipe(Effect.withSpan("GitHubGraphQlAuth.execute")),+ subscribe: () => Stream.die(new Error("GitHub GraphQL has no subscriptions.")),+ });+ }),+ );+}++/**+ * What a refusal GitHub sent as an HTTP status means, read the way REST reads one. A+ * failure that never reached GitHub is a request error; one that is not about the transport+ * (an answer that does not decode) is the client's own.+ */+const refused = (+ error: GraphQLClientError.GraphQLClientError,+ context: { readonly host: string; readonly operation: string },+) =>+ Effect.gen(function* () {+ const reason = error.reason;+ if (reason._tag !== "TransportError" && reason._tag !== "ResponseError") {+ return yield* Effect.fail(error);+ }+ const status = reason.status;+ if (reason._tag === "TransportError" && status === undefined) {+ return yield* new GitHubRequestPolicy.GitHubApiRequestError({ ...context, cause: error });+ }+ const headers = reason.headers ?? Headers.empty;+ // A secondary limit is a 403 that only its body names, which the transport read.+ const body =+ reason._tag === "TransportError" &&+ HttpClientError.isHttpClientError(reason.cause) &&+ reason.cause.response !== undefined+ ? yield* reason.cause.response.text.pipe(Effect.orElseSucceed(() => ""))+ : "";+ const tag = GitHubRequestPolicy.isRateLimited({+ status: status ?? 200,+ headers,+ body,+ ...(reason._tag === "ResponseError" ? { graphqlErrors: reason.errors } : {}),+ })+ ? "RateLimited"+ : status === 401+ ? "Unauthorized"+ : status === 404+ ? "NotFound"+ : "Failed";+ return { _tag: tag, status: status ?? 200, headers } as const;+ });++/**+ * Reads each answer whole, up to the call's byte cap, before the protocol parses it. A body cut+ * at the cap hides any `errors` past the cut and cannot be decoded, so it fails, which the+ * middleware reports as a `GitHubApiResponseError` with the answer's status.+ */+const capResponse = (+ effect: Effect.Effect<HttpClientResponse.HttpClientResponse, HttpClientError.HttpClientError>,+) =>+ Effect.gen(function* () {+ const response = yield* effect;+ const target = yield* Effect.serviceOption(GitHubGraphQlTarget);+ const maxBytes = Option.match(target, {+ onNone: () => DEFAULT_MAX_RESPONSE_BYTES,+ onSome: (target) => target.maxResponseBytes ?? DEFAULT_MAX_RESPONSE_BYTES,+ });+ const collected = yield* collectUint8StreamText({ stream: response.stream, maxBytes }).pipe(+ Effect.catchIf(+ (error) => error.reason._tag === "EmptyBodyError",+ () => Effect.succeed({ text: "", truncated: false }),+ ),+ );+ if (collected.truncated) {+ return yield* new HttpClientError.HttpClientError({+ reason: new HttpClientError.DecodeError({+ request: response.request,+ response,+ description: `The answer is longer than ${maxBytes} bytes.`,+ }),+ });+ }+ return HttpClientResponse.fromWeb(+ response.request,+ new Response(collected.text === "" ? null : collected.text, {+ status: response.status,+ headers: response.headers,+ }),+ );+ });++/**+ * The HTTP transport, sending each request to its target host's endpoint. Resolvers batch by this+ * URL, so lookups for different hosts never share a request. `GitHubGraphQlAuth` requires the+ * target, so every call has one. The middleware's span is the request's: the client's own would add+ * `url.full`, which can carry SHAs and branch names, so it is off, as for REST.+ */+const layerProtocol = GraphQLProtocol.layerHttp({+ url: ({ context }) =>+ GitHubRequestPolicy.gitHubApiUrls(Context.getUnsafe(context, GitHubGraphQlTarget).host).graphql,+}).pipe(+ Layer.provide(+ Layer.effect(+ HttpClient.HttpClient,+ Effect.gen(function* () {+ const client = yield* HttpClient.HttpClient;+ return HttpClient.transformResponse(client, (effect) =>+ capResponse(effect).pipe(+ Effect.provideService(HttpClient.TracerDisabledWhen, () => true),+ ),+ );+ }),+ ),+ ),+);++/**+ * What a client built over `.middleware(GitHubGraphQlAuth)` needs beyond `GitHubRequestPolicy`+ * and the HTTP client.+ */+export const layer = Layer.merge(GitHubGraphQlAuth.layer, layerProtocol);++/**+ * What decides which lookups to one host may share a batched request: the credential and+ * rate-limit scope it will be sent under. Read from the context the lookup was made in. Resolvers+ * already keep hosts apart, since they batch by the transport's URL too.+ */+export const batchKey = (context: Context.Context<GitHubGraphQlTarget>) =>+ JSON.stringify([+ Context.getOrElse(context, GitHubRequestPolicy.PinnedGitHubCredential, () => null)+ ?.credentialFingerprint ?? null,+ Context.getOrElse(context, SourceControlRateLimit.CredentialScope, () => ""),+ ]);++/**+ * GitHub's `errors` on an answer, as the policy's errors: not found when every error says so,+ * otherwise a response error carrying GitHub's messages. Any other client error (an answer that+ * does not decode) is returned as it is.+ */+const fromClientError = (+ target: { readonly host: string; readonly operation: string },+ error: GraphQLClientError.GraphQLClientError,+):+ | GitHubRequestPolicy.GitHubApiNotFoundError+ | GitHubRequestPolicy.GitHubApiResponseError+ | GraphQLClientError.GraphQLClientError => {+ const reason = error.reason;+ if (reason._tag !== "ResponseError") return error;+ const context = {+ host: GitHubRequestPolicy.normalizeHost(target.host),+ operation: target.operation,+ };+ return isNotFoundOnly(error)+ ? new GitHubRequestPolicy.GitHubApiNotFoundError(context)+ : new GitHubRequestPolicy.GitHubApiResponseError({+ ...context,+ status: reason.status ?? 200,+ githubErrors: reason.errors.map((graphQlError) => graphQlError.message),+ });+};++/**+ * Runs one generated GraphQL call (or several) against `target`, failing GitHub's `errors` as+ * `GitHubApiNotFoundError` or `GitHubApiResponseError`. What remains a `GraphQLClientError` is an+ * answer that did not decode, which the caller reports as its own read error. The middleware's+ * errors pass through.+ */+export const call: {+ (+ target: GitHubGraphQlTarget["Service"],+ ): <A, E, R>(+ effect: Effect.Effect<A, E, R>,+ ) => Effect.Effect<+ A,+ E | GitHubRequestPolicy.GitHubApiNotFoundError | GitHubRequestPolicy.GitHubApiResponseError,+ Exclude<R, GitHubGraphQlTarget>+ >;+ <A, E, R>(+ effect: Effect.Effect<A, E, R>,+ target: GitHubGraphQlTarget["Service"],+ ): Effect.Effect<+ A,+ E | GitHubRequestPolicy.GitHubApiNotFoundError | GitHubRequestPolicy.GitHubApiResponseError,+ Exclude<R, GitHubGraphQlTarget>+ >;+} = dual(2, <A, E, R>(effect: Effect.Effect<A, E, R>, target: GitHubGraphQlTarget["Service"]) =>+ effect.pipe(+ // A `GraphQLClientError` left unmapped is one `E` already holds.+ Effect.mapError((error) =>+ GraphQLClientError.isGraphQLClientError(error)+ ? (fromClientError(target, error) as+ | E+ | GitHubRequestPolicy.GitHubApiNotFoundError+ | GitHubRequestPolicy.GitHubApiResponseError)+ : error,+ ),+ Effect.provideService(GitHubGraphQlTarget, target),+ ),+);diff --git a/packages/source-control-github/src/server/gitHubPullRequestJson.test.ts b/packages/source-control-github/src/server/gitHubPullRequestJson.test.tsindex ed8febc7e80..12c3c0b7014 100644--- a/packages/source-control-github/src/server/gitHubPullRequestJson.test.ts+++ b/packages/source-control-github/src/server/gitHubPullRequestJson.test.ts@@ -1,35 +1,240 @@import * as Result from "effect/Result";+import * as Schema from "effect/Schema";import { describe, expect, it } from "vite-plus/test";import {- buildPullRequestSummariesGraphQlQuery,- buildPullRequestWatchFingerprintsGraphQlQuery,- decodePullRequestSummariesJson,- decodePullRequestWatchFingerprintsJson,buildReviewSubmission,- buildPullRequestStackMembershipsGraphQlQuery,- decodePullRequestStackMembershipsJson,buildReviewerRequest,- buildSetFilesViewedGraphQlMutation,- decodePullRequestActivityJson,+ pullRequestLookup,+ toPullRequestSummary,+ toPullRequestWatchFingerprint,decodePullRequestDetailJson,decodePullRequestFilesJson,- decodePullRequestFilesViewedJson,- decodePullRequestListJson,- decodePullRequestNodeIdJson,- decodePullRequestSearchJson,decodePullRequestStacksJson,- decodeLabelCandidatesJson,- decodeReviewerCandidatesJson,- decodeReviewThreadCommentsJson,- decodeReviewThreadsJson,- decodeViewerPermissionsJson,decodeWorkflowRunsJson,+ LenientPullRequestList,+ LenientPullRequestSearch,reviewThreadConversation,- REVIEW_THREADS_GRAPHQL_QUERY,- pullRequestCoreGraphQlQuery,- pullRequestSearchGraphQlQuery,+ toLabelCandidates,+ toPullRequestActivityPage,+ toPullRequestCore,+ toPullRequestFilesViewedPage,+ toPullRequestNodeId,+ toPullRequestRows,+ toReviewerCandidates,+ toReviewThreadCommentsPage,+ toCanWrite,+ toReviewThreadPage,+ toViewerPermissions,} from "./gitHubPullRequestJson.ts";+import { PullRequestSummary, PullRequestWatchFingerprint } from "./pullRequestBatches.graphql.ts";+import {+ LabelCandidates,+ PullRequestActivity,+ PullRequestCore,+ PullRequestFilesViewed,+ PullRequestNodeId,+ ReviewerCandidates,+ ViewerPermissions,+} from "./pullRequestReads.graphql.ts";+import { ReviewThreadComments, ReviewThreads } from "./pullRequestReviews.graphql.ts";++/**+ * A GitHub answer (`{ data }` as JSON) through a generated operation's result schema and then its+ * mapping, the way the client decodes and the API maps. A mapping's null (nothing found) fails.+ */+const through =+ <S extends Schema.Codec<unknown, unknown>, A>(schema: S, map: (result: S["Type"]) => A | null) =>+ (raw: string): Result.Result<A, unknown> => {+ const decoded = Schema.decodeUnknownResult(schema)(+ (JSON.parse(raw) as { readonly data: unknown }).data,+ );+ if (Result.isFailure(decoded)) return Result.fail(decoded.failure);+ const mapped = map(decoded.success);+ return mapped === null ? Result.fail("not found") : Result.succeed(mapped);+ };++/** An account as a selection with `__typename` answers it: GitHub always sends the type. */+const user = (login: string, fields: Record<string, unknown> = {}) => ({+ __typename: "User",+ login,+ ...fields,+});++/** A listing row with every field the row selection asks for, as GitHub always answers it. */+const row = (fields: Record<string, unknown>) => ({+ number: 1,+ title: "Add the pull requests page",+ url: "https://github.com/pingdotgg/t3code/pull/1",+ author: null,+ headRefName: "feat/page",+ baseRefName: "main",+ state: "OPEN",+ isDraft: false,+ mergeable: "UNKNOWN",+ reviewDecision: null,+ latestReviews: { nodes: [] },+ createdAt: "2026-07-01T00:00:00Z",+ updatedAt: "2026-07-02T00:00:00Z",+ mergedAt: null,+ repository: { nameWithOwner: "pingdotgg/t3code" },+ reviewRequests: { nodes: [] },+ labels: { nodes: [] },+ commits: { nodes: [] },+ ...fields,+});++const listPage = (page: ReturnType<typeof toPullRequestRows>) => ({+ items: page.rows.map((row) => ({+ ...row.item,+ ...(row.repository === null ? {} : { repository: row.repository }),+ })),+ rawCount: page.rawCount,+});+const decodePullRequestListJson = through(LenientPullRequestList.result, (result) =>+ listPage(toPullRequestRows(result.repository?.pullRequests)),+);+const decodePullRequestSearchJson = through(LenientPullRequestSearch.result, (result) =>+ listPage(toPullRequestRows(result.search)),+);+const decodePullRequestActivityJson = through(+ PullRequestActivity.result,+ toPullRequestActivityPage,+);+const decodePullRequestCoreJson = through(PullRequestCore.result, toPullRequestCore);+/**+ * Fills in what every review read answers with, so each fixture below says only what it is about:+ * a page with no more after it, an actor typed as a person, no reactions, no edits.+ */+// Fixtures are loose JSON on purpose: each one writes only the fields its test is about.+type Json = Record<string, any>;+const LAST_PAGE = { hasNextPage: false, endCursor: null };+const nodesIn = (connection: Json | null | undefined): ReadonlyArray<Json> =>+ connection?.["nodes"] ?? [];+const actor = (raw: Json | null | undefined) =>+ raw === null || raw === undefined ? null : { __typename: "User", avatarUrl: "", ...raw };+const reactionGroups = (groups: ReadonlyArray<Json> | undefined) =>+ (groups ?? []).map(({ reactors, ...group }) => ({+ viewerHasReacted: false,+ ...group,+ reactors: {+ totalCount: 0,+ ...reactors,+ nodes: nodesIn(reactors).map((node) => ({ __typename: "User", ...node })),+ },+ }));+const remark = ({ author, reactionGroups: groups, ...raw }: Json) => ({+ body: "",+ lastEditedAt: null,+ url: "https://github.com/acme/web/pull/1#discussion",+ ...raw,+ author: actor(author),+ reactionGroups: reactionGroups(groups),+});+const threadCommentsOf = ({ nodes, ...connection }: Json) => ({+ totalCount: (nodes ?? []).length,+ pageInfo: LAST_PAGE,+ ...connection,+ nodes: (nodes ?? []).map(remark),+});+const requestedReviewer = (raw: Json | null) =>+ raw === null+ ? null+ : "login" in raw+ ? { name: null, ...actor(raw) }+ : { __typename: "Team", ...raw };+const reviewCommit = ({ commit: { authors, ...commit } }: Json) => ({+ commit: {+ messageHeadline: "",+ committedDate: "",+ additions: 0,+ deletions: 0,+ parents: { totalCount: 1 },+ ...commit,+ authors: {+ nodes: nodesIn(authors).map((author) => ({+ name: null,+ avatarUrl: "",+ user: null,+ ...author,+ })),+ },+ },+});+const withReviewDefaults = (raw: string): string => {+ const { data } = JSON.parse(raw) as { data: Json };+ const pr = data["repository"]?.["pullRequest"];+ if (pr?.["reviewThreads"] !== undefined) {+ const {+ reviewThreads,+ author,+ reactionGroups: groups,+ comments,+ reviews,+ reviewRequests,+ latestReviews,+ commits,+ ...rest+ } = pr;+ data["repository"]["pullRequest"] = {+ viewerCanUpdate: true,+ viewerDidAuthor: false,+ reviewDismissals: { pageInfo: LAST_PAGE, nodes: [] },+ ...rest,+ author: actor(author),+ reactionGroups: reactionGroups(groups),+ comments: { nodes: nodesIn(comments).map(remark) },+ reviews: { nodes: nodesIn(reviews).map(remark) },+ reviewRequests: {+ nodes: nodesIn(reviewRequests).map((node) => ({+ requestedReviewer: requestedReviewer(node["requestedReviewer"]),+ })),+ },+ latestReviews: {+ nodes: nodesIn(latestReviews).map((node) => ({+ state: "COMMENTED",+ ...node,+ author: actor(node["author"]),+ })),+ },+ commits: { nodes: nodesIn(commits).map(reviewCommit) },+ reviewThreads: {+ totalCount: nodesIn(reviewThreads).length,+ pageInfo: LAST_PAGE,+ ...reviewThreads,+ nodes: nodesIn(reviewThreads).map((thread) => ({+ isResolved: false,+ isOutdated: false,+ line: null,+ diffSide: "RIGHT",+ ...thread,+ comments: threadCommentsOf(thread["comments"]),+ })),+ },+ };+ }+ if (data["node"] !== undefined && data["node"] !== null) {+ data["node"] = {+ __typename: "PullRequestReviewThread",+ ...data["node"],+ comments: threadCommentsOf(data["node"]["comments"]),+ };+ }+ data["viewer"] ??= { login: "viewer" };+ return JSON.stringify({ data });+};+const decodeReviewThreadsJson = (raw: string) =>+ through(ReviewThreads.result, toReviewThreadPage)(withReviewDefaults(raw));+const decodeReviewThreadCommentsJson = (raw: string) =>+ through(ReviewThreadComments.result, toReviewThreadCommentsPage)(withReviewDefaults(raw));+const decodeViewerPermissionsJson = through(ViewerPermissions.result, toViewerPermissions);+const decodeLabelCandidatesJson = through(LabelCandidates.result, toLabelCandidates);+const decodeReviewerCandidatesJson = through(ReviewerCandidates.result, toReviewerCandidates);+const decodePullRequestNodeIdJson = through(PullRequestNodeId.result, toPullRequestNodeId);+const decodePullRequestFilesViewedJson = through(+ PullRequestFilesViewed.result,+ toPullRequestFilesViewedPage,+);/*** Rows as a repository's own GraphQL list answers them. Entries may use flat shapes for brevity:@@ -40,30 +245,27 @@ function listJson(entries: ReadonlyArray<Record<string, unknown>>): string {data: {repository: {pullRequests: {- pageInfo: { hasNextPage: false },- nodes: entries.map(({ reviewRequests, latestReviews, checks, ...entry }) => ({- number: 1,- title: "Add the pull requests page",- url: "https://github.com/pingdotgg/t3code/pull/1",- headRefName: "feat/page",- baseRefName: "main",- createdAt: "2026-07-01T00:00:00Z",- updatedAt: "2026-07-02T00:00:00Z",- ...(reviewRequests === undefined- ? {}- : {- reviewRequests: {- nodes: (reviewRequests as ReadonlyArray<unknown>).map((requestedReviewer) => ({- requestedReviewer,- })),- },- }),- ...(latestReviews === undefined ? {} : { latestReviews: { nodes: latestReviews } }),- ...(checks === undefined- ? {}- : { commits: { nodes: [{ commit: { statusCheckRollup: { state: checks } } }] } }),- ...entry,- })),+ pageInfo: { hasNextPage: false, endCursor: null },+ nodes: entries.map(({ reviewRequests, latestReviews, checks, ...entry }) =>+ row({+ ...(reviewRequests === undefined+ ? {}+ : {+ reviewRequests: {+ nodes: (reviewRequests as ReadonlyArray<unknown>).map(+ (requestedReviewer) => ({+ requestedReviewer,+ }),+ ),+ },+ }),+ ...(latestReviews === undefined ? {} : { latestReviews: { nodes: latestReviews } }),+ ...(checks === undefined+ ? {}+ : { commits: { nodes: [{ commit: { statusCheckRollup: { state: checks } } }] } }),+ ...entry,+ }),+ ),},},},@@ -100,7 +302,14 @@ describe("pull request list decoding", () => {it("keeps user review requests and drops team ones, which are not logins", () => {const [entry] = expectSuccess(decodePullRequestListJson(- listJson([{ reviewRequests: [{ login: "octocat" }, { slug: "web-platform" }] }]),+ listJson([+ {+ reviewRequests: [+ { __typename: "User", login: "octocat" },+ { __typename: "Team", slug: "web-platform" },+ ],+ },+ ]),),).items;expect(entry?.reviewRequestLogins).toEqual(["octocat"]);@@ -131,22 +340,22 @@ describe("pull request list decoding", () => {listJson([{reviewDecision: null,- latestReviews: [{ author: { login: "macroscopeapp" }, state: "APPROVED" }],+ latestReviews: [{ author: user("macroscopeapp"), state: "APPROVED" }],},{reviewDecision: "REVIEW_REQUIRED",latestReviews: [- { author: { login: "octocat" }, state: "APPROVED" },- { author: { login: "hubot" }, state: "CHANGES_REQUESTED" },+ { author: user("octocat"), state: "APPROVED" },+ { author: user("hubot"), state: "CHANGES_REQUESTED" },],},{reviewDecision: "APPROVED",- latestReviews: [{ author: { login: "hubot" }, state: "CHANGES_REQUESTED" }],+ latestReviews: [{ author: user("hubot"), state: "CHANGES_REQUESTED" }],},{reviewDecision: null,- latestReviews: [{ author: { login: "octocat" }, state: "COMMENTED" }],+ latestReviews: [{ author: user("octocat"), state: "COMMENTED" }],},]),),@@ -196,20 +405,16 @@ describe("pull request search decoding", () => {return JSON.stringify({data: {search: {- pageInfo: { hasNextPage: false },- nodes: rollupStates.map((state, index) => ({- number: index + 1,- title: "Add the pull requests page",- url: "https://github.com/pingdotgg/t3code/pull/1",- headRefName: "feat/page",- baseRefName: "main",- createdAt: "2026-07-01T00:00:00Z",- updatedAt: "2026-07-02T00:00:00Z",- repository: { nameWithOwner: "pingdotgg/t3code" },- commits: {- nodes: [{ commit: { statusCheckRollup: state === null ? null : { state } } }],- },- })),+ pageInfo: { hasNextPage: false, endCursor: null },+ nodes: rollupStates.map((state, index) =>+ row({+ __typename: "PullRequest",+ number: index + 1,+ commits: {+ nodes: [{ commit: { statusCheckRollup: state === null ? null : { state } } }],+ },+ }),+ ),},},});@@ -222,8 +427,6 @@ describe("pull request search decoding", () => {const batch = expectSuccess(decodePullRequestSearchJson(JSON.stringify(raw)));expect(batch.items[0]?.stack).toEqual({ number: 3, size: 2, position: 1, base: "main" });expect(batch.items[1]?.stack).toBeUndefined();- expect(pullRequestSearchGraphQlQuery(20, true)).toContain("stackEntry");- expect(pullRequestSearchGraphQlQuery(20)).not.toContain("stackEntry");});it("maps the rollup enum the search answers with onto the same three words", () => {@@ -246,20 +449,101 @@ describe("pull request search decoding", () => {});describe("pull request detail decoding", () => {+ /** A check run or commit status as the core read's `CheckContext` fragment answers it. */+ const check = (fields: Record<string, unknown>) =>+ fields["__typename"] === "StatusContext"+ ? {+ context: "",+ state: "PENDING",+ targetUrl: null,+ createdAt: "2026-07-01T00:00:00Z",+ description: null,+ ...fields,+ }+ : {+ __typename: "CheckRun",+ name: "",+ status: "COMPLETED",+ conclusion: null,+ startedAt: null,+ completedAt: null,+ detailsUrl: null,+ checkSuite: { workflowRun: null },+ ...fields,+ };+ /** A check run owned by a workflow, which is how the core read names the workflow. */+ const inWorkflow = ({ workflowName, ...fields }: Record<string, unknown>) =>+ check({+ ...fields,+ checkSuite: { workflowRun: { workflow: { name: workflowName } } },+ });++ /** The core read's answer for pull request 7, with `rollup` as its head commit's checks. */+ const coreJson = (+ rollup: ReadonlyArray<Record<string, unknown>>,+ pullRequest: Record<string, unknown> = {},+ ) =>+ JSON.stringify({+ data: {+ repository: {+ mergeCommitAllowed: true,+ squashMergeAllowed: true,+ rebaseMergeAllowed: true,+ viewerPermission: "WRITE",+ pullRequest: {+ number: 7,+ title: "Detail",+ url: "https://github.com/pingdotgg/t3code/pull/7",+ body: "Body",+ state: "OPEN",+ isDraft: false,+ mergeable: "MERGEABLE",+ reviewDecision: null,+ additions: 0,+ deletions: 0,+ changedFiles: 0,+ createdAt: "2026-07-01T00:00:00Z",+ updatedAt: "2026-07-05T00:00:00Z",+ mergedAt: null,+ closedAt: null,+ headRefName: "feat/detail",+ baseRefName: "main",+ headRefOid: "abc123",+ isCrossRepository: false,+ headRepositoryOwner: null,+ headRepository: null,+ headRef: null,+ author: null,+ autoMergeRequest: null,+ viewerCanUpdate: true,+ viewerDidAuthor: false,+ viewerCanUpdateBranch: false,+ baseRef: null,+ reviewRequests: { nodes: [] },+ labels: { nodes: [] },+ commits: {+ nodes: [+ {+ commit: {+ statusCheckRollup: {+ contexts: { nodes: rollup, pageInfo: { hasNextPage: false } },+ },+ },+ },+ ],+ },+ ...pullRequest,+ },+ },+ },+ });+ const detailOf = (+ rollup: ReadonlyArray<Record<string, unknown>>,+ pullRequest?: Record<string, unknown>,+ ) => expectSuccess(decodePullRequestCoreJson(coreJson(rollup, pullRequest)));++ /** The conversation the activity read carries, in the flat shape the tests below write. */const detailJson = JSON.stringify({- number: 7,- title: "Detail",- url: "https://github.com/pingdotgg/t3code/pull/7",- headRefName: "feat/detail",- baseRefName: "main",- createdAt: "2026-07-01T00:00:00Z",- updatedAt: "2026-07-05T00:00:00Z",- body: "Body",- statusCheckRollup: [- { __typename: "CheckRun", name: "build", status: "IN_PROGRESS" },- { __typename: "CheckRun", name: "test", status: "COMPLETED", conclusion: "FAILURE" },- { __typename: "StatusContext", context: "ci/legacy", state: "SUCCESS" },- ],comments: [{ id: "c1", body: "second", createdAt: "2026-07-04T00:00:00Z" }],reviews: [{ id: "r1", body: "first", state: "CHANGES_REQUESTED", submittedAt: "2026-07-03T00:00:00Z" },@@ -284,8 +568,30 @@ describe("pull request detail decoding", () => {data: {repository: {pullRequest: {- comments: { nodes: raw["comments"] ?? [] },- reviews: { nodes: raw["reviews"] ?? [] },+ author: null,+ comments: {+ pageInfo: { hasNextPage: false, endCursor: null },+ nodes: ((raw["comments"] ?? []) as ReadonlyArray<Record<string, unknown>>).map(+ (comment) => ({+ lastEditedAt: null,+ url: "https://github.com/c",+ author: null,+ ...comment,+ }),+ ),+ },+ reviews: {+ pageInfo: { hasNextPage: false, endCursor: null },+ nodes: ((raw["reviews"] ?? []) as ReadonlyArray<Record<string, unknown>>).map(+ (review) => ({+ lastEditedAt: null,+ url: "https://github.com/r",+ author: null,+ submittedAt: null,+ ...review,+ }),+ ),+ },commits: {nodes: ((raw["commits"] ?? []) as ReadonlyArray<Record<string, unknown>>).map(({ authors, ...commit }) => ({@@ -294,8 +600,10 @@ describe("pull request detail decoding", () => {authors: {nodes: ((authors ?? []) as ReadonlyArray<Record<string, unknown>>).map(({ login, ...author }) => ({+ name: null,+ email: null,...author,- ...(login === undefined ? {} : { user: { login } }),+ user: login === undefined ? null : { login },}),),},@@ -316,7 +624,11 @@ describe("pull request detail decoding", () => {}));it("maps check-run status and commit-status state onto one vocabulary", () => {- const detail = expectSuccess(decodePullRequestDetailJson(detailJson));+ const detail = detailOf([+ check({ name: "build", status: "IN_PROGRESS" }),+ check({ name: "test", status: "COMPLETED", conclusion: "FAILURE" }),+ check({ __typename: "StatusContext", context: "ci/legacy", state: "SUCCESS" }),+ ]);expect(detail.checks.map((check) => [check.name, check.status])).toEqual([["build", "pending"],["test", "failure"],@@ -325,42 +637,23 @@ describe("pull request detail decoding", () => {});it("keeps what branch protection requires, and asks for it on github.com only", () => {- const raw = JSON.parse(detailJson) as Record<string, unknown>;- const detail = expectSuccess(- decodePullRequestDetailJson(- JSON.stringify({- ...raw,- statusCheckRollup: [- { __typename: "CheckRun", name: "test", status: "IN_PROGRESS", isRequired: true },- { __typename: "StatusContext", context: "bot", state: "PENDING", isRequired: false },- { __typename: "StatusContext", context: "legacy", state: "SUCCESS" },- ],- }),- ),- );+ const detail = detailOf([+ check({ name: "test", status: "IN_PROGRESS", isRequired: true }),+ check({ __typename: "StatusContext", context: "bot", state: "PENDING", isRequired: false }),+ // Enterprise Server is not asked, so the field is absent rather than false.+ check({ __typename: "StatusContext", context: "legacy", state: "SUCCESS" }),+ ]);expect(detail.checks.map((check) => check.required)).toEqual([true, false, undefined]);- expect(pullRequestCoreGraphQlQuery("github.com")).toContain("isRequired");- expect(pullRequestCoreGraphQlQuery("github.example.com")).not.toContain("isRequired");+ expect(PullRequestCore.document).toContain(+ "isRequired(pullRequestNumber:$number)@include(if:$required)",+ );});it("keeps a workflow waiting for approval out of the passing state", () => {- const raw = JSON.parse(detailJson) as Record<string, unknown>;- const detail = expectSuccess(- decodePullRequestDetailJson(- JSON.stringify({- ...raw,- statusCheckRollup: [- { __typename: "CheckRun", name: "build", status: "COMPLETED", conclusion: "SUCCESS" },- {- __typename: "CheckRun",- name: "contributor tests",- status: "COMPLETED",- conclusion: "ACTION_REQUIRED",- },- ],- }),- ),- );+ const detail = detailOf([+ check({ name: "build", status: "COMPLETED", conclusion: "SUCCESS" }),+ check({ name: "contributor tests", status: "COMPLETED", conclusion: "ACTION_REQUIRED" }),+ ]);expect(detail.checks.map((check) => check.status)).toEqual(["success", "action-required"]);expect(detail.checksState).toBe("pending");@@ -385,49 +678,50 @@ describe("pull request detail decoding", () => {});it("reads an auto-merge request and strategy, its null as off and its absence as neither", () => {- const raw = JSON.parse(detailJson) as Record<string, unknown>;- const armed = (entry: Record<string, unknown>) =>- expectSuccess(decodePullRequestDetailJson(JSON.stringify({ ...raw, ...entry })));-+ expect(detailOf([], { autoMergeRequest: { mergeMethod: "SQUASH" } })).toMatchObject({+ autoMergeEnabled: true,+ autoMergeMethod: "squash",+ });+ expect(detailOf([], { autoMergeRequest: null }).autoMergeEnabled).toBe(false);+ // A detail read that never asked about auto-merge does not claim it is unarmed.expect(- armed({ autoMergeRequest: { enabledBy: { login: "octocat" }, mergeMethod: "SQUASH" } }),- ).toMatchObject({ autoMergeEnabled: true, autoMergeMethod: "squash" });- expect(armed({ autoMergeRequest: null }).autoMergeEnabled).toBe(false);- // `gh` not answering for the field at all is not GitHub saying the merge is unarmed.- expect(armed({}).autoMergeEnabled).toBeUndefined();+ expectSuccess(+ decodePullRequestDetailJson(+ JSON.stringify({+ number: 7,+ title: "Detail",+ url: "https://github.com/pingdotgg/t3code/pull/7",+ headRefName: "feat/detail",+ baseRefName: "main",+ createdAt: "2026-07-01T00:00:00Z",+ updatedAt: "2026-07-05T00:00:00Z",+ }),+ ),+ ).autoMergeEnabled,+ ).toBeUndefined();});it("shows a re-running check once, as the run that is happening now", () => {// What `statusCheckRollup` reports while a workflow is being re-run: the same check twice,// the finished run and the one that replaced it, with no id to tell them apart.- const raw = JSON.parse(detailJson) as Record<string, unknown>;- const detail = expectSuccess(- decodePullRequestDetailJson(- JSON.stringify({- ...raw,- statusCheckRollup: [- {- __typename: "CheckRun",- name: "Prepare PR size config",- workflowName: "PR Size",- status: "COMPLETED",- conclusion: "SUCCESS",- startedAt: "2026-08-11T16:06:20Z",- completedAt: "2026-08-11T16:06:25Z",- },- {- __typename: "CheckRun",- name: "Prepare PR size config",- workflowName: "PR Size",- status: "IN_PROGRESS",- conclusion: "",- startedAt: "2026-08-11T17:01:04Z",- completedAt: "0001-01-01T00:00:00Z",- },- ],- }),- ),- );+ const detail = detailOf([+ inWorkflow({+ name: "Prepare PR size config",+ workflowName: "PR Size",+ status: "COMPLETED",+ conclusion: "SUCCESS",+ startedAt: "2026-08-11T16:06:20Z",+ completedAt: "2026-08-11T16:06:25Z",+ }),+ inWorkflow({+ name: "Prepare PR size config",+ workflowName: "PR Size",+ status: "IN_PROGRESS",+ conclusion: null,+ startedAt: "2026-08-11T17:01:04Z",+ completedAt: "0001-01-01T00:00:00Z",+ }),+ ]);expect(detail.checks.map((check) => [check.name, check.status])).toEqual([["Prepare PR size config", "pending"],@@ -439,7 +733,6 @@ describe("pull request detail decoding", () => {// A workflow on both `push` and `pull_request` runs the same check twice on one commit. The// `pull_request` run finished after the `push` run started, and the `push` run is still going.const finished = {- __typename: "CheckRun",name: "check",workflowName: "Checks",status: "COMPLETED",@@ -450,17 +743,14 @@ describe("pull request detail decoding", () => {const running = {...finished,status: "IN_PROGRESS",- conclusion: "",+ conclusion: null,startedAt: "2026-10-08T04:06:13Z",completedAt: "0001-01-01T00:00:00Z",};// A run still queued has not started either, so it carries no time at all.const queued = { ...running, status: "QUEUED", startedAt: "0001-01-01T00:00:00Z" };- const raw = JSON.parse(detailJson) as Record<string, unknown>;- const checksOf = (statusCheckRollup: ReadonlyArray<object>) => {- const detail = expectSuccess(- decodePullRequestDetailJson(JSON.stringify({ ...raw, statusCheckRollup })),- );+ const checksOf = (rollup: ReadonlyArray<Record<string, unknown>>) => {+ const detail = detailOf(rollup.map(inWorkflow));return [detail.checks.map((check) => [check.name, check.status]), detail.checksState];};@@ -527,12 +817,14 @@ describe("pull request detail decoding", () => {},);- it("drops a review that carries neither a body nor a state", () => {+ it("drops a review that carries no body and no verdict", () => {const raw = JSON.parse(detailJson) as Record<string, unknown>;const detail = expectSuccess(activity({...raw,- reviews: [{ id: "r3", body: " ", submittedAt: "2026-07-07T00:00:00Z" }],+ reviews: [+ { id: "r3", body: " ", state: "COMMENTED", submittedAt: "2026-07-07T00:00:00Z" },+ ],}),);expect(detail.comments.map((comment) => comment.id)).toEqual(["c1"]);@@ -728,8 +1020,8 @@ describe("review thread decoding", () => {requested: [{combinedSlug: "pingdotgg/ping-devs",- name: "Ping Devs",- avatarUrl: "https://avatars.githubusercontent.com/t/6692390?s=400&v=4",+ teamName: "Ping Devs",+ teamAvatarUrl: "https://avatars.githubusercontent.com/t/6692390?s=400&v=4",},],reviewed: [@@ -760,7 +1052,12 @@ describe("review thread decoding", () => {// such as a mannequin. Failing on it would take the whole response down, comments included.const result = expectSuccess(decodeReviewThreadsJson(- reviewJson({ requested: [{}, { login: "julius", avatarUrl: "https://avatars/j.png" }] }),+ reviewJson({+ requested: [+ { __typename: "Mannequin" },+ { login: "julius", avatarUrl: "https://avatars/j.png" },+ ],+ }),),);@@ -982,7 +1279,7 @@ describe("repository access decoding", () => {mergeCommitAllowed: true,squashMergeAllowed: false,rebaseMergeAllowed: true,- ...(viewerPermission === undefined ? {} : { viewerPermission }),+ viewerPermission: viewerPermission ?? null,},},});@@ -1016,7 +1313,7 @@ describe("repository access decoding", () => {it("withholds write where gh names no permission, which is not a standing it gave", () => {// The one place an unknown answer is not granted: a Merge button a reader cannot use wastes// the press, where a missing one still leaves the pull request open on its host.- expect(expectSuccess(decodeViewerPermissionsJson(repositoryJson())).canWrite).toBe(false);+ expect(toCanWrite(undefined)).toBe(false);});it("grants write and triage to a GitHub App, which GitHub answers with a null permission", () => {@@ -1045,7 +1342,7 @@ describe("viewer permission decoding", () => {decodeViewerPermissionsJson(viewerJson({viewerPermission: "READ",- pullRequest: { viewerCanUpdate: true, viewerDidAuthor: true },+ pullRequest: { viewerCanUpdate: true, viewerDidAuthor: true, headRepository: null },}),),),@@ -1065,7 +1362,7 @@ describe("viewer permission decoding", () => {decodeViewerPermissionsJson(viewerJson({viewerPermission: "READ",- pullRequest: { viewerCanUpdate: false, viewerDidAuthor: false },+ pullRequest: { viewerCanUpdate: false, viewerDidAuthor: false, headRepository: null },}),),),@@ -1083,7 +1380,11 @@ describe("viewer permission decoding", () => {// A node the viewer cannot see comes back null. Updating is a permission, so an unknown// answer grants it and lets the host refuse; authorship is a fact about who wrote the change,// and claiming it for someone who did not is how an author's own rules get handed out.- expect(expectSuccess(decodeViewerPermissionsJson(viewerJson({ pullRequest: null })))).toEqual({+ expect(+ expectSuccess(+ decodeViewerPermissionsJson(viewerJson({ viewerPermission: "READ", pullRequest: null })),+ ),+ ).toEqual({mergeCapabilities: { merge: true, squash: false, rebase: true },canWrite: false,canTriage: false,@@ -1098,7 +1399,7 @@ describe("viewer permission decoding", () => {decodeViewerPermissionsJson(viewerJson({viewerPermission: "TRIAGE",- pullRequest: { viewerCanUpdate: false, viewerDidAuthor: false },+ pullRequest: { viewerCanUpdate: false, viewerDidAuthor: false, headRepository: null },}),),);@@ -1146,7 +1447,12 @@ describe("label candidate decoding", () => {it("keeps a worn label the repository no longer defines, so it can be taken off", () => {const list = expectSuccess(- decodeLabelCandidatesJson(labelsJson({ defined: [{ name: "bug" }], applied: ["legacy"] })),+ decodeLabelCandidatesJson(+ labelsJson({+ defined: [{ name: "bug", color: "d73a4a", description: null }],+ applied: ["legacy"],+ }),+ ),);expect(list.candidates.map((label) => [label.name, label.isApplied])).toEqual([["legacy", true],@@ -1417,21 +1723,26 @@ describe("decodePullRequestNodeIdJson", () => {});});-describe("REVIEW_THREADS_GRAPHQL_QUERY", () => {+describe("ReviewThreads", () => {it("caps the initial query after the 104-point rate-limit regression", () => {- const match = REVIEW_THREADS_GRAPHQL_QUERY.match(- /reviewThreads\(first: (\d+)[\s\S]*?comments\(first: (\d+)\)/u,+ const match = ReviewThreads.document.match(+ /reviewThreads\(first:(\d+)[\s\S]*?\.\.\.ThreadComment[\s\S]*$/u,);+ const comments = ReviewThreads.document.match(/comments\(first:(\d+)\)\{totalCount/u);expect(match).not.toBeNull();- if (match === null) throw new Error("expected review-thread connections");- expect(Number(match[1]) * Number(match[2])).toBeLessThanOrEqual(1_000);+ expect(comments).not.toBeNull();+ if (match === null || comments === null) throw new Error("expected review-thread connections");+ expect(Number(match[1]) * Number(comments[1])).toBeLessThanOrEqual(1_000);});it("asks for reactionGroups on the pull request itself, its comments, its reviews and each thread's comments", () => {- expect(REVIEW_THREADS_GRAPHQL_QUERY.match(/reactionGroups/g)).toHaveLength(4);+ // The fragment is spread once per subject: the pull request, its comments, its reviews, and+ // each thread's comments (through `ThreadComment`).+ expect(ReviewThreads.document.match(/\.\.\.Reactions\b/g)).toHaveLength(4);+ expect(ReviewThreads.document.match(/reactionGroups/g)).toHaveLength(1);// The reviews connection is new: only reactions were ever wanted off it.- expect(REVIEW_THREADS_GRAPHQL_QUERY).toContain("reviews(first:");+ expect(ReviewThreads.document).toContain("reviews(first:");});});@@ -1447,12 +1758,25 @@ describe("reviewer candidate decoding", () => {repository: {assignableUsers: {pageInfo: { hasNextPage: input.hasNextPage ?? false },- nodes: input.assignable,+ nodes: input.assignable.map((node) =>+ node === null ? null : { name: null, avatarUrl: "", ...node },+ ),},pullRequest: {- author: input.author === undefined ? null : { login: input.author },+ author: input.author === undefined ? null : { __typename: "User", login: input.author },reviewRequests: {- nodes: (input.requested ?? []).map((requestedReviewer) => ({ requestedReviewer })),+ nodes: (input.requested ?? []).map((requestedReviewer) => ({+ requestedReviewer:+ requestedReviewer === null+ ? null+ : "slug" in requestedReviewer+ ? {+ __typename: "Team",+ teamAvatarUrl: null,+ ...requestedReviewer,+ }+ : { __typename: "User", name: null, avatarUrl: "", ...requestedReviewer },+ })),},},},@@ -1503,7 +1827,7 @@ describe("reviewer candidate decoding", () => {decodeReviewerCandidatesJson(candidatesJson({assignable: [{ login: "octocat" }],- requested: [{ slug: "reviewers", combinedSlug: "acme/reviewers", name: "Reviewers" }],+ requested: [{ slug: "reviewers", combinedSlug: "acme/reviewers", teamName: "Reviewers" }],}),),);@@ -1830,47 +2154,6 @@ describe("decodePullRequestFilesViewedJson", () => {});});-describe("buildSetFilesViewedGraphQlMutation", () => {- it("asks for nothing when nothing was pressed", () => {- expect(buildSetFilesViewedGraphQlMutation("PR_1", [])).toBeNull();- });-- it("clears and restores in one document, each file under its own alias", () => {- const mutation = buildSetFilesViewedGraphQlMutation("PR_1", [- { path: "src/a.ts", viewed: true },- { path: "src/b.ts", viewed: false },- ]);- expect(mutation).not.toBeNull();- if (mutation === null) return;- expect(mutation.query).toContain(- "mutation($pullRequestId: ID!, $f0_path: String!, $f1_path: String!)",- );- expect(mutation.query).toContain(- "f0: markFileAsViewed(input: { pullRequestId: $pullRequestId, path: $f0_path })",- );- expect(mutation.query).toContain(- "f1: unmarkFileAsViewed(input: { pullRequestId: $pullRequestId, path: $f1_path })",- );- expect(mutation.variables).toEqual({- pullRequestId: "PR_1",- f0_path: "src/a.ts",- f1_path: "src/b.ts",- });- });-- it("keeps a path out of the document, so one cannot be read as part of it", () => {- const mutation = buildSetFilesViewedGraphQlMutation("PR_1", [- { path: '") { __typename } evil: markFileAsViewed(input: { path: "x', viewed: true },- ]);- expect(mutation).not.toBeNull();- if (mutation === null) return;- expect(mutation.query).not.toContain("evil");- expect(mutation.variables.f0_path).toBe(- '") { __typename } evil: markFileAsViewed(input: { path: "x',- );- });-});-describe("host-native stack decoding", () => {/** A stack as the preview lists it, bottom to top, with the fields it answers today. */function stack(overrides: Record<string, unknown> = {}) {@@ -1975,86 +2258,54 @@ describe("host-native stack decoding", () => {});});-describe("pull request stack membership batches", () => {- it("maps aliases while skipping missing pull requests and incomplete memberships", () => {- const memberships = expectSuccess(- decodePullRequestStackMembershipsJson(- JSON.stringify({- data: {- s0: {- pullRequest: {- stack: { number: 3, size: 2, baseRefName: "main" },- stackEntry: { position: 1 },- },- },- s1: null,- s2: { pullRequest: null },- s3: { pullRequest: { stack: null, stackEntry: null } },- s4: { pullRequest: { stack: { number: 3, size: 2, baseRefName: "main" } } },- },- }),- ),- );- expect([...memberships]).toEqual([[0, { number: 3, size: 2, base: "main", position: 1 }]]);- });-- it("refuses malformed responses and unsafe query selectors", () => {- expect(Result.isFailure(decodePullRequestStackMembershipsJson('{"errors":[]}'))).toBe(true);- expect(buildPullRequestStackMembershipsGraphQlQuery('acme/web") { x } #', [1])).toBeNull();- expect(buildPullRequestStackMembershipsGraphQlQuery("acme/web", [0])).toBeNull();- expect(buildPullRequestStackMembershipsGraphQlQuery("acme/web", [1.5])).toBeNull();- expect(buildPullRequestStackMembershipsGraphQlQuery("acme/web", [])).toBeNull();- expect(buildPullRequestStackMembershipsGraphQlQuery("acme/web", [7, 8])?.variables).toEqual({- s0_owner: "acme",- s0_name: "web",- s0_number: 7,- s1_owner: "acme",- s1_name: "web",- s1_number: 8,+/** A pull request as the generated batch operations decode it from GitHub's answer. */+const decodeSummaryResult = Schema.decodeUnknownSync(PullRequestSummary.result);+const decodeSummary = (pullRequest: object) =>+ decodeSummaryResult({ repository: { pullRequest } }).repository!.pullRequest!;+const decodeWatchedResult = Schema.decodeUnknownSync(PullRequestWatchFingerprint.result);+const decodeWatched = (pullRequest: object) =>+ decodeWatchedResult({ repository: { pullRequest } }).repository!.pullRequest!;++describe("pull request lookups", () => {+ it("refuses what GitHub cannot name, so one bad row cannot fail a whole batch", () => {+ expect(pullRequestLookup({ repository: "acme/web", number: 7 })).toEqual({+ owner: "acme",+ name: "web",+ number: 7,});+ expect(pullRequestLookup({ repository: 'acme/web") { x } #', number: 1 })).toBeNull();+ expect(pullRequestLookup({ repository: "acme/web", number: 0 })).toBeNull();+ expect(pullRequestLookup({ repository: "acme/web", number: 1.5 })).toBeNull();+ expect(pullRequestLookup({ repository: "acme/web", number: 2 ** 31 })).toBeNull();});});describe("batched pull request summaries", () => {- it("refuses a repository GraphQL cannot address, rather than writing it into the document", () => {- expect(- buildPullRequestSummariesGraphQlQuery([{ repository: 'acme/web") { x } #', number: 1 }]),- ).toBeNull();- expect(- buildPullRequestSummariesGraphQlQuery([{ repository: "acme/web", number: 0 }]),- ).toBeNull();- expect(buildPullRequestSummariesGraphQlQuery([])).toBeNull();- });-- it("files each answer by its alias and skips what GitHub or the decoder could not give", () => {- const decoded = decodePullRequestSummariesJson(- JSON.stringify({- data: {- s0: {- pullRequest: {- number: 7,- title: "Merged",- url: "https://github.com/acme/web/pull/7",- author: { __typename: "Bot", login: "renovate", avatarUrl: "https://a/r.png" },- headRefName: "feat/seven",- baseRefName: "main",- state: "MERGED",- mergedAt: "2026-08-24T00:00:00Z",- closedAt: "2026-08-24T00:00:00Z",- updatedAt: "2026-08-24T00:00:00Z",- commits: { nodes: [{ commit: { statusCheckRollup: { state: "FAILURE" } } }] },- },- },- s1: { pullRequest: null },- s2: { pullRequest: { number: 9 } },- rateLimit: { cost: 1 },- },- }),- );- expect(Result.isSuccess(decoded)).toBe(true);- if (!Result.isSuccess(decoded)) return;- expect([...decoded.success.keys()]).toEqual([0]);- expect(decoded.success.get(0)).toMatchObject({+ const summary = (fields: Record<string, unknown>) => ({+ number: 7,+ title: "Merged",+ url: "https://github.com/acme/web/pull/7",+ state: "MERGED",+ isDraft: false,+ mergeable: "UNKNOWN",+ reviewDecision: null,+ additions: 0,+ deletions: 0,+ changedFiles: 0,+ updatedAt: "2026-08-24T00:00:00Z",+ mergedAt: "2026-08-24T00:00:00Z",+ closedAt: "2026-08-24T00:00:00Z",+ headRefName: "feat/seven",+ baseRefName: "main",+ author: { __typename: "Bot", login: "renovate", avatarUrl: "https://a/r.png" },+ latestReviews: { nodes: [] },+ commits: { nodes: [{ commit: { statusCheckRollup: { state: "FAILURE" } } }] },+ ...fields,+ });++ it("maps GitHub's fields to the summary a linked thread keeps", () => {+ const mapped = toPullRequestSummary(decodeSummary(summary({})));+ expect(mapped).toMatchObject({number: 7,state: "merged",mergedAt: "2026-08-24T00:00:00Z",@@ -2063,70 +2314,28 @@ describe("batched pull request summaries", () => {mergeability: "unknown",additions: 0,});- // The document did not ask about stacks, so the summary does not claim an answer.- expect(decoded.success.get(0)).not.toHaveProperty("stack");+ // The read did not ask about stacks, so the summary does not claim an answer.+ expect(mapped).not.toHaveProperty("stack");});- it("reads stack membership only where the document asked for it", () => {+ it("reads stack membership only where the read asked for it", () => {expect(- buildPullRequestSummariesGraphQlQuery([{ repository: "acme/web", number: 7 }], true)?.query,- ).toContain("stack { number size baseRefName } stackEntry { position }");+ toPullRequestSummary(decodeSummary(summary({ stack: null, stackEntry: null }))).stack,+ ).toBeNull();expect(- buildPullRequestSummariesGraphQlQuery([{ repository: "acme/web", number: 7 }])?.query,- ).not.toContain("stack {");- const pullRequest = (number: number, stack: Record<string, unknown>) => ({- pullRequest: {- number,- title: "Stacked",- url: `https://github.com/acme/web/pull/${number}`,- headRefName: `feat/${number}`,- baseRefName: "main",- state: "OPEN",- updatedAt: "2026-08-24T00:00:00Z",- ...stack,- },- });- const decoded = expectSuccess(- decodePullRequestSummariesJson(- JSON.stringify({- data: {- s0: pullRequest(7, { stack: null, stackEntry: null }),- s1: pullRequest(8, {- stack: { number: 3, size: 2, baseRefName: "main" },- stackEntry: { position: 2 },- }),- },- }),- ),- );- expect(decoded.get(0)?.stack).toBeNull();- expect(decoded.get(1)?.stack).toEqual({ number: 3, size: 2, base: "main", position: 2 });+ toPullRequestSummary(+ decodeSummary(+ summary({+ stack: { number: 3, size: 2, baseRefName: "main" },+ stackEntry: { position: 2 },+ }),+ ),+ ).stack,+ ).toEqual({ number: 3, size: 2, base: "main", position: 2 });});});describe("pull request watch fingerprints", () => {- it("asks for every pull request in one aliased read, and refuses an unsafe selector", () => {- const document = buildPullRequestWatchFingerprintsGraphQlQuery([- { repository: "pingdotgg/t3code", number: 7 },- { repository: "pingdotgg/lakebed", number: 8 },- ]);- expect(document?.query).toContain(- "w0: repository(owner: $w0_owner, name: $w0_name) { pullRequest(number: $w0_number)",- );- expect(document?.query).toContain("w1: repository(owner: $w1_owner, name: $w1_name)");- expect(document?.variables).toEqual({- w0_owner: "pingdotgg",- w0_name: "t3code",- w0_number: 7,- w1_owner: "pingdotgg",- w1_name: "lakebed",- w1_number: 8,- });- expect(- buildPullRequestWatchFingerprintsGraphQlQuery([{ repository: 'evil") { x', number: 1 }]),- ).toBeNull();- });-it("moves status with checks and remarks with comments, each without the other", () => {const pullRequest = (input: {readonly running: number;@@ -2159,20 +2368,9 @@ describe("pull request watch fingerprints", () => {],},});- const decode = (...pullRequests: ReadonlyArray<object | null>) => {- const decoded = decodePullRequestWatchFingerprintsJson(- JSON.stringify({- data: Object.fromEntries(- pullRequests.map((value, index) => [`w${index}`, { pullRequest: value }]),- ),- }),- );- if (!Result.isSuccess(decoded)) throw new Error("fingerprints did not decode");- return decoded.success;- };- const base = { running: 2, failed: 0, commentEditedAt: null, reviews: 1 };const fingerprint = (input: Parameters<typeof pullRequest>[0]) =>- decode(pullRequest(input)).get(0)!;+ toPullRequestWatchFingerprint(decodeWatched(pullRequest(input)));+ const base = { running: 2, failed: 0, commentEditedAt: null, reviews: 1 };const before = fingerprint(base);const checkFinished = fingerprint({ ...base, running: 1, failed: 1 });const summaryEdited = fingerprint({ ...base, commentEditedAt: "2026-10-05T23:47:43Z" });@@ -2183,7 +2381,5 @@ describe("pull request watch fingerprints", () => {expect(summaryEdited.remarks).not.toBe(before.remarks);expect(summaryEdited.status).toBe(before.status);expect(replied.remarks).not.toBe(before.remarks);- // A pull request GitHub had no answer for is left for a full read.- expect(decode(null, pullRequest(base)).has(0)).toBe(false);});});diff --git a/packages/source-control-github/src/server/gitHubPullRequestJson.ts b/packages/source-control-github/src/server/gitHubPullRequestJson.tsindex 8423ea9a203..83f4f069dc0 100644--- a/packages/source-control-github/src/server/gitHubPullRequestJson.ts+++ b/packages/source-control-github/src/server/gitHubPullRequestJson.ts@@ -2,6 +2,7 @@ import * as Cause from "effect/Cause";import * as Exit from "effect/Exit";import * as Result from "effect/Result";import * as Schema from "effect/Schema";+import { GraphQL } from "effect/graphql";import type {PullRequestStackMembership,PullRequestActor,@@ -34,284 +35,127 @@ import type {} from "@t3tools/contracts";import { quoteGitPatchPath } from "@t3tools/shared/gitPatchPath";import { decodeJsonResult } from "@t3tools/shared/schemaJson";--import { aliasedGraphQlDocument, type GraphQlDocument } from "./githubGraphQl.ts";import { dedupeChecks } from "@t3tools/source-control-core/server/pullRequestChecks";-/**- * Enum-ish GitHub CLI fields are decoded as plain strings and normalized here: a `gh`- * release that adds a conclusion or a review state must not fail the whole payload.- */-const RawActorSchema = Schema.Struct({- __typename: Schema.optional(Schema.String),- is_bot: Schema.optional(Schema.Boolean),- /**- * Optional because a requested team goes by its slug instead, and a mannequin, which no query- * has a fragment for, arrives as an empty object. A reviewer with neither names nobody to show,- * and must not fail the response the conversation travels in.- */- login: Schema.optional(Schema.String),- /** The node id, which is how a listing's authors are resolved to avatars in one request. */- id: Schema.optional(Schema.NullOr(Schema.String)),- name: Schema.optional(Schema.NullOr(Schema.String)),- /** Only the GraphQL API reports one; `gh pr view --json` has no avatar to give. */- avatarUrl: Schema.optional(Schema.NullOr(Schema.String)),-});+import type * as GitHubSchema from "../../schema/github.graphql.ts";+import type {+ PullRequestSummaryRepositoryPullRequestPullRequest as SummarizedPullRequest,+ PullRequestWatchFingerprintRepositoryPullRequestPullRequest as WatchedPullRequest,+} from "./pullRequestBatches.graphql.ts";+import {+ PageInfo as ListingPageInfo,+ PullRequestList,+ PullRequestRow,+ PullRequestSearch,+} from "./pullRequestListings.graphql.ts";+import type {+ ActorAvatars,+ CheckContext,+ LabelCandidates,+ PullRequestActivity,+ PullRequestCheckContexts,+ PullRequestCore,+ PullRequestFilesViewed,+ PullRequestHeads,+ PullRequestPreview as PullRequestPreviewQuery,+ PullRequestSubject,+ ReviewerCandidates,+ ViewerPermissions,+} from "./pullRequestReads.graphql.ts";+import type {+ ReactionGroup,+ ReviewDismissals,+ ReviewThreadComments,+ ReviewThreads,+ ThreadComment,+} from "./pullRequestReviews.graphql.ts";++/** The parts of an actor the mappings below read, whichever selection it came from. */+interface ActorFields {+ readonly __typename?: string | undefined;+ readonly login?: string | null | undefined;+ readonly name?: string | null | undefined;+ readonly avatarUrl?: string | null | undefined;+}/**- * A team answers with a slug where a user answers with a login. `combinedSlug` is the team's- * `org/slug`, which is what a reviewer row shows for it.+ * A listing row before mapping. Optional where a selection leaves a field out (the search's line+ * counts), and a check rollup reduced to the shape the detail's checks have.*/-const RawRequestedReviewerSchema = Schema.Struct({- ...RawActorSchema.fields,- slug: Schema.optional(Schema.NullOr(Schema.String)),- combinedSlug: Schema.optional(Schema.NullOr(Schema.String)),-});--const RawLabelSchema = Schema.Struct({- name: Schema.String,- color: Schema.optional(Schema.NullOr(Schema.String)),-});--const RawReviewRequestSchema = Schema.Struct({- login: Schema.optional(Schema.NullOr(Schema.String)),- slug: Schema.optional(Schema.NullOr(Schema.String)),- combinedSlug: Schema.optional(Schema.NullOr(Schema.String)),- name: Schema.optional(Schema.NullOr(Schema.String)),- avatarUrl: Schema.optional(Schema.NullOr(Schema.String)),-});--/** One reviewer's most recent review: the state is all the verdict needs, the author is for who. */-const RawLatestReviewSchema = Schema.Struct({- author: Schema.optional(Schema.NullOr(RawActorSchema)),- state: Schema.optional(Schema.NullOr(Schema.String)),-});+interface ListItemFields {+ readonly number: number;+ readonly title: string;+ readonly url: string;+ readonly author?: (ActorFields & { readonly id?: string | null | undefined }) | null | undefined;+ readonly headRefName: string;+ readonly baseRefName: string;+ readonly state?: string | null | undefined;+ readonly isDraft?: boolean | undefined;+ readonly mergeable?: string | null | undefined;+ readonly reviewDecision?: string | null | undefined;+ readonly additions?: number | undefined;+ readonly deletions?: number | undefined;+ readonly createdAt: string;+ readonly updatedAt: string;+ readonly mergedAt?: string | null | undefined;+ readonly reviewRequests?: ReadonlyArray<ReviewRequestFields> | undefined;+ readonly latestReviews?: ReadonlyArray<LatestReviewFields> | undefined;+ readonly labels?: ReadonlyArray<LabelFields> | undefined;+ readonly statusCheckRollup?: ReadonlyArray<CheckFields> | null | undefined;+}-const RawCheckSchema = Schema.Struct({- __typename: Schema.optional(Schema.String),- name: Schema.optional(Schema.NullOr(Schema.String)),- context: Schema.optional(Schema.NullOr(Schema.String)),- status: Schema.optional(Schema.NullOr(Schema.String)),- conclusion: Schema.optional(Schema.NullOr(Schema.String)),- state: Schema.optional(Schema.NullOr(Schema.String)),- description: Schema.optional(Schema.NullOr(Schema.String)),- detailsUrl: Schema.optional(Schema.NullOr(Schema.String)),- targetUrl: Schema.optional(Schema.NullOr(Schema.String)),- /**- * What tells two same-named checks apart, and which run of one is the newest. All three ride- * along with `statusCheckRollup` already — it is asked for as a whole field — so reading them- * costs no request. Empty for an app-provided check run, which belongs to no workflow, and- * absent entirely on a commit status, which is not a run at all.- */- workflowName: Schema.optional(Schema.NullOr(Schema.String)),- startedAt: Schema.optional(Schema.NullOr(Schema.String)),- completedAt: Schema.optional(Schema.NullOr(Schema.String)),- /** Branch protection requires this check; read by the detail query on github.com only. */- isRequired: Schema.optional(Schema.NullOr(Schema.Boolean)),-});+interface LabelFields {+ readonly name: string;+ readonly color?: string | null | undefined;+}-const RawListItemSchema = Schema.Struct({- number: Schema.Int,- title: Schema.String,- url: Schema.String,- author: Schema.optional(Schema.NullOr(RawActorSchema)),- headRefName: Schema.String,- baseRefName: Schema.String,- state: Schema.optional(Schema.NullOr(Schema.String)),- isDraft: Schema.optional(Schema.Boolean),- mergeable: Schema.optional(Schema.NullOr(Schema.String)),- reviewDecision: Schema.optional(Schema.NullOr(Schema.String)),- additions: Schema.optional(Schema.Int),- deletions: Schema.optional(Schema.Int),- createdAt: Schema.String,- updatedAt: Schema.String,- mergedAt: Schema.optional(Schema.NullOr(Schema.String)),- reviewRequests: Schema.optional(Schema.Array(RawReviewRequestSchema)),- latestReviews: Schema.optional(Schema.NullOr(Schema.Array(RawLatestReviewSchema))),- labels: Schema.optional(Schema.Array(RawLabelSchema)),- /**- * Every check of the head commit, which is the only rollup `gh pr list --json` can give: there- * is no field for the one-word verdict. Measured against `pingdotgg/t3code`, asking for it costs- * 0.6s -> 7.9s at a hundred rows and 0.9s -> 2.1s at thirty, for 425 KB of checks a listing- * reduces to one word. The listing pays it because the alternative is a request per row; the- * cross-repository search below asks GitHub for the verdict itself instead.- */- statusCheckRollup: Schema.optional(Schema.NullOr(Schema.Array(RawCheckSchema))),-});+interface ReviewRequestFields {+ readonly login?: string | null | undefined;+ readonly slug?: string | null | undefined;+ readonly name?: string | null | undefined;+}-const RawStackMembershipSchema = Schema.Struct({- stack: Schema.optional(- Schema.NullOr(- Schema.Struct({ number: Schema.Int, size: Schema.Int, baseRefName: Schema.String }),- ),- ),- stackEntry: Schema.optional(Schema.NullOr(Schema.Struct({ position: Schema.Int }))),-});+/** One reviewer's most recent review: the state is all the verdict needs. */+interface LatestReviewFields {+ readonly state?: string | null | undefined;+}/**- * A search's own answer, which is the listing's row one connection deeper: `gh pr list --json`- * flattens reviewers and labels, and GraphQL does not. Everything below the row is optional- * because a node that is not a pull request decodes as an empty object, which is skipped.+ * A check as the rollup reports it, a check run and a commit status alike. A check run reports+ * `status` plus a `conclusion` once it has completed; a commit status a single `state`.*/-const RawSearchItemSchema = Schema.Struct({- ...RawStackMembershipSchema.fields,- number: Schema.Int,- title: Schema.String,- url: Schema.String,- author: Schema.optional(Schema.NullOr(RawActorSchema)),- headRefName: Schema.String,- baseRefName: Schema.String,- state: Schema.optional(Schema.NullOr(Schema.String)),- isDraft: Schema.optional(Schema.Boolean),- mergeable: Schema.optional(Schema.NullOr(Schema.String)),- reviewDecision: Schema.optional(Schema.NullOr(Schema.String)),- latestReviews: Schema.optional(- Schema.NullOr(Schema.Struct({ nodes: Schema.Array(Schema.NullOr(RawLatestReviewSchema)) })),- ),- /** Asked for by the per-repository listing, and left out of the cross-repository search. */- additions: Schema.optional(Schema.Int),- deletions: Schema.optional(Schema.Int),- createdAt: Schema.String,- updatedAt: Schema.String,- mergedAt: Schema.optional(Schema.NullOr(Schema.String)),- repository: Schema.optional(Schema.NullOr(Schema.Struct({ nameWithOwner: Schema.String }))),- reviewRequests: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.optional(- Schema.NullOr(- Schema.Array(- Schema.NullOr(- Schema.Struct({- requestedReviewer: Schema.optional(- Schema.NullOr(- Schema.Struct({- ...RawActorSchema.fields,- slug: Schema.optional(Schema.NullOr(Schema.String)),- }),- ),- ),- }),- ),- ),- ),- ),- }),- ),- ),- labels: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.optional(Schema.NullOr(Schema.Array(Schema.NullOr(RawLabelSchema)))),- }),- ),- ),+interface CheckFields {+ readonly name?: string | null | undefined;+ readonly context?: string | null | undefined;+ readonly status?: string | null | undefined;+ readonly conclusion?: string | null | undefined;+ readonly state?: string | null | undefined;+ readonly description?: string | null | undefined;+ readonly detailsUrl?: string | null | undefined;+ readonly targetUrl?: string | null | undefined;/**- * GraphQL answers the rollup a listing actually wants — one enum for the head commit, rather- * than the whole check array `gh pr list --json` insists on. Measured at a hundred rows across- * this repository: 0.8s -> 3.0s and 15 KB, against 425 KB for the same verdict over `gh`.+ * What tells two same-named checks apart, and which run of one is the newest. Empty for an+ * app-provided check run, which belongs to no workflow, and absent on a commit status.*/- commits: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.optional(- Schema.NullOr(- Schema.Array(- Schema.NullOr(- Schema.Struct({- commit: Schema.optional(- Schema.NullOr(- Schema.Struct({- statusCheckRollup: Schema.optional(- Schema.NullOr(Schema.Struct({ state: Schema.String })),- ),- }),- ),- ),- }),- ),- ),- ),- ),- }),- ),- ),-});--const RawRowConnectionSchema = Schema.Struct({- pageInfo: Schema.optional(- Schema.NullOr(- Schema.Struct({- hasNextPage: Schema.Boolean,- endCursor: Schema.optional(Schema.NullOr(Schema.String)),- }),- ),- ),- // Row by row: a node that is not a pull request — or one field GitHub changes — is skipped- // rather than blanking every repository at once.- nodes: Schema.optional(Schema.NullOr(Schema.Array(Schema.Unknown))),-});--const RawSearchSchema = Schema.Struct({- data: Schema.Struct({ search: RawRowConnectionSchema }),-});--const RawRepositoryPullRequestsSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.NullOr(Schema.Struct({ pullRequests: RawRowConnectionSchema })),- }),-});--/** One aliased lookup per row, so the response is keyed by the position it was asked in. */-const RawStatsSchema = Schema.Struct({- data: Schema.optional(- Schema.NullOr(- Schema.Record(- Schema.String,- Schema.NullOr(- Schema.Struct({- pullRequest: Schema.optional(- Schema.NullOr(- Schema.Struct({- additions: Schema.optional(Schema.NullOr(Schema.Int)),- deletions: Schema.optional(Schema.NullOr(Schema.Int)),- }),- ),- ),- }),- ),- ),- ),- ),-});--const RawStackMembershipsSchema = Schema.Struct({- data: Schema.Record(- Schema.String,- Schema.NullOr(Schema.Struct({ pullRequest: Schema.NullOr(RawStackMembershipSchema) })),- ),-});+ readonly workflowName?: string | null | undefined;+ readonly startedAt?: string | null | undefined;+ readonly completedAt?: string | null | undefined;+ /** Branch protection requires this check; asked for on github.com only. */+ readonly isRequired?: boolean | null | undefined;+}-/** How many of a reaction's people the hover names before it counts the rest. */-const REACTORS_PER_GROUP = 10;+/** Where a connection carries on from, which is what every paged read follows. */+interface PageInfoFields {+ readonly hasNextPage?: boolean | undefined;+ readonly endCursor?: string | null | undefined;+}-/**- * A reaction group as every reactable node reports it. `reactors` is bounded rather than paged:- * a hover says who reacted, and a hundred and forty names is a count, not a sentence.- */-const REACTION_GROUPS_FIELDS = `reactionGroups {- content- viewerHasReacted- reactors(first: ${REACTORS_PER_GROUP}) {- totalCount- nodes {- ... on User { login }- ... on Bot { login }- ... on Organization { login }- ... on Mannequin { login }- }- }-}`;+/** The connection's nodes without the nulls GraphQL allows in a list. */+function nodesOf<A>(+ connection: { readonly nodes?: ReadonlyArray<A | null> | null | undefined } | null | undefined,+): ReadonlyArray<A> {+ return (connection?.nodes ?? []).flatMap((node) => (node === null ? [] : [node]));+}/** GitHub's reaction names, which are the same eight the contract carries under other spellings. */const REACTION_CONTENT_BY_GITHUB: Readonly<Record<string, PullRequestReactionContent>> = {@@ -325,7 +169,9 @@ const REACTION_CONTENT_BY_GITHUB: Readonly<Record<string, PullRequestReactionConEYES: "eyes",};-const GITHUB_REACTION_BY_CONTENT: Readonly<Record<PullRequestReactionContent, string>> = {+const GITHUB_REACTION_BY_CONTENT: Readonly<+ Record<PullRequestReactionContent, GitHubSchema.ReactionContent>+> = {"thumbs-up": "THUMBS_UP","thumbs-down": "THUMBS_DOWN",laugh: "LAUGH",@@ -336,39 +182,12 @@ const GITHUB_REACTION_BY_CONTENT: Readonly<Record<PullRequestReactionContent, steyes: "EYES",};-export function gitHubReactionContent(content: PullRequestReactionContent): string {+export function gitHubReactionContent(+ content: PullRequestReactionContent,+): GitHubSchema.ReactionContent {return GITHUB_REACTION_BY_CONTENT[content];}-const RawReactionGroupsSchema = Schema.optional(- Schema.NullOr(- Schema.Array(- Schema.Struct({- content: Schema.optional(Schema.NullOr(Schema.String)),- viewerHasReacted: Schema.optional(Schema.Boolean),- reactors: Schema.optional(- Schema.NullOr(- Schema.Struct({- totalCount: Schema.optional(Schema.Int),- nodes: Schema.optional(- Schema.NullOr(- Schema.Array(- Schema.NullOr(- Schema.Struct({ login: Schema.optional(Schema.NullOr(Schema.String)) }),- ),- ),- ),- ),- }),- ),- ),- }),- ),- ),-);--type RawReactionGroups = typeof RawReactionGroupsSchema.Type;-/*** The groups GitHub answered with, as the contract carries them. A group with nobody behind it is* dropped: GitHub answers with a group per content it knows, including the ones nobody chose. The@@ -376,7 +195,7 @@ type RawReactionGroups = typeof RawReactionGroupsSchema.Type;* in would name them twice — but `count` still counts them along with everyone else.*/function toReactions(- groups: RawReactionGroups,+ groups: ReadonlyArray<ReactionGroup> | null | undefined,viewer: string | null,): ReadonlyArray<PullRequestReaction> {const normalizedViewer = viewer?.toLowerCase() ?? null;@@ -384,72 +203,20 @@ function toReactions(for (const group of groups ?? []) {const content = REACTION_CONTENT_BY_GITHUB[trimmed(group.content)?.toUpperCase() ?? ""];if (content === undefined) continue;- const logins = (group.reactors?.nodes ?? []).flatMap((node) => trimmed(node?.login) ?? []);- const count = Math.max(group.reactors?.totalCount ?? logins.length, logins.length);+ const logins = nodesOf(group.reactors).flatMap((node) =>+ "login" in node ? (trimmed(node.login) ?? []) : [],+ );+ const count = Math.max(group.reactors.totalCount, logins.length);if (count <= 0) continue;const actors =normalizedViewer === null? logins: logins.filter((login) => login.toLowerCase() !== normalizedViewer);- reactions.push({ content, count, actors, viewerHasReacted: group.viewerHasReacted === true });+ reactions.push({ content, count, actors, viewerHasReacted: group.viewerHasReacted });}return reactions;}-const RawCommentSchema = Schema.Struct({- id: Schema.String,- lastEditedAt: Schema.optional(Schema.NullOr(Schema.String)),- author: Schema.optional(Schema.NullOr(RawActorSchema)),- body: Schema.optional(Schema.String),- createdAt: Schema.String,- url: Schema.optional(Schema.NullOr(Schema.String)),- /** Only ever present on a GraphQL read; `gh pr view --json` reports no reaction at all. */- reactionGroups: RawReactionGroupsSchema,-});--const RawReviewSchema = Schema.Struct({- id: Schema.String,- lastEditedAt: Schema.optional(Schema.NullOr(Schema.String)),- author: Schema.optional(Schema.NullOr(RawActorSchema)),- body: Schema.optional(Schema.String),- state: Schema.optional(Schema.NullOr(Schema.String)),- submittedAt: Schema.optional(Schema.NullOr(Schema.String)),- url: Schema.optional(Schema.NullOr(Schema.String)),-});--const RawCommitSchema = Schema.Struct({- oid: Schema.String,- messageHeadline: Schema.optional(Schema.String),- committedDate: Schema.String,- authors: Schema.optional(- Schema.Array(- Schema.Struct({- email: Schema.optional(Schema.NullOr(Schema.String)),- id: Schema.optional(Schema.NullOr(Schema.String)),- login: Schema.optional(Schema.NullOr(Schema.String)),- name: Schema.optional(Schema.NullOr(Schema.String)),- }),- ),- ),-});--const RawDetailSchema = Schema.Struct({- ...RawListItemSchema.fields,- /** GitHub's explicit distinction between a fork head and a branch in the base repository. */- isCrossRepository: Schema.optional(Schema.Boolean),- /** Names the fork a pull request came from, which is what qualifies its head ref. */- headRepositoryOwner: Schema.optional(Schema.NullOr(Schema.Struct({ login: Schema.String }))),- /** The exact head revision, used to find workflow runs that GitHub has not started yet. */- headRefOid: Schema.optional(Schema.NullOr(Schema.String)),- body: Schema.optional(Schema.String),- changedFiles: Schema.optional(Schema.Int),- closedAt: Schema.optional(Schema.NullOr(Schema.String)),- /** The standing instruction and strategy GitHub will use once its requirements are met. */- autoMergeRequest: Schema.optional(- Schema.NullOr(Schema.Struct({ mergeMethod: Schema.optional(Schema.NullOr(Schema.String)) })),- ),-});-/** `GET /repos/{owner}/{repo}/actions/runs`, one page of it. */const RawWorkflowRunsSchema = Schema.Struct({workflow_runs: Schema.Array(@@ -461,329 +228,6 @@ const RawWorkflowRunsSchema = Schema.Struct({),});-const RawPullRequestHeadsSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.NullOr(- Schema.Struct({- pullRequests: Schema.Struct({- pageInfo: Schema.optional(RawPageInfoSchemaFields()),- nodes: Schema.Array(- Schema.Struct({- number: Schema.Int,- headRefOid: Schema.String,- isCrossRepository: Schema.optional(Schema.Boolean),- headRepositoryOwner: Schema.optional(- Schema.NullOr(Schema.Struct({ login: Schema.String })),- ),- }),- ),- }),- }),- ),- }),-});--const RawActivityConnection = <S extends Schema.Top>(node: S) =>- Schema.optional(- Schema.NullOr(- Schema.Struct({- pageInfo: Schema.optional(RawPageInfoSchemaFields()),- nodes: Schema.Array(node),- }),- ),- );--const RawActivitySchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({- author: Schema.optional(Schema.NullOr(RawActorSchema)),- comments: RawActivityConnection(RawCommentSchema),- reviews: RawActivityConnection(RawReviewSchema),- commits: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- commit: Schema.Struct({- oid: Schema.String,- messageHeadline: Schema.optional(Schema.String),- committedDate: Schema.String,- authors: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- email: Schema.optional(Schema.NullOr(Schema.String)),- name: Schema.optional(Schema.NullOr(Schema.String)),- user: Schema.optional(- Schema.NullOr(- Schema.Struct({- login: Schema.optional(Schema.NullOr(Schema.String)),- }),- ),- ),- }),- ),- }),- ),- ),- }),- }),- ),- }),- ),- ),- }),- }),- }),-});--/** Where a connection carries on from, which is what every paged read below follows. */-function RawPageInfoSchemaFields() {- return Schema.Struct({- hasNextPage: Schema.optional(Schema.Boolean),- endCursor: Schema.optional(Schema.NullOr(Schema.String)),- });-}-const RawPageInfoSchema = RawPageInfoSchemaFields();--/**- * What GitHub says the viewer may do with a pull request. Both are optional so that an install- * that answers without them still delivers the conversation they travel with; an absent field- * reads as granted, which is what an unknown permission is.- */-const RawViewerFieldsSchema = Schema.Struct({- viewerCanUpdate: Schema.optional(Schema.Boolean),- viewerDidAuthor: Schema.optional(Schema.Boolean),-});--const RawHeadBranchAccessSchema = Schema.Struct({- headRepository: Schema.optional(- Schema.NullOr(- Schema.Struct({- nameWithOwner: Schema.optional(Schema.NullOr(Schema.String)),- viewerPermission: Schema.optional(Schema.NullOr(Schema.String)),- }),- ),- ),- headRef: Schema.optional(Schema.NullOr(Schema.Struct({ id: Schema.String }))),-});--const RawThreadCommentsSchema = Schema.Struct({- totalCount: Schema.optional(Schema.Int),- pageInfo: Schema.optional(RawPageInfoSchema),- nodes: Schema.Array(RawCommentSchema),-});--/** `gh pr view --json` cannot reach review threads, so they come from the GraphQL API. */-const RawReviewThreadsSchema = Schema.Struct({- data: Schema.Struct({- // Rides along in the same request: GitHub names who reacted but never says whether that is- // the reader, so the comparison is made here rather than paid for with a request of its own.- viewer: Schema.optional(- Schema.NullOr(Schema.Struct({ login: Schema.optional(Schema.NullOr(Schema.String)) })),- ),- repository: Schema.Struct({- pullRequest: Schema.Struct({- reviewThreads: Schema.Struct({- totalCount: Schema.optional(Schema.Int),- pageInfo: Schema.optional(RawPageInfoSchema),- nodes: Schema.Array(- Schema.Struct({- id: Schema.optional(Schema.NullOr(Schema.String)),- isResolved: Schema.optional(Schema.Boolean),- isOutdated: Schema.optional(Schema.Boolean),- path: Schema.optional(Schema.NullOr(Schema.String)),- /** Null once the thread's line has left the diff, which `isOutdated` reports. */- line: Schema.optional(Schema.NullOr(Schema.Int)),- diffSide: Schema.optional(Schema.NullOr(Schema.String)),- comments: RawThreadCommentsSchema,- }),- ),- }),- ...RawViewerFieldsSchema.fields,- author: Schema.optional(Schema.NullOr(RawActorSchema)),- reactionGroups: RawReactionGroupsSchema,- comments: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- id: Schema.optional(Schema.NullOr(Schema.String)),- author: Schema.optional(Schema.NullOr(RawActorSchema)),- lastEditedAt: Schema.optional(Schema.NullOr(Schema.String)),- reactionGroups: RawReactionGroupsSchema,- }),- ),- }),- ),- ),- /**- * Reviews for their reactions and actor identity: the words and the verdict arrive with- * `gh pr view --json reviews`, which reports no reaction of any kind.- */- reviews: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- id: Schema.optional(Schema.NullOr(Schema.String)),- author: Schema.optional(Schema.NullOr(RawActorSchema)),- lastEditedAt: Schema.optional(Schema.NullOr(Schema.String)),- reactionGroups: RawReactionGroupsSchema,- }),- ),- }),- ),- ),- reviewRequests: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- // Null where GitHub does not name who was asked.- requestedReviewer: Schema.optional(Schema.NullOr(RawRequestedReviewerSchema)),- }),- ),- }),- ),- ),- latestReviews: Schema.optional(- Schema.NullOr(Schema.Struct({ nodes: Schema.Array(RawLatestReviewSchema) })),- ),- reviewDismissals: Schema.optional(- Schema.NullOr(- Schema.Struct({- pageInfo: Schema.optional(RawPageInfoSchema),- nodes: Schema.Array(- Schema.Struct({- dismissalMessage: Schema.optional(Schema.NullOr(Schema.String)),- review: Schema.optional(- Schema.NullOr(- Schema.Struct({ id: Schema.optional(Schema.NullOr(Schema.String)) }),- ),- ),- }),- ),- }),- ),- ),- commits: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- commit: Schema.Struct({- oid: Schema.String,- messageHeadline: Schema.optional(Schema.NullOr(Schema.String)),- committedDate: Schema.optional(Schema.NullOr(Schema.String)),- additions: Schema.optional(Schema.Int),- deletions: Schema.optional(Schema.Int),- parents: Schema.optional(- Schema.NullOr(Schema.Struct({ totalCount: Schema.optional(Schema.Int) })),- ),- authors: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- name: Schema.optional(Schema.NullOr(Schema.String)),- avatarUrl: Schema.optional(Schema.NullOr(Schema.String)),- user: Schema.optional(- Schema.NullOr(- Schema.Struct({- login: Schema.optional(Schema.NullOr(Schema.String)),- }),- ),- ),- }),- ),- }),- ),- ),- }),- }),- ),- }),- ),- ),- }),- }),- }),-});--/** Requested together, so a response missing any of them fails rather than defaulting open:- * guessing `true` would offer a merge method the repository forbids. */-const RawRepositoryAccessSchema = Schema.Struct({- mergeCommitAllowed: Schema.Boolean,- squashMergeAllowed: Schema.Boolean,- rebaseMergeAllowed: Schema.Boolean,- /**- * ADMIN, MAINTAIN, WRITE, TRIAGE, READ or NONE, or null for a GitHub App. Optional rather than- * required, unlike the three above: an install that does not report it still decodes rather- * than failing the whole detail read, and `toCanWrite` decides what that standing allows.- */- viewerPermission: Schema.optional(Schema.NullOr(Schema.String)),-});--const RawCoreSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- ...RawRepositoryAccessSchema.fields,- pullRequest: Schema.Struct({- ...RawDetailSchema.fields,- ...RawViewerFieldsSchema.fields,- ...RawHeadBranchAccessSchema.fields,- viewerCanUpdateBranch: Schema.Boolean,- baseRef: Schema.NullOr(- Schema.Struct({- compare: Schema.NullOr(Schema.Struct({ behindBy: Schema.Int })),- }),- ),- reviewRequests: Schema.Struct({- nodes: Schema.Array(- Schema.Struct({ requestedReviewer: Schema.NullOr(RawReviewRequestSchema) }),- ),- }),- labels: Schema.Struct({ nodes: Schema.Array(RawLabelSchema) }),- commits: Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- commit: Schema.Struct({- statusCheckRollup: Schema.NullOr(- Schema.Struct({- contexts: Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- ...RawCheckSchema.fields,- checkSuite: Schema.optional(- Schema.NullOr(- Schema.Struct({- workflowRun: Schema.NullOr(- Schema.Struct({- workflow: Schema.NullOr(Schema.Struct({ name: Schema.String })),- }),- ),- }),- ),- ),- }),- ),- pageInfo: Schema.Struct({ hasNextPage: Schema.Boolean }),- }),- }),- ),- }),- }),- ),- }),- }),- }),- }),-});-const decodeCore = decodeJsonResult(RawCoreSchema);-const RawPullRequestFileSchema = Schema.Struct({filename: Schema.String,status: Schema.optional(Schema.NullOr(Schema.String)),@@ -796,478 +240,69 @@ const RawPullRequestFileSchema = Schema.Struct({deletions: Schema.optional(Schema.NullOr(Schema.Int)),});-/** Resolves a listing's authors to avatars, which no `gh` JSON field carries. */-export const ACTOR_AVATARS_GRAPHQL_QUERY = `query($ids: [ID!]!) {- nodes(ids: $ids) {- ... on User { login avatarUrl }- ... on Bot { login avatarUrl }- }-}`;--const RawActorAvatarsSchema = Schema.Struct({- data: Schema.Struct({- nodes: Schema.Array(Schema.NullOr(RawActorSchema)),- }),-});--const decodeActorAvatars = decodeJsonResult(RawActorAvatarsSchema);--export function decodeActorAvatarsJson(- raw: string,-): Result.Result<ReadonlyMap<string, string>, DecodeFailure> {- const decoded = decodeActorAvatars(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }+/** A listing's authors' avatars by login, from their node ids. */+export function toActorAvatars(result: ActorAvatars.Result): ReadonlyMap<string, string> {const avatarsByLogin = new Map<string, string>();- for (const node of decoded.success.data.nodes) {- const login = trimmed(node?.login);- const avatarUrl = trimmed(node?.avatarUrl);+ for (const node of result.nodes) {+ if (node === null || !("login" in node)) continue;+ const login = trimmed(node.login);+ const avatarUrl = trimmed(node.avatarUrl);if (login !== null && avatarUrl !== null) avatarsByLogin.set(login, avatarUrl);}- return Result.succeed(avatarsByLogin);+ return avatarsByLogin;}-/**- * Pull refs let the comparison share the detail read without first resolving a fork branch.- * `isRequired` is asked for on github.com only: an older Enterprise server may not know it, and- * an unknown field fails the whole read.- */-function checkContextNodesSelection(host: string): string {- const required =- host.toLowerCase() === "github.com" ? " isRequired(pullRequestNumber: $number)" : "";- return `nodes {- __typename- ... on StatusContext { context state targetUrl createdAt description${required} }- ... on CheckRun {- name status conclusion startedAt completedAt detailsUrl${required}- checkSuite { workflowRun { workflow { name } } }- }- }`;-}--export const pullRequestCoreGraphQlQuery = (host: string) => {- return `query($owner: String!, $name: String!, $number: Int!, $headRef: String!) {- repository(owner: $owner, name: $name) {- mergeCommitAllowed squashMergeAllowed rebaseMergeAllowed viewerPermission- pullRequest(number: $number) {- number title url body state isDraft mergeable reviewDecision- additions deletions changedFiles createdAt updatedAt mergedAt closedAt- headRefName baseRefName headRefOid isCrossRepository- headRepositoryOwner { login }- headRepository { nameWithOwner viewerPermission }- headRef { id }- author { login avatarUrl ... on User { id name } }- autoMergeRequest { mergeMethod }- viewerCanUpdate viewerDidAuthor viewerCanUpdateBranch- baseRef { compare(headRef: $headRef) { behindBy } }- reviewRequests(first: 100) {- nodes { requestedReviewer { ... on User { login name } ... on Bot { login } ... on Team { slug combinedSlug name avatarUrl } } }- }- labels(first: 100) { nodes { name color } }- commits(last: 1) {- nodes { commit { statusCheckRollup { contexts(first: 100) {- ${checkContextNodesSelection(host)}- pageInfo { hasNextPage }- } } } }- }- }- }-}`;-};--export const PULL_REQUEST_PREVIEW_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- number title url state isDraft createdAt- author { login avatarUrl ... on User { name } }- }- }-}`;--const decodePullRequestPreview = decodeJsonResult(- Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({- number: Schema.Int,- title: Schema.String,- url: Schema.String,- state: Schema.String,- isDraft: Schema.Boolean,- createdAt: Schema.String,- author: Schema.NullOr(RawActorSchema),- }),- }),- }),- }),-);--export function decodePullRequestPreviewJson(- raw: string,-): Result.Result<Omit<PullRequestPreview, "projectId" | "repository">, DecodeFailure> {- return Result.map(decodePullRequestPreview(raw), ({ data }) => ({- ...data.repository.pullRequest,- author: toActor(data.repository.pullRequest.author),- state: toState(data.repository.pullRequest),- }));+/** Null for a number that names no pull request the viewer can see. */+export function toPullRequestPreview(+ result: PullRequestPreviewQuery.Result,+): Omit<PullRequestPreview, "projectId" | "repository"> | null {+ const pullRequest = result.repository?.pullRequest;+ if (pullRequest == null) return null;+ return {+ ...pullRequest,+ author: toActor(pullRequest.author),+ state: toState(pullRequest),+ };}-/**- * The conversation a pull request carries outside its review threads: who opened it, its issue- * comments, its reviews and its newest commits. The two remark connections page independently, so- * each is switched on only while it has more to give; the first read asks for everything.- */-export const PULL_REQUEST_ACTIVITY_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!, $head: Boolean!, $withComments: Boolean!, $commentsAfter: String, $withReviews: Boolean!, $reviewsAfter: String) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- author @include(if: $head) { __typename login avatarUrl ... on User { name } }- commits(last: 100) @include(if: $head) {- nodes { commit { oid messageHeadline committedDate authors(first: 10) { nodes { name email user { login } } } } }- }- comments(first: 100, after: $commentsAfter) @include(if: $withComments) {- pageInfo { hasNextPage endCursor }- nodes { id body createdAt lastEditedAt url author { __typename login avatarUrl ... on User { name } } }- }- reviews(first: 100, after: $reviewsAfter) @include(if: $withReviews) {- pageInfo { hasNextPage endCursor }- nodes { id body state submittedAt lastEditedAt url author { __typename login avatarUrl ... on User { name } } }- }- }- }-}`;--/** GitHub's own ceiling on a connection page, which is what both thread reads ask for. */-const GRAPHQL_PAGE_SIZE = 100;-/*** The ceiling on `search`, which refuses anything larger with EXCESSIVE_PAGINATION (measured:* `first: 101` is an error, `first: 100` is not).*/-export const PULL_REQUEST_SEARCH_MAX_ROWS = GRAPHQL_PAGE_SIZE;--/**- * Every repository of a host in one read, which is what makes a listing one request rather than- * one process per repository.- *- * `additions` and `deletions` are deliberately absent: measured over twelve repositories at a- * hundred rows, this query answers in ~4.0s with them left out and ~7.1s with them in, for two- * numbers at the end of a row. They are read afterwards, by `buildPullRequestStatsGraphQlQuery`.- *- * The row count is written into the document rather than sent as a variable because every- * variable here travels as a string — and it is this module's own number, clamped by the caller,- * never a reader's.- *- * `first` on the two inner connections is a bound rather than a page: a pull request with more- * than twenty labels shows twenty, and one that has asked more than twenty people for a review- * is already past what a row can say.- */-export function pullRequestSearchGraphQlQuery(- rows: number,- includeStacks = false,- includeStats = false,-): string {- return `query($q: String!, $after: String) {- search(query: $q, type: ISSUE, first: ${pageRows(rows)}, after: $after) {- pageInfo { hasNextPage endCursor }- nodes {- ... on PullRequest {- ${pullRequestRowSelection(includeStacks, includeStats)}- }- }- }-}`;-}--/**- * A repository's pull requests without search, newest created first: the order `gh pr list` lists- * in when it does not search, for a repository GitHub's search index does not cover.- */-export function pullRequestListGraphQlQuery(rows: number, includeStacks = false): string {- return `query($owner: String!, $name: String!, $states: [PullRequestState!], $after: String) {- repository(owner: $owner, name: $name) {- pullRequests(first: ${pageRows(rows)}, after: $after, states: $states, orderBy: { field: CREATED_AT, direction: DESC }) {- pageInfo { hasNextPage endCursor }- nodes { ${pullRequestRowSelection(includeStacks, true)} }- }- }-}`;-}+export const PULL_REQUEST_SEARCH_MAX_ROWS = 100;-function pageRows(rows: number): number {+/** A row count a listing read may ask for. */+export function pageRows(rows: number): number {return Math.min(Math.max(Math.trunc(rows), 1), PULL_REQUEST_SEARCH_MAX_ROWS);}-/** One listing row, the same whether it came from a search or from a repository's own list. */-function pullRequestRowSelection(includeStacks: boolean, includeStats: boolean): string {- return `${includeStacks ? "stack { number size baseRefName } stackEntry { position }" : ""}- number- title- url- author { __typename login avatarUrl ... on User { name } }- headRefName- baseRefName- state- isDraft- mergeable- reviewDecision- latestReviews(first: 20) { nodes { state author { login } } }- ${includeStats ? "additions deletions" : ""}- createdAt- updatedAt- mergedAt- repository { nameWithOwner }- reviewRequests(first: 20) { nodes { requestedReviewer { ... on User { login } ... on Team { slug } } } }- labels(first: 20) { nodes { name color } }- commits(last: 1) { nodes { commit { statusCheckRollup { state } } } }`;+/** The pull request's own node id, or null where GitHub found none. */+export function toPullRequestNodeId(result: {+ readonly repository: { readonly pullRequest: { readonly id: string } | null } | null;+}): string | null {+ return result.repository?.pullRequest?.id ?? null;}-/**- * One page of review threads with their comments, and the people on the review. `$cursor` is- * null for the first page and the last page's `endCursor` after that, so a pull request with- * more threads than one page holds is walked rather than cut off at the first fifty.- *- * Only ten comments ride with each thread. A hundred threads times a hundred comments made- * GitHub reserve 10,000 nested rows and charge 104 points; unfinished threads are paged from- * their own cursor below.- *- * Reviewers come from here rather than from `gh pr view --json reviewRequests` for two reasons:- * that field holds only requests still outstanding, so anyone who has already reviewed drops off- * it, and neither it nor any other `gh` JSON field carries an avatar. A reviewer can be a person,- * an app, or a team, and each is asked for by name because they are different GraphQL types.- *- * `viewerCanUpdate` and `viewerDidAuthor` ride along here for the same reason: they belong to the- * pull request this query is already standing on, so what the reader may do with it arrives with- * the conversation rather than costing a request of its own.- *- * Commits are asked for with `last` rather than `first`: `gh pr view --json commits` pages from- * the start, so a pull request with more than a hundred commits loses the newest ones from its- * view entirely. This query gives back the newest hundred, which is what a reader scoping a diff- * wants, and stands in for the `gh` list wherever it came back non-empty.- */-export const REVIEW_THREADS_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!, $cursor: String) {- viewer { login }- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- reviewThreads(first: ${GRAPHQL_PAGE_SIZE}, after: $cursor) {- totalCount- pageInfo { hasNextPage endCursor }- nodes {- id- isResolved- isOutdated- path- line- diffSide- comments(first: 10) {- totalCount- pageInfo { hasNextPage endCursor }- nodes { id author { __typename login avatarUrl } body createdAt lastEditedAt url ${REACTION_GROUPS_FIELDS} }- }- }- }- viewerCanUpdate- viewerDidAuthor- author { __typename login avatarUrl }- ${REACTION_GROUPS_FIELDS}- comments(first: ${GRAPHQL_PAGE_SIZE}) {- nodes { id lastEditedAt author { __typename login avatarUrl } ${REACTION_GROUPS_FIELDS} }- }- reviews(first: ${GRAPHQL_PAGE_SIZE}) { nodes { id lastEditedAt author { __typename login avatarUrl } ${REACTION_GROUPS_FIELDS} } }- reviewRequests(first: 50) {- nodes {- requestedReviewer {- ... on User { login name avatarUrl }- ... on Bot { __typename login avatarUrl }- ... on Team { combinedSlug name avatarUrl }- }- }- }- latestReviews(first: 50) {- nodes { state author { __typename login avatarUrl } }- }- reviewDismissals: timelineItems(itemTypes: [REVIEW_DISMISSED_EVENT], first: ${GRAPHQL_PAGE_SIZE}) {- pageInfo { hasNextPage endCursor }- nodes { ... on ReviewDismissedEvent { dismissalMessage review { id } } }- }- commits(last: ${GRAPHQL_PAGE_SIZE}) {- nodes {- commit {- oid- messageHeadline- committedDate- additions- deletions- parents(first: 1) { totalCount }- authors(first: 3) { nodes { name avatarUrl user { login } } }- }- }- }- }- }-}`;--/**- * The rest of one thread's conversation. GraphQL pages a connection nested inside another only- * from the inner node itself, so a thread longer than a page is followed on its own — a request- * GitHub makes necessary, and one no ordinary pull request ever provokes.- */-export const REVIEW_THREAD_COMMENTS_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!, $threadId: ID!, $cursor: String) {- viewer { login }- repository(owner: $owner, name: $name) { pullRequest(number: $number) { id } }- node(id: $threadId) {- ... on PullRequestReviewThread {- pullRequest { id }- comments(first: ${GRAPHQL_PAGE_SIZE}, after: $cursor) {- pageInfo { hasNextPage endCursor }- nodes { id author { __typename login avatarUrl } body createdAt lastEditedAt url ${REACTION_GROUPS_FIELDS} }- }- }- }-}`;--const RawReviewThreadCommentsSchema = Schema.Struct({- data: Schema.Struct({- viewer: Schema.optional(- Schema.NullOr(Schema.Struct({ login: Schema.optional(Schema.NullOr(Schema.String)) })),- ),- repository: Schema.NullOr(- Schema.Struct({ pullRequest: Schema.NullOr(Schema.Struct({ id: Schema.String })) }),- ),- /** Null for an id that names nothing the viewer can read, which is not a thread to page. */- node: Schema.NullOr(- Schema.Struct({- pullRequest: Schema.optional(Schema.Struct({ id: Schema.String })),- comments: Schema.optional(RawThreadCommentsSchema),- }),- ),- }),-});--export const REVIEW_THREAD_REPLY_GRAPHQL_MUTATION = `mutation($threadId: ID!, $body: String!) {- addPullRequestReviewThreadReply(input: { pullRequestReviewThreadId: $threadId, body: $body }) {- comment { id }- }-}`;--/**- * The pull request's own node id, which is what a reaction on its description is addressed by.- * Read only when one is being written: the conversation carries an id for every remark in it, and- * the pull request is the one subject nothing in it names.- */-export const PULL_REQUEST_NODE_ID_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!) {- repository(owner: $owner, name: $name) { pullRequest(number: $number) { id } }-}`;--const RawPullRequestNodeIdSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({ id: Schema.String }),- }),- }),-});--const decodePullRequestNodeId = decodeJsonResult(RawPullRequestNodeIdSchema);--export function decodePullRequestNodeIdJson(raw: string): Result.Result<string, DecodeFailure> {- const decoded = decodePullRequestNodeId(raw);- return Result.isSuccess(decoded)- ? Result.succeed(decoded.success.data.repository.pullRequest.id)- : Result.fail(decoded.failure);-}--/**- * Where a client-given reaction subject actually hangs: the pull request itself, or the pull- * request an issue comment, a review comment, or a review belongs to. Read before a mutation- * reaches it, so a subject named for one pull request cannot react on another's behalf.- */-export const REACTION_SUBJECT_PULL_REQUEST_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!, $subjectId: ID!) {- repository(owner: $owner, name: $name) { pullRequest(number: $number) { id } }- node(id: $subjectId) {- id- ... on IssueComment { pullRequest { id } }- ... on PullRequestReviewComment { pullRequest { id } }- ... on PullRequestReview { pullRequest { id } }- }-}`;--const RawReactionSubjectScopeSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.NullOr(- Schema.Struct({ pullRequest: Schema.NullOr(Schema.Struct({ id: Schema.String })) }),- ),- node: Schema.NullOr(- Schema.Struct({- id: Schema.String,- pullRequest: Schema.optional(Schema.Struct({ id: Schema.String })),- }),- ),- }),-});--const decodeReactionSubjectScope = decodeJsonResult(RawReactionSubjectScopeSchema);-/*** True when the subject named is the pull request itself, or hangs off it — false for anything* else, including a subject or a pull request this host could not find.*/-export function decodeReactionSubjectScopeJson(raw: string): Result.Result<boolean, DecodeFailure> {- const decoded = decodeReactionSubjectScope(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const expected = decoded.success.data.repository?.pullRequest?.id ?? null;- const node = decoded.success.data.node;- const actual = node === null ? null : (node.pullRequest?.id ?? node.id);- return Result.succeed(expected !== null && actual !== null && expected === actual);+export function isSubjectOfPullRequest(result: PullRequestSubject.Result): boolean {+ const expected = result.repository?.pullRequest?.id ?? null;+ const node = result.node;+ const actual =+ node === null+ ? null+ : node.__typename === "IssueComment"+ ? (node.pullRequest?.id ?? null)+ : node.__typename === "PullRequestReviewComment"+ ? node.reviewCommentPullRequest.id+ : node.__typename === "PullRequestReview"+ ? node.reviewPullRequest.id+ : node.id;+ return expected !== null && actual !== null && expected === actual;}-export const ADD_REACTION_GRAPHQL_MUTATION = `mutation($subjectId: ID!, $content: ReactionContent!) {- addReaction(input: { subjectId: $subjectId, content: $content }) { reaction { content } }-}`;--export const REMOVE_REACTION_GRAPHQL_MUTATION = `mutation($subjectId: ID!, $content: ReactionContent!) {- removeReaction(input: { subjectId: $subjectId, content: $content }) { reaction { content } }-}`;--export const RESOLVE_REVIEW_THREAD_GRAPHQL_MUTATION = `mutation($threadId: ID!) {- resolveReviewThread(input: { threadId: $threadId }) { thread { isResolved } }-}`;--export const UNRESOLVE_REVIEW_THREAD_GRAPHQL_MUTATION = `mutation($threadId: ID!) {- unresolveReviewThread(input: { threadId: $threadId }) { thread { isResolved } }-}`;--/**- * Rewrites the pull request's own words. Both are nullable so that one document serves a change- * to the title, to the description, or to the two together: a variable the request does not send- * puts no entry in the input at all, which leaves that field as it was rather than clearing it.- */-export const UPDATE_PULL_REQUEST_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!, $title: String, $body: String) {- updatePullRequest(input: { pullRequestId: $pullRequestId, title: $title, body: $body }) {- pullRequest { id }- }-}`;--/** Creates a new pull request that reverses a merged pull request. */-export const REVERT_PULL_REQUEST_GRAPHQL_MUTATION = `mutation($pullRequestId: ID!) {- revertPullRequest(input: { pullRequestId: $pullRequestId }) {- revertPullRequest { id }- }-}`;--/**- * The two comment mutations name their comment differently. The variable is spelled the same in- * both, so a rewrite sends one set of variables whichever kind of remark it is.- */-export const UPDATE_ISSUE_COMMENT_GRAPHQL_MUTATION = `mutation($commentId: ID!, $body: String!) {- updateIssueComment(input: { id: $commentId, body: $body }) { issueComment { id } }-}`;--export const UPDATE_REVIEW_COMMENT_GRAPHQL_MUTATION = `mutation($commentId: ID!, $body: String!) {- updatePullRequestReviewComment(input: { pullRequestReviewCommentId: $commentId, body: $body }) {- pullRequestReviewComment { id }- }-}`;-/** The body of `POST /repos/{owner}/{repo}/pulls/{number}/reviews`, which sends a review whole. */const ReviewSubmissionSchema = Schema.Struct({event: Schema.Literals(["COMMENT", "APPROVE", "REQUEST_CHANGES"]),@@ -1288,21 +323,6 @@ const REVIEW_EVENTS: Record<PullRequestReviewVerdict, "COMMENT" | "APPROVE" | "R"request-changes": "REQUEST_CHANGES",};-/**- * The dismissal events past the page the thread read carries. A pull request rarely has any:- * this is followed only while the embedded page reports more.- */-export const REVIEW_DISMISSALS_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!, $cursor: String) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- timelineItems(itemTypes: [REVIEW_DISMISSED_EVENT], first: ${GRAPHQL_PAGE_SIZE}, after: $cursor) {- pageInfo { hasNextPage endCursor }- nodes { ... on ReviewDismissedEvent { dismissalMessage review { id } } }- }- }- }-}`;-function gitHubReviewPosition(position: PullRequestReviewPosition): {readonly line: number;readonly side: "LEFT" | "RIGHT";@@ -1410,12 +430,18 @@ function trimmed(value: string | null | undefined): string | null {* an `endCursor` on a page that is also the last one, so the flag is what decides, not the* cursor's presence.*/-function nextCursorOf(- pageInfo: Schema.Schema.Type<typeof RawPageInfoSchema> | undefined,-): string | null {+function nextCursorOf(pageInfo: PageInfoFields | null | undefined): string | null {return pageInfo?.hasNextPage === true ? trimmed(pageInfo.endCursor) : null;}+/**+ * The viewer's standing on one pull request. The two halves take opposite defaults on purpose.+ *+ * Updating is a permission, so an install that does not report it grants it and lets the host's+ * own refusal explain anything that fails. Authorship is not a permission but a fact about who+ * wrote the thing, and it is read to decide what an author may do to their own change — so an+ * unknown answer is "not the author", which grants nothing it should not.+ *//*** The viewer's standing on one pull request. The two halves take opposite defaults on purpose.*@@ -1425,12 +451,18 @@ function nextCursorOf(* unknown answer is "not the author", which grants nothing it should not.*/function toPullRequestViewerFields(- raw: Schema.Schema.Type<typeof RawViewerFieldsSchema> | null | undefined,+ raw:+ | {+ readonly viewerCanUpdate?: boolean | undefined;+ readonly viewerDidAuthor?: boolean | undefined;+ }+ | null+ | undefined,): { readonly canUpdate: boolean; readonly didAuthor: boolean } {return { canUpdate: raw?.viewerCanUpdate !== false, didAuthor: raw?.viewerDidAuthor === true };}-function toActor(raw: Schema.Schema.Type<typeof RawActorSchema> | null | undefined) {+function toActor(raw: ActorFields | null | undefined): PullRequestActor | null {const login = trimmed(raw?.login);return login === null? null@@ -1438,37 +470,42 @@ function toActor(raw: Schema.Schema.Type<typeof RawActorSchema> | null | undefinlogin,name: trimmed(raw?.name),avatarUrl: trimmed(raw?.avatarUrl),- ...(raw?.__typename === "Bot" || raw?.is_bot === true ? { isBot: true } : {}),+ ...(raw?.__typename === "Bot" ? { isBot: true } : {}),};}+/** A requested team as the reads select it: `org/slug`, with its name and avatar aliased apart. */+interface RequestedTeamFields {+ readonly combinedSlug?: string | null | undefined;+ readonly teamName?: string | null | undefined;+ readonly teamAvatarUrl?: string | null | undefined;+}+/*** A requested team as a reviewer row. It goes by `org/slug`, the handle GitHub mentions it by.* No GitHub login contains a slash, so a team never shares a row or a verdict with a user.*/-function toRequestedTeam(- raw:- | Pick<Schema.Schema.Type<typeof RawReviewRequestSchema>, "combinedSlug" | "name" | "avatarUrl">- | null- | undefined,-): PullRequestActor | null {- const login = trimmed(raw?.combinedSlug);+function toRequestedTeam(raw: object | null | undefined): PullRequestActor | null {+ if (raw == null || !("combinedSlug" in raw)) return null;+ const team = raw as RequestedTeamFields;+ const login = trimmed(team.combinedSlug);return login === null? null- : { login, name: trimmed(raw?.name), avatarUrl: trimmed(raw?.avatarUrl) };+ : { login, name: trimmed(team.teamName), avatarUrl: trimmed(team.teamAvatarUrl) };}-function toCommitActor(- raw: NonNullable<Schema.Schema.Type<typeof RawCommitSchema>["authors"]>[number],-): PullRequestActor | null {+function toCommitActor(raw: {+ readonly email?: string | null | undefined;+ readonly login?: string | null | undefined;+ readonly name?: string | null | undefined;+}): PullRequestActor | null {// An email-linked GitHub account has a login; an unlinked signature only has a name or email.// Keep that signature visible instead of silently turning a co-authored commit into one author.const login = trimmed(raw.login) ?? trimmed(raw.name) ?? trimmed(raw.email);return login === null ? null : { login, name: trimmed(raw.name), avatarUrl: null };}-/** An author off the GraphQL commits connection, which names an account by `user.login` where- * `gh pr view --json commits` names it by a flat `login` copied off the signature. */+/** An author off the review read's commits, which names an account by `user.login`. */function toGraphqlCommitActor(raw: {readonly name?: string | null | undefined;readonly avatarUrl?: string | null | undefined;@@ -1523,22 +560,11 @@ function toMergeMethod(value: string | null | undefined): PullRequestMergeMethod*/function toReviewDecisionWithReviews(value: string | null | undefined,- // `gh pr list` hands the reviews as an array; the GraphQL reads hand a connection.- latestReviews:- | ReadonlyArray<Schema.Schema.Type<typeof RawLatestReviewSchema>>- | { readonly nodes: ReadonlyArray<Schema.Schema.Type<typeof RawLatestReviewSchema>> }- | null- | undefined,+ reviews: ReadonlyArray<LatestReviewFields> | undefined,): PullRequestReviewDecision | null {const summarized = toReviewDecision(value);if (summarized === "approved" || summarized === "changes-requested") return summarized;- const reviews =- latestReviews === null || latestReviews === undefined- ? []- : "nodes" in latestReviews- ? latestReviews.nodes- : latestReviews;- const states = new Set(reviews.map((review) => review.state?.trim().toUpperCase() ?? ""));+ const states = new Set((reviews ?? []).map((review) => review.state?.trim().toUpperCase() ?? ""));if (states.has("CHANGES_REQUESTED")) return "changes-requested";if (states.has("APPROVED")) return "approved";return summarized;@@ -1557,9 +583,7 @@ function toReviewDecision(value: string | null | undefined): PullRequestReviewDe}}-function toLabels(- raw: ReadonlyArray<Schema.Schema.Type<typeof RawLabelSchema>> | undefined,-): ReadonlyArray<PullRequestLabel> {+function toLabels(raw: ReadonlyArray<LabelFields> | undefined): ReadonlyArray<PullRequestLabel> {return (raw ?? []).flatMap((label) => {const name = trimmed(label.name);return name === null ? [] : [{ name, color: trimmed(label.color) }];@@ -1571,7 +595,7 @@ function toLabels(* compared with the viewer's login.*/function toReviewRequestLogins(- raw: ReadonlyArray<Schema.Schema.Type<typeof RawReviewRequestSchema>> | undefined,+ raw: ReadonlyArray<ReviewRequestFields> | undefined,): ReadonlyArray<string> {return (raw ?? []).flatMap((request) => {const login = trimmed(request.login);@@ -1579,9 +603,7 @@ function toReviewRequestLogins(});}-function hasTeamReviewRequest(- raw: ReadonlyArray<Schema.Schema.Type<typeof RawReviewRequestSchema>> | undefined,-): boolean {+function hasTeamReviewRequest(raw: ReadonlyArray<ReviewRequestFields> | undefined): boolean {return (raw ?? []).some((request) =>trimmed(request.login) === null &&@@ -1589,7 +611,7 @@ function hasTeamReviewRequest();}-function toCheckStatus(raw: Schema.Schema.Type<typeof RawCheckSchema>): PullRequestCheckStatus {+function toCheckStatus(raw: CheckFields): PullRequestCheckStatus {// Commit statuses report a single `state`; check runs report `status` plus a `conclusion`// that only exists once the run has completed.const status = raw.status?.trim().toUpperCase();@@ -1630,7 +652,7 @@ function realTimestamp(value: string | null | undefined): string | null {}/** Only a row the rollup gives no name of any kind, which is not a check anyone can show. */-function isNamelessCheck(raw: Schema.Schema.Type<typeof RawCheckSchema>): boolean {+function isNamelessCheck(raw: CheckFields): boolean {return trimmed(raw.name) === null && trimmed(raw.context) === null;}@@ -1640,9 +662,7 @@ function isNamelessCheck(raw: Schema.Schema.Type<typeof RawCheckSchema>): boolea* a workflow triggered by both `push` and `pull_request` runs the check twice on one commit, and* the run that finished first must not hide the one still going.*/-function toCheckEntries(- raw: ReadonlyArray<Schema.Schema.Type<typeof RawCheckSchema>> | null | undefined,-): ReadonlyArray<{+function toCheckEntries(raw: ReadonlyArray<CheckFields> | null | undefined): ReadonlyArray<{readonly check: PullRequestCheck;readonly workflowName: string | null;readonly at: string | null;@@ -1685,7 +705,7 @@ function toCheckEntries(* nameless row, and nothing nameless can collide with anything.*/function rollupChecksState(- raw: ReadonlyArray<Schema.Schema.Type<typeof RawCheckSchema>> | null | undefined,+ raw: ReadonlyArray<CheckFields> | null | undefined,): PullRequestChecksState | null {const statuses = [...toChecks(raw).map((check) => check.status),@@ -1698,7 +718,7 @@ function rollupChecksState(}function toChecks(- raw: ReadonlyArray<Schema.Schema.Type<typeof RawCheckSchema>> | null | undefined,+ raw: ReadonlyArray<CheckFields> | null | undefined,): ReadonlyArray<PullRequestCheck> {return dedupeChecks(toCheckEntries(raw));}@@ -1715,11 +735,21 @@ function isReviewVerdict(reviewState: string | null): boolean {}}+interface RemarkFields {+ readonly id: string;+ readonly lastEditedAt: string | null;+ readonly author: ActorFields | null;+ readonly body: string;+ readonly url: string | null;+}+function toComments(raw: {- readonly comments?: ReadonlyArray<Schema.Schema.Type<typeof RawCommentSchema>> | undefined;- readonly reviews?: ReadonlyArray<Schema.Schema.Type<typeof RawReviewSchema>> | undefined;+ readonly comments: ReadonlyArray<RemarkFields & { readonly createdAt: string }>;+ readonly reviews: ReadonlyArray<+ RemarkFields & { readonly state: string; readonly submittedAt: string | null }+ >;}): ReadonlyArray<PullRequestComment> {- const issueComments = (raw.comments ?? []).map((comment): PullRequestComment => ({+ const issueComments = raw.comments.map((comment): PullRequestComment => ({id: comment.id,kind: "issue-comment",author: toActor(comment.author),@@ -1734,7 +764,7 @@ function toComments(raw: {// request for changes, a dismissal. GitHub also opens a bodiless `COMMENTED` review as the// container for line comments, and those comments are read from the review threads, so// keeping the container too would show a row with a name and nothing under it.- const reviews = (raw.reviews ?? []).flatMap((review): ReadonlyArray<PullRequestComment> => {+ const reviews = raw.reviews.flatMap((review): ReadonlyArray<PullRequestComment> => {const submittedAt = trimmed(review.submittedAt);const reviewState = trimmed(review.state);if (@@ -1763,20 +793,22 @@ function toComments(raw: {}function toCommits(- commits: ReadonlyArray<Schema.Schema.Type<typeof RawCommitSchema>> | undefined,+ commits: ReadonlyArray<{+ readonly oid: string;+ readonly messageHeadline: string;+ readonly committedDate: string;+ readonly authors: ReadonlyArray<Parameters<typeof toCommitActor>[0]>;+ }>,): ReadonlyArray<PullRequestCommit> {- return (commits ?? []).map((commit) => ({+ return commits.map((commit) => ({oid: commit.oid,- messageHeadline: commit.messageHeadline ?? "",+ messageHeadline: commit.messageHeadline,committedDate: commit.committedDate,- authors: (commit.authors ?? []).flatMap((author) => {- const actor = toCommitActor(author);- return actor === null ? [] : [actor];- }),+ authors: commit.authors.flatMap((author) => toCommitActor(author) ?? []),}));}-function toListItem(raw: Schema.Schema.Type<typeof RawListItemSchema>): GitHubPullRequestListItem {+function toListItem(raw: ListItemFields): GitHubPullRequestListItem {return {authorId: trimmed(raw.author?.id),number: raw.number,@@ -1800,7 +832,21 @@ function toListItem(raw: Schema.Schema.Type<typeof RawListItemSchema>): GitHubPu};}-function toDetail(raw: Schema.Schema.Type<typeof RawDetailSchema>): GitHubPullRequestDetail {+interface DetailFields extends ListItemFields {+ readonly isCrossRepository?: boolean | undefined;+ readonly headRepositoryOwner?: { readonly login: string } | null | undefined;+ readonly headRefOid?: string | null | undefined;+ readonly body?: string | undefined;+ readonly changedFiles?: number | undefined;+ readonly closedAt?: string | null | undefined;+ /** The standing instruction and strategy GitHub will use once its requirements are met. */+ readonly autoMergeRequest?:+ | { readonly mergeMethod?: string | null | undefined }+ | null+ | undefined;+}++function toDetail(raw: DetailFields): GitHubPullRequestDetail {const autoMergeMethod = toMergeMethod(raw.autoMergeRequest?.mergeMethod);return {...toListItem(raw),@@ -1824,51 +870,76 @@ function toDetail(raw: Schema.Schema.Type<typeof RawDetailSchema>): GitHubPullRe}const decodeUnknownList = decodeJsonResult(Schema.Array(Schema.Unknown));-const decodeSearch = decodeJsonResult(RawSearchSchema);-const decodeSearchItem = Schema.decodeUnknownExit(RawSearchItemSchema);-const decodeStats = decodeJsonResult(RawStatsSchema);-const decodeDetail = decodeJsonResult(RawDetailSchema);+const decodeDetail = decodeJsonResult(+ Schema.Struct({+ number: Schema.Int,+ title: Schema.String,+ url: Schema.String,+ headRefName: Schema.String,+ baseRefName: Schema.String,+ state: Schema.optional(Schema.String),+ createdAt: Schema.String,+ updatedAt: Schema.String,+ }),+);const decodeWorkflowRuns = decodeJsonResult(RawWorkflowRunsSchema);-const decodePullRequestHeads = decodeJsonResult(RawPullRequestHeadsSchema);-const decodeActivity = decodeJsonResult(RawActivitySchema);-const decodeRepositoryPullRequests = decodeJsonResult(RawRepositoryPullRequestsSchema);const decodeFileEntry = Schema.decodeUnknownExit(RawPullRequestFileSchema);-const decodeReviewThreads = decodeJsonResult(RawReviewThreadsSchema);-const decodeReviewThreadComments = decodeJsonResult(RawReviewThreadCommentsSchema);+const decodeRow = Schema.decodeUnknownExit(PullRequestRow);-type DecodeFailure = Cause.Cause<Schema.SchemaError>;+/**+ * A listing page whose rows are left undecoded, so `toPullRequestRows` can decode them one at a+ * time: a node that is not a pull request, or one field GitHub changes, is skipped rather than+ * failing the page and blanking every repository at once.+ */+const LenientRows = Schema.Struct({+ pageInfo: ListingPageInfo,+ nodes: Schema.NullOr(Schema.Array(Schema.Unknown)),+});-export interface GitHubPullRequestListBatch {- readonly items: ReadonlyArray<GitHubPullRequestListItem>;- /** Rows GitHub returned, counted before decoding, so a skipped row cannot hide a next page. */- readonly rawCount: number;- /** Where the next page starts, or null once GitHub has handed over every row. */- readonly endCursor: string | null;-}+/** The generated search, with its rows decoded by `toPullRequestRows` instead. */+export const LenientPullRequestSearch = GraphQL.query(PullRequestSearch.name, {+ document: PullRequestSearch.document,+ variables: PullRequestSearch.variables,+ result: Schema.Struct({ search: LenientRows }),+});++/** The generated repository list, with its rows decoded by `toPullRequestRows` instead. */+export const LenientPullRequestList = GraphQL.query(PullRequestList.name, {+ document: PullRequestList.document,+ variables: PullRequestList.variables,+ result: Schema.Struct({+ repository: Schema.NullOr(Schema.Struct({ pullRequests: LenientRows })),+ }),+});++type DecodeFailure = Cause.Cause<Schema.SchemaError>;/**- * One page of a repository's own pull request list. Malformed rows are skipped rather than- * failing the page: one unexpected pull request must not blank the whole list. A repository the- * viewer cannot see answers as an empty page, which is what `gh pr list` printed for it too.+ * A listing page's rows, decoded one at a time against the generated row: a node that is not a pull+ * request, or one whose fields no longer decode, is skipped rather than blanking the whole page.+ * `rawCount` counts them all, so a skipped row cannot hide a next page.*/-export function decodePullRequestListJson(- raw: string,-): Result.Result<GitHubPullRequestListBatch, DecodeFailure> {- const decoded = decodeRepositoryPullRequests(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const connection = decoded.success.data.repository?.pullRequests;+export function toPullRequestRows(+ connection:+ | { readonly pageInfo: PageInfoFields; readonly nodes: ReadonlyArray<unknown> | null }+ | null+ | undefined,+): {+ readonly rows: ReadonlyArray<{+ readonly item: GitHubPullRequestListItem;+ readonly repository: string | null;+ }>;+ readonly rawCount: number;+ readonly hasNextPage: boolean;+ readonly endCursor: string | null;+} {const nodes = connection?.nodes ?? [];- const items: GitHubPullRequestListItem[] = [];- for (const entry of nodes) {- const row = toRow(entry);- if (row !== null) items.push(row.item);- }- return Result.succeed({- items,+ return {+ rows: nodes.flatMap((entry) => toRow(entry) ?? []),rawCount: nodes.length,- endCursor:- connection?.pageInfo?.hasNextPage === true ? trimmed(connection.pageInfo.endCursor) : null,- });+ hasNextPage: connection?.pageInfo.hasNextPage === true,+ endCursor: nextCursorOf(connection?.pageInfo),+ };}/**@@ -1879,16 +950,17 @@ export function decodePullRequestListJson(function toRow(entry: unknown,): { readonly item: GitHubPullRequestListItem; readonly repository: string | null } | null {- const decodedNode = decodeSearchItem(entry);+ const decodedNode = decodeRow(entry);if (!Exit.isSuccess(decodedNode)) return null;const node = decodedNode.value;const stack = toStackMembership(node);- const reviewRequests = (node.reviewRequests?.nodes ?? []).flatMap(- (request): ReadonlyArray<{ readonly login?: string; readonly slug?: string }> => {- const reviewer = request?.requestedReviewer;- const login = trimmed(reviewer?.login);+ const reviewRequests = nodesOf(node.reviewRequests).flatMap(+ (request): ReadonlyArray<ReviewRequestFields> => {+ const reviewer = request.requestedReviewer;+ if (reviewer === null) return [];+ const login = "login" in reviewer ? trimmed(reviewer.login) : null;if (login !== null) return [{ login }];- const slug = trimmed(reviewer?.slug);+ const slug = "slug" in reviewer ? trimmed(reviewer.slug) : null;return slug === null ? [] : [{ slug }];},);@@ -1896,71 +968,44 @@ function toRow(item: {...toListItem({...node,- latestReviews: (node.latestReviews?.nodes ?? []).flatMap((review) =>- review === null ? [] : [review],- ),+ latestReviews: nodesOf(node.latestReviews),reviewRequests,- labels: (node.labels?.nodes ?? []).flatMap((label) => (label === null ? [] : [label])),+ labels: nodesOf(node.labels),// The rollup arrives as one enum. Dressed as a single check here so it is read the same// way the detail's checks are.- statusCheckRollup: (node.commits?.nodes ?? []).flatMap((commitNode) => {- const state = trimmed(commitNode?.commit?.statusCheckRollup?.state);- return state === null ? [] : [{ state }];- }),+ statusCheckRollup: rollupStates(node.commits),}),...(stack === undefined ? {} : { stack }),},- repository: trimmed(node.repository?.nameWithOwner),+ repository: trimmed(node.repository.nameWithOwner),};-}--export interface GitHubPullRequestSearchItem extends GitHubPullRequestListItem {- /** `owner/name` as GitHub spells it, which is how a row from a search finds its repository. */- readonly repository: string;-}--export interface GitHubPullRequestSearchBatch {- readonly items: ReadonlyArray<GitHubPullRequestSearchItem>;- /** Rows the search returned, counted before decoding, so a skipped row cannot hide a next page. */- readonly rawCount: number;- /** More rows than this slice asked for, which is truncation for every repository in it. */- readonly hasNextPage: boolean;- /** Where the next page of the same search starts. */- readonly endCursor: string | null;-}--/**- * A search answers with the same row a repository's list does, each naming its repository.- *- * Rows that are not pull requests decode as empty and are skipped, the way a malformed listing- * row is — `is:pr` already excludes them, and one surprise must not blank a whole host.- */-export function decodePullRequestSearchJson(- raw: string,-): Result.Result<GitHubPullRequestSearchBatch, DecodeFailure> {- const decoded = decodeSearch(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const search = decoded.success.data.search;- const nodes = search.nodes ?? [];- const items: GitHubPullRequestSearchItem[] = [];- for (const entry of nodes) {- const row = toRow(entry);- if (row === null || row.repository === null) continue;- items.push({ ...row.item, repository: row.repository });- }- return Result.succeed({- items,- rawCount: nodes.length,- hasNextPage: search.pageInfo?.hasNextPage ?? false,- endCursor: search.pageInfo?.hasNextPage === true ? trimmed(search.pageInfo.endCursor) : null,+}++/** The head commit's one-word rollup as a nameless check, which `rollupChecksState` reads. */+function rollupStates(commits: {+ readonly nodes: ReadonlyArray<{+ readonly commit: { readonly statusCheckRollup: { readonly state: string } | null };+ } | null> | null;+}): ReadonlyArray<CheckFields> {+ return nodesOf(commits).flatMap((commitNode) => {+ const state = trimmed(commitNode.commit.statusCheckRollup?.state);+ return state === null ? [] : [{ state }];});}-function toStackMembership(- raw: Schema.Schema.Type<typeof RawStackMembershipSchema>,-): PullRequestStackMembership | undefined {+export interface GitHubPullRequestSearchItem extends GitHubPullRequestListItem {+ /** `owner/name` as GitHub spells it, which is how a row from a search finds its repository. */+ readonly repository: string;+}++export function toStackMembership(raw: {+ readonly stack?: {+ readonly number: number;+ readonly size: number;+ readonly baseRefName: string;+ } | null;+ readonly stackEntry?: { readonly position: number } | null;+}): PullRequestStackMembership | undefined {return raw.stack && raw.stackEntry? {number: raw.stack.number,@@ -1975,179 +1020,22 @@ function toStackMembership(const REPOSITORY_PART = /^[A-Za-z0-9._-]+$/;/**- * The owner and name of an `owner/name` selector, or null for one GitHub cannot name. A batch is- * one document, and a single unanswerable alias fails all of it, so these are refused up front.+ * The variables of one pull request lookup, or null for a selector or number GitHub cannot+ * name: a batch would send it, and GitHub would refuse the whole request rather than its part.*/-function repositoryParts(- repository: string,-): { readonly owner: string; readonly name: string } | null {- const [owner, name, ...rest] = repository.trim().split("/");+export function pullRequestLookup(changeRequest: {+ readonly repository: string;+ readonly number: number;+}): { readonly owner: string; readonly name: string; readonly number: number } | null {+ const [owner, name, ...rest] = changeRequest.repository.trim().split("/");if (rest.length > 0 || owner === undefined || name === undefined) return null;- return REPOSITORY_PART.test(owner) && REPOSITORY_PART.test(name) ? { owner, name } : null;-}--const isPullRequestNumber = (number: number) => Number.isSafeInteger(number) && number > 0;--/** One aliased `repository { pullRequest { selection } }` per change request, on one host. */-function aliasedPullRequestsDocument(- name: string,- alias: string,- changeRequests: ReadonlyArray<{ readonly repository: string; readonly number: number }>,- selection: string,-): GraphQlDocument | null {- const addressed = changeRequests.map((changeRequest) => ({- parts: repositoryParts(changeRequest.repository),- number: changeRequest.number,- }));- if (addressed.some(({ parts, number }) => parts === null || !isPullRequestNumber(number))) {- return null;- }- return aliasedGraphQlDocument({- operation: "query",- name,- alias,- items: addressed,- variables: ({ parts, number }) => ({- owner: ["String!", parts!.owner],- name: ["String!", parts!.name],- number: ["Int!", number],- }),- field: ({ owner, name, number }) =>- `repository(owner: ${owner}, name: ${name}) { pullRequest(number: ${number}) { ${selection} } }`,- });-}--/**- * The line counts for rows a listing already handed over, as one aliased lookup each.- *- * Aliases rather than `nodes(ids:)` because the caller asks in the terms the page holds — a- * repository and a number — and never sees a node id. Null for a selector GitHub cannot name,- * which the caller reports rather than sends, and for an empty request.- */-export function buildPullRequestStatsGraphQlQuery(- changeRequests: ReadonlyArray<{ readonly repository: string; readonly number: number }>,-): GraphQlDocument | null {- return aliasedPullRequestsDocument(- "PullRequestStats",- "s",- changeRequests,- "additions deletions",- );-}--/** Stack membership for the visible rows of a per-repository listing. */-export function buildPullRequestStackMembershipsGraphQlQuery(- repository: string,- numbers: ReadonlyArray<number>,-): GraphQlDocument | null {- return aliasedPullRequestsDocument(- "PullRequestStackMemberships",- "s",- numbers.map((number) => ({ repository, number })),- STACK_MEMBERSHIP_SELECTION,- );-}--const decodeStackMemberships = decodeJsonResult(RawStackMembershipsSchema);--export function decodePullRequestStackMembershipsJson(- raw: string,-): Result.Result<ReadonlyMap<number, PullRequestStackMembership>, DecodeFailure> {- const decoded = decodeStackMemberships(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const memberships = new Map<number, PullRequestStackMembership>();- for (const [alias, value] of Object.entries(decoded.success.data)) {- const index = /^s(\d+)$/.exec(alias)?.[1];- if (index === undefined || value?.pullRequest == null) continue;- const stack = toStackMembership(value.pullRequest);- if (stack !== undefined) memberships.set(Number(index), stack);- }- return Result.succeed(memberships);-}--/**- * The counts by the position they were asked in. A repository or a pull request GitHub answered- * nothing for is simply absent, which leaves the row with whatever it already had.- */-export function decodePullRequestStatsJson(- raw: string,-): Result.Result<- ReadonlyMap<number, { readonly additions: number; readonly deletions: number }>,- DecodeFailure-> {- const decoded = decodeStats(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const stats = new Map<number, { readonly additions: number; readonly deletions: number }>();- for (const [alias, value] of Object.entries(decoded.success.data ?? {})) {- const index = /^s(\d+)$/.exec(alias)?.[1];- const pullRequest = value?.pullRequest;- if (index === undefined || pullRequest == null) continue;- stats.set(Number(index), {- additions: pullRequest.additions ?? 0,- deletions: pullRequest.deletions ?? 0,- });- }- return Result.succeed(stats);-}--/**- * The fields a linked thread keeps current, for many pull requests in one aliased read. Same- * shape as the search row where the two overlap: the checks arrive as GitHub's one-word rollup- * rather than the whole check list `gh pr view` hands back, which is what keeps a batch cheap.- */-const STACK_MEMBERSHIP_SELECTION = "stack { number size baseRefName } stackEntry { position }";--const PULL_REQUEST_SUMMARY_SELECTION =- "number title url state isDraft mergeable reviewDecision additions deletions changedFiles " +- "updatedAt mergedAt closedAt headRefName baseRefName " +- "author { __typename login avatarUrl ... on User { name } } " +- "latestReviews(first: 20) { nodes { state author { login } } } " +- "commits(last: 1) { nodes { commit { statusCheckRollup { state } } } }";--/** Summaries for pull requests anywhere on one host, one aliased lookup each; null when unsafe. */-export function buildPullRequestSummariesGraphQlQuery(- changeRequests: ReadonlyArray<{ readonly repository: string; readonly number: number }>,- includeStacks = false,-): GraphQlDocument | null {- return aliasedPullRequestsDocument(- "PullRequestSummaries",- "s",- changeRequests,- `${PULL_REQUEST_SUMMARY_SELECTION}${includeStacks ? ` ${STACK_MEMBERSHIP_SELECTION}` : ""}`,- );+ if (!REPOSITORY_PART.test(owner) || !REPOSITORY_PART.test(name)) return null;+ const { number } = changeRequest;+ return Number.isSafeInteger(number) && number > 0 && number <= 2_147_483_647+ ? { owner, name, number }+ : null;}-/** One pull request's summary, aliased the way the batch is so the same decoder reads it. */-export function pullRequestSummaryGraphQlQuery(includeStacks = false): string {- return `query($owner: String!, $name: String!, $number: Int!) {- s0: repository(owner: $owner, name: $name) { pullRequest(number: $number) { ${PULL_REQUEST_SUMMARY_SELECTION}${includeStacks ? ` ${STACK_MEMBERSHIP_SELECTION}` : ""} } }-}`;-}--const RawSummarySchema = Schema.Struct({- ...RawSearchItemSchema.fields,- changedFiles: Schema.optional(Schema.NullOr(Schema.Int)),- additions: Schema.optional(Schema.NullOr(Schema.Int)),- deletions: Schema.optional(Schema.NullOr(Schema.Int)),- closedAt: Schema.optional(Schema.NullOr(Schema.String)),- createdAt: Schema.optional(Schema.String),-});-const decodeSummaries = decodeJsonResult(- Schema.Struct({- data: Schema.optional(- Schema.NullOr(- Schema.Record(- Schema.String,- Schema.NullOr(Schema.Struct({ pullRequest: Schema.optional(Schema.Unknown) })),- ),- ),- ),- }),-);-const decodeSummaryEntry = Schema.decodeUnknownExit(RawSummarySchema);-export interface GitHubPullRequestSummary {readonly number: number;readonly title: string;@@ -2170,86 +1058,29 @@ export interface GitHubPullRequestSummary {readonly stack?: PullRequestStackMembership | null;}-/**- * Summaries by the position they were asked in. A pull request GitHub answered nothing for, or- * one whose fields no longer decode, is absent rather than failing the rest of the batch.- */-export function decodePullRequestSummariesJson(- raw: string,-): Result.Result<ReadonlyMap<number, GitHubPullRequestSummary>, DecodeFailure> {- const decoded = decodeSummaries(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const summaries = new Map<number, GitHubPullRequestSummary>();- for (const [alias, value] of Object.entries(decoded.success.data ?? {})) {- const index = /^s(\d+)$/.exec(alias)?.[1];- if (index === undefined || value?.pullRequest == null) continue;- const entry = decodeSummaryEntry(value.pullRequest);- if (!Exit.isSuccess(entry)) continue;- const pr = entry.value;- summaries.set(Number(index), {- number: pr.number,- title: pr.title,- url: pr.url,- headBranch: pr.headRefName,- baseBranch: pr.baseRefName,- state: toState(pr),- isDraft: pr.isDraft ?? false,- closedAt: trimmed(pr.closedAt),- mergedAt: trimmed(pr.mergedAt),- updatedAt: pr.updatedAt,- author: toActor(pr.author),- additions: pr.additions ?? 0,- deletions: pr.deletions ?? 0,- changedFiles: pr.changedFiles ?? 0,- reviewDecision: toReviewDecisionWithReviews(- pr.reviewDecision,- (pr.latestReviews?.nodes ?? []).flatMap((review) => (review === null ? [] : [review])),- ),- // One enum for the head commit, dressed as a single check like the search row's.- checksState: rollupChecksState(- (pr.commits?.nodes ?? []).flatMap((commitNode) => {- const state = trimmed(commitNode?.commit?.statusCheckRollup?.state);- return state === null ? [] : [{ state }];- }),- ),- mergeability: toMergeability(pr.mergeable),- ...(pr.stack === undefined ? {} : { stack: toStackMembership(pr) ?? null }),- });- }- return Result.succeed(summaries);-}--const WATCH_FINGERPRINT_EDITS = "totalCount nodes { lastEditedAt }";-const WATCH_FINGERPRINT_CHECK_COUNTS =- "checkRunCountsByState { state count } statusContextCountsByState { state count }";--/**- * What a pull request watch needs to notice, priced by GitHub at one point for twenty-five pull- * requests, where the detail and activity reads it gates cost sixteen for one. Counts and the- * newest edit cover new comments, reviews (a reply in a review thread is a review), threads, and- * a bot rewriting its summary; check counts by state move whenever a check starts or finishes.- * Comments come most recently updated first, since an edit moves `updatedAt`, so an edit to an- * old comment on a long pull request is still in the page. Reviews have no such order: an edit- * to a review older than the last hundred waits for the watch's periodic full read, as do edits- * to comments inside review threads, which cost a point per pull request to ask for.- */-const PULL_REQUEST_WATCH_FINGERPRINT_SELECTION =- "state mergeable headRefOid " +- `comments(first: 100, orderBy: { field: UPDATED_AT, direction: DESC }) { ${WATCH_FINGERPRINT_EDITS} } ` +- `reviews(last: 100) { ${WATCH_FINGERPRINT_EDITS} } ` +- "reviewThreads { totalCount } " +- `commits(last: 1) { nodes { commit { statusCheckRollup { contexts { ${WATCH_FINGERPRINT_CHECK_COUNTS} } } } } }`;--/** Watch fingerprints for pull requests on one host, one aliased lookup each; null when unsafe. */-export function buildPullRequestWatchFingerprintsGraphQlQuery(- changeRequests: ReadonlyArray<{ readonly repository: string; readonly number: number }>,-): GraphQlDocument | null {- return aliasedPullRequestsDocument(- "PullRequestWatchFingerprints",- "w",- changeRequests,- PULL_REQUEST_WATCH_FINGERPRINT_SELECTION,- );+/** The summary a linked thread keeps current, from one slice of the batched read. */+export function toPullRequestSummary(pr: SummarizedPullRequest): GitHubPullRequestSummary {+ return {+ number: pr.number,+ title: pr.title,+ url: pr.url,+ headBranch: pr.headRefName,+ baseBranch: pr.baseRefName,+ state: toState(pr),+ isDraft: pr.isDraft,+ closedAt: trimmed(pr.closedAt),+ mergedAt: trimmed(pr.mergedAt),+ updatedAt: pr.updatedAt,+ author: toActor(pr.author),+ additions: pr.additions,+ deletions: pr.deletions,+ changedFiles: pr.changedFiles,+ reviewDecision: toReviewDecisionWithReviews(pr.reviewDecision, nodesOf(pr.latestReviews)),+ // One enum for the head commit, dressed as a single check like the search row's.+ checksState: rollupChecksState(rollupStates(pr.commits)),+ mergeability: toMergeability(pr.mergeable),+ ...(pr.stack === undefined ? {} : { stack: toStackMembership(pr) ?? null }),+ };}/**@@ -2261,89 +1092,44 @@ export interface GitHubPullRequestWatchFingerprint {readonly remarks: string;}-const RawEditedSchema = Schema.Struct({- totalCount: Schema.Int,- nodes: Schema.Array(Schema.NullOr(Schema.Struct({ lastEditedAt: Schema.NullOr(Schema.String) }))),-});-const RawStateCountsSchema = Schema.NullOr(- Schema.Array(Schema.Struct({ state: Schema.String, count: Schema.Int })),-);-const decodeWatchFingerprintEntry = Schema.decodeUnknownExit(- Schema.Struct({- state: Schema.String,- mergeable: Schema.NullOr(Schema.String),- headRefOid: Schema.String,- comments: RawEditedSchema,- reviews: RawEditedSchema,- reviewThreads: Schema.Struct({ totalCount: Schema.Int }),- commits: Schema.Struct({- nodes: Schema.Array(- Schema.NullOr(- Schema.Struct({- commit: Schema.Struct({- statusCheckRollup: Schema.NullOr(- Schema.Struct({- contexts: Schema.Struct({- checkRunCountsByState: RawStateCountsSchema,- statusContextCountsByState: RawStateCountsSchema,- }),- }),- ),- }),- }),- ),- ),- }),- }),-);+type EditedConnection = WatchedPullRequest["comments"] | WatchedPullRequest["reviews"];+type StateCounts = ReadonlyArray<{ readonly state: string; readonly count: number }> | null;// An edit only ever moves `lastEditedAt` forward, so the newest one stands for them all.-const newestEdit = (connection: typeof RawEditedSchema.Type) =>- connection.nodes.reduce(+const newestEdit = (connection: EditedConnection) =>+ (connection?.nodes ?? []).reduce((newest, node) =>node?.lastEditedAt != null && node.lastEditedAt > newest ? node.lastEditedAt : newest,"",);-const stateCounts = (counts: typeof RawStateCountsSchema.Type) =>+const stateCounts = (counts: StateCounts) =>(counts ?? []).filter(({ count }) => count > 0).map(({ state, count }) => `${state}:${count}`).toSorted().join(",");-/** Fingerprints by alias index; a pull request GitHub returned nothing for is left out. */-export function decodePullRequestWatchFingerprintsJson(- raw: string,-): Result.Result<ReadonlyMap<number, GitHubPullRequestWatchFingerprint>, DecodeFailure> {- const decoded = decodeSummaries(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const fingerprints = new Map<number, GitHubPullRequestWatchFingerprint>();- for (const [alias, value] of Object.entries(decoded.success.data ?? {})) {- const index = /^w(\d+)$/.exec(alias)?.[1];- if (index === undefined || value?.pullRequest == null) continue;- const entry = decodeWatchFingerprintEntry(value.pullRequest);- if (!Exit.isSuccess(entry)) continue;- const pr = entry.value;- const contexts = pr.commits.nodes[0]?.commit.statusCheckRollup?.contexts;- fingerprints.set(Number(index), {- status: [- pr.state,- pr.mergeable ?? "",- pr.headRefOid,- stateCounts(contexts?.checkRunCountsByState ?? null),- stateCounts(contexts?.statusContextCountsByState ?? null),- ].join(" "),- remarks: [- pr.comments.totalCount,- newestEdit(pr.comments),- pr.reviews.totalCount,- newestEdit(pr.reviews),- pr.reviewThreads.totalCount,- ].join(" "),- });- }- return Result.succeed(fingerprints);+export function toPullRequestWatchFingerprint(+ pr: WatchedPullRequest,+): GitHubPullRequestWatchFingerprint {+ const contexts = pr.commits.nodes?.[0]?.commit.statusCheckRollup?.contexts;+ return {+ status: [+ pr.state,+ pr.mergeable,+ pr.headRefOid,+ stateCounts(contexts?.checkRunCountsByState ?? null),+ stateCounts(contexts?.statusContextCountsByState ?? null),+ ].join(" "),+ remarks: [+ pr.comments.totalCount,+ newestEdit(pr.comments),+ pr.reviews?.totalCount ?? 0,+ newestEdit(pr.reviews),+ pr.reviewThreads.totalCount,+ ].join(" "),+ };}export interface GitHubPullRequestCore extends GitHubPullRequestDetail {@@ -2354,25 +1140,46 @@ export interface GitHubPullRequestCore extends GitHubPullRequestDetail {readonly checksTruncated: boolean;}-export function decodePullRequestCoreJson(- raw: string,-): Result.Result<GitHubPullRequestCore, DecodeFailure> {- const decoded = decodeCore(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const repository = decoded.success.data.repository;- const pr = repository.pullRequest;- const contexts = pr.commits.nodes[0]?.commit.statusCheckRollup?.contexts;- return Result.succeed({- reviewRequestTeams: pr.reviewRequests.nodes.flatMap(+type CoreRequestedReviewer = NonNullable<+ NonNullable<+ NonNullable<NonNullable<PullRequestCore.Result["repository"]>["pullRequest"]>["reviewRequests"]+ >["nodes"]+>[number];++/** Null for a repository or number that names no pull request the viewer can see. */+export function toPullRequestCore(result: PullRequestCore.Result): GitHubPullRequestCore | null {+ const repository = result.repository;+ const pr = repository?.pullRequest;+ if (repository == null || pr == null) return null;+ const contexts = nodesOf(pr.commits)[0]?.commit.statusCheckRollup?.contexts;+ return {+ reviewRequestTeams: nodesOf(pr.reviewRequests).flatMap(({ requestedReviewer }) => toRequestedTeam(requestedReviewer) ?? [],),...toDetail({...pr,- reviewRequests: pr.reviewRequests.nodes.flatMap(({ requestedReviewer }) =>- requestedReviewer === null ? [] : [requestedReviewer],+ author:+ pr.author === null ? null : { ...pr.author, id: "id" in pr.author ? pr.author.id : null },+ latestReviews: [],+ reviewRequests: nodesOf(pr.reviewRequests).flatMap(+ ({ requestedReviewer }: NonNullable<CoreRequestedReviewer>) =>+ requestedReviewer === null+ ? []+ : [+ {+ login: "login" in requestedReviewer ? requestedReviewer.login : null,+ slug: "slug" in requestedReviewer ? requestedReviewer.slug : null,+ name:+ "teamName" in requestedReviewer+ ? requestedReviewer.teamName+ : "name" in requestedReviewer+ ? requestedReviewer.name+ : null,+ },+ ],),- labels: pr.labels.nodes,- statusCheckRollup: toCheckContexts(contexts?.nodes ?? []),+ labels: nodesOf(pr.labels),+ statusCheckRollup: toCheckContexts(nodesOf(contexts)),}),headRepositoryNameWithOwner: trimmed(pr.headRepository?.nameWithOwner),viewerAccess: {@@ -2394,9 +1201,10 @@ export function decodePullRequestCoreJson(viewerCanUpdate: pr.viewerCanUpdateBranch,},checksTruncated: contexts?.pageInfo.hasNextPage === true,- });+ };}+/** A detail as a REST pull request names it, for the provider's tests and fixtures. */export function decodePullRequestDetailJson(raw: string,): Result.Result<GitHubPullRequestDetail, DecodeFailure> {@@ -2428,37 +1236,21 @@ export function decodeWorkflowRunsJson(});}-/** Open pull requests whose head branch has one name, from whichever repository it lives in. */-export const PULL_REQUEST_HEADS_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $head: String!, $after: String) {- repository(owner: $owner, name: $name) {- pullRequests(first: 100, after: $after, states: [OPEN], headRefName: $head) {- pageInfo { hasNextPage endCursor }- nodes { number headRefOid isCrossRepository headRepositoryOwner { login } }- }- }-}`;--export function decodePullRequestHeadsJson(raw: string): Result.Result<- {- readonly heads: ReadonlyArray<GitHubPullRequestHead>;- readonly nextCursor: string | null;- },- DecodeFailure-> {- const decoded = decodePullRequestHeads(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const connection = decoded.success.data.repository?.pullRequests;- return Result.succeed({- heads: (connection?.nodes ?? []).map((pullRequest) => ({+/** One page of open pull requests on one head branch; an unseen repository is an empty page. */+export function toPullRequestHeads(result: PullRequestHeads.Result): {+ readonly heads: ReadonlyArray<GitHubPullRequestHead>;+ readonly nextCursor: string | null;+} {+ const connection = result.repository?.pullRequests;+ return {+ heads: nodesOf(connection).map((pullRequest) => ({number: pullRequest.number,headSha: pullRequest.headRefOid,- ...(typeof pullRequest.isCrossRepository === "boolean"- ? { isCrossRepository: pullRequest.isCrossRepository }- : {}),+ isCrossRepository: pullRequest.isCrossRepository,headRepositoryOwner: trimmed(pullRequest.headRepositoryOwner?.login),})),nextCursor: nextCursorOf(connection?.pageInfo),- });+ };}export interface GitHubPullRequestActivityPage {@@ -2471,123 +1263,58 @@ export interface GitHubPullRequestActivityPage {readonly nextReviewsCursor: string | null;}-/** One page of `PULL_REQUEST_ACTIVITY_GRAPHQL_QUERY`. */-export function decodePullRequestActivityJson(- raw: string,-): Result.Result<GitHubPullRequestActivityPage, DecodeFailure> {- const decoded = decodeActivity(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const pr = decoded.success.data.repository.pullRequest;- return Result.succeed({+/** One page of the activity read; null for a pull request the viewer cannot see. */+export function toPullRequestActivityPage(+ result: PullRequestActivity.Result,+): GitHubPullRequestActivityPage | null {+ const pr = result.repository?.pullRequest;+ if (pr == null) return null;+ return {...(pr.author === undefined ? {} : { author: toActor(pr.author) }),...(pr.commits === undefined? {}: {commits: toCommits(- (pr.commits?.nodes ?? []).map(({ commit }) => ({+ nodesOf(pr.commits).map(({ commit }) => ({...commit,- authors: (commit.authors?.nodes ?? []).map((author) => ({+ authors: nodesOf(commit.authors).map((author) => ({...author,login: author.user?.login ?? null,})),})),),}),- remarks: toComments({- comments: pr.comments?.nodes ?? [],- reviews: pr.reviews?.nodes ?? [],- }),+ remarks: toComments({ comments: nodesOf(pr.comments), reviews: nodesOf(pr.reviews) }),nextCommentsCursor: nextCursorOf(pr.comments?.pageInfo),nextReviewsCursor: nextCursorOf(pr.reviews?.pageInfo),- });+ };}-/** Every check context of the head commit, a page at a time, for a rollup past one page. */-export const pullRequestCheckContextsGraphQlQuery = (host: string) =>- `query($owner: String!, $name: String!, $number: Int!, $after: String) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- headRefOid- commits(last: 1) {- nodes { commit { statusCheckRollup { contexts(first: 100, after: $after) {- ${checkContextNodesSelection(host)}- pageInfo { hasNextPage endCursor }- } } } }- }- }- }-}`;--const RawCheckContextNodeSchema = Schema.Struct({- ...RawCheckSchema.fields,- checkSuite: Schema.optional(- Schema.NullOr(- Schema.Struct({- workflowRun: Schema.NullOr(- Schema.Struct({ workflow: Schema.NullOr(Schema.Struct({ name: Schema.String })) }),- ),- }),- ),- ),-});--const decodeCheckContexts = decodeJsonResult(- Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({- headRefOid: Schema.String,- commits: Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- commit: Schema.Struct({- statusCheckRollup: Schema.NullOr(- Schema.Struct({- contexts: Schema.Struct({- nodes: Schema.Array(RawCheckContextNodeSchema),- pageInfo: RawPageInfoSchema,- }),- }),- ),- }),- }),- ),- }),- }),- }),- }),- }),-);-/** A check context as the rollup reports it; opaque outside this module. */-export type GitHubCheckContext = Schema.Schema.Type<typeof RawCheckSchema>;--function toCheckContexts(- nodes: ReadonlyArray<Schema.Schema.Type<typeof RawCheckContextNodeSchema>>,-): ReadonlyArray<GitHubCheckContext> {- return nodes.map((check) => ({- ...check,- workflowName: check.checkSuite?.workflowRun?.workflow?.name ?? null,- }));+export type GitHubCheckContext = CheckFields;++function toCheckContexts(nodes: ReadonlyArray<CheckContext>): ReadonlyArray<GitHubCheckContext> {+ return nodes.map((check) =>+ check.__typename === "CheckRun"+ ? { ...check, workflowName: check.checkSuite.workflowRun?.workflow.name ?? null }+ : check,+ );}-export function decodePullRequestCheckContextsJson(raw: string): Result.Result<- {- readonly headSha: string;- readonly contexts: ReadonlyArray<GitHubCheckContext>;- readonly nextCursor: string | null;- },- DecodeFailure-> {- const decoded = decodeCheckContexts(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const pr = decoded.success.data.repository.pullRequest;- const contexts = pr.commits.nodes[0]?.commit.statusCheckRollup?.contexts;- return Result.succeed({+/** One page of the head commit's check contexts; null for a pull request GitHub did not find. */+export function toPullRequestCheckContextsPage(result: PullRequestCheckContexts.Result): {+ readonly headSha: string;+ readonly contexts: ReadonlyArray<GitHubCheckContext>;+ readonly nextCursor: string | null;+} | null {+ const pr = result.repository?.pullRequest;+ if (pr == null) return null;+ const contexts = nodesOf(pr.commits)[0]?.commit.statusCheckRollup?.contexts;+ return {headSha: pr.headRefOid,- contexts: toCheckContexts(contexts?.nodes ?? []),+ contexts: toCheckContexts(nodesOf(contexts)),nextCursor: nextCursorOf(contexts?.pageInfo),- });+ };}/** The checks and their one-word verdict, from every context of the head commit. */@@ -2702,17 +1429,13 @@ export function reviewThreadConversation();}-/** One page of review threads. Following the cursors it hands back is the caller's job. */+/** Dismissal reasons by the dismissed review's node id. */function toDismissalEntries(- nodes:- | ReadonlyArray<{- readonly dismissalMessage?: string | null | undefined;- readonly review?: { readonly id?: string | null | undefined } | null | undefined;- }>- | undefined,+ connection: ReviewThreadsPullRequest["reviewDismissals"],): Map<string, string> {const entries = new Map<string, string>();- for (const node of nodes ?? []) {+ for (const node of nodesOf(connection)) {+ if (!("dismissalMessage" in node)) continue;const reviewId = trimmed(node.review?.id);const message = trimmed(node.dismissalMessage);if (reviewId !== null && message !== null) entries.set(reviewId, message);@@ -2720,60 +1443,47 @@ function toDismissalEntries(return entries;}-const RawReviewDismissalsSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- pullRequest: Schema.Struct({- timelineItems: Schema.Struct({- pageInfo: Schema.optional(RawPageInfoSchema),- nodes: Schema.Array(- Schema.Struct({- dismissalMessage: Schema.optional(Schema.NullOr(Schema.String)),- review: Schema.optional(- Schema.NullOr(Schema.Struct({ id: Schema.optional(Schema.NullOr(Schema.String)) })),- ),- }),- ),- }),- }),- }),- }),-});--const decodeReviewDismissals = decodeJsonResult(RawReviewDismissalsSchema);-/** One further page of dismissal events, in the shape the thread read's own page carries. */-export function decodeReviewDismissalsJson(raw: string): Result.Result<- {- readonly dismissalsByReviewId: ReadonlyMap<string, string>;- readonly nextCursor: string | null;- },- DecodeFailure-> {- const decoded = decodeReviewDismissals(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const items = decoded.success.data.repository.pullRequest.timelineItems;- return Result.succeed({- dismissalsByReviewId: toDismissalEntries(items.nodes),+export function toReviewDismissalsPage(result: ReviewDismissals.Result): {+ readonly dismissalsByReviewId: ReadonlyMap<string, string>;+ readonly nextCursor: string | null;+} | null {+ const items = result.repository?.pullRequest?.timelineItems;+ if (items === undefined) return null;+ return {+ dismissalsByReviewId: toDismissalEntries(items),nextCursor: nextCursorOf(items.pageInfo),- });+ };}-export function decodeReviewThreadsJson(- raw: string,-): Result.Result<GitHubReviewThreadPage, DecodeFailure> {- const decoded = decodeReviewThreads(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const viewer = trimmed(decoded.success.data.viewer?.login);- const threads = decoded.success.data.repository.pullRequest.reviewThreads;- const entries = threads.nodes.flatMap((thread): ReadonlyArray<GitHubReviewThreadEntry> => {+function toThreadComment(comment: ThreadComment, viewer: string | null): PullRequestThreadComment {+ return {+ id: comment.id,+ author: toActor(comment.author),+ body: comment.body,+ createdAt: comment.createdAt,+ editedAt: comment.lastEditedAt,+ url: trimmed(comment.url),+ reactions: toReactions(comment.reactionGroups, viewer),+ };+}++type ReviewThreadsPullRequest = NonNullable<+ NonNullable<ReviewThreads.Result["repository"]>["pullRequest"]+>;++/** One page of review threads; null for a pull request the viewer cannot see. */+export function toReviewThreadPage(result: ReviewThreads.Result): GitHubReviewThreadPage | null {+ const pullRequest = result.repository?.pullRequest;+ if (pullRequest == null) return null;+ const viewer = trimmed(result.viewer.login);+ const threads = pullRequest.reviewThreads;+ const threadNodes = nodesOf(threads);+ const entries = threadNodes.flatMap((thread): ReadonlyArray<GitHubReviewThreadEntry> => {const path = trimmed(thread.path);const id = trimmed(thread.id);- if (path === null || id === null || thread.comments.nodes.length === 0) return [];+ const comments = nodesOf(thread.comments);+ if (path === null || id === null || comments.length === 0) return [];return [{thread: {@@ -2781,38 +1491,32 @@ export function decodeReviewThreadsJson(path,// Null once the thread's line has left the diff, which is exactly when GitHub reports// it outdated. Such a thread is listed rather than pinned to a line it no longer has.- line:- thread.line !== null && thread.line !== undefined && thread.line > 0- ? thread.line- : null,- side: thread.diffSide?.toUpperCase() === "LEFT" ? "left" : "right",- isResolved: thread.isResolved === true,- isOutdated: thread.isOutdated === true,- comments: thread.comments.nodes.map((comment) => ({- id: comment.id,- author: toActor(comment.author),- body: comment.body ?? "",- createdAt: comment.createdAt,- editedAt: comment.lastEditedAt ?? null,- url: trimmed(comment.url),- reactions: toReactions(comment.reactionGroups, viewer),- })),+ line: thread.line !== null && thread.line > 0 ? thread.line : null,+ side: thread.diffSide.toUpperCase() === "LEFT" ? "left" : "right",+ isResolved: thread.isResolved,+ isOutdated: thread.isOutdated,+ comments: comments.map((comment) => toThreadComment(comment, viewer)),},- commentCount: thread.comments.totalCount ?? thread.comments.nodes.length,+ commentCount: thread.comments.totalCount,nextCommentCursor: nextCursorOf(thread.comments.pageInfo),},];});- const pullRequest = decoded.success.data.repository.pullRequest;+ const requestedReviewers = nodesOf(pullRequest.reviewRequests).map(+ (node): ActorFields | null => node.requestedReviewer,+ );+ const latestReviews = nodesOf(pullRequest.latestReviews);+ const comments = nodesOf(pullRequest.comments);+ const reviews = nodesOf(pullRequest.reviews);const avatarsByLogin = new Map<string, string>();const botLogins = new Set<string>();for (const raw of [pullRequest.author,- ...(pullRequest.comments?.nodes ?? []).map((node) => node.author),- ...(pullRequest.reviews?.nodes ?? []).map((node) => node.author),- ...(pullRequest.reviewRequests?.nodes ?? []).map((node) => node.requestedReviewer),- ...(pullRequest.latestReviews?.nodes ?? []).map((node) => node.author),- ...threads.nodes.flatMap((thread) => thread.comments.nodes.map((comment) => comment.author)),+ ...comments.map((node) => node.author),+ ...reviews.map((node) => node.author),+ ...requestedReviewers,+ ...latestReviews.map((node) => node.author),+ ...threadNodes.flatMap((thread) => nodesOf(thread.comments).map((comment) => comment.author)),]) {const login = trimmed(raw?.login);const avatarUrl = trimmed(raw?.avatarUrl);@@ -2820,28 +1524,20 @@ export function decodeReviewThreadsJson(if (login !== null && toActor(raw)?.isBot) botLogins.add(login);}const reviewers = new Map<string, PullRequestActor>();- for (const raw of [- ...(pullRequest.reviewRequests?.nodes ?? []).map((node) => node.requestedReviewer),- ...(pullRequest.latestReviews?.nodes ?? []).map((node) => node.author),- ]) {+ for (const raw of [...requestedReviewers, ...latestReviews.map((node) => node.author)]) {const actor = toActor(raw) ?? toRequestedTeam(raw);// Keyed by login, so someone who was asked and then answered appears once.if (actor !== null && !reviewers.has(actor.login)) reviewers.set(actor.login, actor);}const commitStats = new Map<string, { readonly additions: number; readonly deletions: number }>();const commits: PullRequestCommit[] = [];- for (const node of pullRequest.commits?.nodes ?? []) {- const commit = node.commit;+ for (const { commit } of nodesOf(pullRequest.commits)) {const oid = trimmed(commit.oid);if (oid === null) continue;// GitHub measures a merge commit against its first parent, so merging the base into the head// reports every upstream change as if it belonged to the pull request. There is no useful// per-commit stat to show for that integration commit without another comparison request.- if (- (commit.parents?.totalCount ?? 1) <= 1 &&- commit.additions !== undefined &&- commit.deletions !== undefined- ) {+ if (commit.parents.totalCount <= 1) {commitStats.set(oid, {additions: Math.max(0, commit.additions),deletions: Math.max(0, commit.deletions),@@ -2851,20 +1547,14 @@ export function decodeReviewThreadsJson(if (committedDate === null) continue;commits.push({oid,- messageHeadline: commit.messageHeadline ?? "",+ messageHeadline: commit.messageHeadline,committedDate,- authors: (commit.authors?.nodes ?? []).flatMap((author) => {- const actor = toGraphqlCommitActor(author);- return actor === null ? [] : [actor];- }),+ authors: nodesOf(commit.authors).flatMap((author) => toGraphqlCommitActor(author) ?? []),});}const reactionsById = new Map<string, ReadonlyArray<PullRequestReaction>>();const editedAtById = new Map<string, string>();- for (const node of [- ...(pullRequest.comments?.nodes ?? []),- ...(pullRequest.reviews?.nodes ?? []),- ]) {+ for (const node of [...comments, ...reviews]) {const id = trimmed(node.id);if (id === null) continue;const editedAt = trimmed(node.lastEditedAt);@@ -2872,7 +1562,7 @@ export function decodeReviewThreadsJson(const reactions = toReactions(node.reactionGroups, viewer);if (reactions.length > 0) reactionsById.set(id, reactions);}- return Result.succeed({+ return {threads: entries,nextCursor: nextCursorOf(threads.pageInfo),reactions: toReactions(pullRequest.reactionGroups, viewer),@@ -2884,42 +1574,25 @@ export function decodeReviewThreadsJson(commitStats,commits,viewer: toPullRequestViewerFields(pullRequest),- dismissalsByReviewId: toDismissalEntries(pullRequest.reviewDismissals?.nodes),- nextDismissalCursor: nextCursorOf(pullRequest.reviewDismissals?.pageInfo),- });+ dismissalsByReviewId: toDismissalEntries(pullRequest.reviewDismissals),+ nextDismissalCursor: nextCursorOf(pullRequest.reviewDismissals.pageInfo),+ };}/** The rest of one thread's comments, in the shape the first page already delivered them. */-export function decodeReviewThreadCommentsJson(raw: string): Result.Result<- {- readonly belongsToPullRequest: boolean;- readonly comments: ReadonlyArray<PullRequestThreadComment>;- readonly nextCursor: string | null;- },- DecodeFailure-> {- const decoded = decodeReviewThreadComments(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const viewer = trimmed(decoded.success.data.viewer?.login);- const comments = decoded.success.data.node?.comments;- return Result.succeed({- belongsToPullRequest:- decoded.success.data.repository?.pullRequest?.id !== undefined &&- decoded.success.data.repository?.pullRequest?.id ===- decoded.success.data.node?.pullRequest?.id,- comments: (comments?.nodes ?? []).map((comment) => ({- id: comment.id,- author: toActor(comment.author),- body: comment.body ?? "",- createdAt: comment.createdAt,- editedAt: comment.lastEditedAt ?? null,- url: trimmed(comment.url),- reactions: toReactions(comment.reactionGroups, viewer),- })),- nextCursor: nextCursorOf(comments?.pageInfo),- });+export function toReviewThreadCommentsPage(result: ReviewThreadComments.Result): {+ readonly belongsToPullRequest: boolean;+ readonly comments: ReadonlyArray<PullRequestThreadComment>;+ readonly nextCursor: string | null;+} {+ const viewer = trimmed(result.viewer.login);+ const thread = result.node?.__typename === "PullRequestReviewThread" ? result.node : null;+ const pullRequestId = result.repository?.pullRequest?.id;+ return {+ belongsToPullRequest: pullRequestId !== undefined && pullRequestId === thread?.pullRequest.id,+ comments: nodesOf(thread?.comments).map((comment) => toThreadComment(comment, viewer)),+ nextCursor: nextCursorOf(thread?.comments.pageInfo),+ };}/** Repository settings returned alongside the pull request viewer permissions. */@@ -2977,57 +1650,6 @@ export interface GitHubBaseComparison {readonly viewerCanUpdate: boolean;}-export const REVIEWER_CANDIDATES_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!) {- repository(owner: $owner, name: $name) {- assignableUsers(first: ${GRAPHQL_PAGE_SIZE}) {- pageInfo { hasNextPage }- nodes { login name avatarUrl }- }- pullRequest(number: $number) {- author { login }- reviewRequests(first: ${GRAPHQL_PAGE_SIZE}) {- nodes {- requestedReviewer {- ... on User { login name avatarUrl }- ... on Team { slug combinedSlug name avatarUrl }- ... on Bot { login avatarUrl }- }- }- }- }- }-}`;--const RawReviewerCandidatesSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- assignableUsers: Schema.Struct({- pageInfo: Schema.optional(RawPageInfoSchema),- nodes: Schema.Array(Schema.NullOr(RawActorSchema)),- }),- /** Null for a number that names no pull request the viewer can see. */- pullRequest: Schema.NullOr(- Schema.Struct({- author: Schema.optional(Schema.NullOr(RawActorSchema)),- reviewRequests: Schema.optional(- Schema.NullOr(- Schema.Struct({- nodes: Schema.Array(- Schema.Struct({- requestedReviewer: Schema.optional(Schema.NullOr(RawRequestedReviewerSchema)),- }),- ),- }),- ),- ),- }),- ),- }),- }),-});--const decodeReviewerCandidates = decodeJsonResult(RawReviewerCandidatesSchema);-/*** The people this pull request may be sent to, with whoever is already on it marked. The author is* dropped rather than shown as an unusable row: GitHub refuses a review request from the person@@ -3035,49 +1657,49 @@ const decodeReviewerCandidates = decodeJsonResult(RawReviewerCandidatesSchema);** Whoever has been asked leads the list even where GitHub does not count them assignable — an* outside collaborator, an app — because a request that cannot be seen cannot be taken back.+ * Null for a repository the viewer cannot see.*/-export function decodeReviewerCandidatesJson(- raw: string,-): Result.Result<PullRequestReviewerCandidateList, DecodeFailure> {- const decoded = decodeReviewerCandidates(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const repository = decoded.success.data.repository;+export function toReviewerCandidates(+ result: ReviewerCandidates.Result,+): PullRequestReviewerCandidateList | null {+ const repository = result.repository;+ if (repository == null) return null;const pullRequest = repository.pullRequest;const author = trimmed(pullRequest?.author?.login);const candidates = new Map<string, PullRequestReviewerCandidate>();- for (const node of pullRequest?.reviewRequests?.nodes ?? []) {- const raw = node.requestedReviewer;- const slug = trimmed(raw?.slug);- const id = slug ?? trimmed(raw?.login);+ for (const { requestedReviewer: raw } of nodesOf(pullRequest?.reviewRequests)) {+ if (raw === null) continue;+ const slug = "slug" in raw ? trimmed(raw.slug) : null;+ const id = slug ?? ("login" in raw ? trimmed(raw.login) : null);if (id === null) continue;candidates.set(`${slug === null ? "user" : "team"} ${id}`, {id,kind: slug === null ? "user" : "team",// The same `org/slug` the reviewer row shows, so taking the request back finds that row.- login: slug === null ? id : (trimmed(raw?.combinedSlug) ?? id),- name: trimmed(raw?.name),- avatarUrl: trimmed(raw?.avatarUrl),+ login: slug === null ? id : (trimmed("combinedSlug" in raw ? raw.combinedSlug : null) ?? id),+ name: trimmed("teamName" in raw ? raw.teamName : "name" in raw ? raw.name : null),+ avatarUrl: trimmed(+ "teamAvatarUrl" in raw ? raw.teamAvatarUrl : "avatarUrl" in raw ? raw.avatarUrl : null,+ ),isRequested: true,});}- for (const node of repository.assignableUsers.nodes) {- const login = trimmed(node?.login);+ for (const node of nodesOf(repository.assignableUsers)) {+ const login = trimmed(node.login);if (login === null || login === author || candidates.has(`user ${login}`)) continue;candidates.set(`user ${login}`, {id: login,kind: "user",login,- name: trimmed(node?.name),- avatarUrl: trimmed(node?.avatarUrl),+ name: trimmed(node.name),+ avatarUrl: trimmed(node.avatarUrl),isRequested: false,});}- return Result.succeed({+ return {candidates: [...candidates.values()],- truncated: repository.assignableUsers.pageInfo?.hasNextPage === true,- });+ truncated: repository.assignableUsers.pageInfo.hasNextPage,+ };}/**@@ -3101,88 +1723,39 @@ export function buildReviewerRequest(};}-export const LABEL_CANDIDATES_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!) {- repository(owner: $owner, name: $name) {- labels(first: ${GRAPHQL_PAGE_SIZE}, orderBy: { field: NAME, direction: ASC }) {- pageInfo { hasNextPage }- nodes { name color description }- }- pullRequest(number: $number) {- labels(first: ${GRAPHQL_PAGE_SIZE}) { nodes { name } }- }- }-}`;--const RawLabelCandidatesSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- labels: Schema.optional(- Schema.NullOr(- Schema.Struct({- pageInfo: Schema.optional(RawPageInfoSchema),- nodes: Schema.Array(- Schema.NullOr(- Schema.Struct({- ...RawLabelSchema.fields,- description: Schema.optional(Schema.NullOr(Schema.String)),- }),- ),- ),- }),- ),- ),- /** Null for a number that names no pull request the viewer can see. */- pullRequest: Schema.NullOr(- Schema.Struct({- labels: Schema.optional(- Schema.NullOr(Schema.Struct({ nodes: Schema.Array(Schema.NullOr(RawLabelSchema)) })),- ),- }),- ),- }),- }),-});--const decodeLabelCandidates = decodeJsonResult(RawLabelCandidatesSchema);-/*** The repository's labels, with the ones already on this pull request marked. A label the pull* request wears that the repository no longer defines — deleted since, or past the page — leads- * the list anyway, because a label that cannot be seen cannot be taken off.+ * the list anyway, because a label that cannot be seen cannot be taken off. Null for a repository+ * the viewer cannot see.*/-export function decodeLabelCandidatesJson(- raw: string,-): Result.Result<PullRequestLabelCandidateList, DecodeFailure> {- const decoded = decodeLabelCandidates(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const repository = decoded.success.data.repository;+export function toLabelCandidates(+ result: LabelCandidates.Result,+): PullRequestLabelCandidateList | null {+ const repository = result.repository;+ if (repository == null) return null;const applied = new Set(- (repository.pullRequest?.labels?.nodes ?? []).flatMap((label) => {- const name = trimmed(label?.name);- return name === null ? [] : [name];- }),+ nodesOf(repository.pullRequest?.labels).flatMap((label) => trimmed(label.name) ?? []),);const candidates = new Map<string, PullRequestLabelCandidate>();- for (const node of repository.labels?.nodes ?? []) {- const name = trimmed(node?.name);+ for (const node of nodesOf(repository.labels)) {+ const name = trimmed(node.name);if (name === null) continue;candidates.set(name, {name,- color: trimmed(node?.color),- description: trimmed(node?.description),+ color: trimmed(node.color),+ description: trimmed(node.description),isApplied: applied.has(name),});}const missing = [...applied].filter((name) => !candidates.has(name));- return Result.succeed({+ return {candidates: [...missing.map((name) => ({ name, color: null, description: null, isApplied: true })),...candidates.values(),],- truncated: repository.labels?.pageInfo?.hasNextPage === true,- });+ truncated: repository.labels?.pageInfo.hasNextPage === true,+ };}/** The body of `POST /repos/{owner}/{repo}/issues/{number}/labels`, which adds to what is there. */@@ -3216,40 +1789,13 @@ export interface GitHubViewerAccess {readonly canUpdateBranch?: boolean;}-/** Core detail and write checks share one read of permissions and merge settings. */-export const VIEWER_PERMISSIONS_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!) {- repository(owner: $owner, name: $name) {- mergeCommitAllowed squashMergeAllowed rebaseMergeAllowed viewerPermission- pullRequest(number: $number) {- viewerCanUpdate viewerDidAuthor- headRepository { viewerPermission }- }- }-}`;--const RawViewerPermissionsSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.Struct({- ...RawRepositoryAccessSchema.fields,- /** Null for a number that names no pull request the viewer can see. */- pullRequest: Schema.NullOr(- Schema.Struct({ ...RawViewerFieldsSchema.fields, ...RawHeadBranchAccessSchema.fields }),- ),- }),- }),-});--const decodeViewerPermissions = decodeJsonResult(RawViewerPermissionsSchema);--export function decodeViewerPermissionsJson(- raw: string,-): Result.Result<GitHubViewerAccess & GitHubRepositoryAccess, DecodeFailure> {- const decoded = decodeViewerPermissions(raw);- if (!Result.isSuccess(decoded)) {- return Result.fail(decoded.failure);- }- const repository = decoded.success.data.repository;- return Result.succeed({+/** Null for a repository the viewer cannot see. */+export function toViewerPermissions(+ result: ViewerPermissions.Result,+): (GitHubViewerAccess & GitHubRepositoryAccess) | null {+ const repository = result.repository;+ if (repository == null) return null;+ return {mergeCapabilities: {merge: repository.mergeCommitAllowed,squash: repository.squashMergeAllowed,@@ -3259,7 +1805,7 @@ export function decodeViewerPermissionsJson(canDeleteBranch: toCanWrite(repository.pullRequest?.headRepository?.viewerPermission),canTriage: toCanTriage(repository.viewerPermission),...toPullRequestViewerFields(repository.pullRequest),- });+ };}export interface GitHubPullRequestFilesPatch {@@ -3346,55 +1892,6 @@ function toFilesPatch(entries: ReadonlyArray<unknown>): GitHubPullRequestFilesPa};}-/**- * Which files of a pull request the signed-in account has cleared. GraphQL only, since the REST- * files endpoint the patch is read from carries no viewed state, so this is a second read rather- * than a wider version of the first.- */-export const PULL_REQUEST_FILES_VIEWED_GRAPHQL_QUERY = `query($owner: String!, $name: String!, $number: Int!, $after: String) {- repository(owner: $owner, name: $name) {- pullRequest(number: $number) {- files(first: 100, after: $after) {- pageInfo { hasNextPage endCursor }- nodes { path viewerViewedState }- }- }- }-}`;--const RawPullRequestFilesViewedSchema = Schema.Struct({- data: Schema.Struct({- repository: Schema.NullOr(- Schema.Struct({- pullRequest: Schema.NullOr(- Schema.Struct({- files: Schema.Struct({- pageInfo: Schema.Struct({- hasNextPage: Schema.Boolean,- endCursor: Schema.NullOr(Schema.String),- }),- nodes: Schema.NullOr(- Schema.Array(- Schema.NullOr(- Schema.Struct({- path: Schema.String,- // Decoded as a plain string and narrowed below: a GitHub release that adds- // a fourth state must not fail the whole page.- viewerViewedState: Schema.String,- }),- ),- ),- ),- }),- }),- ),- }),- ),- }),-});--const decodePullRequestFilesViewed = decodeJsonResult(RawPullRequestFilesViewedSchema);-export interface GitHubPullRequestFilesViewedPage {readonly files: ReadonlyArray<{readonly path: string;@@ -3416,42 +1913,19 @@ function toFileViewedState(raw: string): PullRequestFileViewedState {}}-export function decodePullRequestFilesViewedJson(- raw: string,-): Result.Result<GitHubPullRequestFilesViewedPage, DecodeFailure> {- const decoded = decodePullRequestFilesViewed(raw);- if (!Result.isSuccess(decoded)) return Result.fail(decoded.failure);- const files = decoded.success.data.repository?.pullRequest?.files;- if (files === undefined) return Result.succeed({ files: [], nextCursor: null });- return Result.succeed({- files: (files.nodes ?? []).flatMap((node) =>- node === null || node.path.length === 0+/** One page of viewed state; empty for a pull request the host has nothing to say about. */+export function toPullRequestFilesViewedPage(+ result: PullRequestFilesViewed.Result,+): GitHubPullRequestFilesViewedPage {+ const files = result.repository?.pullRequest?.files;+ return {+ files: nodesOf(files).flatMap((node) =>+ node.path.length === 0? []: [{ path: node.path, state: toFileViewedState(node.viewerViewedState) }],),- nextCursor: files.pageInfo.hasNextPage ? files.pageInfo.endCursor : null,- });-}--/**- * One document that clears and restores as many files as the reader ticked, rather than one- * request each. GitHub has no bulk form of `markFileAsViewed`/`unmarkFileAsViewed`, which each- * take a single path, so the batching is done with aliases; top-level mutation fields run in- * write order, so the last word about a path is the one that sticks.- */-export function buildSetFilesViewedGraphQlMutation(- pullRequestId: string,- files: ReadonlyArray<{ readonly path: string; readonly viewed: boolean }>,-): GraphQlDocument | null {- return aliasedGraphQlDocument({- operation: "mutation",- alias: "f",- items: files,- shared: { pullRequestId: ["ID!", pullRequestId] },- variables: (file) => ({ path: ["String!", file.path] }),- field: ({ path }, file) =>- `${file.viewed ? "markFileAsViewed" : "unmarkFileAsViewed"}(input: { pullRequestId: $pullRequestId, path: ${path} }) { clientMutationId }`,- });+ nextCursor: nextCursorOf(files?.pageInfo),+ };}/** One pull request as the stacks API lists it: a number, a head, and whether it is done. */diff --git a/packages/source-control-github/src/server/gitHubPullRequests.ts b/packages/source-control-github/src/server/gitHubPullRequests.tsindex 6c89bee35fa..24a4c069cf3 100644--- a/packages/source-control-github/src/server/gitHubPullRequests.ts+++ b/packages/source-control-github/src/server/gitHubPullRequests.ts@@ -80,7 +80,8 @@ function normalizeGitHubPullRequestState(input: {return "open";}-function normalizeGitHubPullRequestRecord(+/** A pull request row, in `gh --json` or GraphQL node shape, as every read reports it. */+export function normalizeGitHubPullRequestRecord(raw: Schema.Schema.Type<typeof GitHubPullRequestSchema>,): NormalizedGitHubPullRequestRecord {const explicitNameWithOwner = trimOptionalString(raw.headRepository?.nameWithOwner);@@ -122,7 +123,7 @@ const decodeGitHubPullRequestEntry = Schema.decodeUnknownExit(GitHubPullRequestS* Pull request rows in `gh --json` or GraphQL node shape. A row that does not decode is* skipped, so one malformed pull request cannot hide the rest.*/-export function decodeGitHubPullRequestEntries(+function decodeGitHubPullRequestEntries(entries: ReadonlyArray<unknown>,): ReadonlyArray<NormalizedGitHubPullRequestRecord> {const pullRequests: NormalizedGitHubPullRequestRecord[] = [];diff --git a/packages/source-control-github/src/server/githubGraphQl.test.ts b/packages/source-control-github/src/server/githubGraphQl.test.tsdeleted file mode 100644index 9ab8f935449..00000000000--- a/packages/source-control-github/src/server/githubGraphQl.test.ts+++ /dev/null@@ -1,105 +0,0 @@-import { assert, describe, expect, it } from "@effect/vitest";-import * as Effect from "effect/Effect";--import { aliasedGraphQlDocument, readGraphQlPages } from "./githubGraphQl.ts";--describe("aliasedGraphQlDocument", () => {- it("keeps every value out of the document, each under its alias's own variable", () => {- const document = aliasedGraphQlDocument({- operation: "query",- name: "Lookups",- alias: "s",- items: ['acme") { x } #', "web"],- shared: { owner: ["String!", "acme"] },- variables: (repo) => ({ name: ["String!", repo] }),- field: ({ name }) => `repository(owner: $owner, name: ${name}) { id }`,- });- assert.isNotNull(document);- expect(document!.query).toBe(- "query Lookups($owner: String!, $s0_name: String!, $s1_name: String!) {\n" +- " s0: repository(owner: $owner, name: $s0_name) { id }\n" +- " s1: repository(owner: $owner, name: $s1_name) { id }\n}",- );- expect(document!.variables).toEqual({- owner: "acme",- s0_name: 'acme") { x } #',- s1_name: "web",- });- });-- it("aliases by key and nests inside a shared parent when asked", () => {- const document = aliasedGraphQlDocument({- operation: "query",- alias: "pr",- key: (number) => number,- items: [2, 3],- variables: (number) => ({ number: ["Int!", number] }),- field: ({ number }) => `pullRequest(number: ${number}) { id }`,- within: (fields) => `repository(owner: "a", name: "b") {\n${fields}\n}`,- });- expect(document?.query).toContain(" pr2: pullRequest(number: $pr2_number) { id }");- expect(document?.query).toContain(" pr3: pullRequest(number: $pr3_number) { id }");- expect(document?.variables).toEqual({ pr2_number: 2, pr3_number: 3 });- });-- it("asks for nothing when there is nothing to ask", () => {- expect(- aliasedGraphQlDocument({- operation: "mutation",- alias: "f",- items: [],- variables: () => ({}),- field: () => "x",- }),- ).toBeNull();- });-});--describe("readGraphQlPages", () => {- const pages = (cursors: ReadonlyArray<string | null>) => {- const asked: Array<string | null> = [];- const read = (after: string | null) =>- Effect.sync(() => {- asked.push(after);- return { next: cursors[asked.length - 1] ?? null };- });- return { asked, read };- };-- it.effect("follows the cursor until GitHub has no more", () =>- Effect.gen(function* () {- const { asked, read } = pages(["a", "b", null]);- const result = yield* readGraphQlPages(read, { nextCursor: (page) => page.next });- expect(asked).toEqual([null, "a", "b"]);- expect(result.truncated).toBe(false);- }),- );-- it.effect("stops as truncated at the page limit, at `until`, or on a repeated cursor", () =>- Effect.gen(function* () {- const limited = pages(["a", "b", "c"]);- const atLimit = yield* readGraphQlPages(limited.read, {- nextCursor: (page) => page.next,- maxPages: 2,- });- expect(limited.asked).toEqual([null, "a"]);- expect(atLimit.truncated).toBe(true);-- const enough = pages(["a", "b", "c"]);- const satisfied = yield* readGraphQlPages(enough.read, {- nextCursor: (page) => page.next,- until: (read) => read.length === 1,- });- expect(enough.asked).toEqual([null]);- expect(satisfied.truncated).toBe(true);-- const stuck = pages(["a", "a", "a"]);- const repeated = yield* readGraphQlPages(stuck.read, {- nextCursor: (page) => page.next,- from: "start",- });- expect(stuck.asked).toEqual(["start", "a"]);- expect(repeated.truncated).toBe(true);- }),- );-});diff --git a/packages/source-control-github/src/server/githubGraphQl.ts b/packages/source-control-github/src/server/githubGraphQl.tsdeleted file mode 100644index 0b1e3ca6584..00000000000--- a/packages/source-control-github/src/server/githubGraphQl.ts+++ /dev/null@@ -1,100 +0,0 @@-import * as Effect from "effect/Effect";--/** GraphQL variables by name, each with the type it is declared as and the value it carries. */-export type GraphQlVariables = Readonly<Record<string, readonly [type: string, value: unknown]>>;--export interface GraphQlDocument {- readonly query: string;- readonly variables: Readonly<Record<string, unknown>>;-}--/**- * One document asking the same field for many items, each under its own alias: the prefix and- * the item's position (`s0`, `s1`, …), or its `key` when the answer is easier read by one. GitHub- * has no bulk form of most lookups, so aliases are how a batch travels in one request.- *- * Every value travels as a variable renamed per alias (`$s0_owner`), and `field` is handed those- * placeholders rather than the values: nothing an item holds is written into the document.- * `shared` variables are declared once and referenced by their own name; `within` nests the aliased- * fields inside one parent selection, such as a single repository.- *- * Null for no items, since a document with no selection is not a document.- */-export function aliasedGraphQlDocument<Item, Variables extends GraphQlVariables>(input: {- readonly operation: "query" | "mutation";- /** The operation's name, which tells one batch from another in logs and recorded traffic. */- readonly name?: string;- readonly alias: string;- readonly key?: (item: Item, index: number) => number;- readonly items: ReadonlyArray<Item>;- readonly variables: (item: Item) => Variables;- readonly field: (- placeholders: { readonly [Name in keyof Variables]: string },- item: Item,- ) => string;- readonly shared?: GraphQlVariables;- readonly within?: (fields: string) => string;-}): GraphQlDocument | null {- if (input.items.length === 0) return null;- const declarations: string[] = [];- const variables: Record<string, unknown> = {};- for (const [name, [type, value]] of Object.entries(input.shared ?? {})) {- declarations.push(`$${name}: ${type}`);- variables[name] = value;- }- const fields = input.items.map((item, index) => {- const alias = `${input.alias}${input.key?.(item, index) ?? index}`;- const placeholders: Record<string, string> = {};- for (const [name, [type, value]] of Object.entries(input.variables(item))) {- const variable = `${alias}_${name}`;- declarations.push(`$${variable}: ${type}`);- variables[variable] = value;- placeholders[name] = `$${variable}`;- }- return ` ${alias}: ${input.field(placeholders as { readonly [Name in keyof Variables]: string }, item)}`;- });- const selection = fields.join("\n");- const parameters = declarations.length === 0 ? "" : `(${declarations.join(", ")})`;- return {- query: `${input.operation}${input.name === undefined ? "" : ` ${input.name}`}${parameters} {\n${input.within?.(selection) ?? selection}\n}`,- variables,- };-}--/**- * The pages of a GraphQL connection, read one after another from `from` (the first page by- * default) until GitHub has no more, `until` is satisfied, or `maxPages` have been read. `read` is- * handed the pages so far, for reads that size or check the next page by what has already arrived.- *- * `truncated` says pages remained when reading stopped. A cursor GitHub hands back a second time- * would page forever, so it stops the read as truncated too.- */-export const readGraphQlPages = <Page, E, R>(- read: (after: string | null, pages: ReadonlyArray<Page>) => Effect.Effect<Page, E, R>,- options: {- readonly nextCursor: (page: NoInfer<Page>) => string | null;- readonly from?: string | null;- readonly maxPages?: number;- readonly until?: (pages: ReadonlyArray<NoInfer<Page>>) => boolean;- },-): Effect.Effect<{ readonly pages: ReadonlyArray<Page>; readonly truncated: boolean }, E, R> =>- Effect.gen(function* () {- const pages: Page[] = [];- const seen = new Set<string>();- let after = options.from ?? null;- while (true) {- const page: Page = yield* read(after, pages);- pages.push(page);- const next = options.nextCursor(page);- if (next === null) return { pages, truncated: false };- if (- seen.has(next) ||- pages.length >= (options.maxPages ?? Infinity) ||- options.until?.(pages) === true- ) {- return { pages, truncated: true };- }- seen.add(next);- after = next;- }- });diff --git a/packages/source-control-github/src/server/githubStackActions.test.ts b/packages/source-control-github/src/server/githubStackActions.test.tsindex 8fb72f81275..5ed6e8c7cf2 100644--- a/packages/source-control-github/src/server/githubStackActions.test.ts+++ b/packages/source-control-github/src/server/githubStackActions.test.ts@@ -6,20 +6,24 @@ import * as Schema from "effect/Schema";import * as TestClock from "effect/testing/TestClock";import * as FileSystem from "effect/FileSystem";import * as Redacted from "effect/Redacted";+import { HttpClient, HttpClientResponse } from "effect/http";import { ChildProcessSpawner } from "effect/process";-import * as GitHubApi from "./GitHubApi.ts";+import * as SourceControlRateLimit from "@t3tools/source-control-core/server/SourceControlRateLimit";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubCredentials from "./GitHubCredentials.ts";+import * as GitHubQuota from "./GitHubQuota.ts";+import * as GitHubRequestPolicy from "./GitHubRequestPolicy.ts";import * as TestSourceControlHost from "@t3tools/source-control-testing/TestSourceControlHost";import { runGitHubStackAction as runStackAction } from "./githubStackActions.ts";/*** One request as the fake saw it, flattened to words: the path or document, then each variable* or body field as `name=value`, so an assertion reads as "this request carried that value".+ * A batched GraphQL request is one call, its variables carrying their alias prefixes.*/type Call = ReadonlyArray<string>;-type Send = (- call: Call,- kind: "graphql" | "rest",-) => Effect.Effect<string, GitHubApi.GitHubApiError>;+/** The next answer in the script: a REST body, or for GraphQL the `data` to answer with. */+type Send = (call: Call, kind: "graphql" | "rest") => Effect.Effect<unknown>;/** Every git command the cascade ran, in order; none actually runs. */let gitCalls: Array<ReadonlyArray<string>> = [];@@ -44,35 +48,62 @@ const fakeGit = Layer.mergeAll(FileSystem.layerNoop({ makeTempDirectoryScoped: () => Effect.succeed("/tmp/scratch") }),);+/** GitHub's GraphQL endpoint, answering each request with the next scripted `data`. */+const graphQlHttp = (send: Send) =>+ HttpClient.make((request) =>+ Effect.gen(function* () {+ const sent =+ request.body._tag === "Uint8Array"+ ? (JSON.parse(new TextDecoder().decode(request.body.body)) as {+ readonly query: string;+ readonly variables: Readonly<Record<string, unknown>>;+ })+ : { query: "", variables: {} };+ const data = yield* send(words(sent.query, sent.variables), "graphql");+ return HttpClientResponse.fromWeb(+ request,+ new Response(encodeJson({ data }), { headers: { "content-type": "application/json" } }),+ );+ }),+ );+const runGitHubStackAction = (send: Send, input: Parameters<typeof runStackAction>[0]) =>runStackAction(input).pipe(Effect.provide(Layer.mergeAll(fakeGit,- Layer.mock(GitHubApi.GitHubApi)({+ Layer.mock(GitHubRest.GitHubRest)({credential: () => Effect.succeed({ token: Redacted.make("token"), fingerprint: "fp" }),- graphql: (request) => {- // GitHub refuses a document that declares a variable it never uses.- const declared = [...request.query.matchAll(/\$(\w+)\s*:/g)].map((match) => match[1]!);- const unused = declared.filter(- (name) => !new RegExp(`\\$${name}(?!\\w)(?!\\s*:)`).test(request.query),- );- if (unused.length > 0) {- return Effect.die(new Error(`Variables declared but not used: ${unused.join(", ")}`));- }- return send(words(request.query, request.variables), "graphql");- },rest: (request) =>send(words(request.path, request.body), "rest").pipe(Effect.map((body) => ({status: 200,headers: {},- body,+ body: encodeJson(body),truncated: false,invalidUtf8: false,})),),}),+ GitHubRequestPolicy.layer.pipe(+ Layer.provide(+ Layer.mergeAll(+ Layer.succeed(GitHubCredentials.GitHubCredentials, {+ get: (host) =>+ Effect.succeed({+ host,+ token: Redacted.make("token"),+ source: "gh" as const,+ fingerprint: "fp",+ }),+ invalidate: () => Effect.void,+ }),+ GitHubQuota.layer,+ SourceControlRateLimit.layer,+ ),+ ),+ ),+ Layer.succeed(HttpClient.HttpClient, graphQlHttp(send)),),),);@@ -126,14 +157,13 @@ const input = {],action: "merge" as const,};-const access = {- data: {- repository: {- pr2: { headRepository: { viewerPermission: "WRITE" }, maintainerCanModify: false },- pr3: { headRepository: { viewerPermission: "WRITE" }, maintainerCanModify: false },- },- },-};+const writable = { headRepository: { viewerPermission: "WRITE" }, maintainerCanModify: false };+/** One batched branch-access answer: each open layer's pull request, in stack order. */+const accessOf = (...pullRequests: ReadonlyArray<unknown>) =>+ Object.fromEntries(+ pullRequests.map((pullRequest, index) => [`_${index}_repository`, { pullRequest }]),+ );+const access = accessOf(writable, writable);const branch = (number: number, headRefOid: string, behindBy = 1, processed: string[] = []) => ({data: {@@ -155,7 +185,7 @@ function fake(responses: readonly unknown[]) {calls.push(call);const value = responses[calls.length - 1];if (value === undefined) throw new Error("Unexpected GitHub request");- return encodeJson(value);+ return value;});return { execute, calls };}@@ -285,14 +315,10 @@ it.effect("refuses the entire rebase before mutation when a later fork denies wrEffect.gen(function* () {const api = fake([stack,- {- data: {- repository: {- ...access.data.repository,- pr3: { headRepository: { viewerPermission: "READ" }, maintainerCanModify: false },- },- },- },+ accessOf(writable, {+ headRepository: { viewerPermission: "READ" },+ maintainerCanModify: false,+ }),]);const result = yield* runGitHubStackAction(api.execute, {...input,@@ -310,14 +336,10 @@ it.effect("allows a fork that explicitly permits maintainer updates", () =>Effect.gen(function* () {const api = fake([stack,- {- data: {- repository: {- ...access.data.repository,- pr3: { headRepository: { viewerPermission: "READ" }, maintainerCanModify: true },- },- },- },+ accessOf(writable, {+ headRepository: { viewerPermission: "READ" },+ maintainerCanModify: true,+ }),...rebaseResponses,]);yield* runGitHubStackAction(api.execute, { ...input, action: "update-branch" });@@ -330,14 +352,10 @@ it.effect("rebases for a GitHub App, which GitHub gives no permission to read",gitCalls = [];const api = fake([stack,- {- data: {- repository: {- pr2: { headRepository: { viewerPermission: null }, maintainerCanModify: false },- pr3: { headRepository: { viewerPermission: null }, maintainerCanModify: false },- },- },- },+ accessOf(+ { headRepository: { viewerPermission: null }, maintainerCanModify: false },+ { headRepository: { viewerPermission: null }, maintainerCanModify: false },+ ),...rebaseResponses,]);yield* runGitHubStackAction(api.execute, { ...input, action: "update-branch" });@@ -369,6 +387,10 @@ it.effect("rebases the open layers bottom to top in a scratch clone, each onto tgitCalls = [];const api = fake([stack, access]);yield* runGitHubStackAction(api.execute, { ...input, action: "update-branch" });+ // Both layers' access is one aliased read, layer by layer in stack order.+ expect(api.calls[1]).toEqual(+ expect.arrayContaining(["_0_number=2", "_1_number=3", "_0_owner=acme", "_0_name=web"]),+ );// GitHub is only read; every change is a git push with a lease on the reviewed head.expect(api.calls.some(isMutation)).toBe(false);const rebases = gitCalls.filter((args) => args[0] === "rebase");@@ -400,14 +422,10 @@ it.effect("checks every layer's write access before any git runs", () =>gitCalls = [];const api = fake([stack,- {- data: {- repository: {- ...access.data.repository,- pr3: { headRepository: { viewerPermission: "READ" }, maintainerCanModify: false },- },- },- },+ accessOf(writable, {+ headRepository: { viewerPermission: "READ" },+ maintainerCanModify: false,+ }),]);yield* Effect.flip(runGitHubStackAction(api.execute, { ...input, action: "update-branch" }));expect(gitCalls).toEqual([]);diff --git a/packages/source-control-github/src/server/githubStackActions.ts b/packages/source-control-github/src/server/githubStackActions.tsindex 428319909e9..7acb6b5ada7 100644--- a/packages/source-control-github/src/server/githubStackActions.ts+++ b/packages/source-control-github/src/server/githubStackActions.ts@@ -5,13 +5,16 @@ import type {} from "@t3tools/contracts";import * as Effect from "effect/Effect";import * as Clock from "effect/Clock";+import { GraphQLClient, GraphQLClientError, GraphQLResolver } from "effect/graphql";+import * as RequestResolver from "effect/RequestResolver";import * as Result from "effect/Result";import * as Schema from "effect/Schema";-import * as GitHubApi from "./GitHubApi.ts";-import { aliasedGraphQlDocument } from "./githubGraphQl.ts";+import * as GitHubRest from "./GitHubRest.ts";+import * as GitHubGraphQlClient from "./gitHubGraphQlClient.ts";import { decodePullRequestStacksJson, toCanWrite } from "./gitHubPullRequestJson.ts";import { cascadeRebaseStack } from "./githubStackRebase.ts";+import { StackActionsGraphQLGroup } from "./stackActions.graphql.ts";const stackErrorIdentity = {repository: Schema.String,@@ -104,28 +107,6 @@ const MergeResponse = Schema.Struct({}),});-const decodeBranchAccess = Schema.decodeEffect(- Schema.fromJsonString(- Schema.Struct({- data: Schema.Struct({- repository: Schema.NullOr(- Schema.Record(- Schema.String,- Schema.NullOr(- Schema.Struct({- headRepository: Schema.NullOr(- Schema.Struct({ viewerPermission: Schema.NullOr(Schema.String) }),- ),- maintainerCanModify: Schema.Boolean,- }),- ),- ),- ),- }),- }),- ),-);-const decodeMergeResponse = Schema.decodeEffect(Schema.fromJsonString(MergeResponse));/** Remote-only updates: a stack rebase works in a scratch clone, never the environment's checkout. */@@ -139,7 +120,7 @@ export const runGitHubStackAction = Effect.fn("runGitHubStackAction")(function*action: PullRequestAction;mergeMethod?: PullRequestMergeMethod;}) {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const identity = {repository: input.repository,number: input.number,@@ -189,31 +170,34 @@ export const runGitHubStackAction = Effect.fn("runGitHubStackAction")(function*return yield* new GitHubStackUnsupportedError({ ...identity });if (input.action === "update-branch") {const [owner, name] = input.repository.split("/");- const permissions = yield* api.graphql({- host: input.host,- operation: "runGitHubStackAction",- allowReserve: true,- // `open` is non-empty here, so there is always a document.- ...aliasedGraphQlDocument({- operation: "query",- alias: "pr",- key: (layer) => layer.number,- items: open,- shared: { owner: ["String!", owner], name: ["String!", name] },- variables: (layer) => ({ number: ["Int!", layer.number] }),- field: ({ number }) =>- `pullRequest(number: ${number}) { headRepository { viewerPermission } maintainerCanModify }`,- within: (fields) => `repository(owner: $owner, name: $name) {\n${fields}\n}`,- })!,- });- const access = yield* decodeBranchAccess(permissions).pipe(- Effect.mapError((cause) => new GitHubStackResponseInvalidError({ ...identity, cause })),+ const client = yield* GraphQLClient.make(+ StackActionsGraphQLGroup.middleware(GitHubGraphQlClient.GitHubGraphQlAuth),+ ).pipe(Effect.provide(GitHubGraphQlClient.layer));+ // One aliased request checks every layer; `open` is non-empty here.+ const resolver = GraphQLResolver.aliased(client.PullRequestBranchAccess, {+ batchKey: GitHubGraphQlClient.batchKey,+ }).pipe(RequestResolver.batchN(open.length));+ const access = yield* Effect.forEach(+ open,+ (layer) =>+ GraphQLResolver.request({ owner: owner!, name: name!, number: layer.number }, resolver),+ { concurrency: "unbounded" },+ ).pipe(+ GitHubGraphQlClient.call({+ host: input.host,+ operation: "runGitHubStackAction",+ allowReserve: true,+ }),+ Effect.catchIf(+ GraphQLClientError.isGraphQLClientError,+ (cause) => new GitHubStackResponseInvalidError({ ...identity, cause }),+ ),);// viewerCanUpdateBranch is false for an already-current layer, even if rebasing its parent// will make it stale. Check branch write access separately before touching any layer.if (- open.some((layer) => {- const pr = access.data.repository?.[`pr${layer.number}`];+ access.some(({ repository }) => {+ const pr = repository?.pullRequest;return (!pr?.headRepository ||(!pr.maintainerCanModify && !toCanWrite(pr.headRepository.viewerPermission))diff --git a/packages/source-control-github/src/server/githubStackRebase.ts b/packages/source-control-github/src/server/githubStackRebase.tsindex a1dffa05d97..d8e6a4c97e8 100644--- a/packages/source-control-github/src/server/githubStackRebase.ts+++ b/packages/source-control-github/src/server/githubStackRebase.ts@@ -4,7 +4,7 @@ import * as Redacted from "effect/Redacted";import * as Schema from "effect/Schema";import * as Base64 from "effect/encoding/Base64";-import * as GitHubApi from "./GitHubApi.ts";+import * as GitHubRest from "./GitHubRest.ts";import * as SourceControlHost from "@t3tools/source-control-core/server/SourceControlHost";/** One open layer of a stack, bottom to top, with the head the reader reviewed. */@@ -57,7 +57,7 @@ export const cascadeRebaseStack = Effect.fn("cascadeRebaseStack")(function* (inp/** Where to fetch and push; the repository's own URL on its host unless a test points elsewhere. */readonly remote?: string;}) {- const api = yield* GitHubApi.GitHubApi;+ const api = yield* GitHubRest.GitHubRest;const { process } = yield* SourceControlHost.SourceControlHost;const fileSystem = yield* FileSystem.FileSystem;const { token } = yield* api.credential(input.host);diff --git a/packages/source-control-github/src/server/pullRequestBatches.graphql b/packages/source-control-github/src/server/pullRequestBatches.graphqlnew file mode 100644index 00000000000..24b6925fcf4--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestBatches.graphql@@ -0,0 +1,128 @@+# One pull request per operation. `GraphQLResolver.aliased` repeats each under an alias per+# pull request, so a batch is one request and a missing pull request fails only its own slice.+# `stacks` is false off github.com: Enterprise Server has no pull request stacks.++query PullRequestSummary($owner: String!, $name: String!, $number: Int!, $stacks: Boolean!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ number+ title+ url+ state+ isDraft+ mergeable+ reviewDecision+ additions+ deletions+ changedFiles+ updatedAt+ mergedAt+ closedAt+ headRefName+ baseRefName+ author {+ login+ avatarUrl+ ... on User {+ name+ }+ }+ latestReviews(first: 20) {+ nodes {+ state+ author {+ login+ }+ }+ }+ commits(last: 1) {+ nodes {+ commit {+ statusCheckRollup {+ state+ }+ }+ }+ }+ stack @include(if: $stacks) {+ number+ size+ baseRefName+ }+ stackEntry @include(if: $stacks) {+ position+ }+ }+ }+}++query PullRequestStats($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ additions+ deletions+ }+ }+}++query PullRequestStackMembership($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ stack {+ number+ size+ baseRefName+ }+ stackEntry {+ position+ }+ }+ }+}++# What a pull request watch needs to notice. Comments come most recently updated first, since an+# edit moves `updatedAt`, so an edit to an old comment on a long pull request is still in the page.+# Reviews have no such order: an edit to a review older than the last hundred waits for the+# watch's periodic full read, as do edits to comments inside review threads.+query PullRequestWatchFingerprint($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ state+ mergeable+ headRefOid+ comments(first: 100, orderBy: { field: UPDATED_AT, direction: DESC }) {+ totalCount+ nodes {+ lastEditedAt+ }+ }+ reviews(last: 100) {+ totalCount+ nodes {+ lastEditedAt+ }+ }+ reviewThreads {+ totalCount+ }+ commits(last: 1) {+ nodes {+ commit {+ statusCheckRollup {+ contexts {+ checkRunCountsByState {+ state+ count+ }+ statusContextCountsByState {+ state+ count+ }+ }+ }+ }+ }+ }+ }+ }+}diff --git a/packages/source-control-github/src/server/pullRequestBatches.graphql.ts b/packages/source-control-github/src/server/pullRequestBatches.graphql.tsnew file mode 100644index 00000000000..04874bae0be--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestBatches.graphql.ts@@ -0,0 +1,420 @@+// Generated by @effect/graphql-generator from pullRequestBatches.graphql. Do not edit.+import { GraphQL, GraphQLGroup } from "effect/graphql"+import * as Schema from "effect/Schema"+import * as Shared from "../../schema/github.graphql.ts"++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const User = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String,+ /** A URL pointing to the user's public avatar. */+ avatarUrl: Shared.URI,+ /** The user's public profile name. */+ name: Schema.NullOr(Schema.String)+})+export interface User extends Schema.Struct.Type<typeof User.fields> {}++/** Represents an object which can take actions on GitHub. Typically a User or Bot. */+export const ActorOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]),+ /** The username of the actor. */+ login: Schema.String,+ /** A URL pointing to the actor's public avatar. */+ avatarUrl: Shared.URI+})+export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {}++/** Represents an object which can take actions on GitHub. Typically a User or Bot. */+export const Actor = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),+ /** The username of the actor. */+ login: Schema.String+})+export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}++/** A review object for a given pull request. */+export const LatestReviewsNodesPullRequestReview = Schema.Struct({+ /** Identifies the current state of the pull request review. */+ state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals),+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor)+})+export interface LatestReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof LatestReviewsNodesPullRequestReview.fields> {}++/** The connection type for PullRequestReview. */+export const LatestReviewsPullRequestReviewConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LatestReviewsNodesPullRequestReview)))+})+export interface LatestReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof LatestReviewsPullRequestReviewConnection.fields> {}++/** Represents the rollup for both the check runs and status for a commit. */+export const PullRequestSummaryRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup = Schema.Struct({+ /** The combined status for the commit. */+ state: GraphQL.enumLiterals(Shared.StatusState.literals)+})+export interface PullRequestSummaryRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup extends Schema.Struct.Type<typeof PullRequestSummaryRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup.fields> {}++/** Represents a Git commit. */+export const PullRequestSummaryRepositoryPullRequestCommitsNodesCommitCommit = Schema.Struct({+ /** Check and Status rollup information for this commit. */+ statusCheckRollup: Schema.NullOr(PullRequestSummaryRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup)+})+export interface PullRequestSummaryRepositoryPullRequestCommitsNodesCommitCommit extends Schema.Struct.Type<typeof PullRequestSummaryRepositoryPullRequestCommitsNodesCommitCommit.fields> {}++/** Represents a Git commit part of a pull request. */+export const PullRequestSummaryRepositoryPullRequestCommitsNodesPullRequestCommit = Schema.Struct({+ /** The Git commit object */+ commit: PullRequestSummaryRepositoryPullRequestCommitsNodesCommitCommit+})+export interface PullRequestSummaryRepositoryPullRequestCommitsNodesPullRequestCommit extends Schema.Struct.Type<typeof PullRequestSummaryRepositoryPullRequestCommitsNodesPullRequestCommit.fields> {}++/** The connection type for PullRequestCommit. */+export const PullRequestSummaryRepositoryPullRequestCommitsPullRequestCommitConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestSummaryRepositoryPullRequestCommitsNodesPullRequestCommit)))+})+export interface PullRequestSummaryRepositoryPullRequestCommitsPullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestSummaryRepositoryPullRequestCommitsPullRequestCommitConnection.fields> {}++/** A stack of PullRequests */+export const PullRequestStack = Schema.Struct({+ /** A number uniquely identifying the stack within its repository */+ number: Shared.Int,+ /** The total number of pull requests in the stack */+ size: Shared.Int,+ /** The branch that the stack's pull requests target */+ baseRefName: Schema.String+})+export interface PullRequestStack extends Schema.Struct.Type<typeof PullRequestStack.fields> {}++/** A member of a PullRequestStack */+export const PullRequestStackEntry = Schema.Struct({+ /** This entry's position in the stack, where 1 is the closest to the base branch, 2 is stacked on top of 1, etc. */+ position: Shared.Int+})+export interface PullRequestStackEntry extends Schema.Struct.Type<typeof PullRequestStackEntry.fields> {}++/** A repository pull request. */+export const PullRequestSummaryRepositoryPullRequestPullRequest = Schema.Struct({+ /** Identifies the pull request number. */+ number: Shared.Int,+ /** Identifies the pull request title. */+ title: Schema.String,+ /** The HTTP URL for this pull request. */+ url: Shared.URI,+ /** Identifies the state of the pull request. */+ state: GraphQL.enumLiterals(Shared.PullRequestState.literals),+ /** Identifies if the pull request is a draft. */+ isDraft: Schema.Boolean,+ /** Whether or not the pull request can be merged based on the existence of merge conflicts. */+ mergeable: GraphQL.enumLiterals(Shared.MergeableState.literals),+ /** The current status of this pull request with respect to code review. */+ reviewDecision: Schema.NullOr(GraphQL.enumLiterals(Shared.PullRequestReviewDecision.literals)),+ /** The number of additions in this pull request. */+ additions: Shared.Int,+ /** The number of deletions in this pull request. */+ deletions: Shared.Int,+ /** The number of changed files in this pull request. */+ changedFiles: Shared.Int,+ /** Identifies the date and time when the object was last updated. */+ updatedAt: Shared.DateTime,+ /** The date and time that the pull request was merged. */+ mergedAt: Schema.NullOr(Shared.DateTime),+ /** Identifies the date and time when the object was closed. */+ closedAt: Schema.NullOr(Shared.DateTime),+ /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */+ headRefName: Schema.String,+ /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */+ baseRefName: Schema.String,+ /** The actor who authored the comment. */+ author: Schema.NullOr(Schema.Union([+ User,+ ActorOther+ ])),+ /** A list of latest reviews per user associated with the pull request that are not also pending review. */+ latestReviews: Schema.NullOr(LatestReviewsPullRequestReviewConnection),+ /** A list of commits present in this pull request's head branch not present in the base branch. */+ commits: PullRequestSummaryRepositoryPullRequestCommitsPullRequestCommitConnection,+ /** The stack this Pull Request belongs to, or null if it is not part of a stack */+ stack: Schema.optionalKey(Schema.NullOr(PullRequestStack)),+ /** The stack entry for this Pull Request, or null if it is not part of a stack */+ stackEntry: Schema.optionalKey(Schema.NullOr(PullRequestStackEntry))+})+export interface PullRequestSummaryRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestSummaryRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestSummaryRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestSummaryRepositoryPullRequestPullRequest)+})+export interface PullRequestSummaryRepositoryRepository extends Schema.Struct.Type<typeof PullRequestSummaryRepositoryRepository.fields> {}++/** `query PullRequestSummary` */+export const PullRequestSummary = GraphQL.query("PullRequestSummary", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "stacks", body: "Boolean!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){number title url state isDraft mergeable reviewDecision additions deletions changedFiles updatedAt mergedAt closedAt headRefName baseRefName author{__typename login avatarUrl...on User{name}}latestReviews(first:20){nodes{state author{__typename login}}}commits(last:1){nodes{commit{statusCheckRollup{state}}}}stack@include(if:$", "stacks", "){number size baseRefName}stackEntry@include(if:$", "stacks", "){position}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ stacks: Schema.Boolean+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestSummaryRepositoryRepository)+ })+})+export declare namespace PullRequestSummary {+ export type Variables = typeof PullRequestSummary.variables.Type+ export type Result = typeof PullRequestSummary.result.Type+}++/** A repository pull request. */+export const PullRequestStatsRepositoryPullRequestPullRequest = Schema.Struct({+ /** The number of additions in this pull request. */+ additions: Shared.Int,+ /** The number of deletions in this pull request. */+ deletions: Shared.Int+})+export interface PullRequestStatsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestStatsRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestStatsRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestStatsRepositoryPullRequestPullRequest)+})+export interface PullRequestStatsRepositoryRepository extends Schema.Struct.Type<typeof PullRequestStatsRepositoryRepository.fields> {}++/** `query PullRequestStats` */+export const PullRequestStats = GraphQL.query("PullRequestStats", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){additions deletions}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestStatsRepositoryRepository)+ })+})+export declare namespace PullRequestStats {+ export type Variables = typeof PullRequestStats.variables.Type+ export type Result = typeof PullRequestStats.result.Type+}++/** A repository pull request. */+export const PullRequestStackMembershipRepositoryPullRequestPullRequest = Schema.Struct({+ /** The stack this Pull Request belongs to, or null if it is not part of a stack */+ stack: Schema.NullOr(PullRequestStack),+ /** The stack entry for this Pull Request, or null if it is not part of a stack */+ stackEntry: Schema.NullOr(PullRequestStackEntry)+})+export interface PullRequestStackMembershipRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestStackMembershipRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestStackMembershipRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestStackMembershipRepositoryPullRequestPullRequest)+})+export interface PullRequestStackMembershipRepositoryRepository extends Schema.Struct.Type<typeof PullRequestStackMembershipRepositoryRepository.fields> {}++/** `query PullRequestStackMembership` */+export const PullRequestStackMembership = GraphQL.query("PullRequestStackMembership", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){stack{number size baseRefName}stackEntry{position}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestStackMembershipRepositoryRepository)+ })+})+export declare namespace PullRequestStackMembership {+ export type Variables = typeof PullRequestStackMembership.variables.Type+ export type Result = typeof PullRequestStackMembership.result.Type+}++/** Represents a comment on an Issue. */+export const IssueComment = Schema.Struct({+ /** The moment the editor made the last edit */+ lastEditedAt: Schema.NullOr(Shared.DateTime)+})+export interface IssueComment extends Schema.Struct.Type<typeof IssueComment.fields> {}++/** The connection type for IssueComment. */+export const IssueCommentConnection = Schema.Struct({+ /** Identifies the total count of items in the connection. */+ totalCount: Shared.Int,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(IssueComment)))+})+export interface IssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentConnection.fields> {}++/** A review object for a given pull request. */+export const ReviewsNodesPullRequestReview = Schema.Struct({+ /** The moment the editor made the last edit */+ lastEditedAt: Schema.NullOr(Shared.DateTime)+})+export interface ReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof ReviewsNodesPullRequestReview.fields> {}++/** The connection type for PullRequestReview. */+export const ReviewsPullRequestReviewConnection = Schema.Struct({+ /** Identifies the total count of items in the connection. */+ totalCount: Shared.Int,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewsNodesPullRequestReview)))+})+export interface ReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof ReviewsPullRequestReviewConnection.fields> {}++/** Review comment threads for a pull request review. */+export const PullRequestReviewThreadConnection = Schema.Struct({+ /** Identifies the total count of items in the connection. */+ totalCount: Shared.Int+})+export interface PullRequestReviewThreadConnection extends Schema.Struct.Type<typeof PullRequestReviewThreadConnection.fields> {}++/** Represents a count of the state of a check run. */+export const CheckRunStateCount = Schema.Struct({+ /** The state of a check run. */+ state: GraphQL.enumLiterals(Shared.CheckRunState.literals),+ /** The number of check runs with this state. */+ count: Shared.Int+})+export interface CheckRunStateCount extends Schema.Struct.Type<typeof CheckRunStateCount.fields> {}++/** Represents a count of the state of a status context. */+export const StatusContextStateCount = Schema.Struct({+ /** The state of a status context. */+ state: GraphQL.enumLiterals(Shared.StatusState.literals),+ /** The number of statuses with this state. */+ count: Shared.Int+})+export interface StatusContextStateCount extends Schema.Struct.Type<typeof StatusContextStateCount.fields> {}++/** The connection type for StatusCheckRollupContext. */+export const StatusCheckRollupContextConnection = Schema.Struct({+ /** Counts of check runs by state. */+ checkRunCountsByState: Schema.NullOr(Schema.Array(CheckRunStateCount)),+ /** Counts of status contexts by state. */+ statusContextCountsByState: Schema.NullOr(Schema.Array(StatusContextStateCount))+})+export interface StatusCheckRollupContextConnection extends Schema.Struct.Type<typeof StatusCheckRollupContextConnection.fields> {}++/** Represents the rollup for both the check runs and status for a commit. */+export const PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup = Schema.Struct({+ /** A list of status contexts and check runs for this commit. */+ contexts: StatusCheckRollupContextConnection+})+export interface PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup extends Schema.Struct.Type<typeof PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup.fields> {}++/** Represents a Git commit. */+export const PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitCommit = Schema.Struct({+ /** Check and Status rollup information for this commit. */+ statusCheckRollup: Schema.NullOr(PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup)+})+export interface PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitCommit extends Schema.Struct.Type<typeof PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitCommit.fields> {}++/** Represents a Git commit part of a pull request. */+export const PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesPullRequestCommit = Schema.Struct({+ /** The Git commit object */+ commit: PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesCommitCommit+})+export interface PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesPullRequestCommit extends Schema.Struct.Type<typeof PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesPullRequestCommit.fields> {}++/** The connection type for PullRequestCommit. */+export const PullRequestWatchFingerprintRepositoryPullRequestCommitsPullRequestCommitConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestWatchFingerprintRepositoryPullRequestCommitsNodesPullRequestCommit)))+})+export interface PullRequestWatchFingerprintRepositoryPullRequestCommitsPullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestWatchFingerprintRepositoryPullRequestCommitsPullRequestCommitConnection.fields> {}++/** A repository pull request. */+export const PullRequestWatchFingerprintRepositoryPullRequestPullRequest = Schema.Struct({+ /** Identifies the state of the pull request. */+ state: GraphQL.enumLiterals(Shared.PullRequestState.literals),+ /** Whether or not the pull request can be merged based on the existence of merge conflicts. */+ mergeable: GraphQL.enumLiterals(Shared.MergeableState.literals),+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** A list of comments associated with the pull request. */+ comments: IssueCommentConnection,+ /** A list of reviews associated with the pull request. */+ reviews: Schema.NullOr(ReviewsPullRequestReviewConnection),+ /** The list of all review threads for this pull request. */+ reviewThreads: PullRequestReviewThreadConnection,+ /** A list of commits present in this pull request's head branch not present in the base branch. */+ commits: PullRequestWatchFingerprintRepositoryPullRequestCommitsPullRequestCommitConnection+})+export interface PullRequestWatchFingerprintRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestWatchFingerprintRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestWatchFingerprintRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestWatchFingerprintRepositoryPullRequestPullRequest)+})+export interface PullRequestWatchFingerprintRepositoryRepository extends Schema.Struct.Type<typeof PullRequestWatchFingerprintRepositoryRepository.fields> {}++/** `query PullRequestWatchFingerprint` */+export const PullRequestWatchFingerprint = GraphQL.query("PullRequestWatchFingerprint", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){state mergeable headRefOid comments(first:100 orderBy:{field:UPDATED_AT direction:DESC}){totalCount nodes{lastEditedAt}}reviews(last:100){totalCount nodes{lastEditedAt}}reviewThreads{totalCount}commits(last:1){nodes{commit{statusCheckRollup{contexts{checkRunCountsByState{state count}statusContextCountsByState{state count}}}}}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestWatchFingerprintRepositoryRepository)+ })+})+export declare namespace PullRequestWatchFingerprint {+ export type Variables = typeof PullRequestWatchFingerprint.variables.Type+ export type Result = typeof PullRequestWatchFingerprint.result.Type+}++/** Every operation in pullRequestBatches.graphql. */+export const PullRequestBatchesGraphQLGroup = GraphQLGroup.make(PullRequestSummary, PullRequestStats, PullRequestStackMembership, PullRequestWatchFingerprint)diff --git a/packages/source-control-github/src/server/pullRequestListings.graphql b/packages/source-control-github/src/server/pullRequestListings.graphqlnew file mode 100644index 00000000000..b90f4b28609--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestListings.graphql@@ -0,0 +1,132 @@+# Listings: a search across one or more repositories, and a repository's own list for one GitHub's+# search index does not cover. Both answer with the same row.++# One listing row. `first` on the inner connections is a bound rather than a page: a pull request+# with more than twenty labels shows twenty, and one that has asked more than twenty people for a+# review is already past what a row can say.+#+# `additions` and `deletions` are asked for only with `$stats`: measured over twelve repositories+# at a hundred rows, a search answers in ~4.0s without them and ~7.1s with them, for two numbers at+# the end of a row. The cross-repository search reads them afterwards, in `PullRequestStats`.+# `stack` and `stackEntry` exist on github.com only (`$stacks`).+fragment PullRequestRow on PullRequest {+ stack @include(if: $stacks) {+ number+ size+ baseRefName+ }+ stackEntry @include(if: $stacks) {+ position+ }+ number+ title+ url+ author {+ login+ avatarUrl+ ... on User {+ name+ }+ }+ headRefName+ baseRefName+ state+ isDraft+ mergeable+ reviewDecision+ latestReviews(first: 20) {+ nodes {+ state+ author {+ login+ }+ }+ }+ additions @include(if: $stats)+ deletions @include(if: $stats)+ createdAt+ updatedAt+ mergedAt+ repository {+ nameWithOwner+ }+ reviewRequests(first: 20) {+ nodes {+ requestedReviewer {+ ... on User {+ login+ }+ ... on Team {+ slug+ }+ }+ }+ }+ labels(first: 20) {+ nodes {+ name+ color+ }+ }+ # GitHub's rollup for the head commit, one enum, rather than the whole check list: measured at a+ # hundred rows, 0.8s -> 3.0s and 15 KB, against 425 KB for the same verdict as a check array.+ commits(last: 1) {+ nodes {+ commit {+ statusCheckRollup {+ state+ }+ }+ }+ }+}++# Every repository of a host in one read, which is what makes a listing one request rather than+# one per repository. `$first` is at most 100: `search` refuses anything larger with+# EXCESSIVE_PAGINATION.+query PullRequestSearch(+ $q: String!+ $first: Int!+ $after: String+ $stacks: Boolean!+ $stats: Boolean!+) {+ search(query: $q, type: ISSUE, first: $first, after: $after) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ ...PullRequestRow+ }+ }+}++# A repository's pull requests without search, newest created first: the order `gh pr list` lists+# in when it does not search, for a repository GitHub's search index does not cover.+query PullRequestList(+ $owner: String!+ $name: String!+ $states: [PullRequestState!]+ $first: Int!+ $after: String+ $stacks: Boolean!+ $stats: Boolean!+) {+ repository(owner: $owner, name: $name) {+ pullRequests(+ first: $first+ after: $after+ states: $states+ orderBy: { field: CREATED_AT, direction: DESC }+ ) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ ...PullRequestRow+ }+ }+ }+}diff --git a/packages/source-control-github/src/server/pullRequestListings.graphql.ts b/packages/source-control-github/src/server/pullRequestListings.graphql.tsnew file mode 100644index 00000000000..ad55696b377--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestListings.graphql.ts@@ -0,0 +1,344 @@+// Generated by @effect/graphql-generator from pullRequestListings.graphql. Do not edit.+import { GraphQL, GraphQLGroup } from "effect/graphql"+import * as Schema from "effect/Schema"+import * as Shared from "../../schema/github.graphql.ts"++/** A stack of PullRequests */+export const PullRequestStack = Schema.Struct({+ /** A number uniquely identifying the stack within its repository */+ number: Shared.Int,+ /** The total number of pull requests in the stack */+ size: Shared.Int,+ /** The branch that the stack's pull requests target */+ baseRefName: Schema.String+})+export interface PullRequestStack extends Schema.Struct.Type<typeof PullRequestStack.fields> {}++/** A member of a PullRequestStack */+export const PullRequestStackEntry = Schema.Struct({+ /** This entry's position in the stack, where 1 is the closest to the base branch, 2 is stacked on top of 1, etc. */+ position: Shared.Int+})+export interface PullRequestStackEntry extends Schema.Struct.Type<typeof PullRequestStackEntry.fields> {}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const AuthorUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String,+ /** A URL pointing to the user's public avatar. */+ avatarUrl: Shared.URI,+ /** The user's public profile name. */+ name: Schema.NullOr(Schema.String)+})+export interface AuthorUser extends Schema.Struct.Type<typeof AuthorUser.fields> {}++/** Represents an object which can take actions on GitHub. Typically a User or Bot. */+export const ActorOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]),+ /** The username of the actor. */+ login: Schema.String,+ /** A URL pointing to the actor's public avatar. */+ avatarUrl: Shared.URI+})+export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {}++/** Represents an object which can take actions on GitHub. Typically a User or Bot. */+export const Actor = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),+ /** The username of the actor. */+ login: Schema.String+})+export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}++/** A review object for a given pull request. */+export const PullRequestReview = Schema.Struct({+ /** Identifies the current state of the pull request review. */+ state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals),+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor)+})+export interface PullRequestReview extends Schema.Struct.Type<typeof PullRequestReview.fields> {}++/** The connection type for PullRequestReview. */+export const PullRequestReviewConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestReview)))+})+export interface PullRequestReviewConnection extends Schema.Struct.Type<typeof PullRequestReviewConnection.fields> {}++/** A repository contains the content for a project. */+export const PullRequestRowRepositoryRepository = Schema.Struct({+ /** The repository's name with owner. */+ nameWithOwner: Schema.String+})+export interface PullRequestRowRepositoryRepository extends Schema.Struct.Type<typeof PullRequestRowRepositoryRepository.fields> {}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const RequestedReviewerUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String+})+export interface RequestedReviewerUser extends Schema.Struct.Type<typeof RequestedReviewerUser.fields> {}++/** A team of users in an organization. */+export const Team = Schema.Struct({+ __typename: Schema.Literal("Team"),+ /** The slug corresponding to the team. */+ slug: Schema.String+})+export interface Team extends Schema.Struct.Type<typeof Team.fields> {}++/** Types that can be requested reviewers. */+export const RequestedReviewerOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.RequestedReviewer>()(["User", "Team"])+})+export interface RequestedReviewerOther extends Schema.Struct.Type<typeof RequestedReviewerOther.fields> {}++/** A request for a user to review a pull request. */+export const ReviewRequest = Schema.Struct({+ /** The reviewer that is requested. */+ requestedReviewer: Schema.NullOr(Schema.Union([+ RequestedReviewerUser,+ Team,+ RequestedReviewerOther+ ]))+})+export interface ReviewRequest extends Schema.Struct.Type<typeof ReviewRequest.fields> {}++/** The connection type for ReviewRequest. */+export const ReviewRequestConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewRequest)))+})+export interface ReviewRequestConnection extends Schema.Struct.Type<typeof ReviewRequestConnection.fields> {}++/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */+export const Label = Schema.Struct({+ /** Identifies the label name. */+ name: Schema.String,+ /** Identifies the label color. */+ color: Schema.String+})+export interface Label extends Schema.Struct.Type<typeof Label.fields> {}++/** The connection type for Label. */+export const LabelConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Label)))+})+export interface LabelConnection extends Schema.Struct.Type<typeof LabelConnection.fields> {}++/** Represents the rollup for both the check runs and status for a commit. */+export const StatusCheckRollup = Schema.Struct({+ /** The combined status for the commit. */+ state: GraphQL.enumLiterals(Shared.StatusState.literals)+})+export interface StatusCheckRollup extends Schema.Struct.Type<typeof StatusCheckRollup.fields> {}++/** Represents a Git commit. */+export const Commit = Schema.Struct({+ /** Check and Status rollup information for this commit. */+ statusCheckRollup: Schema.NullOr(StatusCheckRollup)+})+export interface Commit extends Schema.Struct.Type<typeof Commit.fields> {}++/** Represents a Git commit part of a pull request. */+export const PullRequestCommit = Schema.Struct({+ /** The Git commit object */+ commit: Commit+})+export interface PullRequestCommit extends Schema.Struct.Type<typeof PullRequestCommit.fields> {}++/** The connection type for PullRequestCommit. */+export const PullRequestCommitConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCommit)))+})+export interface PullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCommitConnection.fields> {}++/**+ * `fragment PullRequestRow on PullRequest`+ *+ * A repository pull request.+ */+export const PullRequestRow = Schema.Struct({+ /** The stack this Pull Request belongs to, or null if it is not part of a stack */+ stack: Schema.optionalKey(Schema.NullOr(PullRequestStack)),+ /** The stack entry for this Pull Request, or null if it is not part of a stack */+ stackEntry: Schema.optionalKey(Schema.NullOr(PullRequestStackEntry)),+ /** Identifies the pull request number. */+ number: Shared.Int,+ /** Identifies the pull request title. */+ title: Schema.String,+ /** The HTTP URL for this pull request. */+ url: Shared.URI,+ /** The actor who authored the comment. */+ author: Schema.NullOr(Schema.Union([+ AuthorUser,+ ActorOther+ ])),+ /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */+ headRefName: Schema.String,+ /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */+ baseRefName: Schema.String,+ /** Identifies the state of the pull request. */+ state: GraphQL.enumLiterals(Shared.PullRequestState.literals),+ /** Identifies if the pull request is a draft. */+ isDraft: Schema.Boolean,+ /** Whether or not the pull request can be merged based on the existence of merge conflicts. */+ mergeable: GraphQL.enumLiterals(Shared.MergeableState.literals),+ /** The current status of this pull request with respect to code review. */+ reviewDecision: Schema.NullOr(GraphQL.enumLiterals(Shared.PullRequestReviewDecision.literals)),+ /** A list of latest reviews per user associated with the pull request that are not also pending review. */+ latestReviews: Schema.NullOr(PullRequestReviewConnection),+ /** The number of additions in this pull request. */+ additions: Schema.optionalKey(Shared.Int),+ /** The number of deletions in this pull request. */+ deletions: Schema.optionalKey(Shared.Int),+ /** Identifies the date and time when the object was created. */+ createdAt: Shared.DateTime,+ /** Identifies the date and time when the object was last updated. */+ updatedAt: Shared.DateTime,+ /** The date and time that the pull request was merged. */+ mergedAt: Schema.NullOr(Shared.DateTime),+ /** The repository associated with this node. */+ repository: PullRequestRowRepositoryRepository,+ /** A list of review requests associated with the pull request. */+ reviewRequests: Schema.NullOr(ReviewRequestConnection),+ /** A list of labels associated with the object. */+ labels: Schema.NullOr(LabelConnection),+ /** A list of commits present in this pull request's head branch not present in the base branch. */+ commits: PullRequestCommitConnection+})+export interface PullRequestRow extends Schema.Struct.Type<typeof PullRequestRow.fields> {}++/** Information about pagination in a connection. */+export const PageInfo = Schema.Struct({+ /** When paginating forwards, are there more items? */+ hasNextPage: Schema.Boolean,+ /** When paginating forwards, the cursor to continue. */+ endCursor: Schema.NullOr(Schema.String)+})+export interface PageInfo extends Schema.Struct.Type<typeof PageInfo.fields> {}++/** A repository pull request. */+export const PullRequest = Schema.Struct({+ __typename: Schema.Literal("PullRequest"),+ ...PullRequestRow.fields+})+export interface PullRequest extends Schema.Struct.Type<typeof PullRequest.fields> {}++/** The results of a search. */+export const SearchResultItemOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.SearchResultItem>()(["PullRequest"])+})+export interface SearchResultItemOther extends Schema.Struct.Type<typeof SearchResultItemOther.fields> {}++/**+ * A list of results that matched against a search query. Regardless of the number+ * of matches, a maximum of 1,000 results will be available across all types,+ * potentially split across many pages.+ */+export const SearchResultItemConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([+ PullRequest,+ SearchResultItemOther+ ]))))+})+export interface SearchResultItemConnection extends Schema.Struct.Type<typeof SearchResultItemConnection.fields> {}++/** `query PullRequestSearch` */+export const PullRequestSearch = GraphQL.query("PullRequestSearch", {+ document: {+ variables: [+ { name: "q", body: "String!" },+ { name: "first", body: "Int!" },+ { name: "after", body: "String" },+ { name: "stacks", body: "Boolean!" },+ { name: "stats", body: "Boolean!" }+ ],+ selections: [+ { name: "search", body: ["(query:$", "q", " type:ISSUE first:$", "first", " after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{__typename...", "PullRequestRow", "}}"] }+ ],+ fragments: [+ { name: "PullRequestRow", body: ["on PullRequest{stack@include(if:$", "stacks", "){number size baseRefName}stackEntry@include(if:$", "stacks", "){position}number title url author{__typename login avatarUrl...on User{name}}headRefName baseRefName state isDraft mergeable reviewDecision latestReviews(first:20){nodes{state author{__typename login}}}additions@include(if:$", "stats", ")deletions@include(if:$", "stats", ")createdAt updatedAt mergedAt repository{nameWithOwner}reviewRequests(first:20){nodes{requestedReviewer{__typename...on User{login}...on Team{slug}}}}labels(first:20){nodes{name color}}commits(last:1){nodes{commit{statusCheckRollup{state}}}}}"] }+ ]+ },+ variables: {+ q: Schema.String,+ first: Shared.Int,+ after: Schema.optional(Schema.NullOr(Schema.String)),+ stacks: Schema.Boolean,+ stats: Schema.Boolean+ },+ result: Schema.Struct({+ /** Perform a search across resources, returning a maximum of 1,000 results. */+ search: SearchResultItemConnection+ })+})+export declare namespace PullRequestSearch {+ export type Variables = typeof PullRequestSearch.variables.Type+ export type Result = typeof PullRequestSearch.result.Type+}++/** The connection type for PullRequest. */+export const PullRequestConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestRow)))+})+export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {}++/** A repository contains the content for a project. */+export const PullRequestListRepositoryRepository = Schema.Struct({+ /** A list of pull requests that have been opened in the repository. */+ pullRequests: PullRequestConnection+})+export interface PullRequestListRepositoryRepository extends Schema.Struct.Type<typeof PullRequestListRepositoryRepository.fields> {}++/** `query PullRequestList` */+export const PullRequestList = GraphQL.query("PullRequestList", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "states", body: "[PullRequestState!]" },+ { name: "first", body: "Int!" },+ { name: "after", body: "String" },+ { name: "stacks", body: "Boolean!" },+ { name: "stats", body: "Boolean!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequests(first:$", "first", " after:$", "after", " states:$", "states", " orderBy:{field:CREATED_AT direction:DESC}){pageInfo{hasNextPage endCursor}nodes{...", "PullRequestRow", "}}}"] }+ ],+ fragments: [+ { name: "PullRequestRow", body: ["on PullRequest{stack@include(if:$", "stacks", "){number size baseRefName}stackEntry@include(if:$", "stacks", "){position}number title url author{__typename login avatarUrl...on User{name}}headRefName baseRefName state isDraft mergeable reviewDecision latestReviews(first:20){nodes{state author{__typename login}}}additions@include(if:$", "stats", ")deletions@include(if:$", "stats", ")createdAt updatedAt mergedAt repository{nameWithOwner}reviewRequests(first:20){nodes{requestedReviewer{__typename...on User{login}...on Team{slug}}}}labels(first:20){nodes{name color}}commits(last:1){nodes{commit{statusCheckRollup{state}}}}}"] }+ ]+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ states: Schema.optional(Schema.NullOr(Schema.Array(Shared.PullRequestState))),+ first: Shared.Int,+ after: Schema.optional(Schema.NullOr(Schema.String)),+ stacks: Schema.Boolean,+ stats: Schema.Boolean+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestListRepositoryRepository)+ })+})+export declare namespace PullRequestList {+ export type Variables = typeof PullRequestList.variables.Type+ export type Result = typeof PullRequestList.result.Type+}++/** Every operation in pullRequestListings.graphql. */+export const PullRequestListingsGraphQLGroup = GraphQLGroup.make(PullRequestSearch, PullRequestList)diff --git a/packages/source-control-github/src/server/pullRequestMutations.graphql b/packages/source-control-github/src/server/pullRequestMutations.graphqlnew file mode 100644index 00000000000..4ba7854507a--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestMutations.graphql@@ -0,0 +1,163 @@+# Writes to a pull request and the remarks on it. None reads its answer back beyond what GitHub+# requires a mutation to select.++mutation AddReviewThreadReply($threadId: ID!, $body: String!) {+ addPullRequestReviewThreadReply(input: { pullRequestReviewThreadId: $threadId, body: $body }) {+ comment {+ id+ }+ }+}++mutation AddReaction($subjectId: ID!, $content: ReactionContent!) {+ addReaction(input: { subjectId: $subjectId, content: $content }) {+ reaction {+ content+ }+ }+}++mutation RemoveReaction($subjectId: ID!, $content: ReactionContent!) {+ removeReaction(input: { subjectId: $subjectId, content: $content }) {+ reaction {+ content+ }+ }+}++mutation ResolveReviewThread($threadId: ID!) {+ resolveReviewThread(input: { threadId: $threadId }) {+ thread {+ isResolved+ }+ }+}++mutation UnresolveReviewThread($threadId: ID!) {+ unresolveReviewThread(input: { threadId: $threadId }) {+ thread {+ isResolved+ }+ }+}++# Rewrites the pull request's own words. Both are nullable so that one document serves a change to+# the title, to the description, or to the two together: a variable the request does not send puts+# no entry in the input at all, which leaves that field as it was rather than clearing it.+mutation UpdatePullRequest($pullRequestId: ID!, $title: String, $body: String) {+ updatePullRequest(input: { pullRequestId: $pullRequestId, title: $title, body: $body }) {+ pullRequest {+ id+ }+ }+}++# Creates a new pull request that reverses a merged pull request.+mutation RevertPullRequest($pullRequestId: ID!) {+ revertPullRequest(input: { pullRequestId: $pullRequestId }) {+ revertPullRequest {+ id+ }+ }+}++# The two comment mutations name their comment differently; the variable is spelled the same in+# both, so a rewrite sends one set of variables whichever kind of remark it is.+mutation UpdateIssueComment($commentId: ID!, $body: String!) {+ updateIssueComment(input: { id: $commentId, body: $body }) {+ issueComment {+ id+ }+ }+}++mutation UpdateReviewComment($commentId: ID!, $body: String!) {+ updatePullRequestReviewComment(input: { pullRequestReviewCommentId: $commentId, body: $body }) {+ pullRequestReviewComment {+ id+ }+ }+}++# Clears one file, or puts it back. GitHub has no bulk form of either mutation, so+# `GraphQLResolver.aliased` repeats this under an alias per file and a burst of ticks is one+# request; `$viewed` picks which of the two each alias runs.+mutation SetFileViewed($pullRequestId: ID!, $path: String!, $viewed: Boolean!) {+ markFileAsViewed(input: { pullRequestId: $pullRequestId, path: $path }) @include(if: $viewed) {+ clientMutationId+ }+ unmarkFileAsViewed(input: { pullRequestId: $pullRequestId, path: $path }) @skip(if: $viewed) {+ clientMutationId+ }+}++mutation MergePullRequest($input: MergePullRequestInput!) {+ mergePullRequest(input: $input) {+ clientMutationId+ }+}++mutation EnablePullRequestAutoMerge($input: EnablePullRequestAutoMergeInput!) {+ enablePullRequestAutoMerge(input: $input) {+ clientMutationId+ }+}++mutation DisablePullRequestAutoMerge($pullRequestId: ID!) {+ disablePullRequestAutoMerge(input: { pullRequestId: $pullRequestId }) {+ clientMutationId+ }+}++mutation UpdatePullRequestBranch(+ $pullRequestId: ID!+ $expectedHeadOid: GitObjectID!+ $updateMethod: PullRequestBranchUpdateMethod!+) {+ updatePullRequestBranch(+ input: {+ pullRequestId: $pullRequestId+ expectedHeadOid: $expectedHeadOid+ updateMethod: $updateMethod+ }+ ) {+ clientMutationId+ }+}++mutation MarkPullRequestReadyForReview($pullRequestId: ID!) {+ markPullRequestReadyForReview(input: { pullRequestId: $pullRequestId }) {+ clientMutationId+ }+}++mutation ConvertPullRequestToDraft($pullRequestId: ID!) {+ convertPullRequestToDraft(input: { pullRequestId: $pullRequestId }) {+ clientMutationId+ }+}++mutation ClosePullRequest($pullRequestId: ID!) {+ closePullRequest(input: { pullRequestId: $pullRequestId }) {+ clientMutationId+ }+}++mutation ReopenPullRequest($pullRequestId: ID!) {+ reopenPullRequest(input: { pullRequestId: $pullRequestId }) {+ clientMutationId+ }+}++mutation AddComment($subjectId: ID!, $body: String!) {+ addComment(input: { subjectId: $subjectId, body: $body }) {+ clientMutationId+ }+}++# Deletes a branch only while it still points at `beforeOid`, which `refUpdates` carries.+mutation DeletePullRequestBranch($input: UpdateRefsInput!) {+ updateRefs(input: $input) {+ clientMutationId+ }+}diff --git a/packages/source-control-github/src/server/pullRequestMutations.graphql.ts b/packages/source-control-github/src/server/pullRequestMutations.graphql.tsnew file mode 100644index 00000000000..05a67b81d4e--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestMutations.graphql.ts@@ -0,0 +1,722 @@+// Generated by @effect/graphql-generator from pullRequestMutations.graphql. Do not edit.+import { GraphQL, GraphQLGroup } from "effect/graphql"+import * as Schema from "effect/Schema"+import * as Shared from "../../schema/github.graphql.ts"++/** A review comment associated with a given repository pull request. */+export const PullRequestReviewComment = Schema.Struct({+ /** The Node ID of the PullRequestReviewComment object */+ id: Shared.ID+})+export interface PullRequestReviewComment extends Schema.Struct.Type<typeof PullRequestReviewComment.fields> {}++/** Autogenerated return type of AddPullRequestReviewThreadReply. */+export const AddPullRequestReviewThreadReplyPayload = Schema.Struct({+ /** The newly created reply. */+ comment: Schema.NullOr(PullRequestReviewComment)+})+export interface AddPullRequestReviewThreadReplyPayload extends Schema.Struct.Type<typeof AddPullRequestReviewThreadReplyPayload.fields> {}++/** `mutation AddReviewThreadReply` */+export const AddReviewThreadReply = GraphQL.mutation("AddReviewThreadReply", {+ document: {+ variables: [+ { name: "threadId", body: "ID!" },+ { name: "body", body: "String!" }+ ],+ selections: [+ { name: "addPullRequestReviewThreadReply", body: ["(input:{pullRequestReviewThreadId:$", "threadId", " body:$", "body", "}){comment{id}}"] }+ ],+ fragments: []+ },+ variables: {+ threadId: Shared.ID,+ body: Schema.String+ },+ result: Schema.Struct({+ /** Adds a reply to an existing Pull Request Review Thread. */+ addPullRequestReviewThreadReply: Schema.NullOr(AddPullRequestReviewThreadReplyPayload)+ })+})+export declare namespace AddReviewThreadReply {+ export type Variables = typeof AddReviewThreadReply.variables.Type+ export type Result = typeof AddReviewThreadReply.result.Type+}++/** An emoji reaction to a particular piece of content. */+export const Reaction = Schema.Struct({+ /** Identifies the emoji reaction. */+ content: GraphQL.enumLiterals(Shared.ReactionContent.literals)+})+export interface Reaction extends Schema.Struct.Type<typeof Reaction.fields> {}++/** Autogenerated return type of AddReaction. */+export const AddReactionPayload = Schema.Struct({+ /** The reaction object. */+ reaction: Schema.NullOr(Reaction)+})+export interface AddReactionPayload extends Schema.Struct.Type<typeof AddReactionPayload.fields> {}++/** `mutation AddReaction` */+export const AddReaction = GraphQL.mutation("AddReaction", {+ document: {+ variables: [+ { name: "subjectId", body: "ID!" },+ { name: "content", body: "ReactionContent!" }+ ],+ selections: [+ { name: "addReaction", body: ["(input:{subjectId:$", "subjectId", " content:$", "content", "}){reaction{content}}"] }+ ],+ fragments: []+ },+ variables: {+ subjectId: Shared.ID,+ content: Shared.ReactionContent+ },+ result: Schema.Struct({+ /** Adds a reaction to a subject. */+ addReaction: Schema.NullOr(AddReactionPayload)+ })+})+export declare namespace AddReaction {+ export type Variables = typeof AddReaction.variables.Type+ export type Result = typeof AddReaction.result.Type+}++/** Autogenerated return type of RemoveReaction. */+export const RemoveReactionPayload = Schema.Struct({+ /** The reaction object. */+ reaction: Schema.NullOr(Reaction)+})+export interface RemoveReactionPayload extends Schema.Struct.Type<typeof RemoveReactionPayload.fields> {}++/** `mutation RemoveReaction` */+export const RemoveReaction = GraphQL.mutation("RemoveReaction", {+ document: {+ variables: [+ { name: "subjectId", body: "ID!" },+ { name: "content", body: "ReactionContent!" }+ ],+ selections: [+ { name: "removeReaction", body: ["(input:{subjectId:$", "subjectId", " content:$", "content", "}){reaction{content}}"] }+ ],+ fragments: []+ },+ variables: {+ subjectId: Shared.ID,+ content: Shared.ReactionContent+ },+ result: Schema.Struct({+ /** Removes a reaction from a subject. */+ removeReaction: Schema.NullOr(RemoveReactionPayload)+ })+})+export declare namespace RemoveReaction {+ export type Variables = typeof RemoveReaction.variables.Type+ export type Result = typeof RemoveReaction.result.Type+}++/** A threaded list of comments for a given pull request. */+export const PullRequestReviewThread = Schema.Struct({+ /** Whether this thread has been resolved */+ isResolved: Schema.Boolean+})+export interface PullRequestReviewThread extends Schema.Struct.Type<typeof PullRequestReviewThread.fields> {}++/** Autogenerated return type of ResolveReviewThread. */+export const ResolveReviewThreadPayload = Schema.Struct({+ /** The thread to resolve. */+ thread: Schema.NullOr(PullRequestReviewThread)+})+export interface ResolveReviewThreadPayload extends Schema.Struct.Type<typeof ResolveReviewThreadPayload.fields> {}++/** `mutation ResolveReviewThread` */+export const ResolveReviewThread = GraphQL.mutation("ResolveReviewThread", {+ document: {+ variables: [+ { name: "threadId", body: "ID!" }+ ],+ selections: [+ { name: "resolveReviewThread", body: ["(input:{threadId:$", "threadId", "}){thread{isResolved}}"] }+ ],+ fragments: []+ },+ variables: {+ threadId: Shared.ID+ },+ result: Schema.Struct({+ /** Marks a review thread as resolved. */+ resolveReviewThread: Schema.NullOr(ResolveReviewThreadPayload)+ })+})+export declare namespace ResolveReviewThread {+ export type Variables = typeof ResolveReviewThread.variables.Type+ export type Result = typeof ResolveReviewThread.result.Type+}++/** Autogenerated return type of UnresolveReviewThread. */+export const UnresolveReviewThreadPayload = Schema.Struct({+ /** The thread to resolve. */+ thread: Schema.NullOr(PullRequestReviewThread)+})+export interface UnresolveReviewThreadPayload extends Schema.Struct.Type<typeof UnresolveReviewThreadPayload.fields> {}++/** `mutation UnresolveReviewThread` */+export const UnresolveReviewThread = GraphQL.mutation("UnresolveReviewThread", {+ document: {+ variables: [+ { name: "threadId", body: "ID!" }+ ],+ selections: [+ { name: "unresolveReviewThread", body: ["(input:{threadId:$", "threadId", "}){thread{isResolved}}"] }+ ],+ fragments: []+ },+ variables: {+ threadId: Shared.ID+ },+ result: Schema.Struct({+ /** Marks a review thread as unresolved. */+ unresolveReviewThread: Schema.NullOr(UnresolveReviewThreadPayload)+ })+})+export declare namespace UnresolveReviewThread {+ export type Variables = typeof UnresolveReviewThread.variables.Type+ export type Result = typeof UnresolveReviewThread.result.Type+}++/** A repository pull request. */+export const PullRequest = Schema.Struct({+ /** The Node ID of the PullRequest object */+ id: Shared.ID+})+export interface PullRequest extends Schema.Struct.Type<typeof PullRequest.fields> {}++/** Autogenerated return type of UpdatePullRequest. */+export const UpdatePullRequestPayload = Schema.Struct({+ /** The updated pull request. */+ pullRequest: Schema.NullOr(PullRequest)+})+export interface UpdatePullRequestPayload extends Schema.Struct.Type<typeof UpdatePullRequestPayload.fields> {}++/** `mutation UpdatePullRequest` */+export const UpdatePullRequest = GraphQL.mutation("UpdatePullRequest", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" },+ { name: "title", body: "String" },+ { name: "body", body: "String" }+ ],+ selections: [+ { name: "updatePullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", " title:$", "title", " body:$", "body", "}){pullRequest{id}}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID,+ title: Schema.optional(Schema.NullOr(Schema.String)),+ body: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** Update a pull request */+ updatePullRequest: Schema.NullOr(UpdatePullRequestPayload)+ })+})+export declare namespace UpdatePullRequest {+ export type Variables = typeof UpdatePullRequest.variables.Type+ export type Result = typeof UpdatePullRequest.result.Type+}++/** Autogenerated return type of RevertPullRequest. */+export const RevertPullRequestPayload = Schema.Struct({+ /** The new pull request that reverts the input pull request. */+ revertPullRequest: Schema.NullOr(PullRequest)+})+export interface RevertPullRequestPayload extends Schema.Struct.Type<typeof RevertPullRequestPayload.fields> {}++/** `mutation RevertPullRequest` */+export const RevertPullRequest = GraphQL.mutation("RevertPullRequest", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" }+ ],+ selections: [+ { name: "revertPullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", "}){revertPullRequest{id}}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID+ },+ result: Schema.Struct({+ /** Create a pull request that reverts the changes from a merged pull request. */+ revertPullRequest: Schema.NullOr(RevertPullRequestPayload)+ })+})+export declare namespace RevertPullRequest {+ export type Variables = typeof RevertPullRequest.variables.Type+ export type Result = typeof RevertPullRequest.result.Type+}++/** Represents a comment on an Issue. */+export const IssueComment = Schema.Struct({+ /** The Node ID of the IssueComment object */+ id: Shared.ID+})+export interface IssueComment extends Schema.Struct.Type<typeof IssueComment.fields> {}++/** Autogenerated return type of UpdateIssueComment. */+export const UpdateIssueCommentPayload = Schema.Struct({+ /** The updated comment. */+ issueComment: Schema.NullOr(IssueComment)+})+export interface UpdateIssueCommentPayload extends Schema.Struct.Type<typeof UpdateIssueCommentPayload.fields> {}++/** `mutation UpdateIssueComment` */+export const UpdateIssueComment = GraphQL.mutation("UpdateIssueComment", {+ document: {+ variables: [+ { name: "commentId", body: "ID!" },+ { name: "body", body: "String!" }+ ],+ selections: [+ { name: "updateIssueComment", body: ["(input:{id:$", "commentId", " body:$", "body", "}){issueComment{id}}"] }+ ],+ fragments: []+ },+ variables: {+ commentId: Shared.ID,+ body: Schema.String+ },+ result: Schema.Struct({+ /** Updates an IssueComment object. */+ updateIssueComment: Schema.NullOr(UpdateIssueCommentPayload)+ })+})+export declare namespace UpdateIssueComment {+ export type Variables = typeof UpdateIssueComment.variables.Type+ export type Result = typeof UpdateIssueComment.result.Type+}++/** Autogenerated return type of UpdatePullRequestReviewComment. */+export const UpdatePullRequestReviewCommentPayload = Schema.Struct({+ /** The updated comment. */+ pullRequestReviewComment: Schema.NullOr(PullRequestReviewComment)+})+export interface UpdatePullRequestReviewCommentPayload extends Schema.Struct.Type<typeof UpdatePullRequestReviewCommentPayload.fields> {}++/** `mutation UpdateReviewComment` */+export const UpdateReviewComment = GraphQL.mutation("UpdateReviewComment", {+ document: {+ variables: [+ { name: "commentId", body: "ID!" },+ { name: "body", body: "String!" }+ ],+ selections: [+ { name: "updatePullRequestReviewComment", body: ["(input:{pullRequestReviewCommentId:$", "commentId", " body:$", "body", "}){pullRequestReviewComment{id}}"] }+ ],+ fragments: []+ },+ variables: {+ commentId: Shared.ID,+ body: Schema.String+ },+ result: Schema.Struct({+ /** Updates a pull request review comment. */+ updatePullRequestReviewComment: Schema.NullOr(UpdatePullRequestReviewCommentPayload)+ })+})+export declare namespace UpdateReviewComment {+ export type Variables = typeof UpdateReviewComment.variables.Type+ export type Result = typeof UpdateReviewComment.result.Type+}++/** Autogenerated return type of MarkFileAsViewed. */+export const MarkFileAsViewedPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface MarkFileAsViewedPayload extends Schema.Struct.Type<typeof MarkFileAsViewedPayload.fields> {}++/** Autogenerated return type of UnmarkFileAsViewed. */+export const UnmarkFileAsViewedPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface UnmarkFileAsViewedPayload extends Schema.Struct.Type<typeof UnmarkFileAsViewedPayload.fields> {}++/** `mutation SetFileViewed` */+export const SetFileViewed = GraphQL.mutation("SetFileViewed", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" },+ { name: "path", body: "String!" },+ { name: "viewed", body: "Boolean!" }+ ],+ selections: [+ { name: "markFileAsViewed", body: ["(input:{pullRequestId:$", "pullRequestId", " path:$", "path", "})@include(if:$", "viewed", "){clientMutationId}"] },+ { name: "unmarkFileAsViewed", body: ["(input:{pullRequestId:$", "pullRequestId", " path:$", "path", "})@skip(if:$", "viewed", "){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID,+ path: Schema.String,+ viewed: Schema.Boolean+ },+ result: Schema.Struct({+ /** Mark a pull request file as viewed */+ markFileAsViewed: Schema.optionalKey(Schema.NullOr(MarkFileAsViewedPayload)),+ /** Unmark a pull request file as viewed */+ unmarkFileAsViewed: Schema.optionalKey(Schema.NullOr(UnmarkFileAsViewedPayload))+ })+})+export declare namespace SetFileViewed {+ export type Variables = typeof SetFileViewed.variables.Type+ export type Result = typeof SetFileViewed.result.Type+}++/** Autogenerated return type of MergePullRequest. */+export const MergePullRequestPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface MergePullRequestPayload extends Schema.Struct.Type<typeof MergePullRequestPayload.fields> {}++/** `mutation MergePullRequest` */+export const MergePullRequest = GraphQL.mutation("MergePullRequest", {+ document: {+ variables: [+ { name: "input", body: "MergePullRequestInput!" }+ ],+ selections: [+ { name: "mergePullRequest", body: ["(input:$", "input", "){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ input: Shared.MergePullRequestInput+ },+ result: Schema.Struct({+ /**+ * Merge a pull request.+ *+ * > [!NOTE]+ * > We recommend using the [asynchronous merge REST+ * API](${externalDocsUrl}/rest/pulls/pulls#merge-a-pull-request-asynchronously) instead.+ * > This mutation does not support stacked pull requests.+ */+ mergePullRequest: Schema.NullOr(MergePullRequestPayload)+ })+})+export declare namespace MergePullRequest {+ export type Variables = typeof MergePullRequest.variables.Type+ export type Result = typeof MergePullRequest.result.Type+}++/** Autogenerated return type of EnablePullRequestAutoMerge. */+export const EnablePullRequestAutoMergePayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface EnablePullRequestAutoMergePayload extends Schema.Struct.Type<typeof EnablePullRequestAutoMergePayload.fields> {}++/** `mutation EnablePullRequestAutoMerge` */+export const EnablePullRequestAutoMerge = GraphQL.mutation("EnablePullRequestAutoMerge", {+ document: {+ variables: [+ { name: "input", body: "EnablePullRequestAutoMergeInput!" }+ ],+ selections: [+ { name: "enablePullRequestAutoMerge", body: ["(input:$", "input", "){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ input: Shared.EnablePullRequestAutoMergeInput+ },+ result: Schema.Struct({+ /** Enable the default auto-merge on a pull request. */+ enablePullRequestAutoMerge: Schema.NullOr(EnablePullRequestAutoMergePayload)+ })+})+export declare namespace EnablePullRequestAutoMerge {+ export type Variables = typeof EnablePullRequestAutoMerge.variables.Type+ export type Result = typeof EnablePullRequestAutoMerge.result.Type+}++/** Autogenerated return type of DisablePullRequestAutoMerge. */+export const DisablePullRequestAutoMergePayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface DisablePullRequestAutoMergePayload extends Schema.Struct.Type<typeof DisablePullRequestAutoMergePayload.fields> {}++/** `mutation DisablePullRequestAutoMerge` */+export const DisablePullRequestAutoMerge = GraphQL.mutation("DisablePullRequestAutoMerge", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" }+ ],+ selections: [+ { name: "disablePullRequestAutoMerge", body: ["(input:{pullRequestId:$", "pullRequestId", "}){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID+ },+ result: Schema.Struct({+ /** Disable auto merge on the given pull request */+ disablePullRequestAutoMerge: Schema.NullOr(DisablePullRequestAutoMergePayload)+ })+})+export declare namespace DisablePullRequestAutoMerge {+ export type Variables = typeof DisablePullRequestAutoMerge.variables.Type+ export type Result = typeof DisablePullRequestAutoMerge.result.Type+}++/** Autogenerated return type of UpdatePullRequestBranch. */+export const UpdatePullRequestBranchPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface UpdatePullRequestBranchPayload extends Schema.Struct.Type<typeof UpdatePullRequestBranchPayload.fields> {}++/** `mutation UpdatePullRequestBranch` */+export const UpdatePullRequestBranch = GraphQL.mutation("UpdatePullRequestBranch", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" },+ { name: "expectedHeadOid", body: "GitObjectID!" },+ { name: "updateMethod", body: "PullRequestBranchUpdateMethod!" }+ ],+ selections: [+ { name: "updatePullRequestBranch", body: ["(input:{pullRequestId:$", "pullRequestId", " expectedHeadOid:$", "expectedHeadOid", " updateMethod:$", "updateMethod", "}){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID,+ expectedHeadOid: Shared.GitObjectID,+ updateMethod: Shared.PullRequestBranchUpdateMethod+ },+ result: Schema.Struct({+ /** Merge or Rebase HEAD from upstream branch into pull request branch */+ updatePullRequestBranch: Schema.NullOr(UpdatePullRequestBranchPayload)+ })+})+export declare namespace UpdatePullRequestBranch {+ export type Variables = typeof UpdatePullRequestBranch.variables.Type+ export type Result = typeof UpdatePullRequestBranch.result.Type+}++/** Autogenerated return type of MarkPullRequestReadyForReview. */+export const MarkPullRequestReadyForReviewPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface MarkPullRequestReadyForReviewPayload extends Schema.Struct.Type<typeof MarkPullRequestReadyForReviewPayload.fields> {}++/** `mutation MarkPullRequestReadyForReview` */+export const MarkPullRequestReadyForReview = GraphQL.mutation("MarkPullRequestReadyForReview", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" }+ ],+ selections: [+ { name: "markPullRequestReadyForReview", body: ["(input:{pullRequestId:$", "pullRequestId", "}){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID+ },+ result: Schema.Struct({+ /** Marks a pull request ready for review. */+ markPullRequestReadyForReview: Schema.NullOr(MarkPullRequestReadyForReviewPayload)+ })+})+export declare namespace MarkPullRequestReadyForReview {+ export type Variables = typeof MarkPullRequestReadyForReview.variables.Type+ export type Result = typeof MarkPullRequestReadyForReview.result.Type+}++/** Autogenerated return type of ConvertPullRequestToDraft. */+export const ConvertPullRequestToDraftPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface ConvertPullRequestToDraftPayload extends Schema.Struct.Type<typeof ConvertPullRequestToDraftPayload.fields> {}++/** `mutation ConvertPullRequestToDraft` */+export const ConvertPullRequestToDraft = GraphQL.mutation("ConvertPullRequestToDraft", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" }+ ],+ selections: [+ { name: "convertPullRequestToDraft", body: ["(input:{pullRequestId:$", "pullRequestId", "}){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID+ },+ result: Schema.Struct({+ /** Converts a pull request to draft */+ convertPullRequestToDraft: Schema.NullOr(ConvertPullRequestToDraftPayload)+ })+})+export declare namespace ConvertPullRequestToDraft {+ export type Variables = typeof ConvertPullRequestToDraft.variables.Type+ export type Result = typeof ConvertPullRequestToDraft.result.Type+}++/** Autogenerated return type of ClosePullRequest. */+export const ClosePullRequestPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface ClosePullRequestPayload extends Schema.Struct.Type<typeof ClosePullRequestPayload.fields> {}++/** `mutation ClosePullRequest` */+export const ClosePullRequest = GraphQL.mutation("ClosePullRequest", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" }+ ],+ selections: [+ { name: "closePullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", "}){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID+ },+ result: Schema.Struct({+ /** Close a pull request. */+ closePullRequest: Schema.NullOr(ClosePullRequestPayload)+ })+})+export declare namespace ClosePullRequest {+ export type Variables = typeof ClosePullRequest.variables.Type+ export type Result = typeof ClosePullRequest.result.Type+}++/** Autogenerated return type of ReopenPullRequest. */+export const ReopenPullRequestPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface ReopenPullRequestPayload extends Schema.Struct.Type<typeof ReopenPullRequestPayload.fields> {}++/** `mutation ReopenPullRequest` */+export const ReopenPullRequest = GraphQL.mutation("ReopenPullRequest", {+ document: {+ variables: [+ { name: "pullRequestId", body: "ID!" }+ ],+ selections: [+ { name: "reopenPullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", "}){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ pullRequestId: Shared.ID+ },+ result: Schema.Struct({+ /** Reopen a pull request. */+ reopenPullRequest: Schema.NullOr(ReopenPullRequestPayload)+ })+})+export declare namespace ReopenPullRequest {+ export type Variables = typeof ReopenPullRequest.variables.Type+ export type Result = typeof ReopenPullRequest.result.Type+}++/** Autogenerated return type of AddComment. */+export const AddCommentPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface AddCommentPayload extends Schema.Struct.Type<typeof AddCommentPayload.fields> {}++/** `mutation AddComment` */+export const AddComment = GraphQL.mutation("AddComment", {+ document: {+ variables: [+ { name: "subjectId", body: "ID!" },+ { name: "body", body: "String!" }+ ],+ selections: [+ { name: "addComment", body: ["(input:{subjectId:$", "subjectId", " body:$", "body", "}){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ subjectId: Shared.ID,+ body: Schema.String+ },+ result: Schema.Struct({+ /** Adds a comment to an Issue or Pull Request. */+ addComment: Schema.NullOr(AddCommentPayload)+ })+})+export declare namespace AddComment {+ export type Variables = typeof AddComment.variables.Type+ export type Result = typeof AddComment.result.Type+}++/** Autogenerated return type of UpdateRefs. */+export const UpdateRefsPayload = Schema.Struct({+ /** A unique identifier for the client performing the mutation. */+ clientMutationId: Schema.NullOr(Schema.String)+})+export interface UpdateRefsPayload extends Schema.Struct.Type<typeof UpdateRefsPayload.fields> {}++/** `mutation DeletePullRequestBranch` */+export const DeletePullRequestBranch = GraphQL.mutation("DeletePullRequestBranch", {+ document: {+ variables: [+ { name: "input", body: "UpdateRefsInput!" }+ ],+ selections: [+ { name: "updateRefs", body: ["(input:$", "input", "){clientMutationId}"] }+ ],+ fragments: []+ },+ variables: {+ input: Shared.UpdateRefsInput+ },+ result: Schema.Struct({+ /**+ * Creates, updates and/or deletes multiple refs in a repository.+ *+ * This mutation takes a list of `RefUpdate`s and performs these updates+ * on the repository. All updates are performed atomically, meaning that+ * if one of them is rejected, no other ref will be modified.+ *+ * `RefUpdate.beforeOid` specifies that the given reference needs to point+ * to the given value before performing any updates. A value of+ * `0000000000000000000000000000000000000000` can be used to verify that+ * the references should not exist.+ *+ * `RefUpdate.afterOid` specifies the value that the given reference+ * will point to after performing all updates. A value of+ * `0000000000000000000000000000000000000000` can be used to delete a+ * reference.+ *+ * If `RefUpdate.force` is set to `true`, a non-fast-forward updates+ * for the given reference will be allowed.+ */+ updateRefs: Schema.NullOr(UpdateRefsPayload)+ })+})+export declare namespace DeletePullRequestBranch {+ export type Variables = typeof DeletePullRequestBranch.variables.Type+ export type Result = typeof DeletePullRequestBranch.result.Type+}++/** Every operation in pullRequestMutations.graphql. */+export const PullRequestMutationsGraphQLGroup = GraphQLGroup.make(AddReviewThreadReply, AddReaction, RemoveReaction, ResolveReviewThread, UnresolveReviewThread, UpdatePullRequest, RevertPullRequest, UpdateIssueComment, UpdateReviewComment, SetFileViewed, MergePullRequest, EnablePullRequestAutoMerge, DisablePullRequestAutoMerge, UpdatePullRequestBranch, MarkPullRequestReadyForReview, ConvertPullRequestToDraft, ClosePullRequest, ReopenPullRequest, AddComment, DeletePullRequestBranch)diff --git a/packages/source-control-github/src/server/pullRequestReads.graphql b/packages/source-control-github/src/server/pullRequestReads.graphqlnew file mode 100644index 00000000000..8eb8fee262d--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestReads.graphql@@ -0,0 +1,532 @@+# Reads of one pull request, or of the repository it belongs to.++# Resolves a listing's authors to avatars, which no listing field carries.+query ActorAvatars($ids: [ID!]!) {+ nodes(ids: $ids) {+ ... on User {+ login+ avatarUrl+ }+ ... on Bot {+ login+ avatarUrl+ }+ }+}++# A check context of the head commit. `isRequired` is asked for on github.com only (`$required`):+# an older Enterprise server may not know it, and an unknown field fails the whole read.+fragment CheckContext on StatusCheckRollupContext {+ ... on StatusContext {+ context+ state+ targetUrl+ createdAt+ description+ isRequired(pullRequestNumber: $number) @include(if: $required)+ }+ ... on CheckRun {+ name+ status+ conclusion+ startedAt+ completedAt+ detailsUrl+ isRequired(pullRequestNumber: $number) @include(if: $required)+ checkSuite {+ workflowRun {+ workflow {+ name+ }+ }+ }+ }+}++# The detail of a pull request with the viewer's standing on it. Pull refs let the comparison+# (`$headRef` is `refs/pull/<number>/head`) share this read without first resolving a fork branch.+query PullRequestCore(+ $owner: String!+ $name: String!+ $number: Int!+ $headRef: String!+ $required: Boolean!+) {+ repository(owner: $owner, name: $name) {+ mergeCommitAllowed+ squashMergeAllowed+ rebaseMergeAllowed+ viewerPermission+ pullRequest(number: $number) {+ number+ title+ url+ body+ state+ isDraft+ mergeable+ reviewDecision+ additions+ deletions+ changedFiles+ createdAt+ updatedAt+ mergedAt+ closedAt+ headRefName+ baseRefName+ headRefOid+ isCrossRepository+ headRepositoryOwner {+ login+ }+ # The source branch's own repository and ref, which is what deleting the branch needs: write+ # there, and a branch still to delete.+ headRepository {+ nameWithOwner+ viewerPermission+ }+ headRef {+ id+ }+ author {+ login+ avatarUrl+ ... on User {+ id+ name+ }+ }+ autoMergeRequest {+ mergeMethod+ }+ viewerCanUpdate+ viewerDidAuthor+ viewerCanUpdateBranch+ baseRef {+ compare(headRef: $headRef) {+ behindBy+ }+ }+ reviewRequests(first: 100) {+ nodes {+ requestedReviewer {+ ... on User {+ login+ name+ }+ ... on Bot {+ login+ }+ # A team's name and avatar are nullable differently from a person's, so they travel+ # under their own aliases. `combinedSlug` is the `org/slug` a reviewer row shows.+ ... on Team {+ slug+ combinedSlug+ teamName: name+ teamAvatarUrl: avatarUrl+ }+ }+ }+ }+ labels(first: 100) {+ nodes {+ name+ color+ }+ }+ commits(last: 1) {+ nodes {+ commit {+ statusCheckRollup {+ contexts(first: 100) {+ nodes {+ ...CheckContext+ }+ pageInfo {+ hasNextPage+ }+ }+ }+ }+ }+ }+ }+ }+}++# Every check context of the head commit, a page at a time, for a rollup past one page.+query PullRequestCheckContexts(+ $owner: String!+ $name: String!+ $number: Int!+ $required: Boolean!+ $after: String+) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ headRefOid+ commits(last: 1) {+ nodes {+ commit {+ statusCheckRollup {+ contexts(first: 100, after: $after) {+ nodes {+ ...CheckContext+ }+ pageInfo {+ hasNextPage+ endCursor+ }+ }+ }+ }+ }+ }+ }+ }+}++query PullRequestPreview($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ number+ title+ url+ state+ isDraft+ createdAt+ author {+ login+ avatarUrl+ ... on User {+ name+ }+ }+ }+ }+}++# The conversation a pull request carries outside its review threads: who opened it, its issue+# comments, its reviews and its newest commits. The two remark connections page independently, so+# each is switched on only while it has more to give; the first read (`$head`) asks for everything.+query PullRequestActivity(+ $owner: String!+ $name: String!+ $number: Int!+ $head: Boolean!+ $withComments: Boolean!+ $commentsAfter: String+ $withReviews: Boolean!+ $reviewsAfter: String+) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ author @include(if: $head) {+ login+ avatarUrl+ ... on User {+ name+ }+ }+ commits(last: 100) @include(if: $head) {+ nodes {+ commit {+ oid+ messageHeadline+ committedDate+ authors(first: 10) {+ nodes {+ name+ user {+ login+ }+ }+ }+ }+ }+ }+ comments(first: 100, after: $commentsAfter) @include(if: $withComments) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ id+ body+ createdAt+ lastEditedAt+ url+ author {+ login+ avatarUrl+ ... on User {+ name+ }+ }+ }+ }+ reviews(first: 100, after: $reviewsAfter) @include(if: $withReviews) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ id+ body+ state+ submittedAt+ lastEditedAt+ url+ author {+ login+ avatarUrl+ ... on User {+ name+ }+ }+ }+ }+ }+ }+}++# Open pull requests whose head branch has one name, from whichever repository it lives in.+query PullRequestHeads($owner: String!, $name: String!, $head: String!, $after: String) {+ repository(owner: $owner, name: $name) {+ pullRequests(first: 100, after: $after, states: [OPEN], headRefName: $head) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ number+ headRefOid+ isCrossRepository+ headRepositoryOwner {+ login+ }+ }+ }+ }+}++# The pull request's own node id, which is what a mutation against the pull request itself is+# addressed by. Read only when one is being written: the conversation carries an id for every+# remark in it, and the pull request is the one subject nothing in it names.+query PullRequestNodeId($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ id+ }+ }+}++# Where a client-given subject actually hangs: the pull request itself, or the pull request an+# issue comment, a review comment, or a review belongs to. Read before a mutation reaches it, so a+# subject named for one pull request cannot write on another's behalf.+query PullRequestSubject($owner: String!, $name: String!, $number: Int!, $subjectId: ID!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ id+ }+ }+ node(id: $subjectId) {+ id+ ... on IssueComment {+ pullRequest {+ id+ }+ }+ # Aliased apart: an issue comment's pull request is nullable, the other two are not.+ ... on PullRequestReviewComment {+ reviewCommentPullRequest: pullRequest {+ id+ }+ }+ ... on PullRequestReview {+ reviewPullRequest: pullRequest {+ id+ }+ }+ }+}++# Core detail and write checks share one read of permissions and merge settings.+query ViewerPermissions($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ mergeCommitAllowed+ squashMergeAllowed+ rebaseMergeAllowed+ viewerPermission+ pullRequest(number: $number) {+ viewerCanUpdate+ viewerDidAuthor+ headRepository {+ viewerPermission+ }+ }+ }+}++# Who a review may be asked of, and who it has already been asked of, in one read.+#+# `assignableUsers` is the list GitHub's own reviewer picker is built from (everyone with access to+# the repository) rather than `collaborators`, which the REST API refuses to anyone without push+# access and which would therefore be empty for exactly the reader most likely to be looking.+#+# Teams are asked for only where one has already been requested, so a request to a team can be+# taken back. The teams a repository could newly be sent to live on the owning organization and+# need `read:org`, which a repository-scoped token need not carry, and a query GitHub refuses+# fails whole, taking the people down with the teams.+query ReviewerCandidates($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ assignableUsers(first: 100) {+ pageInfo {+ hasNextPage+ }+ nodes {+ login+ name+ avatarUrl+ }+ }+ pullRequest(number: $number) {+ author {+ login+ }+ reviewRequests(first: 100) {+ nodes {+ requestedReviewer {+ ... on User {+ login+ name+ avatarUrl+ }+ # Aliased apart from a person's: their nullability differs.+ ... on Team {+ slug+ combinedSlug+ teamName: name+ teamAvatarUrl: avatarUrl+ }+ ... on Bot {+ login+ avatarUrl+ }+ }+ }+ }+ }+ }+}++query LabelCandidates($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ labels(first: 100, orderBy: { field: NAME, direction: ASC }) {+ pageInfo {+ hasNextPage+ }+ nodes {+ name+ color+ description+ }+ }+ pullRequest(number: $number) {+ labels(first: 100) {+ nodes {+ name+ }+ }+ }+ }+}++# Which files of a pull request the signed-in account has cleared. GraphQL only, since the REST+# files endpoint the patch is read from carries no viewed state, so this is a second read rather+# than a wider version of the first.+query PullRequestFilesViewed($owner: String!, $name: String!, $number: Int!, $after: String) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ files(first: 100, after: $after) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ path+ viewerViewedState+ }+ }+ }+ }+}++# What a merge that rewrites its message reads first: GitHub's own message for the method, and+# whether a merge queue will choose its own instead.+query PullRequestMergeMessage(+ $owner: String!+ $name: String!+ $number: Int!+ $method: PullRequestMergeMethod!+) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ isMergeQueueEnabled+ headRefOid+ viewerMergeBodyText(mergeType: $method)+ }+ }+}++# What `gh pr merge` and `gh pr update-branch` read before they act.+query PullRequestActionState($owner: String!, $name: String!, $number: Int!, $headRef: String!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ id+ headRefOid+ isMergeQueueEnabled+ mergeStateStatus+ baseRef {+ compare(headRef: $headRef) {+ behindBy+ }+ }+ }+ }+}++# What deleting a closed or merged pull request's source branch reads first: the branch, the+# commit it should still point at, and the repository it lives in.+query PullRequestBranchToDelete($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ state+ headRefName+ baseRefName+ headRefOid+ headRepository {+ id+ }+ }+ }+}++# The source branch as its own repository holds it now, beside that repository's default branch,+# so a branch that moved on or is the default is never deleted.+query PullRequestSourceBranch($repositoryId: ID!, $ref: String!) {+ node(id: $repositoryId) {+ ... on Repository {+ defaultBranchRef {+ name+ }+ ref(qualifiedName: $ref) {+ target {+ oid+ }+ }+ }+ }+}diff --git a/packages/source-control-github/src/server/pullRequestReads.graphql.ts b/packages/source-control-github/src/server/pullRequestReads.graphql.tsnew file mode 100644index 00000000000..3c93eba7dc8--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestReads.graphql.ts@@ -0,0 +1,1490 @@+// Generated by @effect/graphql-generator from pullRequestReads.graphql. Do not edit.+import { GraphQL, GraphQLGroup } from "effect/graphql"+import * as Schema from "effect/Schema"+import * as Shared from "../../schema/github.graphql.ts"++/** Represents an individual commit status context */+export const StatusContext = Schema.Struct({+ __typename: Schema.Literal("StatusContext"),+ /** The name of this status context. */+ context: Schema.String,+ /** The state of this status context. */+ state: GraphQL.enumLiterals(Shared.StatusState.literals),+ /** The URL for this status context. */+ targetUrl: Schema.NullOr(Shared.URI),+ /** Identifies the date and time when the object was created. */+ createdAt: Shared.DateTime,+ /** The description for this status context. */+ description: Schema.NullOr(Schema.String),+ /** Whether this is required to pass before merging for a specific pull request. */+ isRequired: Schema.optionalKey(Schema.Boolean)+})+export interface StatusContext extends Schema.Struct.Type<typeof StatusContext.fields> {}++/** A workflow contains meta information about an Actions workflow file. */+export const Workflow = Schema.Struct({+ /** The name of the workflow. */+ name: Schema.String+})+export interface Workflow extends Schema.Struct.Type<typeof Workflow.fields> {}++/** A workflow run. */+export const WorkflowRun = Schema.Struct({+ /** The workflow executed in this workflow run. */+ workflow: Workflow+})+export interface WorkflowRun extends Schema.Struct.Type<typeof WorkflowRun.fields> {}++/** A check suite. */+export const CheckSuite = Schema.Struct({+ /** The workflow run associated with this check suite. */+ workflowRun: Schema.NullOr(WorkflowRun)+})+export interface CheckSuite extends Schema.Struct.Type<typeof CheckSuite.fields> {}++/** A check run. */+export const CheckRun = Schema.Struct({+ __typename: Schema.Literal("CheckRun"),+ /** The name of the check for this check run. */+ name: Schema.String,+ /** The current status of the check run. */+ status: GraphQL.enumLiterals(Shared.CheckStatusState.literals),+ /** The conclusion of the check run. */+ conclusion: Schema.NullOr(GraphQL.enumLiterals(Shared.CheckConclusionState.literals)),+ /** Identifies the date and time when the check run was started. */+ startedAt: Schema.NullOr(Shared.DateTime),+ /** Identifies the date and time when the check run was completed. */+ completedAt: Schema.NullOr(Shared.DateTime),+ /** The URL from which to find full details of the check run on the integrator's site. */+ detailsUrl: Schema.NullOr(Shared.URI),+ /** Whether this is required to pass before merging for a specific pull request. */+ isRequired: Schema.optionalKey(Schema.Boolean),+ /** The check suite that this run is a part of. */+ checkSuite: CheckSuite+})+export interface CheckRun extends Schema.Struct.Type<typeof CheckRun.fields> {}++/** Types that can be inside a StatusCheckRollup context. */+export const StatusCheckRollupContextOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.StatusCheckRollupContext>()(["StatusContext", "CheckRun"])+})+export interface StatusCheckRollupContextOther extends Schema.Struct.Type<typeof StatusCheckRollupContextOther.fields> {}++/**+ * `fragment CheckContext on StatusCheckRollupContext`+ *+ * Types that can be inside a StatusCheckRollup context.+ */+export const CheckContext = Schema.Union([+ StatusContext,+ CheckRun,+ StatusCheckRollupContextOther+])+export type CheckContext = typeof CheckContext.Type++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const ActorAvatarsNodesUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String,+ /** A URL pointing to the user's public avatar. */+ avatarUrl: Shared.URI+})+export interface ActorAvatarsNodesUser extends Schema.Struct.Type<typeof ActorAvatarsNodesUser.fields> {}++/** A special type of user which takes actions on behalf of GitHub Apps. */+export const NodesBot = Schema.Struct({+ __typename: Schema.Literal("Bot"),+ /** The username of the actor. */+ login: Schema.String,+ /** A URL pointing to the GitHub App's public avatar. */+ avatarUrl: Shared.URI+})+export interface NodesBot extends Schema.Struct.Type<typeof NodesBot.fields> {}++/** An object with an ID. */+export const NodesNodeOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["User", "Bot"])+})+export interface NodesNodeOther extends Schema.Struct.Type<typeof NodesNodeOther.fields> {}++/** `query ActorAvatars` */+export const ActorAvatars = GraphQL.query("ActorAvatars", {+ document: {+ variables: [+ { name: "ids", body: "[ID!]!" }+ ],+ selections: [+ { name: "nodes", body: ["(ids:$", "ids", "){__typename...on User{login avatarUrl}...on Bot{login avatarUrl}}"] }+ ],+ fragments: []+ },+ variables: {+ ids: Schema.Array(Shared.ID)+ },+ result: Schema.Struct({+ /** Lookup nodes by a list of IDs. */+ nodes: Schema.Array(Schema.NullOr(Schema.Union([+ ActorAvatarsNodesUser,+ NodesBot,+ NodesNodeOther+ ])))+ })+})+export declare namespace ActorAvatars {+ export type Variables = typeof ActorAvatars.variables.Type+ export type Result = typeof ActorAvatars.result.Type+}++/** Represents an owner of a Repository. */+export const RepositoryOwner = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.RepositoryOwner>()([]),+ /** The username used to login. */+ login: Schema.String+})+export interface RepositoryOwner extends Schema.Struct.Type<typeof RepositoryOwner.fields> {}++/** A repository contains the content for a project. */+export const PullRequestCoreRepositoryPullRequestHeadRepositoryRepository = Schema.Struct({+ /** The repository's name with owner. */+ nameWithOwner: Schema.String,+ /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */+ viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals))+})+export interface PullRequestCoreRepositoryPullRequestHeadRepositoryRepository extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestHeadRepositoryRepository.fields> {}++/** Represents a Git reference. */+export const HeadRefRef = Schema.Struct({+ /** The Node ID of the Ref object */+ id: Shared.ID+})+export interface HeadRefRef extends Schema.Struct.Type<typeof HeadRefRef.fields> {}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const PullRequestCoreRepositoryPullRequestAuthorUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String,+ /** A URL pointing to the user's public avatar. */+ avatarUrl: Shared.URI,+ /** The Node ID of the User object */+ id: Shared.ID,+ /** The user's public profile name. */+ name: Schema.NullOr(Schema.String)+})+export interface PullRequestCoreRepositoryPullRequestAuthorUser extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestAuthorUser.fields> {}++/** Represents an object which can take actions on GitHub. Typically a User or Bot. */+export const ActorOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]),+ /** The username of the actor. */+ login: Schema.String,+ /** A URL pointing to the actor's public avatar. */+ avatarUrl: Shared.URI+})+export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {}++/** Represents an auto-merge request for a pull request */+export const AutoMergeRequest = Schema.Struct({+ /**+ * The merge method of the auto-merge request. If a merge queue is required by+ * the base branch, this value will be set by the merge queue when merging.+ */+ mergeMethod: GraphQL.enumLiterals(Shared.PullRequestMergeMethod.literals)+})+export interface AutoMergeRequest extends Schema.Struct.Type<typeof AutoMergeRequest.fields> {}++/** Represents a comparison between two commit revisions. */+export const Comparison = Schema.Struct({+ /** The number of commits behind the base branch. */+ behindBy: Shared.Int+})+export interface Comparison extends Schema.Struct.Type<typeof Comparison.fields> {}++/** Represents a Git reference. */+export const BaseRefRef = Schema.Struct({+ /** Compares the current ref as a base ref to another head ref, if the comparison can be made. */+ compare: Schema.NullOr(Comparison)+})+export interface BaseRefRef extends Schema.Struct.Type<typeof BaseRefRef.fields> {}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const RequestedReviewerUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String,+ /** The user's public profile name. */+ name: Schema.NullOr(Schema.String)+})+export interface RequestedReviewerUser extends Schema.Struct.Type<typeof RequestedReviewerUser.fields> {}++/** A special type of user which takes actions on behalf of GitHub Apps. */+export const RequestedReviewerBot = Schema.Struct({+ __typename: Schema.Literal("Bot"),+ /** The username of the actor. */+ login: Schema.String+})+export interface RequestedReviewerBot extends Schema.Struct.Type<typeof RequestedReviewerBot.fields> {}++/** A team of users in an organization. */+export const Team = Schema.Struct({+ __typename: Schema.Literal("Team"),+ /** The slug corresponding to the team. */+ slug: Schema.String,+ /** The slug corresponding to the organization and team. */+ combinedSlug: Schema.String,+ /** The name of the team. */+ teamName: Schema.String,+ /** A URL pointing to the team's avatar. */+ teamAvatarUrl: Schema.NullOr(Shared.URI)+})+export interface Team extends Schema.Struct.Type<typeof Team.fields> {}++/** Types that can be requested reviewers. */+export const RequestedReviewerOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.RequestedReviewer>()(["User", "Bot", "Team"])+})+export interface RequestedReviewerOther extends Schema.Struct.Type<typeof RequestedReviewerOther.fields> {}++/** A request for a user to review a pull request. */+export const PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest = Schema.Struct({+ /** The reviewer that is requested. */+ requestedReviewer: Schema.NullOr(Schema.Union([+ RequestedReviewerUser,+ RequestedReviewerBot,+ Team,+ RequestedReviewerOther+ ]))+})+export interface PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest.fields> {}++/** The connection type for ReviewRequest. */+export const PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest)))+})+export interface PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection.fields> {}++/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */+export const PullRequestCoreRepositoryPullRequestLabelsNodesLabel = Schema.Struct({+ /** Identifies the label name. */+ name: Schema.String,+ /** Identifies the label color. */+ color: Schema.String+})+export interface PullRequestCoreRepositoryPullRequestLabelsNodesLabel extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestLabelsNodesLabel.fields> {}++/** The connection type for Label. */+export const PullRequestCoreRepositoryPullRequestLabelsLabelConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCoreRepositoryPullRequestLabelsNodesLabel)))+})+export interface PullRequestCoreRepositoryPullRequestLabelsLabelConnection extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestLabelsLabelConnection.fields> {}++/** Information about pagination in a connection. */+export const PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo = Schema.Struct({+ /** When paginating forwards, are there more items? */+ hasNextPage: Schema.Boolean+})+export interface PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo.fields> {}++/** The connection type for StatusCheckRollupContext. */+export const PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(CheckContext))),+ /** Information to aid in pagination. */+ pageInfo: PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo+})+export interface PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection.fields> {}++/** Represents the rollup for both the check runs and status for a commit. */+export const PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup = Schema.Struct({+ /** A list of status contexts and check runs for this commit. */+ contexts: PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection+})+export interface PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup.fields> {}++/** Represents a Git commit. */+export const PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit = Schema.Struct({+ /** Check and Status rollup information for this commit. */+ statusCheckRollup: Schema.NullOr(PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup)+})+export interface PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit.fields> {}++/** Represents a Git commit part of a pull request. */+export const PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit = Schema.Struct({+ /** The Git commit object */+ commit: PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit+})+export interface PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit.fields> {}++/** The connection type for PullRequestCommit. */+export const PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit)))+})+export interface PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection.fields> {}++/** A repository pull request. */+export const PullRequestCoreRepositoryPullRequestPullRequest = Schema.Struct({+ /** Identifies the pull request number. */+ number: Shared.Int,+ /** Identifies the pull request title. */+ title: Schema.String,+ /** The HTTP URL for this pull request. */+ url: Shared.URI,+ /** The body as Markdown. */+ body: Schema.String,+ /** Identifies the state of the pull request. */+ state: GraphQL.enumLiterals(Shared.PullRequestState.literals),+ /** Identifies if the pull request is a draft. */+ isDraft: Schema.Boolean,+ /** Whether or not the pull request can be merged based on the existence of merge conflicts. */+ mergeable: GraphQL.enumLiterals(Shared.MergeableState.literals),+ /** The current status of this pull request with respect to code review. */+ reviewDecision: Schema.NullOr(GraphQL.enumLiterals(Shared.PullRequestReviewDecision.literals)),+ /** The number of additions in this pull request. */+ additions: Shared.Int,+ /** The number of deletions in this pull request. */+ deletions: Shared.Int,+ /** The number of changed files in this pull request. */+ changedFiles: Shared.Int,+ /** Identifies the date and time when the object was created. */+ createdAt: Shared.DateTime,+ /** Identifies the date and time when the object was last updated. */+ updatedAt: Shared.DateTime,+ /** The date and time that the pull request was merged. */+ mergedAt: Schema.NullOr(Shared.DateTime),+ /** Identifies the date and time when the object was closed. */+ closedAt: Schema.NullOr(Shared.DateTime),+ /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */+ headRefName: Schema.String,+ /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */+ baseRefName: Schema.String,+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** The head and base repositories are different. */+ isCrossRepository: Schema.Boolean,+ /** The owner of the repository associated with this pull request's head Ref. */+ headRepositoryOwner: Schema.NullOr(RepositoryOwner),+ /** The repository associated with this pull request's head Ref. */+ headRepository: Schema.NullOr(PullRequestCoreRepositoryPullRequestHeadRepositoryRepository),+ /** Identifies the head Ref associated with the pull request. */+ headRef: Schema.NullOr(HeadRefRef),+ /** The actor who authored the comment. */+ author: Schema.NullOr(Schema.Union([+ PullRequestCoreRepositoryPullRequestAuthorUser,+ ActorOther+ ])),+ /** Returns the auto-merge request object if one exists for this pull request. */+ autoMergeRequest: Schema.NullOr(AutoMergeRequest),+ /** Check if the current viewer can update this object. */+ viewerCanUpdate: Schema.Boolean,+ /** Did the viewer author this comment. */+ viewerDidAuthor: Schema.Boolean,+ /**+ * Whether or not the viewer can update the head ref of this PR, by merging or rebasing the base ref.+ * If the head ref is up to date or unable to be updated by this user, this will return false.+ */+ viewerCanUpdateBranch: Schema.Boolean,+ /** Identifies the base Ref associated with the pull request. */+ baseRef: Schema.NullOr(BaseRefRef),+ /** A list of review requests associated with the pull request. */+ reviewRequests: Schema.NullOr(PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection),+ /** A list of labels associated with the object. */+ labels: Schema.NullOr(PullRequestCoreRepositoryPullRequestLabelsLabelConnection),+ /** A list of commits present in this pull request's head branch not present in the base branch. */+ commits: PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection+})+export interface PullRequestCoreRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestCoreRepositoryRepository = Schema.Struct({+ /** Whether or not PRs are merged with a merge commit on this repository. */+ mergeCommitAllowed: Schema.Boolean,+ /** Whether or not squash-merging is enabled on this repository. */+ squashMergeAllowed: Schema.Boolean,+ /** Whether or not rebase-merging is enabled on this repository. */+ rebaseMergeAllowed: Schema.Boolean,+ /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */+ viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)),+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestCoreRepositoryPullRequestPullRequest)+})+export interface PullRequestCoreRepositoryRepository extends Schema.Struct.Type<typeof PullRequestCoreRepositoryRepository.fields> {}++/** `query PullRequestCore` */+export const PullRequestCore = GraphQL.query("PullRequestCore", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "headRef", body: "String!" },+ { name: "required", body: "Boolean!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){mergeCommitAllowed squashMergeAllowed rebaseMergeAllowed viewerPermission pullRequest(number:$", "number", "){number title url body state isDraft mergeable reviewDecision additions deletions changedFiles createdAt updatedAt mergedAt closedAt headRefName baseRefName headRefOid isCrossRepository headRepositoryOwner{__typename login}headRepository{nameWithOwner viewerPermission}headRef{id}author{__typename login avatarUrl...on User{id name}}autoMergeRequest{mergeMethod}viewerCanUpdate viewerDidAuthor viewerCanUpdateBranch baseRef{compare(headRef:$", "headRef", "){behindBy}}reviewRequests(first:100){nodes{requestedReviewer{__typename...on User{login name}...on Bot{login}...on Team{slug combinedSlug teamName:name teamAvatarUrl:avatarUrl}}}}labels(first:100){nodes{name color}}commits(last:1){nodes{commit{statusCheckRollup{contexts(first:100){nodes{__typename...", "CheckContext", "}pageInfo{hasNextPage}}}}}}}}"] }+ ],+ fragments: [+ { name: "CheckContext", body: ["on StatusCheckRollupContext{__typename...on StatusContext{context state targetUrl createdAt description isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")}...on CheckRun{name status conclusion startedAt completedAt detailsUrl isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")checkSuite{workflowRun{workflow{name}}}}}"] }+ ]+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ headRef: Schema.String,+ required: Schema.Boolean+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestCoreRepositoryRepository)+ })+})+export declare namespace PullRequestCore {+ export type Variables = typeof PullRequestCore.variables.Type+ export type Result = typeof PullRequestCore.result.Type+}++/** Information about pagination in a connection. */+export const PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo = Schema.Struct({+ /** When paginating forwards, are there more items? */+ hasNextPage: Schema.Boolean,+ /** When paginating forwards, the cursor to continue. */+ endCursor: Schema.NullOr(Schema.String)+})+export interface PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo.fields> {}++/** The connection type for StatusCheckRollupContext. */+export const PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(CheckContext))),+ /** Information to aid in pagination. */+ pageInfo: PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo+})+export interface PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection.fields> {}++/** Represents the rollup for both the check runs and status for a commit. */+export const PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup = Schema.Struct({+ /** A list of status contexts and check runs for this commit. */+ contexts: PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsStatusCheckRollupContextConnection+})+export interface PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup.fields> {}++/** Represents a Git commit. */+export const PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitCommit = Schema.Struct({+ /** Check and Status rollup information for this commit. */+ statusCheckRollup: Schema.NullOr(PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupStatusCheckRollup)+})+export interface PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitCommit extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitCommit.fields> {}++/** Represents a Git commit part of a pull request. */+export const PullRequestCheckContextsRepositoryPullRequestCommitsNodesPullRequestCommit = Schema.Struct({+ /** The Git commit object */+ commit: PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitCommit+})+export interface PullRequestCheckContextsRepositoryPullRequestCommitsNodesPullRequestCommit extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestCommitsNodesPullRequestCommit.fields> {}++/** The connection type for PullRequestCommit. */+export const PullRequestCheckContextsRepositoryPullRequestCommitsPullRequestCommitConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCheckContextsRepositoryPullRequestCommitsNodesPullRequestCommit)))+})+export interface PullRequestCheckContextsRepositoryPullRequestCommitsPullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestCommitsPullRequestCommitConnection.fields> {}++/** A repository pull request. */+export const PullRequestCheckContextsRepositoryPullRequestPullRequest = Schema.Struct({+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** A list of commits present in this pull request's head branch not present in the base branch. */+ commits: PullRequestCheckContextsRepositoryPullRequestCommitsPullRequestCommitConnection+})+export interface PullRequestCheckContextsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestCheckContextsRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestCheckContextsRepositoryPullRequestPullRequest)+})+export interface PullRequestCheckContextsRepositoryRepository extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryRepository.fields> {}++/** `query PullRequestCheckContexts` */+export const PullRequestCheckContexts = GraphQL.query("PullRequestCheckContexts", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "required", body: "Boolean!" },+ { name: "after", body: "String" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){headRefOid commits(last:1){nodes{commit{statusCheckRollup{contexts(first:100 after:$", "after", "){nodes{__typename...", "CheckContext", "}pageInfo{hasNextPage endCursor}}}}}}}}"] }+ ],+ fragments: [+ { name: "CheckContext", body: ["on StatusCheckRollupContext{__typename...on StatusContext{context state targetUrl createdAt description isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")}...on CheckRun{name status conclusion startedAt completedAt detailsUrl isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")checkSuite{workflowRun{workflow{name}}}}}"] }+ ]+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ required: Schema.Boolean,+ after: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestCheckContextsRepositoryRepository)+ })+})+export declare namespace PullRequestCheckContexts {+ export type Variables = typeof PullRequestCheckContexts.variables.Type+ export type Result = typeof PullRequestCheckContexts.result.Type+}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const PullRequestPreviewRepositoryPullRequestAuthorUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String,+ /** A URL pointing to the user's public avatar. */+ avatarUrl: Shared.URI,+ /** The user's public profile name. */+ name: Schema.NullOr(Schema.String)+})+export interface PullRequestPreviewRepositoryPullRequestAuthorUser extends Schema.Struct.Type<typeof PullRequestPreviewRepositoryPullRequestAuthorUser.fields> {}++/** A repository pull request. */+export const PullRequestPreviewRepositoryPullRequestPullRequest = Schema.Struct({+ /** Identifies the pull request number. */+ number: Shared.Int,+ /** Identifies the pull request title. */+ title: Schema.String,+ /** The HTTP URL for this pull request. */+ url: Shared.URI,+ /** Identifies the state of the pull request. */+ state: GraphQL.enumLiterals(Shared.PullRequestState.literals),+ /** Identifies if the pull request is a draft. */+ isDraft: Schema.Boolean,+ /** Identifies the date and time when the object was created. */+ createdAt: Shared.DateTime,+ /** The actor who authored the comment. */+ author: Schema.NullOr(Schema.Union([+ PullRequestPreviewRepositoryPullRequestAuthorUser,+ ActorOther+ ]))+})+export interface PullRequestPreviewRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestPreviewRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestPreviewRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestPreviewRepositoryPullRequestPullRequest)+})+export interface PullRequestPreviewRepositoryRepository extends Schema.Struct.Type<typeof PullRequestPreviewRepositoryRepository.fields> {}++/** `query PullRequestPreview` */+export const PullRequestPreview = GraphQL.query("PullRequestPreview", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){number title url state isDraft createdAt author{__typename login avatarUrl...on User{name}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestPreviewRepositoryRepository)+ })+})+export declare namespace PullRequestPreview {+ export type Variables = typeof PullRequestPreview.variables.Type+ export type Result = typeof PullRequestPreview.result.Type+}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const UserUser = Schema.Struct({+ /** The username used to login. */+ login: Schema.String+})+export interface UserUser extends Schema.Struct.Type<typeof UserUser.fields> {}++/** Represents an actor in a Git commit (ie. an author or committer). */+export const GitActor = Schema.Struct({+ /** The name in the Git commit. */+ name: Schema.NullOr(Schema.String),+ /** The email in the Git commit. */+ email: Schema.NullOr(Schema.String),+ /** The GitHub user corresponding to the email field. Null if no such user exists. */+ user: Schema.NullOr(UserUser)+})+export interface GitActor extends Schema.Struct.Type<typeof GitActor.fields> {}++/** The connection type for GitActor. */+export const GitActorConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(GitActor)))+})+export interface GitActorConnection extends Schema.Struct.Type<typeof GitActorConnection.fields> {}++/** Represents a Git commit. */+export const PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit = Schema.Struct({+ /** The Git object ID */+ oid: Shared.GitObjectID,+ /** The Git commit message headline */+ messageHeadline: Schema.String,+ /** The datetime when this commit was committed. */+ committedDate: Shared.DateTime,+ /**+ * The list of authors for this commit based on the git author and the Co-authored-by+ * message trailer. The git author will always be first.+ */+ authors: GitActorConnection+})+export interface PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit.fields> {}++/** Represents a Git commit part of a pull request. */+export const PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit = Schema.Struct({+ /** The Git commit object */+ commit: PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit+})+export interface PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit.fields> {}++/** The connection type for PullRequestCommit. */+export const PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit)))+})+export interface PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection.fields> {}++/** Represents a comment on an Issue. */+export const NodesIssueComment = Schema.Struct({+ /** The Node ID of the IssueComment object */+ id: Shared.ID,+ /** The body as Markdown. */+ body: Schema.String,+ /** Identifies the date and time when the object was created. */+ createdAt: Shared.DateTime,+ /** The moment the editor made the last edit */+ lastEditedAt: Schema.NullOr(Shared.DateTime),+ /** The HTTP URL for this issue comment */+ url: Shared.URI,+ /** The actor who authored the comment. */+ author: Schema.NullOr(Schema.Union([+ PullRequestPreviewRepositoryPullRequestAuthorUser,+ ActorOther+ ]))+})+export interface NodesIssueComment extends Schema.Struct.Type<typeof NodesIssueComment.fields> {}++/** The connection type for IssueComment. */+export const IssueCommentConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))+})+export interface IssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentConnection.fields> {}++/** A review object for a given pull request. */+export const NodesPullRequestReview = Schema.Struct({+ /** The Node ID of the PullRequestReview object */+ id: Shared.ID,+ /** Identifies the pull request review body. */+ body: Schema.String,+ /** Identifies the current state of the pull request review. */+ state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals),+ /** Identifies when the Pull Request Review was submitted */+ submittedAt: Schema.NullOr(Shared.DateTime),+ /** The moment the editor made the last edit */+ lastEditedAt: Schema.NullOr(Shared.DateTime),+ /** The HTTP URL permalink for this PullRequestReview. */+ url: Shared.URI,+ /** The actor who authored the comment. */+ author: Schema.NullOr(Schema.Union([+ PullRequestPreviewRepositoryPullRequestAuthorUser,+ ActorOther+ ]))+})+export interface NodesPullRequestReview extends Schema.Struct.Type<typeof NodesPullRequestReview.fields> {}++/** The connection type for PullRequestReview. */+export const PullRequestReviewConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequestReview)))+})+export interface PullRequestReviewConnection extends Schema.Struct.Type<typeof PullRequestReviewConnection.fields> {}++/** A repository pull request. */+export const PullRequestActivityRepositoryPullRequestPullRequest = Schema.Struct({+ /** The actor who authored the comment. */+ author: Schema.optionalKey(Schema.NullOr(Schema.Union([+ PullRequestPreviewRepositoryPullRequestAuthorUser,+ ActorOther+ ]))),+ /** A list of commits present in this pull request's head branch not present in the base branch. */+ commits: Schema.optionalKey(PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection),+ /** A list of comments associated with the pull request. */+ comments: Schema.optionalKey(IssueCommentConnection),+ /** A list of reviews associated with the pull request. */+ reviews: Schema.optionalKey(Schema.NullOr(PullRequestReviewConnection))+})+export interface PullRequestActivityRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestActivityRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestActivityRepositoryPullRequestPullRequest)+})+export interface PullRequestActivityRepositoryRepository extends Schema.Struct.Type<typeof PullRequestActivityRepositoryRepository.fields> {}++/** `query PullRequestActivity` */+export const PullRequestActivity = GraphQL.query("PullRequestActivity", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "head", body: "Boolean!" },+ { name: "withComments", body: "Boolean!" },+ { name: "commentsAfter", body: "String" },+ { name: "withReviews", body: "Boolean!" },+ { name: "reviewsAfter", body: "String" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){author@include(if:$", "head", "){__typename login avatarUrl...on User{name}}commits(last:100)@include(if:$", "head", "){nodes{commit{oid messageHeadline committedDate authors(first:10){nodes{name email user{login}}}}}}comments(first:100 after:$", "commentsAfter", ")@include(if:$", "withComments", "){pageInfo{hasNextPage endCursor}nodes{id body createdAt lastEditedAt url author{__typename login avatarUrl...on User{name}}}}reviews(first:100 after:$", "reviewsAfter", ")@include(if:$", "withReviews", "){pageInfo{hasNextPage endCursor}nodes{id body state submittedAt lastEditedAt url author{__typename login avatarUrl...on User{name}}}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ head: Schema.Boolean,+ withComments: Schema.Boolean,+ commentsAfter: Schema.optional(Schema.NullOr(Schema.String)),+ withReviews: Schema.Boolean,+ reviewsAfter: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestActivityRepositoryRepository)+ })+})+export declare namespace PullRequestActivity {+ export type Variables = typeof PullRequestActivity.variables.Type+ export type Result = typeof PullRequestActivity.result.Type+}++/** A repository pull request. */+export const NodesPullRequest = Schema.Struct({+ /** Identifies the pull request number. */+ number: Shared.Int,+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** The head and base repositories are different. */+ isCrossRepository: Schema.Boolean,+ /** The owner of the repository associated with this pull request's head Ref. */+ headRepositoryOwner: Schema.NullOr(RepositoryOwner)+})+export interface NodesPullRequest extends Schema.Struct.Type<typeof NodesPullRequest.fields> {}++/** The connection type for PullRequest. */+export const PullRequestConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequest)))+})+export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {}++/** A repository contains the content for a project. */+export const PullRequestHeadsRepositoryRepository = Schema.Struct({+ /** A list of pull requests that have been opened in the repository. */+ pullRequests: PullRequestConnection+})+export interface PullRequestHeadsRepositoryRepository extends Schema.Struct.Type<typeof PullRequestHeadsRepositoryRepository.fields> {}++/** `query PullRequestHeads` */+export const PullRequestHeads = GraphQL.query("PullRequestHeads", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "head", body: "String!" },+ { name: "after", body: "String" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequests(first:100 after:$", "after", " states:[OPEN]headRefName:$", "head", "){pageInfo{hasNextPage endCursor}nodes{number headRefOid isCrossRepository headRepositoryOwner{__typename login}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ head: Schema.String,+ after: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestHeadsRepositoryRepository)+ })+})+export declare namespace PullRequestHeads {+ export type Variables = typeof PullRequestHeads.variables.Type+ export type Result = typeof PullRequestHeads.result.Type+}++/** A repository pull request. */+export const PullRequestNodeIdRepositoryPullRequestPullRequest = Schema.Struct({+ /** The Node ID of the PullRequest object */+ id: Shared.ID+})+export interface PullRequestNodeIdRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestNodeIdRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestNodeIdRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestNodeIdRepositoryPullRequestPullRequest)+})+export interface PullRequestNodeIdRepositoryRepository extends Schema.Struct.Type<typeof PullRequestNodeIdRepositoryRepository.fields> {}++/** `query PullRequestNodeId` */+export const PullRequestNodeId = GraphQL.query("PullRequestNodeId", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestNodeIdRepositoryRepository)+ })+})+export declare namespace PullRequestNodeId {+ export type Variables = typeof PullRequestNodeId.variables.Type+ export type Result = typeof PullRequestNodeId.result.Type+}++/** Represents a comment on an Issue. */+export const NodeIssueComment = Schema.Struct({+ __typename: Schema.Literal("IssueComment"),+ /** The Node ID of the IssueComment object */+ id: Shared.ID,+ /**+ * Returns the pull request associated with the comment, if this comment was made on a+ * pull request.+ */+ pullRequest: Schema.NullOr(PullRequestNodeIdRepositoryPullRequestPullRequest)+})+export interface NodeIssueComment extends Schema.Struct.Type<typeof NodeIssueComment.fields> {}++/** A review comment associated with a given repository pull request. */+export const PullRequestReviewComment = Schema.Struct({+ __typename: Schema.Literal("PullRequestReviewComment"),+ /** The Node ID of the PullRequestReviewComment object */+ id: Shared.ID,+ /** The pull request associated with this review comment. */+ reviewCommentPullRequest: PullRequestNodeIdRepositoryPullRequestPullRequest+})+export interface PullRequestReviewComment extends Schema.Struct.Type<typeof PullRequestReviewComment.fields> {}++/** A review object for a given pull request. */+export const NodePullRequestReview = Schema.Struct({+ __typename: Schema.Literal("PullRequestReview"),+ /** The Node ID of the PullRequestReview object */+ id: Shared.ID,+ /** Identifies the pull request associated with this pull request review. */+ reviewPullRequest: PullRequestNodeIdRepositoryPullRequestPullRequest+})+export interface NodePullRequestReview extends Schema.Struct.Type<typeof NodePullRequestReview.fields> {}++/** An object with an ID. */+export const PullRequestSubjectNodeNodeOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["IssueComment", "PullRequestReviewComment", "PullRequestReview"]),+ /** ID of the object. */+ id: Shared.ID+})+export interface PullRequestSubjectNodeNodeOther extends Schema.Struct.Type<typeof PullRequestSubjectNodeNodeOther.fields> {}++/** `query PullRequestSubject` */+export const PullRequestSubject = GraphQL.query("PullRequestSubject", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "subjectId", body: "ID!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] },+ { name: "node", body: ["(id:$", "subjectId", "){__typename id...on IssueComment{pullRequest{id}}...on PullRequestReviewComment{reviewCommentPullRequest:pullRequest{id}}...on PullRequestReview{reviewPullRequest:pullRequest{id}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ subjectId: Shared.ID+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestNodeIdRepositoryRepository),+ /** Fetches an object given its ID. */+ node: Schema.NullOr(Schema.Union([+ NodeIssueComment,+ PullRequestReviewComment,+ NodePullRequestReview,+ PullRequestSubjectNodeNodeOther+ ]))+ })+})+export declare namespace PullRequestSubject {+ export type Variables = typeof PullRequestSubject.variables.Type+ export type Result = typeof PullRequestSubject.result.Type+}++/** A repository contains the content for a project. */+export const ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository = Schema.Struct({+ /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */+ viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals))+})+export interface ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository extends Schema.Struct.Type<typeof ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository.fields> {}++/** A repository pull request. */+export const ViewerPermissionsRepositoryPullRequestPullRequest = Schema.Struct({+ /** Check if the current viewer can update this object. */+ viewerCanUpdate: Schema.Boolean,+ /** Did the viewer author this comment. */+ viewerDidAuthor: Schema.Boolean,+ /** The repository associated with this pull request's head Ref. */+ headRepository: Schema.NullOr(ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository)+})+export interface ViewerPermissionsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ViewerPermissionsRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const ViewerPermissionsRepositoryRepository = Schema.Struct({+ /** Whether or not PRs are merged with a merge commit on this repository. */+ mergeCommitAllowed: Schema.Boolean,+ /** Whether or not squash-merging is enabled on this repository. */+ squashMergeAllowed: Schema.Boolean,+ /** Whether or not rebase-merging is enabled on this repository. */+ rebaseMergeAllowed: Schema.Boolean,+ /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */+ viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)),+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(ViewerPermissionsRepositoryPullRequestPullRequest)+})+export interface ViewerPermissionsRepositoryRepository extends Schema.Struct.Type<typeof ViewerPermissionsRepositoryRepository.fields> {}++/** `query ViewerPermissions` */+export const ViewerPermissions = GraphQL.query("ViewerPermissions", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){mergeCommitAllowed squashMergeAllowed rebaseMergeAllowed viewerPermission pullRequest(number:$", "number", "){viewerCanUpdate viewerDidAuthor headRepository{viewerPermission}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(ViewerPermissionsRepositoryRepository)+ })+})+export declare namespace ViewerPermissions {+ export type Variables = typeof ViewerPermissions.variables.Type+ export type Result = typeof ViewerPermissions.result.Type+}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const AssignableUsersNodesUser = Schema.Struct({+ /** The username used to login. */+ login: Schema.String,+ /** The user's public profile name. */+ name: Schema.NullOr(Schema.String),+ /** A URL pointing to the user's public avatar. */+ avatarUrl: Shared.URI+})+export interface AssignableUsersNodesUser extends Schema.Struct.Type<typeof AssignableUsersNodesUser.fields> {}++/** A list of users. */+export const UserConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssignableUsersNodesUser)))+})+export interface UserConnection extends Schema.Struct.Type<typeof UserConnection.fields> {}++/** Represents an object which can take actions on GitHub. Typically a User or Bot. */+export const Actor = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),+ /** The username of the actor. */+ login: Schema.String+})+export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}++/** A request for a user to review a pull request. */+export const ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest = Schema.Struct({+ /** The reviewer that is requested. */+ requestedReviewer: Schema.NullOr(Schema.Union([+ PullRequestPreviewRepositoryPullRequestAuthorUser,+ Team,+ NodesBot,+ RequestedReviewerOther+ ]))+})+export interface ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest.fields> {}++/** The connection type for ReviewRequest. */+export const ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest)))+})+export interface ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection.fields> {}++/** A repository pull request. */+export const ReviewerCandidatesRepositoryPullRequestPullRequest = Schema.Struct({+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor),+ /** A list of review requests associated with the pull request. */+ reviewRequests: Schema.NullOr(ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection)+})+export interface ReviewerCandidatesRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const ReviewerCandidatesRepositoryRepository = Schema.Struct({+ /** A list of users that can be assigned to issues in this repository. */+ assignableUsers: UserConnection,+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(ReviewerCandidatesRepositoryPullRequestPullRequest)+})+export interface ReviewerCandidatesRepositoryRepository extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryRepository.fields> {}++/** `query ReviewerCandidates` */+export const ReviewerCandidates = GraphQL.query("ReviewerCandidates", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){assignableUsers(first:100){pageInfo{hasNextPage}nodes{login name avatarUrl}}pullRequest(number:$", "number", "){author{__typename login}reviewRequests(first:100){nodes{requestedReviewer{__typename...on User{login name avatarUrl}...on Team{slug combinedSlug teamName:name teamAvatarUrl:avatarUrl}...on Bot{login avatarUrl}}}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(ReviewerCandidatesRepositoryRepository)+ })+})+export declare namespace ReviewerCandidates {+ export type Variables = typeof ReviewerCandidates.variables.Type+ export type Result = typeof ReviewerCandidates.result.Type+}++/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */+export const RepositoryLabelsNodesLabel = Schema.Struct({+ /** Identifies the label name. */+ name: Schema.String,+ /** Identifies the label color. */+ color: Schema.String,+ /** A brief description of this label. */+ description: Schema.NullOr(Schema.String)+})+export interface RepositoryLabelsNodesLabel extends Schema.Struct.Type<typeof RepositoryLabelsNodesLabel.fields> {}++/** The connection type for Label. */+export const RepositoryLabelsLabelConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PullRequestCoreRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(RepositoryLabelsNodesLabel)))+})+export interface RepositoryLabelsLabelConnection extends Schema.Struct.Type<typeof RepositoryLabelsLabelConnection.fields> {}++/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */+export const LabelCandidatesRepositoryPullRequestLabelsNodesLabel = Schema.Struct({+ /** Identifies the label name. */+ name: Schema.String+})+export interface LabelCandidatesRepositoryPullRequestLabelsNodesLabel extends Schema.Struct.Type<typeof LabelCandidatesRepositoryPullRequestLabelsNodesLabel.fields> {}++/** The connection type for Label. */+export const LabelCandidatesRepositoryPullRequestLabelsLabelConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LabelCandidatesRepositoryPullRequestLabelsNodesLabel)))+})+export interface LabelCandidatesRepositoryPullRequestLabelsLabelConnection extends Schema.Struct.Type<typeof LabelCandidatesRepositoryPullRequestLabelsLabelConnection.fields> {}++/** A repository pull request. */+export const LabelCandidatesRepositoryPullRequestPullRequest = Schema.Struct({+ /** A list of labels associated with the object. */+ labels: Schema.NullOr(LabelCandidatesRepositoryPullRequestLabelsLabelConnection)+})+export interface LabelCandidatesRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof LabelCandidatesRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const LabelCandidatesRepositoryRepository = Schema.Struct({+ /** A list of labels associated with the repository. */+ labels: Schema.NullOr(RepositoryLabelsLabelConnection),+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(LabelCandidatesRepositoryPullRequestPullRequest)+})+export interface LabelCandidatesRepositoryRepository extends Schema.Struct.Type<typeof LabelCandidatesRepositoryRepository.fields> {}++/** `query LabelCandidates` */+export const LabelCandidates = GraphQL.query("LabelCandidates", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){labels(first:100 orderBy:{field:NAME direction:ASC}){pageInfo{hasNextPage}nodes{name color description}}pullRequest(number:$", "number", "){labels(first:100){nodes{name}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(LabelCandidatesRepositoryRepository)+ })+})+export declare namespace LabelCandidates {+ export type Variables = typeof LabelCandidates.variables.Type+ export type Result = typeof LabelCandidates.result.Type+}++/** A file changed in a pull request. */+export const PullRequestChangedFile = Schema.Struct({+ /** The path of the file. */+ path: Schema.String,+ /** The state of the file for the viewer. */+ viewerViewedState: GraphQL.enumLiterals(Shared.FileViewedState.literals)+})+export interface PullRequestChangedFile extends Schema.Struct.Type<typeof PullRequestChangedFile.fields> {}++/** The connection type for PullRequestChangedFile. */+export const PullRequestChangedFileConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PullRequestCheckContextsRepositoryPullRequestCommitsNodesCommitStatusCheckRollupContextsPageInfoPageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestChangedFile)))+})+export interface PullRequestChangedFileConnection extends Schema.Struct.Type<typeof PullRequestChangedFileConnection.fields> {}++/** A repository pull request. */+export const PullRequestFilesViewedRepositoryPullRequestPullRequest = Schema.Struct({+ /** Lists the files changed within this pull request. */+ files: Schema.NullOr(PullRequestChangedFileConnection)+})+export interface PullRequestFilesViewedRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestFilesViewedRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestFilesViewedRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestFilesViewedRepositoryPullRequestPullRequest)+})+export interface PullRequestFilesViewedRepositoryRepository extends Schema.Struct.Type<typeof PullRequestFilesViewedRepositoryRepository.fields> {}++/** `query PullRequestFilesViewed` */+export const PullRequestFilesViewed = GraphQL.query("PullRequestFilesViewed", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "after", body: "String" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){files(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{path viewerViewedState}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ after: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestFilesViewedRepositoryRepository)+ })+})+export declare namespace PullRequestFilesViewed {+ export type Variables = typeof PullRequestFilesViewed.variables.Type+ export type Result = typeof PullRequestFilesViewed.result.Type+}++/** A repository pull request. */+export const PullRequestMergeMessageRepositoryPullRequestPullRequest = Schema.Struct({+ /** Indicates whether the pull request's base ref has a merge queue enabled. */+ isMergeQueueEnabled: Schema.Boolean,+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** The merge body text for the viewer and method. */+ viewerMergeBodyText: Schema.String+})+export interface PullRequestMergeMessageRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestMergeMessageRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestMergeMessageRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestMergeMessageRepositoryPullRequestPullRequest)+})+export interface PullRequestMergeMessageRepositoryRepository extends Schema.Struct.Type<typeof PullRequestMergeMessageRepositoryRepository.fields> {}++/** `query PullRequestMergeMessage` */+export const PullRequestMergeMessage = GraphQL.query("PullRequestMergeMessage", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "method", body: "PullRequestMergeMethod!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){isMergeQueueEnabled headRefOid viewerMergeBodyText(mergeType:$", "method", ")}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ method: Shared.PullRequestMergeMethod+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestMergeMessageRepositoryRepository)+ })+})+export declare namespace PullRequestMergeMessage {+ export type Variables = typeof PullRequestMergeMessage.variables.Type+ export type Result = typeof PullRequestMergeMessage.result.Type+}++/** A repository pull request. */+export const PullRequestActionStateRepositoryPullRequestPullRequest = Schema.Struct({+ /** The Node ID of the PullRequest object */+ id: Shared.ID,+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** Indicates whether the pull request's base ref has a merge queue enabled. */+ isMergeQueueEnabled: Schema.Boolean,+ /** Detailed information about the current pull request merge state status. */+ mergeStateStatus: GraphQL.enumLiterals(Shared.MergeStateStatus.literals),+ /** Identifies the base Ref associated with the pull request. */+ baseRef: Schema.NullOr(BaseRefRef)+})+export interface PullRequestActionStateRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestActionStateRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestActionStateRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestActionStateRepositoryPullRequestPullRequest)+})+export interface PullRequestActionStateRepositoryRepository extends Schema.Struct.Type<typeof PullRequestActionStateRepositoryRepository.fields> {}++/** `query PullRequestActionState` */+export const PullRequestActionState = GraphQL.query("PullRequestActionState", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "headRef", body: "String!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id headRefOid isMergeQueueEnabled mergeStateStatus baseRef{compare(headRef:$", "headRef", "){behindBy}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ headRef: Schema.String+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestActionStateRepositoryRepository)+ })+})+export declare namespace PullRequestActionState {+ export type Variables = typeof PullRequestActionState.variables.Type+ export type Result = typeof PullRequestActionState.result.Type+}++/** A repository contains the content for a project. */+export const PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository = Schema.Struct({+ /** The Node ID of the Repository object */+ id: Shared.ID+})+export interface PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository extends Schema.Struct.Type<typeof PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository.fields> {}++/** A repository pull request. */+export const PullRequestBranchToDeleteRepositoryPullRequestPullRequest = Schema.Struct({+ /** Identifies the state of the pull request. */+ state: GraphQL.enumLiterals(Shared.PullRequestState.literals),+ /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */+ headRefName: Schema.String,+ /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */+ baseRefName: Schema.String,+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** The repository associated with this pull request's head Ref. */+ headRepository: Schema.NullOr(PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository)+})+export interface PullRequestBranchToDeleteRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestBranchToDeleteRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const PullRequestBranchToDeleteRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestBranchToDeleteRepositoryPullRequestPullRequest)+})+export interface PullRequestBranchToDeleteRepositoryRepository extends Schema.Struct.Type<typeof PullRequestBranchToDeleteRepositoryRepository.fields> {}++/** `query PullRequestBranchToDelete` */+export const PullRequestBranchToDelete = GraphQL.query("PullRequestBranchToDelete", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){state headRefName baseRefName headRefOid headRepository{id}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestBranchToDeleteRepositoryRepository)+ })+})+export declare namespace PullRequestBranchToDelete {+ export type Variables = typeof PullRequestBranchToDelete.variables.Type+ export type Result = typeof PullRequestBranchToDelete.result.Type+}++/** Represents a Git reference. */+export const DefaultBranchRefRef = Schema.Struct({+ /** The ref name. */+ name: Schema.String+})+export interface DefaultBranchRefRef extends Schema.Struct.Type<typeof DefaultBranchRefRef.fields> {}++/** Represents a Git object. */+export const GitObject = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()([]),+ /** The Git object ID */+ oid: Shared.GitObjectID+})+export interface GitObject extends Schema.Struct.Type<typeof GitObject.fields> {}++/** Represents a Git reference. */+export const RefRef = Schema.Struct({+ /** The object the ref points to. Returns null when object does not exist. */+ target: Schema.NullOr(GitObject)+})+export interface RefRef extends Schema.Struct.Type<typeof RefRef.fields> {}++/** A repository contains the content for a project. */+export const NodeRepository = Schema.Struct({+ __typename: Schema.Literal("Repository"),+ /** The Ref associated with the repository's default branch. */+ defaultBranchRef: Schema.NullOr(DefaultBranchRefRef),+ /** Fetch a given ref from the repository */+ ref: Schema.NullOr(RefRef)+})+export interface NodeRepository extends Schema.Struct.Type<typeof NodeRepository.fields> {}++/** An object with an ID. */+export const PullRequestSourceBranchNodeNodeOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["Repository"])+})+export interface PullRequestSourceBranchNodeNodeOther extends Schema.Struct.Type<typeof PullRequestSourceBranchNodeNodeOther.fields> {}++/** `query PullRequestSourceBranch` */+export const PullRequestSourceBranch = GraphQL.query("PullRequestSourceBranch", {+ document: {+ variables: [+ { name: "repositoryId", body: "ID!" },+ { name: "ref", body: "String!" }+ ],+ selections: [+ { name: "node", body: ["(id:$", "repositoryId", "){__typename...on Repository{defaultBranchRef{name}ref(qualifiedName:$", "ref", "){target{__typename oid}}}}"] }+ ],+ fragments: []+ },+ variables: {+ repositoryId: Shared.ID,+ ref: Schema.String+ },+ result: Schema.Struct({+ /** Fetches an object given its ID. */+ node: Schema.NullOr(Schema.Union([+ NodeRepository,+ PullRequestSourceBranchNodeNodeOther+ ]))+ })+})+export declare namespace PullRequestSourceBranch {+ export type Variables = typeof PullRequestSourceBranch.variables.Type+ export type Result = typeof PullRequestSourceBranch.result.Type+}++/** Every operation in pullRequestReads.graphql. */+export const PullRequestReadsGraphQLGroup = GraphQLGroup.make(ActorAvatars, PullRequestCore, PullRequestCheckContexts, PullRequestPreview, PullRequestActivity, PullRequestHeads, PullRequestNodeId, PullRequestSubject, ViewerPermissions, ReviewerCandidates, LabelCandidates, PullRequestFilesViewed, PullRequestMergeMessage, PullRequestActionState, PullRequestBranchToDelete, PullRequestSourceBranch)diff --git a/packages/source-control-github/src/server/pullRequestReviews.graphql b/packages/source-control-github/src/server/pullRequestReviews.graphqlnew file mode 100644index 00000000000..8261b537dab--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestReviews.graphql@@ -0,0 +1,257 @@+# The review conversation: threads, their comments, and what the people on the review said.++# A reaction group as every reactable node reports it. `reactors` is bounded rather than paged: a+# hover says who reacted, and a hundred and forty names is a count, not a sentence.+fragment Reactions on Reactable {+ reactionGroups {+ content+ viewerHasReacted+ reactors(first: 10) {+ totalCount+ nodes {+ ... on User {+ login+ }+ ... on Bot {+ login+ }+ ... on Organization {+ login+ }+ ... on Mannequin {+ login+ }+ }+ }+ }+}++fragment ThreadComment on PullRequestReviewComment {+ id+ author {+ __typename+ login+ avatarUrl+ }+ body+ createdAt+ lastEditedAt+ url+ ...Reactions+}++# One page of review threads with their comments, and the people on the review. `$after` is null+# for the first page and the last page's `endCursor` after that, so a pull request with more+# threads than one page holds is walked rather than cut off.+#+# `viewer` rides along: GitHub names who reacted but never says whether that is the reader, so the+# comparison is made locally rather than paid for with a request of its own.+#+# Reviewers come from here because `reviewRequests` holds only requests still outstanding, so+# anyone who has already reviewed drops off it; `latestReviews` adds them back. A reviewer can be a+# person or an app, and both are asked for by name because they are different GraphQL types.+#+# `viewerCanUpdate` and `viewerDidAuthor` belong to the pull request this query is already+# standing on, so what the reader may do with it arrives with the conversation.+query ReviewThreads($owner: String!, $name: String!, $number: Int!, $after: String) {+ viewer {+ login+ }+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ reviewThreads(first: 100, after: $after) {+ totalCount+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ id+ isResolved+ isOutdated+ path+ # Null once the thread's line has left the diff, which `isOutdated` reports.+ line+ diffSide+ # Only ten comments ride with each thread. A hundred threads times a hundred comments+ # made GitHub reserve 10,000 nested rows and charge 104 points; unfinished threads are+ # paged from their own cursor by `ReviewThreadComments`.+ comments(first: 10) {+ totalCount+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ ...ThreadComment+ }+ }+ }+ }+ viewerCanUpdate+ viewerDidAuthor+ author {+ __typename+ login+ avatarUrl+ }+ ...Reactions+ comments(first: 100) {+ nodes {+ id+ lastEditedAt+ author {+ __typename+ login+ avatarUrl+ }+ ...Reactions+ }+ }+ # For their reactions and edit times: the words and the verdict arrive with the activity read.+ reviews(first: 100) {+ nodes {+ id+ lastEditedAt+ author {+ __typename+ login+ avatarUrl+ }+ ...Reactions+ }+ }+ reviewRequests(first: 50) {+ nodes {+ # Null for nobody. A team goes by its `org/slug`; a mannequin answers with neither and+ # names nobody to show. A team's name and avatar are aliased apart from a person's,+ # since their nullability differs.+ requestedReviewer {+ ... on User {+ login+ name+ avatarUrl+ }+ ... on Bot {+ login+ avatarUrl+ }+ ... on Team {+ combinedSlug+ teamName: name+ teamAvatarUrl: avatarUrl+ }+ }+ }+ }+ latestReviews(first: 50) {+ nodes {+ state+ author {+ __typename+ login+ avatarUrl+ }+ }+ }+ reviewDismissals: timelineItems(itemTypes: [REVIEW_DISMISSED_EVENT], first: 100) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ ... on ReviewDismissedEvent {+ dismissalMessage+ review {+ id+ }+ }+ }+ }+ # `last` rather than `first`: a pull request with more than a hundred commits keeps the+ # newest ones, which is what a reader scoping a diff wants.+ commits(last: 100) {+ nodes {+ commit {+ oid+ messageHeadline+ committedDate+ additions+ deletions+ parents(first: 1) {+ totalCount+ }+ authors(first: 3) {+ nodes {+ name+ avatarUrl+ user {+ login+ }+ }+ }+ }+ }+ }+ }+ }+}++# The rest of one thread's conversation. GraphQL pages a connection nested inside another only+# from the inner node itself, so a thread longer than a page is followed on its own: a request+# GitHub makes necessary, and one no ordinary pull request ever provokes.+query ReviewThreadComments(+ $owner: String!+ $name: String!+ $number: Int!+ $threadId: ID!+ $after: String+) {+ viewer {+ login+ }+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ id+ }+ }+ node(id: $threadId) {+ ... on PullRequestReviewThread {+ pullRequest {+ id+ }+ comments(first: 100, after: $after) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ ...ThreadComment+ }+ }+ }+ }+}++# The dismissal events past the page the thread read carries. A pull request rarely has any: this+# is followed only while the embedded page reports more.+query ReviewDismissals($owner: String!, $name: String!, $number: Int!, $after: String) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ timelineItems(itemTypes: [REVIEW_DISMISSED_EVENT], first: 100, after: $after) {+ pageInfo {+ hasNextPage+ endCursor+ }+ nodes {+ ... on ReviewDismissedEvent {+ dismissalMessage+ review {+ id+ }+ }+ }+ }+ }+ }+}diff --git a/packages/source-control-github/src/server/pullRequestReviews.graphql.ts b/packages/source-control-github/src/server/pullRequestReviews.graphql.tsnew file mode 100644index 00000000000..08e5e1adcff--- /dev/null+++ b/packages/source-control-github/src/server/pullRequestReviews.graphql.ts@@ -0,0 +1,581 @@+// Generated by @effect/graphql-generator from pullRequestReviews.graphql. Do not edit.+import { GraphQL, GraphQLGroup } from "effect/graphql"+import * as Schema from "effect/Schema"+import * as Shared from "../../schema/github.graphql.ts"++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const NodesUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String+})+export interface NodesUser extends Schema.Struct.Type<typeof NodesUser.fields> {}++/** A special type of user which takes actions on behalf of GitHub Apps. */+export const NodesBot = Schema.Struct({+ __typename: Schema.Literal("Bot"),+ /** The username of the actor. */+ login: Schema.String+})+export interface NodesBot extends Schema.Struct.Type<typeof NodesBot.fields> {}++/** An account on GitHub, with one or more owners, that has repositories, members and teams. */+export const Organization = Schema.Struct({+ __typename: Schema.Literal("Organization"),+ /** The organization's login name. */+ login: Schema.String+})+export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {}++/** A placeholder user for attribution of imported data on GitHub. */+export const Mannequin = Schema.Struct({+ __typename: Schema.Literal("Mannequin"),+ /** The username of the actor. */+ login: Schema.String+})+export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {}++/** Types that can be assigned to reactions. */+export const ReactorOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"])+})+export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {}++/** The connection type for Reactor. */+export const ReactorConnection = Schema.Struct({+ /** Identifies the total count of items in the connection. */+ totalCount: Shared.Int,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([+ NodesUser,+ NodesBot,+ Organization,+ Mannequin,+ ReactorOther+ ]))))+})+export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {}++/** A group of emoji reactions to a particular piece of content. */+export const ReactionGroup = Schema.Struct({+ /** Identifies the emoji reaction. */+ content: GraphQL.enumLiterals(Shared.ReactionContent.literals),+ /** Whether or not the authenticated user has left a reaction on the subject. */+ viewerHasReacted: Schema.Boolean,+ /** Reactors to the reaction subject with the emotion represented by this reaction group. */+ reactors: ReactorConnection+})+export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {}++/**+ * `fragment Reactions on Reactable`+ *+ * Represents a subject that can be reacted on.+ */+export const Reactions = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Reactable>()([]),+ /** A list of reactions grouped by content left on the subject. */+ reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))+})+export type Reactions = typeof Reactions.Type++/** Represents an object which can take actions on GitHub. Typically a User or Bot. */+export const Actor = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),+ /** The username of the actor. */+ login: Schema.String,+ /** A URL pointing to the actor's public avatar. */+ avatarUrl: Shared.URI+})+export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}++/**+ * `fragment ThreadComment on PullRequestReviewComment`+ *+ * A review comment associated with a given repository pull request.+ */+export const ThreadComment = Schema.Struct({+ /** The Node ID of the PullRequestReviewComment object */+ id: Shared.ID,+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor),+ /** The comment body of this review comment. */+ body: Schema.String,+ /** Identifies when the comment was created. */+ createdAt: Shared.DateTime,+ /** The moment the editor made the last edit */+ lastEditedAt: Schema.NullOr(Shared.DateTime),+ /** The HTTP URL permalink for this review comment. */+ url: Shared.URI,+ /** A list of reactions grouped by content left on the subject. */+ reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))+})+export interface ThreadComment extends Schema.Struct.Type<typeof ThreadComment.fields> {}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const ViewerUser = Schema.Struct({+ /** The username used to login. */+ login: Schema.String+})+export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {}++/** Information about pagination in a connection. */+export const PageInfo = Schema.Struct({+ /** When paginating forwards, are there more items? */+ hasNextPage: Schema.Boolean,+ /** When paginating forwards, the cursor to continue. */+ endCursor: Schema.NullOr(Schema.String)+})+export interface PageInfo extends Schema.Struct.Type<typeof PageInfo.fields> {}++/** The connection type for PullRequestReviewComment. */+export const NodesCommentsPullRequestReviewCommentConnection = Schema.Struct({+ /** Identifies the total count of items in the connection. */+ totalCount: Shared.Int,+ /** Information to aid in pagination. */+ pageInfo: PageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment)))+})+export interface NodesCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodesCommentsPullRequestReviewCommentConnection.fields> {}++/** A threaded list of comments for a given pull request. */+export const NodesPullRequestReviewThread = Schema.Struct({+ /** The Node ID of the PullRequestReviewThread object */+ id: Shared.ID,+ /** Whether this thread has been resolved */+ isResolved: Schema.Boolean,+ /** Indicates whether this thread was outdated by newer changes. */+ isOutdated: Schema.Boolean,+ /** Identifies the file path of this thread. */+ path: Schema.String,+ /** The line in the file to which this thread refers */+ line: Schema.NullOr(Shared.Int),+ /** The side of the diff on which this thread was placed. */+ diffSide: GraphQL.enumLiterals(Shared.DiffSide.literals),+ /** A list of pull request comments associated with the thread. */+ comments: NodesCommentsPullRequestReviewCommentConnection+})+export interface NodesPullRequestReviewThread extends Schema.Struct.Type<typeof NodesPullRequestReviewThread.fields> {}++/** Review comment threads for a pull request review. */+export const PullRequestReviewThreadConnection = Schema.Struct({+ /** Identifies the total count of items in the connection. */+ totalCount: Shared.Int,+ /** Information to aid in pagination. */+ pageInfo: PageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequestReviewThread)))+})+export interface PullRequestReviewThreadConnection extends Schema.Struct.Type<typeof PullRequestReviewThreadConnection.fields> {}++/** Represents a comment on an Issue. */+export const IssueComment = Schema.Struct({+ /** The Node ID of the IssueComment object */+ id: Shared.ID,+ /** The moment the editor made the last edit */+ lastEditedAt: Schema.NullOr(Shared.DateTime),+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor),+ /** A list of reactions grouped by content left on the subject. */+ reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))+})+export interface IssueComment extends Schema.Struct.Type<typeof IssueComment.fields> {}++/** The connection type for IssueComment. */+export const IssueCommentConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(IssueComment)))+})+export interface IssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentConnection.fields> {}++/** A review object for a given pull request. */+export const ReviewsNodesPullRequestReview = Schema.Struct({+ /** The Node ID of the PullRequestReview object */+ id: Shared.ID,+ /** The moment the editor made the last edit */+ lastEditedAt: Schema.NullOr(Shared.DateTime),+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor),+ /** A list of reactions grouped by content left on the subject. */+ reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))+})+export interface ReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof ReviewsNodesPullRequestReview.fields> {}++/** The connection type for PullRequestReview. */+export const ReviewsPullRequestReviewConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewsNodesPullRequestReview)))+})+export interface ReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof ReviewsPullRequestReviewConnection.fields> {}++/** A user is an individual's account on GitHub that owns repositories and can make new content. */+export const RequestedReviewerUser = Schema.Struct({+ __typename: Schema.Literal("User"),+ /** The username used to login. */+ login: Schema.String,+ /** The user's public profile name. */+ name: Schema.NullOr(Schema.String),+ /** A URL pointing to the user's public avatar. */+ avatarUrl: Shared.URI+})+export interface RequestedReviewerUser extends Schema.Struct.Type<typeof RequestedReviewerUser.fields> {}++/** A special type of user which takes actions on behalf of GitHub Apps. */+export const RequestedReviewerBot = Schema.Struct({+ __typename: Schema.Literal("Bot"),+ /** The username of the actor. */+ login: Schema.String,+ /** A URL pointing to the GitHub App's public avatar. */+ avatarUrl: Shared.URI+})+export interface RequestedReviewerBot extends Schema.Struct.Type<typeof RequestedReviewerBot.fields> {}++/** A team of users in an organization. */+export const Team = Schema.Struct({+ __typename: Schema.Literal("Team"),+ /** The slug corresponding to the organization and team. */+ combinedSlug: Schema.String,+ /** The name of the team. */+ teamName: Schema.String,+ /** A URL pointing to the team's avatar. */+ teamAvatarUrl: Schema.NullOr(Shared.URI)+})+export interface Team extends Schema.Struct.Type<typeof Team.fields> {}++/** Types that can be requested reviewers. */+export const RequestedReviewerOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.RequestedReviewer>()(["User", "Bot", "Team"])+})+export interface RequestedReviewerOther extends Schema.Struct.Type<typeof RequestedReviewerOther.fields> {}++/** A request for a user to review a pull request. */+export const ReviewRequest = Schema.Struct({+ /** The reviewer that is requested. */+ requestedReviewer: Schema.NullOr(Schema.Union([+ RequestedReviewerUser,+ RequestedReviewerBot,+ Team,+ RequestedReviewerOther+ ]))+})+export interface ReviewRequest extends Schema.Struct.Type<typeof ReviewRequest.fields> {}++/** The connection type for ReviewRequest. */+export const ReviewRequestConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewRequest)))+})+export interface ReviewRequestConnection extends Schema.Struct.Type<typeof ReviewRequestConnection.fields> {}++/** A review object for a given pull request. */+export const LatestReviewsNodesPullRequestReview = Schema.Struct({+ /** Identifies the current state of the pull request review. */+ state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals),+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor)+})+export interface LatestReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof LatestReviewsNodesPullRequestReview.fields> {}++/** The connection type for PullRequestReview. */+export const LatestReviewsPullRequestReviewConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LatestReviewsNodesPullRequestReview)))+})+export interface LatestReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof LatestReviewsPullRequestReviewConnection.fields> {}++/** A review object for a given pull request. */+export const ReviewPullRequestReview = Schema.Struct({+ /** The Node ID of the PullRequestReview object */+ id: Shared.ID+})+export interface ReviewPullRequestReview extends Schema.Struct.Type<typeof ReviewPullRequestReview.fields> {}++/** Represents a 'review_dismissed' event on a given issue or pull request. */+export const ReviewDismissedEvent = Schema.Struct({+ __typename: Schema.Literal("ReviewDismissedEvent"),+ /** Identifies the optional message associated with the 'review_dismissed' event. */+ dismissalMessage: Schema.NullOr(Schema.String),+ /** Identifies the review associated with the 'review_dismissed' event. */+ review: Schema.NullOr(ReviewPullRequestReview)+})+export interface ReviewDismissedEvent extends Schema.Struct.Type<typeof ReviewDismissedEvent.fields> {}++/** An item in a pull request timeline */+export const PullRequestTimelineItemsOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.PullRequestTimelineItems>()(["ReviewDismissedEvent"])+})+export interface PullRequestTimelineItemsOther extends Schema.Struct.Type<typeof PullRequestTimelineItemsOther.fields> {}++/** The connection type for PullRequestTimelineItems. */+export const PullRequestTimelineItemsConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([+ ReviewDismissedEvent,+ PullRequestTimelineItemsOther+ ]))))+})+export interface PullRequestTimelineItemsConnection extends Schema.Struct.Type<typeof PullRequestTimelineItemsConnection.fields> {}++/** The connection type for Commit. */+export const CommitConnection = Schema.Struct({+ /** Identifies the total count of items in the connection. */+ totalCount: Shared.Int+})+export interface CommitConnection extends Schema.Struct.Type<typeof CommitConnection.fields> {}++/** Represents an actor in a Git commit (ie. an author or committer). */+export const GitActor = Schema.Struct({+ /** The name in the Git commit. */+ name: Schema.NullOr(Schema.String),+ /** A URL pointing to the author's public avatar. */+ avatarUrl: Shared.URI,+ /** The GitHub user corresponding to the email field. Null if no such user exists. */+ user: Schema.NullOr(ViewerUser)+})+export interface GitActor extends Schema.Struct.Type<typeof GitActor.fields> {}++/** The connection type for GitActor. */+export const GitActorConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(GitActor)))+})+export interface GitActorConnection extends Schema.Struct.Type<typeof GitActorConnection.fields> {}++/** Represents a Git commit. */+export const Commit = Schema.Struct({+ /** The Git object ID */+ oid: Shared.GitObjectID,+ /** The Git commit message headline */+ messageHeadline: Schema.String,+ /** The datetime when this commit was committed. */+ committedDate: Shared.DateTime,+ /** The number of additions in this commit. */+ additions: Shared.Int,+ /** The number of deletions in this commit. */+ deletions: Shared.Int,+ /** The parents of a commit. */+ parents: CommitConnection,+ /**+ * The list of authors for this commit based on the git author and the Co-authored-by+ * message trailer. The git author will always be first.+ */+ authors: GitActorConnection+})+export interface Commit extends Schema.Struct.Type<typeof Commit.fields> {}++/** Represents a Git commit part of a pull request. */+export const PullRequestCommit = Schema.Struct({+ /** The Git commit object */+ commit: Commit+})+export interface PullRequestCommit extends Schema.Struct.Type<typeof PullRequestCommit.fields> {}++/** The connection type for PullRequestCommit. */+export const PullRequestCommitConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCommit)))+})+export interface PullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCommitConnection.fields> {}++/** A repository pull request. */+export const ReviewThreadsRepositoryPullRequestPullRequest = Schema.Struct({+ /** The list of all review threads for this pull request. */+ reviewThreads: PullRequestReviewThreadConnection,+ /** Check if the current viewer can update this object. */+ viewerCanUpdate: Schema.Boolean,+ /** Did the viewer author this comment. */+ viewerDidAuthor: Schema.Boolean,+ /** The actor who authored the comment. */+ author: Schema.NullOr(Actor),+ /** A list of reactions grouped by content left on the subject. */+ reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),+ /** A list of comments associated with the pull request. */+ comments: IssueCommentConnection,+ /** A list of reviews associated with the pull request. */+ reviews: Schema.NullOr(ReviewsPullRequestReviewConnection),+ /** A list of review requests associated with the pull request. */+ reviewRequests: Schema.NullOr(ReviewRequestConnection),+ /** A list of latest reviews per user associated with the pull request that are not also pending review. */+ latestReviews: Schema.NullOr(LatestReviewsPullRequestReviewConnection),+ /** A list of events, comments, commits, etc. associated with the pull request. */+ reviewDismissals: PullRequestTimelineItemsConnection,+ /** A list of commits present in this pull request's head branch not present in the base branch. */+ commits: PullRequestCommitConnection+})+export interface ReviewThreadsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadsRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const ReviewThreadsRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(ReviewThreadsRepositoryPullRequestPullRequest)+})+export interface ReviewThreadsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadsRepositoryRepository.fields> {}++/** `query ReviewThreads` */+export const ReviewThreads = GraphQL.query("ReviewThreads", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "after", body: "String" }+ ],+ selections: [+ { name: "viewer", body: ["{login}"] },+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){reviewThreads(first:100 after:$", "after", "){totalCount pageInfo{hasNextPage endCursor}nodes{id isResolved isOutdated path line diffSide comments(first:10){totalCount pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}viewerCanUpdate viewerDidAuthor author{__typename login avatarUrl}...Reactions comments(first:100){nodes{id lastEditedAt author{__typename login avatarUrl}...Reactions}}reviews(first:100){nodes{id lastEditedAt author{__typename login avatarUrl}...Reactions}}reviewRequests(first:50){nodes{requestedReviewer{__typename...on User{login name avatarUrl}...on Bot{login avatarUrl}...on Team{combinedSlug teamName:name teamAvatarUrl:avatarUrl}}}}latestReviews(first:50){nodes{state author{__typename login avatarUrl}}}reviewDismissals:timelineItems(itemTypes:[REVIEW_DISMISSED_EVENT]first:100){pageInfo{hasNextPage endCursor}nodes{__typename...on ReviewDismissedEvent{dismissalMessage review{id}}}}commits(last:100){nodes{commit{oid messageHeadline committedDate additions deletions parents(first:1){totalCount}authors(first:3){nodes{name avatarUrl user{login}}}}}}}}"] }+ ],+ fragments: [+ { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },+ { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }+ ]+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ after: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** The currently authenticated user. */+ viewer: ViewerUser,+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(ReviewThreadsRepositoryRepository)+ })+})+export declare namespace ReviewThreads {+ export type Variables = typeof ReviewThreads.variables.Type+ export type Result = typeof ReviewThreads.result.Type+}++/** A repository pull request. */+export const ReviewThreadCommentsRepositoryPullRequestPullRequest = Schema.Struct({+ /** The Node ID of the PullRequest object */+ id: Shared.ID+})+export interface ReviewThreadCommentsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const ReviewThreadCommentsRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(ReviewThreadCommentsRepositoryPullRequestPullRequest)+})+export interface ReviewThreadCommentsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryRepository.fields> {}++/** The connection type for PullRequestReviewComment. */+export const NodeCommentsPullRequestReviewCommentConnection = Schema.Struct({+ /** Information to aid in pagination. */+ pageInfo: PageInfo,+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment)))+})+export interface NodeCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodeCommentsPullRequestReviewCommentConnection.fields> {}++/** A threaded list of comments for a given pull request. */+export const NodePullRequestReviewThread = Schema.Struct({+ __typename: Schema.Literal("PullRequestReviewThread"),+ /** Identifies the pull request associated with this thread. */+ pullRequest: ReviewThreadCommentsRepositoryPullRequestPullRequest,+ /** A list of pull request comments associated with the thread. */+ comments: NodeCommentsPullRequestReviewCommentConnection+})+export interface NodePullRequestReviewThread extends Schema.Struct.Type<typeof NodePullRequestReviewThread.fields> {}++/** An object with an ID. */+export const NodeOther = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["PullRequestReviewThread"])+})+export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}++/** `query ReviewThreadComments` */+export const ReviewThreadComments = GraphQL.query("ReviewThreadComments", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "threadId", body: "ID!" },+ { name: "after", body: "String" }+ ],+ selections: [+ { name: "viewer", body: ["{login}"] },+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] },+ { name: "node", body: ["(id:$", "threadId", "){__typename...on PullRequestReviewThread{pullRequest{id}comments(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] }+ ],+ fragments: [+ { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },+ { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }+ ]+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ threadId: Shared.ID,+ after: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** The currently authenticated user. */+ viewer: ViewerUser,+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(ReviewThreadCommentsRepositoryRepository),+ /** Fetches an object given its ID. */+ node: Schema.NullOr(Schema.Union([+ NodePullRequestReviewThread,+ NodeOther+ ]))+ })+})+export declare namespace ReviewThreadComments {+ export type Variables = typeof ReviewThreadComments.variables.Type+ export type Result = typeof ReviewThreadComments.result.Type+}++/** A repository pull request. */+export const ReviewDismissalsRepositoryPullRequestPullRequest = Schema.Struct({+ /** A list of events, comments, commits, etc. associated with the pull request. */+ timelineItems: PullRequestTimelineItemsConnection+})+export interface ReviewDismissalsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryPullRequestPullRequest.fields> {}++/** A repository contains the content for a project. */+export const ReviewDismissalsRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(ReviewDismissalsRepositoryPullRequestPullRequest)+})+export interface ReviewDismissalsRepositoryRepository extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryRepository.fields> {}++/** `query ReviewDismissals` */+export const ReviewDismissals = GraphQL.query("ReviewDismissals", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" },+ { name: "after", body: "String" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){timelineItems(itemTypes:[REVIEW_DISMISSED_EVENT]first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{__typename...on ReviewDismissedEvent{dismissalMessage review{id}}}}}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int,+ after: Schema.optional(Schema.NullOr(Schema.String))+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(ReviewDismissalsRepositoryRepository)+ })+})+export declare namespace ReviewDismissals {+ export type Variables = typeof ReviewDismissals.variables.Type+ export type Result = typeof ReviewDismissals.result.Type+}++/** Every operation in pullRequestReviews.graphql. */+export const PullRequestReviewsGraphQLGroup = GraphQLGroup.make(ReviewThreads, ReviewThreadComments, ReviewDismissals)diff --git a/packages/source-control-github/src/server/sourceControlProvider.graphql b/packages/source-control-github/src/server/sourceControlProvider.graphqlnew file mode 100644index 00000000000..d1673a64d4a--- /dev/null+++ b/packages/source-control-github/src/server/sourceControlProvider.graphql@@ -0,0 +1,57 @@+# The pull request reads behind `GitHubSourceControlProvider`. `PullRequestsByHead` is batched+# with `GraphQLResolver.aliased`, which repeats it under an alias per lookup, so the lookups a+# branch sweep makes together share one request and a missing repository fails only its own.++# The pull request fields every read selects.+fragment PullRequestNode on PullRequest {+ number+ title+ url+ baseRefName+ headRefName+ headRefOid+ state+ isDraft+ mergedAt+ closedAt+ updatedAt+ isCrossRepository+ headRepository {+ name+ nameWithOwner+ }+ headRepositoryOwner {+ login+ }+}++query PullRequestsByHead(+ $owner: String!+ $name: String!+ $head: String!+ $states: [PullRequestState!]+ $first: Int!+) {+ repository(owner: $owner, name: $name) {+ # `gh pr list` orders the same way, so a head with more matches than the limit keeps the+ # same rows.+ pullRequests(+ headRefName: $head+ states: $states+ first: $first+ orderBy: { field: CREATED_AT, direction: DESC }+ ) {+ nodes {+ ...PullRequestNode+ }+ }+ }+}++query PullRequestByNumber($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ ...PullRequestNode+ }+ }+}diff --git a/packages/source-control-github/src/server/sourceControlProvider.graphql.ts b/packages/source-control-github/src/server/sourceControlProvider.graphql.tsnew file mode 100644index 00000000000..b67d5250921--- /dev/null+++ b/packages/source-control-github/src/server/sourceControlProvider.graphql.ts@@ -0,0 +1,146 @@+// Generated by @effect/graphql-generator from sourceControlProvider.graphql. Do not edit.+import { GraphQL, GraphQLGroup } from "effect/graphql"+import * as Schema from "effect/Schema"+import * as Shared from "../../schema/github.graphql.ts"++/** A repository contains the content for a project. */+export const HeadRepositoryRepository = Schema.Struct({+ /** The name of the repository. */+ name: Schema.String,+ /** The repository's name with owner. */+ nameWithOwner: Schema.String+})+export interface HeadRepositoryRepository extends Schema.Struct.Type<typeof HeadRepositoryRepository.fields> {}++/** Represents an owner of a Repository. */+export const RepositoryOwner = Schema.Struct({+ __typename: GraphQL.otherTypename<Shared.Typename.RepositoryOwner>()([]),+ /** The username used to login. */+ login: Schema.String+})+export interface RepositoryOwner extends Schema.Struct.Type<typeof RepositoryOwner.fields> {}++/**+ * `fragment PullRequestNode on PullRequest`+ *+ * A repository pull request.+ */+export const PullRequestNode = Schema.Struct({+ /** Identifies the pull request number. */+ number: Shared.Int,+ /** Identifies the pull request title. */+ title: Schema.String,+ /** The HTTP URL for this pull request. */+ url: Shared.URI,+ /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */+ baseRefName: Schema.String,+ /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */+ headRefName: Schema.String,+ /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */+ headRefOid: Shared.GitObjectID,+ /** Identifies the state of the pull request. */+ state: GraphQL.enumLiterals(Shared.PullRequestState.literals),+ /** Identifies if the pull request is a draft. */+ isDraft: Schema.Boolean,+ /** The date and time that the pull request was merged. */+ mergedAt: Schema.NullOr(Shared.DateTime),+ /** Identifies the date and time when the object was closed. */+ closedAt: Schema.NullOr(Shared.DateTime),+ /** Identifies the date and time when the object was last updated. */+ updatedAt: Shared.DateTime,+ /** The head and base repositories are different. */+ isCrossRepository: Schema.Boolean,+ /** The repository associated with this pull request's head Ref. */+ headRepository: Schema.NullOr(HeadRepositoryRepository),+ /** The owner of the repository associated with this pull request's head Ref. */+ headRepositoryOwner: Schema.NullOr(RepositoryOwner)+})+export interface PullRequestNode extends Schema.Struct.Type<typeof PullRequestNode.fields> {}++/** The connection type for PullRequest. */+export const PullRequestConnection = Schema.Struct({+ /** A list of nodes. */+ nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestNode)))+})+export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {}++/** A repository contains the content for a project. */+export const PullRequestsByHeadRepositoryRepository = Schema.Struct({+ /** A list of pull requests that have been opened in the repository. */+ pullRequests: PullRequestConnection+})+export interface PullRequestsByHeadRepositoryRepository extends Schema.Struct.Type<typeof PullRequestsByHeadRepositoryRepository.fields> {}++/** `query PullRequestsByHead` */+export const PullRequestsByHead = GraphQL.query("PullRequestsByHead", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "head", body: "String!" },+ { name: "states", body: "[PullRequestState!]" },+ { name: "first", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequests(headRefName:$", "head", " states:$", "states", " first:$", "first", " orderBy:{field:CREATED_AT direction:DESC}){nodes{...PullRequestNode}}}"] }+ ],+ fragments: [+ { name: "PullRequestNode", body: ["on PullRequest{number title url baseRefName headRefName headRefOid state isDraft mergedAt closedAt updatedAt isCrossRepository headRepository{name nameWithOwner}headRepositoryOwner{__typename login}}"] }+ ]+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ head: Schema.String,+ states: Schema.optional(Schema.NullOr(Schema.Array(Shared.PullRequestState))),+ first: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestsByHeadRepositoryRepository)+ })+})+export declare namespace PullRequestsByHead {+ export type Variables = typeof PullRequestsByHead.variables.Type+ export type Result = typeof PullRequestsByHead.result.Type+}++/** A repository contains the content for a project. */+export const PullRequestByNumberRepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequestNode)+})+export interface PullRequestByNumberRepositoryRepository extends Schema.Struct.Type<typeof PullRequestByNumberRepositoryRepository.fields> {}++/** `query PullRequestByNumber` */+export const PullRequestByNumber = GraphQL.query("PullRequestByNumber", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){...PullRequestNode}}"] }+ ],+ fragments: [+ { name: "PullRequestNode", body: ["on PullRequest{number title url baseRefName headRefName headRefOid state isDraft mergedAt closedAt updatedAt isCrossRepository headRepository{name nameWithOwner}headRepositoryOwner{__typename login}}"] }+ ]+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(PullRequestByNumberRepositoryRepository)+ })+})+export declare namespace PullRequestByNumber {+ export type Variables = typeof PullRequestByNumber.variables.Type+ export type Result = typeof PullRequestByNumber.result.Type+}++/** Every operation in sourceControlProvider.graphql. */+export const SourceControlProviderGraphQLGroup = GraphQLGroup.make(PullRequestsByHead, PullRequestByNumber)diff --git a/packages/source-control-github/src/server/stackActions.graphql b/packages/source-control-github/src/server/stackActions.graphqlnew file mode 100644index 00000000000..c08a762dfb8--- /dev/null+++ b/packages/source-control-github/src/server/stackActions.graphql@@ -0,0 +1,13 @@+# Whether the viewer can push to one stack layer's head branch. `GraphQLResolver.aliased` repeats+# it under an alias per layer, so a stack's layers are checked in one request.+query PullRequestBranchAccess($owner: String!, $name: String!, $number: Int!) {+ repository(owner: $owner, name: $name) {+ pullRequest(number: $number) {+ headRepository {+ viewerPermission+ }+ # A fork's branch is writable without repository access when its owner allows it.+ maintainerCanModify+ }+ }+}diff --git a/packages/source-control-github/src/server/stackActions.graphql.ts b/packages/source-control-github/src/server/stackActions.graphql.tsnew file mode 100644index 00000000000..2d89d0054b1--- /dev/null+++ b/packages/source-control-github/src/server/stackActions.graphql.ts@@ -0,0 +1,58 @@+// Generated by @effect/graphql-generator from stackActions.graphql. Do not edit.+import { GraphQL, GraphQLGroup } from "effect/graphql"+import * as Schema from "effect/Schema"+import * as Shared from "../../schema/github.graphql.ts"++/** A repository contains the content for a project. */+export const HeadRepositoryRepository = Schema.Struct({+ /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */+ viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals))+})+export interface HeadRepositoryRepository extends Schema.Struct.Type<typeof HeadRepositoryRepository.fields> {}++/** A repository pull request. */+export const PullRequest = Schema.Struct({+ /** The repository associated with this pull request's head Ref. */+ headRepository: Schema.NullOr(HeadRepositoryRepository),+ /** Indicates whether maintainers can modify the pull request. */+ maintainerCanModify: Schema.Boolean+})+export interface PullRequest extends Schema.Struct.Type<typeof PullRequest.fields> {}++/** A repository contains the content for a project. */+export const RepositoryRepository = Schema.Struct({+ /** Returns a single pull request from the current repository by number. */+ pullRequest: Schema.NullOr(PullRequest)+})+export interface RepositoryRepository extends Schema.Struct.Type<typeof RepositoryRepository.fields> {}++/** `query PullRequestBranchAccess` */+export const PullRequestBranchAccess = GraphQL.query("PullRequestBranchAccess", {+ document: {+ variables: [+ { name: "owner", body: "String!" },+ { name: "name", body: "String!" },+ { name: "number", body: "Int!" }+ ],+ selections: [+ { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){headRepository{viewerPermission}maintainerCanModify}}"] }+ ],+ fragments: []+ },+ variables: {+ owner: Schema.String,+ name: Schema.String,+ number: Shared.Int+ },+ result: Schema.Struct({+ /** Lookup a given repository by the owner and repository name. */+ repository: Schema.NullOr(RepositoryRepository)+ })+})+export declare namespace PullRequestBranchAccess {+ export type Variables = typeof PullRequestBranchAccess.variables.Type+ export type Result = typeof PullRequestBranchAccess.result.Type+}++/** Every operation in stackActions.graphql. */+export const StackActionsGraphQLGroup = GraphQLGroup.make(PullRequestBranchAccess)diff --git a/patches/@[email protected] b/patches/@[email protected]similarity index 99%rename from patches/@[email protected]rename to patches/@[email protected]index 8eb3df03974..754ab2eed6b 100644--- a/patches/@[email protected]+++ b/patches/@[email protected]@@ -67,7 +67,7 @@ index b78f4d6..8c43672 100644},"peerDependencies": {- "vitest": ">=5.0.0 <6.0.0",- "effect": "^4.0.4"+ "effect": "^4.0.5"},"devDependencies": {diff --git a/src/index.ts b/src/index.tsdiff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 8b93dc7c3e8..1db31cbebab 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -6,12 +6,15 @@ settings:catalogs:default:+ '@effect/graphql-generator':+ specifier: 4.0.5+ version: 4.0.5'@effect/openapi-generator':- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5'@effect/sql-sqlite-do':- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5'@effect/tsgo':specifier: 0.51.1version: 0.51.1@@ -111,11 +114,11 @@ overrides:'@clerk/expo': 4.6.8'@clerk/react': 6.16.1'@clerk/shared': 4.33.0- '@effect/atom-react': 4.0.4- '@effect/platform-node': 4.0.4- '@effect/platform-node-shared': 4.0.4- '@effect/sql-pg': 4.0.4- '@effect/vitest': 4.0.4+ '@effect/atom-react': 4.0.5+ '@effect/platform-node': 4.0.5+ '@effect/platform-node-shared': 4.0.5+ '@effect/sql-pg': 4.0.5+ '@effect/vitest': 4.0.5'@effect/vitest>vitest': '-''@expo/dom-webview': 58.0.2'@expo/metro-config': 58.0.6@@ -128,9 +131,9 @@ overrides:'@tailwindcss/oxide': 4.3.3'@tailwindcss/vite': 4.3.3'@types/node': 24.12.4- effect: 4.0.4- '@opencode/protocol>effect': 4.0.4- '@opencode/schema>effect': 4.0.4+ effect: 4.0.5+ '@opencode/protocol>effect': 4.0.5+ '@opencode/schema>effect': 4.0.5node-abi: 4.33.0electron-webauthn>@electron-webauthn/macos: 1.3.1'@electron-webauthn/macos>objc-js': 1.5.0@@ -147,7 +150,7 @@ packageExtensionsChecksum: sha256-FYDaKefjFcda1+vgiq8yMpZC4ehE5CyLi/bsCGLgTtY=patchedDependencies:'@clerk/[email protected]': b8b22ab733de5bea846ad9e88046c10582352fe9ad86f314f368b2a823f0f281- '@effect/[email protected]': ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad+ '@effect/[email protected]': 2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02'@expo/[email protected]': 90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760'@ff-labs/[email protected]': cc71fcec015f4d39bc96ae2e2bf6b0ca678124c722c66a7841efce9d34b5983c'@legendapp/[email protected]': 680cc6a5c5b4a4032e467e7b3fde22f89a84c0ee2e6eac6fda737d6277cc0806@@ -208,8 +211,8 @@ importers:specifier: 0.13.0version: 0.13.0'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@napi-rs/keyring':specifier: ^1.3.0version: 1.3.0@@ -232,8 +235,8 @@ importers:specifier: 0.10.2version: 0.10.2(patch_hash=cfff57561b0ee59b5addb3b2e6c6f20906e967507a530ab67e8db8108e520ba4)effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5electron:specifier: 44.4.5version: 44.4.5@@ -260,8 +263,8 @@ importers:version: 7.4.2devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -309,8 +312,8 @@ importers:specifier: 4.6.8version: 4.6.8(patch_hash=b8b22ab733de5bea846ad9e88046c10582352fe9ad86f314f368b2a823f0f281)(9fda653cb5598772915b4a39a7aee91d)'@effect/atom-react':- specifier: 4.0.4+ specifier: 4.0.5'@expo-google-fonts/dm-sans':specifier: ^0.4.2version: 0.4.2@@ -408,8 +411,8 @@ importers:specifier: 8.0.3version: 8.0.3effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5expo:specifier: 58.0.2version: 58.0.2(bd4444e61fed72e958d45f73733b7f54)@@ -580,8 +583,8 @@ importers:version: 1.12.1(@expo/[email protected](patch_hash=90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760)([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@pierre/trees':specifier: 1.0.0-beta.6version: 1.0.0-beta.6(@pierre/[email protected])(@shikijs/[email protected])([email protected]([email protected]))([email protected])([email protected])@@ -616,11 +619,11 @@ importers:specifier: 1.0.35version: 1.0.35'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/platform-node-shared':- specifier: 4.0.4+ specifier: 4.0.5'@ff-labs/fff-node':specifier: 0.11.0version: 0.11.0(patch_hash=cc71fcec015f4d39bc96ae2e2bf6b0ca678124c722c66a7841efce9d34b5983c)@@ -679,8 +682,8 @@ importers:specifier: workspace:*version: link:../../packages/source-control-gitlabeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5jose:specifier: 'catalog:'version: 6.2.2@@ -710,8 +713,8 @@ importers:version: 3.4.0devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@modelcontextprotocol/sdk':specifier: 1.29.0version: 1.29.0([email protected])@@ -782,8 +785,8 @@ importers:specifier: ^3.2.2version: 3.2.2([email protected])'@effect/atom-react':- specifier: 4.0.4+ specifier: 4.0.5'@formkit/auto-animate':specifier: ^0.9.0version: 0.9.0@@ -881,8 +884,8 @@ importers:specifier: ^3.4.16version: 3.4.16effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5hast-util-to-html:specifier: ^9.0.5version: 9.0.5@@ -936,11 +939,11 @@ importers:devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@rolldown/plugin-babel':specifier: ^0.2.0version: 0.2.3(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))(@babel/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])@@ -1008,11 +1011,11 @@ importers:specifier: 3.18.1'@effect/sql-pg':- specifier: 4.0.4- version: 4.0.4([email protected])+ specifier: 4.0.5+ version: 4.0.5([email protected])'@effect/sql-sqlite-do':specifier: 'catalog:'- version: 4.0.4([email protected])+ version: 4.0.5([email protected])'@noble/curves':specifier: 'catalog:'version: 1.9.1@@ -1030,23 +1033,23 @@ importers:version: link:../../packages/sharedalchemy:specifier: 2.0.0-beta.80- version: 2.0.0-beta.80(patch_hash=bea1b6c0c0b23157fd5f439a1d7feff430f28ac1621ba135d8a13eeec60ccacd)(65456df005cbbd653b96024b9ea83b1c)+ version: 2.0.0-beta.80(patch_hash=bea1b6c0c0b23157fd5f439a1d7feff430f28ac1621ba135d8a13eeec60ccacd)(e32ed987c684265dc2dfa72f5ab4da0d)drizzle-orm:specifier: 1.0.0-rc.5-ab785fc- version: 1.0.0-rc.5-ab785fc(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.0.0-rc.5-ab785fc(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@cloudflare/workers-types':specifier: ^4.20260601.1version: 4.20260604.1'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1066,18 +1069,18 @@ importers:oxlint-plugin-t3code:dependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@oxlint/plugins':specifier: ^1.63.0version: 1.68.0effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])vite-plus:specifier: 1.0.0version: 1.0.0(@types/[email protected])(@vitest/[email protected]([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])@@ -1115,15 +1118,15 @@ importers:specifier: workspace:*version: link:../source-control-gitlabeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5three:specifier: 0.180.0version: 0.180.0devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/three':specifier: 0.180.0version: 0.180.0@@ -1134,12 +1137,12 @@ importers:packages/contracts:dependencies:effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])vite-plus:specifier: 1.0.0version: 1.0.0(@types/[email protected])(@vitest/[email protected]([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])@@ -1147,18 +1150,18 @@ importers:packages/effect-acp:dependencies:effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/openapi-generator':specifier: 'catalog:'- version: 4.0.4(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])+ version: 4.0.5(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1169,18 +1172,18 @@ importers:packages/effect-codex-app-server:dependencies:effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/openapi-generator':specifier: 'catalog:'- version: 4.0.4(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])+ version: 4.0.5(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1203,15 +1206,15 @@ importers:specifier: 8.0.3version: 8.0.3effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1240,15 +1243,15 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/provider-testing':specifier: workspace:*version: link:../provider-testing@@ -1271,15 +1274,15 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1305,18 +1308,18 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5yaml:specifier: ^2.9.0version: 2.9.0devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/provider-testing':specifier: workspace:*version: link:../provider-testing@@ -1342,15 +1345,15 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/provider-testing':specifier: workspace:*version: link:../provider-testing@@ -1379,15 +1382,15 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/provider-testing':specifier: workspace:*version: link:../provider-testing@@ -1405,7 +1408,7 @@ importers:version: 1.15.13'@opencode/client':specifier: 2.0.28- version: 2.0.28([email protected])+ version: 2.0.28([email protected])'@opencode/protocol':specifier: 2.0.28version: 2.0.28@@ -1422,15 +1425,15 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/provider-testing':specifier: workspace:*version: link:../provider-testing@@ -1453,15 +1456,15 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/provider-testing':specifier: workspace:*version: link:../provider-testing@@ -1475,8 +1478,8 @@ importers:packages/provider-testing:dependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@t3tools/contracts':specifier: workspace:*version: link:../contracts@@ -1487,12 +1490,12 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1512,8 +1515,8 @@ importers:specifier: workspace:*version: link:../contractseffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5jose:specifier: 'catalog:'version: 6.2.2@@ -1552,11 +1555,11 @@ importers:version: 2.9.0devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1582,15 +1585,15 @@ importers:specifier: 8.0.3version: 8.0.3effect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/source-control-testing':specifier: workspace:*version: link:../source-control-testing@@ -1616,12 +1619,12 @@ importers:specifier: workspace:*version: link:../source-control-coreeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1638,12 +1641,12 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1666,12 +1669,12 @@ importers:specifier: workspace:*version: link:../source-control-coreeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/source-control-testing':specifier: workspace:*version: link:../source-control-testing@@ -1697,12 +1700,12 @@ importers:specifier: workspace:*version: link:../source-control-coreeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/source-control-testing':specifier: workspace:*version: link:../source-control-testing@@ -1728,15 +1731,18 @@ importers:specifier: workspace:*version: link:../source-control-coreeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:+ '@effect/graphql-generator':+ specifier: 'catalog:'+ version: 4.0.5(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/source-control-testing':specifier: workspace:*version: link:../source-control-testing@@ -1759,12 +1765,12 @@ importers:specifier: workspace:*version: link:../source-control-coreeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@t3tools/source-control-testing':specifier: workspace:*version: link:../source-control-testing@@ -1787,8 +1793,8 @@ importers:specifier: workspace:*version: link:../source-control-coreeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@types/node':specifier: 24.12.4@@ -1803,15 +1809,15 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1825,12 +1831,12 @@ importers:specifier: workspace:*version: link:../sharedeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/node':specifier: 24.12.4version: 24.12.4@@ -1841,8 +1847,8 @@ importers:scripts:dependencies:'@effect/platform-node':- specifier: 4.0.4+ specifier: 4.0.5'@electron/asar':specifier: ^4.3.0version: 4.3.0@@ -1856,8 +1862,8 @@ importers:specifier: workspace:*version: link:../packages/tailscaleeffect:- specifier: 4.0.4- version: 4.0.4+ specifier: 4.0.5+ version: 4.0.5plist:specifier: 'catalog:'version: 3.1.1@@ -1869,8 +1875,8 @@ importers:version: 0.35.4(@types/[email protected])devDependencies:'@effect/vitest':- specifier: 4.0.4- version: 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ specifier: 4.0.5+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@types/plist':specifier: 'catalog:'version: 3.0.5@@ -1917,8 +1923,8 @@ packages:peerDependencies:'@distilled.cloud/cloudflare': 1.0.0-rc.13'@effect/platform-bun': ^4.0.0- '@effect/platform-node': 4.0.4- effect: 4.0.4+ '@effect/platform-node': 4.0.5+ effect: 4.0.5rolldown: 1.2.5vite: ^7.0.0 || ^8.0.0peerDependenciesMeta:@@ -1934,7 +1940,7 @@ packages:'@alchemy.run/[email protected]':resolution: {integrity: sha512-gtUXFitVY9pSQQYCDtSVyjfd5YOKY3Wleg3WCG5yWno7/l7xBo4kfOMbM63tzWnmka9LewVSITbMfwnC4D/73A==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@alchemy.run/[email protected]':resolution: {integrity: sha512-uOhVDQZTjwh1AU4mrk0wB5rQaziTwSrVMfqwFP8wALfU//nveu4goOWZimHtqytXiybENh+iEbALH25EFAkc7A==}@@ -2972,82 +2978,82 @@ packages:'@distilled.cloud/[email protected]':resolution: {integrity: sha512-3rmzH125jQxk0zpCvXGNEybSaqpAolyCX+8LWDDrXf+wIKs67GflkJyQLjOOh0lKARe29hdUZGgqEbbvpp0LNA==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-6ZGcp0LkniB0I2l8Gr7vKRQgTZTch0/07iuvuMZv9Nu+rWwNuZG9VHTUdlIoarWgCHFUNN8yvSYBGOjaeN99tQ==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-aRoJtvfXgWi5dtfjuJvDwnArRKvv2MPYHCxYeZcxZbqe62IaQA5yu/khft7TJvxeDyJoSDnVXZu3RyJjNmBA4g==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-Py5FoA6azyYExDb91VaeC+9x+ravOBSRhXeUmpcQjCtgqmOdiXgc2YZGMMPI68DF+kMuHRVIrR+2uRZNDOhYjw==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-RYyrxW+F5zrTuu1UWV/JoycholBCIkXIusYJdDniDwCdmbjdKGl07KlkkeeY774uBawNGf+pt1ESNGeLVnNHsg==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-GgOEUCc4Bx0C+lYNfZ4OqaA3ULvqDUQTJC8gobSh1L0jfrWclv/kRcSr43v4IXyStld+saUvDfDZgeGzlE74OA==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-Ipp+9nvs+PzqwDPhZq2/BEHNUeWzXKhrvjfT/eBLFHo/QpH0HgdMH8MSQe6/LGszZoormwA6ZrTv2wxaFO7ZiQ==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-un8jqil9ejt96oN+OfEDUsbrEOpC6Ut4B/73DqKDttvt0Btal1OeBNTTQsftVCpeEzXAvkYKGRIT2AeEu1J5jA==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-FvqofgMypNkeZbnjGjWMZqvqGd9GxcMzdbi/6JrbcPaHMJG+CCBGt/mAa7mLlEovzwVaGCsBnOXJ6rP5pZjB4Q==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-Zz8ksA/Y8UUUnWag2UBxB5WYA6wLqOS78ugWJ3cOr9Ot+4bC0NJYWanq35uFInozLXWhun84USU2wOI+mdwQUQ==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-2JvbBFj1kBfkDVPnWcJZ7TJ1cJwWBtScAY7SNJ2qNBUuAK1Wf2kjJXU0/j16eCJ48BQigPArQFWL51wVu/EUQQ==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-AM97YGRnDfZdqsxFgQMQ83p7ZlRqxS6/foTTJA5P590UMbbOyrQyFyd33BD0agul8a3ngZde3Oej6v7BN55aWw==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-+UmHSp9JV8XQl5t5tTdQBY+dWZ9abrEoc7leYEctA0Ar1TrKZEl2EaeQDoumrg4RyGaacRlirEbxaDFI4SOPtQ==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-yXalRS3GFLo3hWM0HXptqudi23NVCM4FRD20db2/Ob9FFcNrMJik1fopv+74HOiV+BuxfkCP609KsEK6LVdB/g==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-jLTJ1mg4U39lHZb9EGYBJLR91yB3LSG6fVxix+r1BbqaTovWzE+NuJ7fu9fRSeax9jRAqsGLLxe9IxJbOtwQnQ==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@distilled.cloud/[email protected]':resolution: {integrity: sha512-dnxhg39lZjpTdZbHCVYPoUC9E2r8eSHbqiYDhSq2EurVPJcc9YRXlxZR1bP1nniSp078XV8GA+aUECt/Z56aQg==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@dnd-kit/[email protected]':resolution: {integrity: sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==}@@ -3080,52 +3086,59 @@ packages:'@drizzle-team/[email protected]':resolution: {integrity: sha512-mlUE+rZ8CatQekLhnaiN91Iemdd+e2gFKooGlnRB3oPTL3VghLfX24dx7HrzMNeC1JrIB/0kpsfyty3f5HNfxQ==}- '@effect/[email protected]':- resolution: {integrity: sha512-/cd4zHAS/j4QEAJahvIuvCjASI9iKPsKoYDJF1WdqBH6ol+7PIzV5jfIxyd5K0hTlLlavZnzEfi849pcS84apg==}+ '@effect/[email protected]':+ resolution: {integrity: sha512-tqTSiy0rWBitej7kPfvTSw29q4ipof52+txDg6bIBJx0ksHVzVXaFTsssDa+AZBeImafK0xmjm9m1XzPfE6k2A==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5react: '>=19.0.0 <20.0.0'scheduler: '>=0.25.0 <0.29.0'- '@effect/[email protected]':- resolution: {integrity: sha512-5TcA4HP2Eml1Y3DCP1JCojYVeioGrtr9MxDDWCKYrfUQx2U/JRcnCzH0rJ+sD5obUAn9QKw2QIvb+/A3mxP35w==}+ '@effect/[email protected]':+ resolution: {integrity: sha512-2QtEQxP4RRANWVJVe/wQBmG6SGePDfhgqpOeyfa7JlTsbnJbf3J25lmTz/faO3fGgicTVTTMruHTY6CR16KILg==}hasBin: truepeerDependencies:- '@effect/platform-node': 4.0.4- effect: 4.0.4+ '@effect/platform-node': 4.0.5+ effect: 4.0.5- '@effect/[email protected]':- resolution: {integrity: sha512-gh2KRmqGWrJ0FVL8GqnI1GpB+fCfCUI7sGiUZkxxBHyHj1t94rm6VDJffCfuVZWe6GpvYXtizifVczUrgOce8A==}+ '@effect/[email protected]':+ resolution: {integrity: sha512-pksR5BhRKQQfDcpA8AbxCiAFLAbdnZseiRmgr1UtVi1x/IyEuS8WmXoFD1C424TEyS+n2Q6lPpR0ue/WQ743aw==}+ hasBin: true+ peerDependencies:+ '@effect/platform-node': 4.0.5+ effect: 4.0.5++ '@effect/[email protected]':+ resolution: {integrity: sha512-a8rCdEkfZBGe9C6bsIjxVZuRp73svIyK5IHwHdDAVsvZXjrbkxusfI+rZ8WlX31RP1mKizwI/E72GQTNfdMWHw==}engines: {node: '>=18.0.0'}peerDependencies:- effect: 4.0.4+ effect: 4.0.5- '@effect/[email protected]':- resolution: {integrity: sha512-SdoyQMrO5zmqBebb2fxDk0sHYyJjBiw4QmLdV2ZcWf3ATpQPge3B5sTLijZg49PadekOwNeO83o5TfdtiiFEig==}+ '@effect/[email protected]':+ resolution: {integrity: sha512-v4KD5fWvEUa4QmWFpZFbBsRhmfnTP6ETCME2r9ifyXVDPjhfpxpTZl41prjgQFMqZBHdWWCl7YC5ImbXv5ui5g==}engines: {node: '>=18.0.0'}peerDependencies:- effect: 4.0.4+ effect: 4.0.5redis: '>=5.0.0 <7.0.0''@effect/[email protected]':resolution: {integrity: sha512-pmkzncZCGD6CLyvc89keEBU85h+gHVCu/LKQnThd+ruYSUbG0R9jYA+lnk3R8Djp0wQW6SbsbmHQuhopIYyo3Q==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5- '@effect/[email protected]':- resolution: {integrity: sha512-41x5O2C+gRF3A/Sf+IkV+OOzo5BexsIubH1cib3m4NwhZcjQUQUrq5YbOw7fIuWmBODtAyHNXFjaeEtiXoPL9Q==}+ '@effect/[email protected]':+ resolution: {integrity: sha512-F9tG76H+aryhYcp5pvgd+MwWrNltv3XAuLcZSBsOOX6q+PEl+IM4zkQKzx0TF9OsEMH/SQ+3gZRdYWOsDF+vJQ==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@effect/[email protected]':resolution: {integrity: sha512-EqR8pWZo3VzedRvP6qo5HcfqNmFvSa+sQLWQl3oBMx2KY1FCc8NYjep79wYjNkW0qABnffrPUXCMTOncd1A+5g==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5- '@effect/[email protected]':- resolution: {integrity: sha512-6Uqa6zbm5GPTWjoIVVty8msQ5C+8coPQDzj8qZM9Mk4NXUWa/RVlaziW335mXZ/8tCnQsFj2iJ/CJdv54JXuew==}+ '@effect/[email protected]':+ resolution: {integrity: sha512-TGlU65ZJJMa81I7EoicQXxhRsJDxDPz6A/PNOPzMYRgmCdLs6EsTTXIkKZ+8apb7pl2o0OKVcrT6i6mGlluyLg==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@effect/[email protected]':resolution: {integrity: sha512-Jx+1RB3pz1B2zYs1EmxybwDOq9KRpfdu/rn1XTULNMZmqUJZuvTQU9CRqB0g/ZgIa6MeNBZEYvmAu4Dq2/QVWA==}@@ -3166,10 +3179,10 @@ packages:resolution: {integrity: sha512-i6mA6cNah+0mkPdu8qZILCO3Pnd9kWo03/s82Ju+1DFhdL28HFagi+1PRGxqgq1uMaHziWQ+ciKvOmIoks2RdA==}hasBin: true- '@effect/[email protected]':- resolution: {integrity: sha512-l5KN46RbDVpqZxWzwXZtX6FVQiyzd+/hTYqL543uSDRo7hC0m19IeICh6O9U/nqCtfersqsNZnBjgHFfkuHsBw==}+ '@effect/[email protected]':+ resolution: {integrity: sha512-q64paZ/i4V2NiRhTyqCmT2KiDbFjlxc2EZrZca8GGt+Nf8844946HyJM5bPk/q+YeRkFSxIrlCs+J+LSfky/wA==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5'@electric-sql/[email protected]':resolution: {integrity: sha512-Cj++n1Mekf9ETfdc16TlDi+cDDQF0W7EcbyRHYOAeZdsAe8M/FJg18itDTSwyHfar2WIezawM9o0EKaRGVKygQ==}@@ -4525,7 +4538,7 @@ packages:'@opencode/[email protected]':resolution: {integrity: sha512-YV0Yxk93/K2h4Xy/sEW/4ZYGMwn7ltxG2Y/Vdy2VCIZ2z0/r9MI6x5/XawSNfCvImBxuHkQNbYtu9Rgp3ArJ4g==}peerDependencies:- effect: 4.0.4+ effect: 4.0.5solid-js: '>=1.9.0'peerDependenciesMeta:effect:@@ -7145,15 +7158,15 @@ packages:'@alchemy.run/frontend-frameworks': 2.0.0-beta.80'@aws/durable-execution-sdk-js': ^2.1.0'@effect/platform-bun': ^4.0.0- '@effect/platform-node': 4.0.4+ '@effect/platform-node': 4.0.5'@effect/sql-mysql2': ^4.0.0- '@effect/sql-pg': 4.0.4- '@effect/vitest': 4.0.4+ '@effect/sql-pg': 4.0.5+ '@effect/vitest': 4.0.5'@prisma/orm-postgres': 8.0.0-rc.11'@vercel/nft': ^1.10.2drizzle-kit: 1.0.0-rc.5-ab785fcdrizzle-orm: 1.0.0-rc.5-ab785fc- effect: 4.0.4+ effect: 4.0.5mongodb: ^6.10.0mysql2: ^3.24.2pg: ^8.22.0@@ -8183,7 +8196,7 @@ packages:'@effect/sql-d1': '>=4.0.0-beta.105 || >=4.0.0''@effect/sql-libsql': '>=4.0.0-beta.105 || >=4.0.0''@effect/sql-mysql2': '>=4.0.0-beta.105 || >=4.0.0'- '@effect/sql-pg': 4.0.4+ '@effect/sql-pg': 4.0.5'@effect/sql-pglite': '>=4.0.0-beta.105 || >=4.0.0''@effect/sql-sqlite-bun': '>=4.0.0-beta.105 || >=4.0.0''@effect/sql-sqlite-do': '>=4.0.0-beta.105 || >=4.0.0'@@ -8214,7 +8227,7 @@ packages:arktype: '>=2.0.0'better-sqlite3: '>=9.3.0'bun-types: '*'- effect: 4.0.4+ effect: 4.0.5expo-sqlite: '>=14.0.0'minipg: '>=0.2.0'mssql: ^11.0.1@@ -8341,8 +8354,8 @@ packages:resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}- resolution: {integrity: sha512-Sr50OeVSC3M5UkoUYUhFf3EULryhGaZZUf6OzDHTvaznOw7HRlxOKdF3/4nvQXHL22StOyMG3Cvo8Bt7xUp+Ng==}+ resolution: {integrity: sha512-BY4/28NlpOd99yzmV741xbVGmp+1U7tks4oB7F/Png64bTa5tm5eCA6W0RiXsnuLDDoJpjfVSo4Dnq4BZb/89Q==}resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==}@@ -12435,14 +12448,14 @@ snapshots:dependencies:json-schema: 0.4.0- '@alchemy.run/[email protected](@distilled.cloud/[email protected]([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])':+ '@alchemy.run/[email protected](@distilled.cloud/[email protected]([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])':dependencies:'@alchemy.run/node-utils': 2.0.0-beta.80'@cloudflare/unenv-preset': 2.16.1([email protected])([email protected])- '@distilled.cloud/cloudflare': 1.0.0-rc.13([email protected])+ '@distilled.cloud/cloudflare': 1.0.0-rc.13([email protected])'@puppeteer/browsers': 3.2.2([email protected])capnp-es: 0.0.16([email protected])- effect: 4.0.4+ effect: 4.0.5magic-string: 0.30.21mime: 4.1.0sharp: 0.35.4(@types/[email protected])@@ -12450,7 +12463,7 @@ snapshots:workerd: 1.20260918.1yauzl: 3.4.0optionalDependencies:- '@effect/platform-node': 4.0.4([email protected])([email protected])([email protected])([email protected])+ '@effect/platform-node': 4.0.5([email protected])([email protected])([email protected])([email protected])rolldown: 1.2.5vite: '@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'transitivePeerDependencies:@@ -12458,9 +12471,9 @@ snapshots:- proxy-agent- typescript- '@alchemy.run/[email protected]([email protected])':+ '@alchemy.run/[email protected]([email protected])':dependencies:- effect: 4.0.4+ effect: 4.0.5'@alchemy.run/[email protected]':dependencies:@@ -13742,86 +13755,86 @@ snapshots:'@dimforge/[email protected]': {}- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])'@smithy/types': 4.18.0- effect: 4.0.4+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- effect: 4.0.4+ effect: 4.0.5graphql: 16.11.0- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5- '@distilled.cloud/[email protected]([email protected])':+ '@distilled.cloud/[email protected]([email protected])':dependencies:- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- effect: 4.0.4+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ effect: 4.0.5'@dnd-kit/[email protected]([email protected])':dependencies:@@ -13857,62 +13870,67 @@ snapshots:'@drizzle-team/[email protected]': {}dependencies:- effect: 4.0.4+ effect: 4.0.5react: 19.2.6scheduler: 0.28.0dependencies:- effect: 4.0.4+ effect: 4.0.5react: 19.3.0scheduler: 0.28.0- '@effect/[email protected](@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])':+ '@effect/[email protected](@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])':+ dependencies:+ '@effect/platform-node': 4.0.5([email protected])([email protected])([email protected])([email protected])+ effect: 4.0.5++ '@effect/[email protected](@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])':dependencies:- '@effect/platform-node': 4.0.4([email protected])([email protected])([email protected])([email protected])- effect: 4.0.4+ '@effect/platform-node': 4.0.5([email protected])([email protected])([email protected])([email protected])+ effect: 4.0.5swagger2openapi: 7.0.8([email protected])transitivePeerDependencies:- encodingdependencies:'@types/ws': 8.18.2- effect: 4.0.4+ effect: 4.0.5ws: 8.22.0([email protected])([email protected])transitivePeerDependencies:- bufferutil- utf-8-validate- '@effect/[email protected]([email protected])([email protected])([email protected])([email protected])':+ '@effect/[email protected]([email protected])([email protected])([email protected])([email protected])':dependencies:- effect: 4.0.4+ effect: 4.0.5redis: 6.2.1undici: 8.11.2transitivePeerDependencies:- bufferutil- utf-8-validate- '@effect/[email protected]([email protected])':+ '@effect/[email protected]([email protected])':dependencies:'@cloudflare/workers-types': 5.20261004.1- effect: 4.0.4+ effect: 4.0.5- '@effect/[email protected]([email protected])':+ '@effect/[email protected]([email protected])':dependencies:- effect: 4.0.4+ effect: 4.0.5- '@effect/[email protected]([email protected])':+ '@effect/[email protected]([email protected])':dependencies:- effect: 4.0.4+ effect: 4.0.5optional: true- '@effect/[email protected]([email protected])':+ '@effect/[email protected]([email protected])':dependencies:- effect: 4.0.4+ effect: 4.0.5'@effect/[email protected]':optional: true@@ -13945,9 +13963,9 @@ snapshots:'@effect/tsgo-win32-arm64': 0.51.1'@effect/tsgo-win32-x64': 0.51.1- '@effect/[email protected](patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':+ '@effect/[email protected](patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':dependencies:- effect: 4.0.4+ effect: 4.0.5vite-plus: 1.0.0(@types/[email protected])(@vitest/[email protected]([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- '@arethetypeswrong/core'@@ -15375,22 +15393,22 @@ snapshots:dependencies:cross-spawn: 7.0.6- '@opencode/[email protected]([email protected])':+ '@opencode/[email protected]([email protected])':dependencies:'@opencode/protocol': 2.0.28'@opencode/schema': 2.0.28optionalDependencies:- effect: 4.0.4+ effect: 4.0.5'@opencode/[email protected]':dependencies:'@opencode/schema': 2.0.28- effect: 4.0.4+ effect: 4.0.5'@opencode/[email protected]':dependencies:'@standard-schema/spec': 1.1.0- effect: 4.0.4+ effect: 4.0.5'@oslojs/[email protected]':dependencies:@@ -17611,37 +17629,37 @@ snapshots:json-schema-traverse: 1.0.0require-from-string: 2.0.2- [email protected](patch_hash=bea1b6c0c0b23157fd5f439a1d7feff430f28ac1621ba135d8a13eeec60ccacd)(65456df005cbbd653b96024b9ea83b1c):+ [email protected](patch_hash=bea1b6c0c0b23157fd5f439a1d7feff430f28ac1621ba135d8a13eeec60ccacd)(e32ed987c684265dc2dfa72f5ab4da0d):dependencies:- '@alchemy.run/cloudflare-runtime': 2.0.0-beta.80(@distilled.cloud/[email protected]([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])- '@alchemy.run/floci': 2.0.0-beta.80([email protected])+ '@alchemy.run/cloudflare-runtime': 2.0.0-beta.80(@distilled.cloud/[email protected]([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])+ '@alchemy.run/floci': 2.0.0-beta.80([email protected])'@alchemy.run/node-utils': 2.0.0-beta.80'@alchemy.run/sigil': 0.1.0-alpha.1(@types/[email protected])([email protected]([email protected])([email protected]))- '@distilled.cloud/acme': 1.0.0-rc.13([email protected])- '@distilled.cloud/aws': 1.0.0-rc.13([email protected])- '@distilled.cloud/axiom': 1.0.0-rc.13([email protected])- '@distilled.cloud/cloudflare': 1.0.0-rc.13([email protected])- '@distilled.cloud/core': 1.0.0-rc.13([email protected])- '@distilled.cloud/doppler': 1.0.0-rc.13([email protected])- '@distilled.cloud/fly-io': 1.0.0-rc.13([email protected])- '@distilled.cloud/gcp': 1.0.0-rc.13([email protected])- '@distilled.cloud/hetzner': 1.0.0-rc.13([email protected])- '@distilled.cloud/infisical': 1.0.0-rc.13([email protected])- '@distilled.cloud/neon': 1.0.0-rc.13([email protected])- '@distilled.cloud/planetscale': 1.0.0-rc.13([email protected])- '@distilled.cloud/prisma': 1.0.0-rc.13([email protected])- '@distilled.cloud/railway': 1.0.0-rc.13([email protected])- '@distilled.cloud/stripe': 1.0.0-rc.13([email protected])- '@distilled.cloud/zerossl': 1.0.0-rc.13([email protected])- '@effect/sql-d1': 4.0.0([email protected])- '@effect/sql-sqlite-do': 4.0.4([email protected])+ '@distilled.cloud/acme': 1.0.0-rc.13([email protected])+ '@distilled.cloud/aws': 1.0.0-rc.13([email protected])+ '@distilled.cloud/axiom': 1.0.0-rc.13([email protected])+ '@distilled.cloud/cloudflare': 1.0.0-rc.13([email protected])+ '@distilled.cloud/core': 1.0.0-rc.13([email protected])+ '@distilled.cloud/doppler': 1.0.0-rc.13([email protected])+ '@distilled.cloud/fly-io': 1.0.0-rc.13([email protected])+ '@distilled.cloud/gcp': 1.0.0-rc.13([email protected])+ '@distilled.cloud/hetzner': 1.0.0-rc.13([email protected])+ '@distilled.cloud/infisical': 1.0.0-rc.13([email protected])+ '@distilled.cloud/neon': 1.0.0-rc.13([email protected])+ '@distilled.cloud/planetscale': 1.0.0-rc.13([email protected])+ '@distilled.cloud/prisma': 1.0.0-rc.13([email protected])+ '@distilled.cloud/railway': 1.0.0-rc.13([email protected])+ '@distilled.cloud/stripe': 1.0.0-rc.13([email protected])+ '@distilled.cloud/zerossl': 1.0.0-rc.13([email protected])+ '@effect/sql-d1': 4.0.0([email protected])+ '@effect/sql-sqlite-do': 4.0.5([email protected])'@libsql/client': 0.17.3([email protected])([email protected])'@neon/functions': 0.11.0([email protected])'@octokit/rest': 22.0.1'@octokit/webhooks': 14.2.0'@types/aws-lambda': 8.10.161capnweb: 0.12.0- effect: 4.0.4+ effect: 4.0.5fflate: 0.8.3libsodium-wrappers: 0.8.4pathe: 2.0.3@@ -17650,11 +17668,11 @@ snapshots:tinyglobby: 0.2.17yaml: 2.9.0optionalDependencies:- '@effect/platform-node': 4.0.4([email protected])([email protected])([email protected])([email protected])- '@effect/sql-pg': 4.0.4([email protected])- '@effect/vitest': 4.0.4(patch_hash=ebaec66c6bdd25e1b8d5bfd4a14f25ab959bdcca6e22ed8871d061e50e2db0ad)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ '@effect/platform-node': 4.0.5([email protected])([email protected])([email protected])([email protected])+ '@effect/sql-pg': 4.0.5([email protected])+ '@effect/vitest': 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])drizzle-kit: 1.0.0-rc.5-ab785fc- drizzle-orm: 1.0.0-rc.5-ab785fc(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ drizzle-orm: 1.0.0-rc.5-ab785fc(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])mongodb: 6.21.0(@aws-sdk/[email protected])([email protected])pg: 8.23.0vite: '@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@@ -18810,17 +18828,17 @@ snapshots:get-tsconfig: 4.14.3jiti: 2.7.0- [email protected](@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):+ [email protected](@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):optionalDependencies:'@cloudflare/workers-types': 4.20260604.1- '@effect/sql-d1': 4.0.0([email protected])- '@effect/sql-pg': 4.0.4([email protected])- '@effect/sql-sqlite-bun': 4.0.0-rc.112([email protected])- '@effect/sql-sqlite-do': 4.0.4([email protected])+ '@effect/sql-d1': 4.0.0([email protected])+ '@effect/sql-pg': 4.0.5([email protected])+ '@effect/sql-sqlite-bun': 4.0.0-rc.112([email protected])+ '@effect/sql-sqlite-do': 4.0.5([email protected])'@electric-sql/pglite': 0.3.15'@libsql/client': 0.17.3([email protected])([email protected])bun-types: 1.3.14- effect: 4.0.4+ effect: 4.0.5expo-sqlite: 58.0.8([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])pg: 8.23.0valibot: 1.2.0([email protected])@@ -18842,7 +18860,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 807cc737958..db8835316be 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -34,14 +34,15 @@ catalog:"@clerk/expo": 4.6.8"@clerk/react": 6.16.1"@clerk/shared": 4.33.0- "@effect/atom-react": 4.0.4- "@effect/openapi-generator": 4.0.4- "@effect/platform-node": 4.0.4- "@effect/platform-node-shared": 4.0.4- "@effect/sql-pg": 4.0.4- "@effect/sql-sqlite-do": 4.0.4+ "@effect/atom-react": 4.0.5+ "@effect/graphql-generator": 4.0.5+ "@effect/openapi-generator": 4.0.5+ "@effect/platform-node": 4.0.5+ "@effect/platform-node-shared": 4.0.5+ "@effect/sql-pg": 4.0.5+ "@effect/sql-sqlite-do": 4.0.5"@effect/tsgo": 0.51.1- "@effect/vitest": 4.0.4+ "@effect/vitest": 4.0.5"@electron-webauthn/macos": 1.3.1"@legendapp/list": 3.3.5"@noble/curves": 1.9.1@@ -53,7 +54,7 @@ catalog:"@types/node": 24.12.4"@types/plist": 3.0.5"@types/ws": 8.18.2- effect: 4.0.4+ effect: 4.0.5electron-webauthn: 1.3.1jose: 6.2.2lightningcss: 1.33.0@@ -99,15 +100,16 @@ minimumReleaseAgeExclude:- "@distilled.cloud/[email protected]"- "@distilled.cloud/[email protected]"- "@distilled.cloud/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"+ - "@effect/[email protected]"+ - "@effect/[email protected]"+ - "@effect/[email protected]"+ - "@effect/[email protected]"+ - "@effect/[email protected]"+ - "@effect/[email protected]"+ - "@effect/[email protected]"+ - "@effect/[email protected]"- "@legendapp/[email protected]"- "@expo/[email protected]"- "@expo/[email protected]"@@ -290,7 +292,7 @@ patchedDependencies:[email protected]: patches/[email protected][email protected]: patches/[email protected]"@clerk/[email protected]": patches/@[email protected]- "@effect/[email protected]": patches/@[email protected]+ "@effect/[email protected]": patches/@[email protected]"@expo/[email protected]": patches/@[email protected][email protected]: patches/[email protected][email protected]: patches/[email protected]diff --git a/vite.config.ts b/vite.config.tsindex f96bdd28266..2839535c3b6 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -94,6 +94,8 @@ export default defineConfig({"pnpm-lock.yaml","*.tsbuildinfo","**/routeTree.gen.ts",+ "**/*.graphql.ts",+ "packages/source-control-github/schema/**","apps/mobile/android/**","apps/mobile/ios/**","apps/mobile/uniwind-types.d.ts",@@ -119,6 +121,8 @@ export default defineConfig({"pnpm-lock.yaml","*.tsbuildinfo","**/routeTree.gen.ts",+ "**/*.graphql.ts",+ "packages/source-control-github/schema/**","apps/mobile/android/**","apps/mobile/ios/**","apps/mobile/uniwind-types.d.ts",