From 21575fb3d73a82edcafa02eb1f5c72a0d33140a0 Mon Sep 17 00:00:00 2001 From: Wing <44992537+wingio@users.noreply.github.com> Date: Sun, 2 Jul 2023 16:04:09 -0400 Subject: [PATCH] WIP: Repo viewing (#11) Still unfinished but the rest can be separated into smaller PRs --- app/build.gradle.kts | 2 + app/proguard-rules.pro | 3 +- app/src/main/AndroidManifest.xml | 3 +- .../ContributorAvatar.fragment.graphql | 4 + .../gql/fragments/FileEntry.fragment.graphql | 11 + .../fragments/IssueOverview.fragment.graphql | 27 + .../gloom/gql/fragments/Lang.fragment.graphql | 7 + .../gql/fragments/Languages.fragment.graphql | 6 + .../PullRequestOverview.fragment.graphql | 37 + .../gql/fragments/Reaction.fragment.graphql | 7 + .../ReleaseAssetFragment.fragment.graphql | 6 + .../fragments/ReleaseDetails.fragment.graphql | 44 + .../fragments/ReleaseItem.fragment.graphql | 15 + .../fragments/RepoDetails.fragment.graphql | 30 + .../fragments/RepoOverview.fragment.graphql | 14 + .../gloom/gql/fragments/Tree.fragment.graphql | 5 + .../gloom/gql/muations/React.mutation.graphql | 10 + .../gql/muations/Unreact.mutation.graphql | 10 + .../gql/queries/DefaultBranch.query.graphql | 10 + .../gql/queries/ReleaseDetails.query.graphql | 7 + .../gql/queries/RepoDetails.query.graphql | 5 + .../gloom/gql/queries/RepoFiles.query.graphql | 8 + .../gql/queries/RepoIssues.query.graphql | 20 + .../gloom/gql/queries/RepoName.query.graphql | 5 + .../queries/RepoPullRequests.query.graphql | 18 + .../gql/queries/RepoReleases.query.graphql | 13 + .../gloom/gql/schemas/github.schema.graphqls | 50209 ++++++++-------- .../gloom/di/modules/ManagerModule.kt | 5 +- .../gloom/di/modules/ViewModelModule.kt | 18 + .../gloom/domain/manager/DialogManager.kt | 18 + .../gloom/domain/manager/DownloadManager.kt | 110 + .../domain/repository/GraphQLRepository.kt | 52 + .../gloom/rest/service/GraphQLService.kt | 95 +- .../gloom/rest/utils/GraphQLUtils.kt | 7 +- .../gloom/service/InstallService.kt | 44 + .../materiiapps/gloom/ui/components/Avatar.kt | 3 +- .../materiiapps/gloom/ui/components/Label.kt | 66 + .../ui/components/LargeSegmentedButton.kt | 72 + .../gloom/ui/components/ThinDivider.kt | 12 + .../gloom/ui/icons/ClosedPullRequest.kt | 192 + .../com/materiiapps/gloom/ui/icons/Custom.kt | 8 + .../gloom/ui/icons/DraftPullRequest.kt | 175 + .../gloom/ui/icons/MergedPullRequest.kt | 179 + .../gloom/ui/icons/OpenPullRequest.kt | 185 + .../explorer/DirectoryListingScreen.kt | 85 + .../gloom/ui/screens/release/ReleaseScreen.kt | 276 + .../gloom/ui/screens/repo/RepoScreen.kt | 251 + .../gloom/ui/screens/repo/tab/CodeTab.kt | 99 + .../gloom/ui/screens/repo/tab/DetailsTab.kt | 172 + .../gloom/ui/screens/repo/tab/IssuesTab.kt | 81 + .../ui/screens/repo/tab/PullRequestTab.kt | 81 + .../gloom/ui/screens/repo/tab/ReleasesTab.kt | 109 + .../com/materiiapps/gloom/ui/theme/Colors.kt | 14 + .../gloom/ui/theme/GloomColorScheme.kt | 211 + .../materiiapps/gloom/ui/theme/GloomTheme.kt | 36 + .../com/materiiapps/gloom/ui/theme/Theme.kt | 38 - .../com/materiiapps/gloom/ui/theme/Themes.kt | 47 + .../explorer/DirectoryListingViewModel.kt | 48 + .../ui/viewmodels/release/ReleaseViewModel.kt | 81 + .../gloom/ui/viewmodels/repo/RepoViewModel.kt | 60 + .../viewmodels/repo/tab/RepoCodeViewModel.kt | 46 + .../repo/tab/RepoDetailsViewModel.kt | 45 + .../repo/tab/RepoIssuesViewModel.kt | 25 + .../repo/tab/RepoPullRequestsViewModel.kt | 26 + .../repo/tab/RepoReleasesViewModel.kt | 25 + .../gloom/ui/widgets/feed/FeedRepoCard.kt | 10 +- .../gloom/ui/widgets/feed/FeedUserCard.kt | 2 +- .../gloom/ui/widgets/feed/NewReleaseItem.kt | 46 +- .../gloom/ui/widgets/reaction/ReactionRow.kt | 160 + .../ui/widgets/reaction/ReactionSheet.kt | 65 + .../gloom/ui/widgets/release/ReleaseAsset.kt | 142 + .../gloom/ui/widgets/release/ReleaseAuthor.kt | 59 + .../ui/widgets/release/ReleaseContributors.kt | 75 + .../gloom/ui/widgets/release/ReleaseHeader.kt | 97 + .../gloom/ui/widgets/release/ReleaseInfo.kt | 81 + .../dialog/ReleaseAssetDownloadDialog.kt | 92 + .../dialog/ReleaseAssetInstallDialog.kt | 91 + .../gloom/ui/widgets/repo/ContributorsRow.kt | 88 + .../gloom/ui/widgets/repo/IssueItem.kt | 47 + .../gloom/ui/widgets/repo/IssueOrPRItem.kt | 228 + .../gloom/ui/widgets/repo/LanguageMakeup.kt | 129 + .../ui/widgets/repo/LatestReleaseItem.kt | 180 + .../gloom/ui/widgets/repo/PullRequestItem.kt | 59 + .../gloom/ui/widgets/repo/ReleaseItem.kt | 85 + .../gloom/ui/widgets/repo/RepoItem.kt | 12 +- .../com/materiiapps/gloom/utils/Constants.kt | 19 + .../gloom/utils/PackageInstaller.kt | 40 + .../com/materiiapps/gloom/utils/TimeUtils.kt | 66 + .../java/com/materiiapps/gloom/utils/Utils.kt | 29 +- .../gloom/utils/deeplinks/DeepLinkHandler.kt | 6 + .../gloom/utils/deeplinks/DeepLinkUtils.kt | 11 +- .../gloom/utils/deeplinks/DeepLinkWrapper.kt | 19 +- app/src/main/res/drawable/ic_balance_24.xml | 5 + app/src/main/res/values/strings.xml | 84 + gradle/libs.versions.toml | 5 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 96 files changed, 32003 insertions(+), 23664 deletions(-) create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ContributorAvatar.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/FileEntry.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/IssueOverview.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Lang.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Languages.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/PullRequestOverview.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Reaction.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseAssetFragment.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseDetails.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseItem.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoDetails.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoOverview.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Tree.fragment.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/muations/React.mutation.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/muations/Unreact.mutation.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/DefaultBranch.query.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/ReleaseDetails.query.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoDetails.query.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoFiles.query.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoIssues.query.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoName.query.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoPullRequests.query.graphql create mode 100644 app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoReleases.query.graphql create mode 100644 app/src/main/java/com/materiiapps/gloom/domain/manager/DialogManager.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/domain/manager/DownloadManager.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/service/InstallService.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/components/Label.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/components/LargeSegmentedButton.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/components/ThinDivider.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/icons/ClosedPullRequest.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/icons/Custom.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/icons/DraftPullRequest.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/icons/MergedPullRequest.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/icons/OpenPullRequest.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/explorer/DirectoryListingScreen.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/release/ReleaseScreen.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/repo/RepoScreen.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/CodeTab.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/DetailsTab.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/IssuesTab.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/PullRequestTab.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/ReleasesTab.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/theme/Colors.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/theme/GloomColorScheme.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/theme/GloomTheme.kt delete mode 100644 app/src/main/java/com/materiiapps/gloom/ui/theme/Theme.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/theme/Themes.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/explorer/DirectoryListingViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/release/ReleaseViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/RepoViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoCodeViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoDetailsViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoIssuesViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoPullRequestsViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoReleasesViewModel.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionRow.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionSheet.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAsset.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAuthor.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseContributors.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseHeader.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseInfo.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetDownloadDialog.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetInstallDialog.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ContributorsRow.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueItem.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueOrPRItem.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LanguageMakeup.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LatestReleaseItem.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/PullRequestItem.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ReleaseItem.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/utils/PackageInstaller.kt create mode 100644 app/src/main/java/com/materiiapps/gloom/utils/TimeUtils.kt create mode 100644 app/src/main/res/drawable/ic_balance_24.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e2b902e..05466d4 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -53,6 +53,8 @@ android { apollo { packageName.set("com.materiiapps.gloom.gql") + customTypeMapping.put("URI", "kotlin.String") + customTypeMapping.put("HTML", "kotlin.String") } } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index ff59496..9d30a0a 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,5 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile +-keep class org.opcsoft.prettytime.i18n.** \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8bd5c5c..eb4e72c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,7 @@ xmlns:tools="http://schemas.android.com/tools"> + @@ -47,7 +48,7 @@ - + \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ContributorAvatar.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ContributorAvatar.fragment.graphql new file mode 100644 index 0000000..23b821c --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ContributorAvatar.fragment.graphql @@ -0,0 +1,4 @@ +fragment ContributorAvatar on User { + avatarUrl + login +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/FileEntry.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/FileEntry.fragment.graphql new file mode 100644 index 0000000..cc38f65 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/FileEntry.fragment.graphql @@ -0,0 +1,11 @@ +fragment FileEntryFragment on TreeEntry { + name + type + mode + language { + name + } + submodule { + gitUrl + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/IssueOverview.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/IssueOverview.fragment.graphql new file mode 100644 index 0000000..602f476 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/IssueOverview.fragment.graphql @@ -0,0 +1,27 @@ +fragment IssueOverview on Issue { + title + number + author { + login + avatarUrl + } + createdAt + state + stateReason + comments { + totalCount + } + labels(first: 6) { + nodes { + name + color + } + } + assignees(first: 1) { + totalCount + nodes { + avatarUrl + login + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Lang.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Lang.fragment.graphql new file mode 100644 index 0000000..4bdef47 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Lang.fragment.graphql @@ -0,0 +1,7 @@ +fragment Lang on LanguageEdge { + node { + name + color + } + size +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Languages.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Languages.fragment.graphql new file mode 100644 index 0000000..5137a9e --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Languages.fragment.graphql @@ -0,0 +1,6 @@ +fragment Languages on LanguageConnection { + totalSize + edges { + ...Lang + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/PullRequestOverview.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/PullRequestOverview.fragment.graphql new file mode 100644 index 0000000..37888d5 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/PullRequestOverview.fragment.graphql @@ -0,0 +1,37 @@ +fragment PullRequestOverview on PullRequest { + title + number + author { + login + avatarUrl + } + createdAt + state + comments { + totalCount + } + labels(first: 6) { + nodes { + name + color + } + } + assignees(first: 1) { + totalCount + nodes { + avatarUrl + login + } + } + reviewDecision + isDraft + commits(last: 1) { + nodes { + commit { + statusCheckRollup { + state + } + } + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Reaction.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Reaction.fragment.graphql new file mode 100644 index 0000000..b1aba9c --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Reaction.fragment.graphql @@ -0,0 +1,7 @@ +fragment Reaction on ReactionGroup { + content + viewerHasReacted + reactors { + totalCount + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseAssetFragment.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseAssetFragment.fragment.graphql new file mode 100644 index 0000000..0459761 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseAssetFragment.fragment.graphql @@ -0,0 +1,6 @@ +fragment ReleaseAssetFragment on ReleaseAsset { + name + downloadUrl + size + contentType +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseDetails.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseDetails.fragment.graphql new file mode 100644 index 0000000..80f9b74 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseDetails.fragment.graphql @@ -0,0 +1,44 @@ +fragment ReleaseDetails on Release { + id + repository { + name + owner { + __typename + login + avatarUrl + } + } + name + isLatest + isPrerelease + author { + login + avatarUrl + } + createdAt + descriptionHTML + reactionGroups { + ...Reaction + } + mentions(first: 20) { + totalCount + nodes { + login + avatarUrl + } + } + tagName + tagCommit { + abbreviatedOid + } + releaseAssets(first: 20, after: $after) { + pageInfo { + hasNextPage + endCursor + } + nodes { + ...ReleaseAssetFragment + } + } + url +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseItem.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseItem.fragment.graphql new file mode 100644 index 0000000..0f7cefd --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/ReleaseItem.fragment.graphql @@ -0,0 +1,15 @@ +fragment ReleaseItem on Release { + name + tagName + isLatest + isPrerelease + tagCommit { + abbreviatedOid + } + descriptionHTML + author { + avatarUrl + login + } + createdAt +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoDetails.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoDetails.fragment.graphql new file mode 100644 index 0000000..4036717 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoDetails.fragment.graphql @@ -0,0 +1,30 @@ +fragment RepoDetails on Repository { + description + readme { + contentHTML + } + licenseInfo { + key + nickname + } + homepageUrl + stargazerCount + forkCount + viewerHasStarred + viewerBlockedByOwner + latestRelease { + name + } + contributors(first: 12) { + nodes { + ...ContributorAvatar + } + totalCount + } + languages(first: 6, orderBy: { + field: SIZE + direction: DESC + }) { + ...Languages + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoOverview.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoOverview.fragment.graphql new file mode 100644 index 0000000..4f89f86 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/RepoOverview.fragment.graphql @@ -0,0 +1,14 @@ +fragment RepoOverview on Repository { + name + owner { + __typename + login + avatarUrl + } + issues(states: OPEN) { + totalCount + } + pullRequests(states: OPEN) { + totalCount + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Tree.fragment.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Tree.fragment.graphql new file mode 100644 index 0000000..64efd61 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/fragments/Tree.fragment.graphql @@ -0,0 +1,5 @@ +fragment TreeFragment on Tree { + entries { + ...FileEntryFragment + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/muations/React.mutation.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/muations/React.mutation.graphql new file mode 100644 index 0000000..c01323d --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/muations/React.mutation.graphql @@ -0,0 +1,10 @@ +mutation React($id: ID!, $reaction: ReactionContent!) { + addReaction(input: { + content: $reaction + subjectId: $id + }) { + subject { + id + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/muations/Unreact.mutation.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/muations/Unreact.mutation.graphql new file mode 100644 index 0000000..d31453b --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/muations/Unreact.mutation.graphql @@ -0,0 +1,10 @@ +mutation Unreact($id: ID!, $reaction: ReactionContent!) { + removeReaction(input: { + content: $reaction + subjectId: $id + }) { + subject { + id + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/DefaultBranch.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/DefaultBranch.query.graphql new file mode 100644 index 0000000..1ceb3cf --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/DefaultBranch.query.graphql @@ -0,0 +1,10 @@ +query DefaultBranchQuery( + $owner: String!, + $name: String! +) { + repository(owner: $owner, name: $name) { + defaultBranchRef { + name + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/ReleaseDetails.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/ReleaseDetails.query.graphql new file mode 100644 index 0000000..9ccc665 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/ReleaseDetails.query.graphql @@ -0,0 +1,7 @@ +query ReleaseDetails($owner: String!, $name: String!, $tag: String!, $after: String) { + repository(owner: $owner, name: $name) { + release(tagName: $tag) { + ...ReleaseDetails + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoDetails.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoDetails.query.graphql new file mode 100644 index 0000000..f68b28a --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoDetails.query.graphql @@ -0,0 +1,5 @@ +query RepoDetails($owner: String!, $name: String!) { + repository(owner: $owner, name: $name) { + ...RepoDetails + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoFiles.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoFiles.query.graphql new file mode 100644 index 0000000..7a0b572 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoFiles.query.graphql @@ -0,0 +1,8 @@ +query RepoFilesQuery($owner: String!, $name: String!, $branchAndPath: String!) { + repository(owner: $owner, name: $name) { + gitObject: object(expression: $branchAndPath) { + __typename + ...TreeFragment + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoIssues.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoIssues.query.graphql new file mode 100644 index 0000000..db12c80 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoIssues.query.graphql @@ -0,0 +1,20 @@ +query RepoIssues($owner: String!, $name: String!, $after: String, $states: [IssueState!]!) { + repository(owner: $owner, name: $name) { + issues( + first: 20, + after: $after + orderBy: { field: CREATED_AT, direction: DESC} + filterBy: { + states: $states + } + ) { + pageInfo { + hasNextPage + endCursor + } + nodes { + ...IssueOverview + } + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoName.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoName.query.graphql new file mode 100644 index 0000000..117fcd9 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoName.query.graphql @@ -0,0 +1,5 @@ +query RepoName($owner: String!, $name: String!) { + repository(owner: $owner, name: $name) { + ...RepoOverview + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoPullRequests.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoPullRequests.query.graphql new file mode 100644 index 0000000..f788345 --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoPullRequests.query.graphql @@ -0,0 +1,18 @@ +query RepoPullRequests($owner: String!, $name: String!, $after: String, $states: [PullRequestState!]!) { + repository(owner: $owner, name: $name) { + pullRequests( + first: 20, + after: $after + orderBy: { field: CREATED_AT, direction: DESC} + states: $states + ) { + pageInfo { + hasNextPage + endCursor + } + nodes { + ...PullRequestOverview + } + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoReleases.query.graphql b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoReleases.query.graphql new file mode 100644 index 0000000..7bd03af --- /dev/null +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/queries/RepoReleases.query.graphql @@ -0,0 +1,13 @@ +query RepoReleases($owner: String!, $name: String!, $after: String) { + repository(owner: $owner, name: $name) { + releases(first: 20, after: $after) { + pageInfo { + endCursor + hasNextPage + } + nodes { + ...ReleaseItem + } + } + } +} \ No newline at end of file diff --git a/app/src/main/graphql/com/materiiapps/gloom/gql/schemas/github.schema.graphqls b/app/src/main/graphql/com/materiiapps/gloom/gql/schemas/github.schema.graphqls index 3ea4c3c..36d5639 100644 --- a/app/src/main/graphql/com/materiiapps/gloom/gql/schemas/github.schema.graphqls +++ b/app/src/main/graphql/com/materiiapps/gloom/gql/schemas/github.schema.graphqls @@ -1,1015 +1,1085 @@ schema { - query: Query - mutation: Mutation + query: Query + mutation: Mutation } """Autogenerated input type of AbortQueuedMigrations""" input AbortQueuedMigrationsInput { - """The ID of the organization that is running the migrations.""" - ownerId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the organization that is running the migrations.""" + ownerId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AbortQueuedMigrations""" type AbortQueuedMigrationsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of AcceptEnterpriseAdministratorInvitation""" input AcceptEnterpriseAdministratorInvitationInput { - """The id of the invitation being accepted""" - invitationId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the invitation being accepted""" + invitationId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 AcceptTopicSuggestion""" input AcceptTopicSuggestionInput { - """The Node ID of the repository.""" - repositoryId: ID! - """The name of the suggested topic.""" - name: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the repository.""" + repositoryId: ID! + """The name of the suggested topic.""" + name: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AcceptTopicSuggestion""" type AcceptTopicSuggestionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The accepted topic.""" - topic: Topic + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The accepted topic.""" + topic: Topic } """A kind of Achievement that may be earned by users.""" type Achievable { - """Highest potentially attainable tier for achievements of this kind, one-indexed.""" - highestTierNumber: Int! - """This achievable's display name in a human-readable format.""" - name: String! - """URL-friendly string used to identify this achievable.""" - slug: String! + """Highest potentially attainable tier for achievements of this kind, one-indexed.""" + highestTierNumber: Int! + """This achievable's display name in a human-readable format.""" + name: String! + """URL-friendly string used to identify this achievable.""" + slug: String! } """An achievement unlocked by a user.""" -type Achievement { - """Which kind of achievement this is.""" - achievable: Achievable! - """Sentence explaining what the user did to unlock this achievement, including placeholders.""" - descriptionTemplate: String! - """Has this user seen this achievement since it was unlocked?""" - hasBeenSeen: Boolean! - """Highest-earned tier unlocked for this user.""" - highestTier: AchievementTier! - """True if this user has unlocked all available tiers of this Achievable, false otherwise.""" - isFullyUnlocked: Boolean! - """True if the viewer has hidden this Achievement, false otherwise.""" - isHidden: Boolean! - """Sentence explaining what the user did to unlock this achievement.""" - localizedDescription( - """Locale to choose description language.""" - locale: MobileLocale! - ): String! - """Access a specific unlocked tier of this achievement.""" - tier( - """The one-indexed ordinal of the tier to fetch.""" - number: Int! - ): AchievementTier - """Collection of tiers unlocked by this user, ordered by ascending tier.""" - tiers: [AchievementTier!]! - """Date and time when the first tier of this Achievement was unlocked.""" - unlockedAt: DateTime! - """The user who unlocked this achievement.""" - user: User +type Achievement implements UniformResourceLocatable & Node { + """Which kind of achievement this is.""" + achievable: Achievable! + """Sentence explaining what the user did to unlock this achievement, including placeholders.""" + descriptionTemplate: String! + """Has this user seen this achievement since it was unlocked?""" + hasBeenSeen: Boolean! + """Highest-earned tier unlocked for this user.""" + highestTier: AchievementTier! + id: ID! + """True if this user has unlocked all available tiers of this Achievable, false otherwise.""" + isFullyUnlocked: Boolean! + """True if the viewer has hidden this Achievement, false otherwise.""" + isHidden: Boolean! + """Sentence explaining what the user did to unlock this achievement.""" + localizedDescription( + """Locale to choose description language.""" + locale: MobileLocale! + ): String! + """The HTTP path for this achievement""" + resourcePath: URI! + """Access a specific unlocked tier of this achievement.""" + tier( + """The one-indexed ordinal of the tier to fetch.""" + number: Int! + ): AchievementTier + """Collection of tiers unlocked by this user, ordered by ascending tier.""" + tiers: [AchievementTier!]! + """Date and time when the first tier of this Achievement was unlocked.""" + unlockedAt: DateTime! + """The HTTP URL for this achievement""" + url: URI! + """The user who unlocked this achievement.""" + user: User } """The connection type for Achievement.""" type AchievementConnection { - """A list of edges.""" - edges: [AchievementEdge] - """A list of nodes.""" - nodes: [Achievement] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [AchievementEdge] + """A list of nodes.""" + nodes: [Achievement] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type AchievementEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: Achievement + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Achievement } """A list sampling the Repositories that qualify a user for an Achievement.""" type AchievementRepositoryList { - """Highlighted repositories that qualify the viewer for an Achievement.""" - 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 - ): RepositoryConnection! + """Highlighted repositories that qualify the viewer for an Achievement.""" + 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 + ): RepositoryConnection! } """Specific unlocked tier of an Achievement.""" type AchievementTier implements Node { - """Achievement this tier belongs to.""" - achievement: Achievement! - """Hex color code for a uniform background suitable for the display for this achievement and tier.""" - backgroundColor: String! - """URL for the image asset corresponding to this tier's graphic.""" - badgeImageUrl: URI! - """URL for the background gradient image asset corresponding to this achievement and tier.""" - gradientImageUrl: URI! - """URL for a high-resolution badge image.""" - highResolutionBadgeImageUrl: URI! - id: ID! - """Text explaining the activity that triggered this tier's unlocking.""" - localizedUnlockingExplanation( - """Locale to choose unlocking explanation language.""" - locale: MobileLocale! - ): String! - """URL for the image asset used in our Twitter hovercards.""" - socialImageUrl: URI! - """Metallic-color name corresponding to this tier.""" - tierName: AchievementTierName! - """Tier ordinal, one-indexed.""" - tierNumber: Int! - """Date and time when this Achievement tier was unlocked.""" - unlockedAt: DateTime! - """Text explaining the activity that triggered this tier's unlocking, including placeholders.""" - unlockingExplanationTemplate: String! - """Model describing the activity that triggered this tier to be unlocked.May be null if the model is deleted or otherwise inaccessible.""" - unlockingModel: UnlockingModel - """User who unlocked this Achievement tier.""" - user: User + """Achievement this tier belongs to.""" + achievement: Achievement! + """Hex color code for a uniform background suitable for the display for this achievement and tier.""" + backgroundColor: String! + """URL for the image asset corresponding to this tier's graphic.""" + badgeImageUrl: URI! + """URL for the background gradient image asset corresponding to this achievement and tier.""" + gradientImageUrl: URI! + """URL for a high-resolution badge image.""" + highResolutionBadgeImageUrl: URI! + id: ID! + """Text explaining the activity that triggered this tier's unlocking.""" + localizedUnlockingExplanation( + """Locale to choose unlocking explanation language.""" + locale: MobileLocale! + ): String! + """URL for the image asset used in our Twitter hovercards.""" + socialImageUrl: URI! + """Metallic-color name corresponding to this tier.""" + tierName: AchievementTierName! + """Tier ordinal, one-indexed.""" + tierNumber: Int! + """Date and time when this Achievement tier was unlocked.""" + unlockedAt: DateTime! + """Text explaining the activity that triggered this tier's unlocking, including placeholders.""" + unlockingExplanationTemplate: String! + """Model describing the activity that triggered this tier to be unlocked.May be null if the model is deleted or otherwise inaccessible.""" + unlockingModel: UnlockingModel + """User who unlocked this Achievement tier.""" + user: User } """Metallic-color names describing the unlockable levels of an Achievable.""" enum AchievementTierName { - """First or only tier.""" - DEFAULT - """Second tier.""" - BRONZE - """Third tier.""" - SILVER - """Fourth tier.""" - GOLD - """Fifth tier.""" - CRYSTAL + """First or only tier.""" + DEFAULT + """Second tier.""" + BRONZE + """Third tier.""" + SILVER + """Fourth tier.""" + GOLD + """Fifth tier.""" + CRYSTAL } """Represents an object which can take actions on GitHub. Typically a User or Bot.""" interface Actor { - """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! + """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! } """Location information for an actor""" type ActorLocation { - """City""" - city: String - """Country name""" - country: String - """Country code""" - countryCode: String - """Region name""" - region: String - """Region or state code""" - regionCode: String + """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 { - """Indicates a user actor.""" - USER - """Indicates a team actor.""" - TEAM + """Indicates a user actor.""" + USER + """Indicates a team actor.""" + TEAM } """Autogenerated input type of AddAssigneesToAssignable""" input AddAssigneesToAssignableInput { - """The id of the assignable object to add assignees to.""" - assignableId: ID! - """The id of users to add as assignees.""" - assigneeIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the assignable object to add assignees to.""" + assignableId: ID! + """The id of users to add as assignees.""" + assigneeIds: [ID!]! + """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 + """The item that was assigned.""" + assignable: Assignable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of AddComment""" input AddCommentInput { - """The Node ID of the subject to modify.""" - subjectId: ID! - """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! + """The contents of the comment.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 Node ID of the discussion to comment on.""" - discussionId: ID! - """The Node ID of the discussion comment within this discussion to reply to.""" - replyToId: ID - """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! + """The Node ID of the discussion comment within this discussion to reply to.""" + replyToId: ID + """The contents of the comment.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Node ID of the discussion poll option to vote for.""" - pollOptionId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the discussion poll option to vote for.""" + pollOptionId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The poll option that a vote was added to.""" + pollOption: DiscussionPollOption } """A feed item representing the act of an actor adding a repository to a user list""" type AddedToListFeedItem implements FeedItemDisplayable { - """The user who added the repository to the list""" - actor: User! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The repository that was added to the list""" - repository: Repository! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! - """The user list the repository was added to""" - userList: UserList! + """The user who added the repository to the list""" + actor: User! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The repository that was added to the list""" + repository: Repository! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! + """The user list the repository was added to""" + userList: UserList! +} + +"""Represents an 'added_to_merge_queue' event on a given pull request.""" +type AddedToMergeQueueEvent implements Node { + """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 + 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 { - """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 - id: ID! + """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 + id: ID! +} + +"""Autogenerated input type of AddEnterpriseOrganizationMember""" +input AddEnterpriseOrganizationMemberInput { + """The ID of the enterprise which owns the organization.""" + enterpriseId: ID! + """The ID of the organization the users will be added to.""" + organizationId: ID! + """The IDs of the enterprise members to add.""" + userIds: [ID!]! + """The role to assign the users in the organization""" + role: OrganizationMemberRole + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The ID of the Enterprise which the admin belongs to.""" - enterpriseId: ID! - """The login of a member who will receive the support entitlement.""" - login: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Enterprise which the admin belongs to.""" + enterpriseId: ID! + """The login of a member who will receive the support entitlement.""" + login: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The id of the labelable object to add labels to.""" - labelableId: ID! - """The ids of the labels to add.""" - labelIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the labelable object to add labels to.""" + labelableId: ID! + """The ids of the labels to add.""" + labelIds: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The item that was labeled.""" + labelable: Labelable } """Autogenerated input type of AddMobileDevicePublicKey""" input AddMobileDevicePublicKeyInput { - """The type of mobile device key being added""" - type: MobileDeviceKeyType! - """The base64 encoded key used to verify the mobile device for authentication""" - publicKey: String! - """A base64 encoded signature created by the device's private key used to ensure the validity of the provided public key. This is not used for authentication.""" - verificationSignature: String - """The message that was signed by the device's private key used to ensure the validity of the provided auth public key. This is not used for authentication.""" - verificationMessage: String - """ - The mobile device name, as identifiable by the viewer, such as "Mona Lisa's iPhone" - """ - deviceName: String! - """ - The mobile device model, as reported by the device's operating system, such as "iPhone14,2" - """ - deviceModel: String! - """The mobile device operating system""" - deviceOs: MobileAppType! - """Tracks if the key was backed by secure hardware key storage (e.g. Secure Enclave)""" - isHardwareBacked: Boolean! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The type of mobile device key being added""" + type: MobileDeviceKeyType! + """The base64 encoded key used to verify the mobile device for authentication""" + publicKey: String! + """A base64 encoded signature created by the device's private key used to ensure the validity of the provided public key. This is not used for authentication.""" + verificationSignature: String + """The message that was signed by the device's private key used to ensure the validity of the provided auth public key. This is not used for authentication.""" + verificationMessage: String + """ + The mobile device name, as identifiable by the viewer, such as "Mona Lisa's iPhone" + """ + deviceName: String! + """ + The mobile device model, as reported by the device's operating system, such as "iPhone14,2" + """ + deviceModel: String! + """The mobile device operating system""" + deviceOs: MobileAppType! + """Tracks if the key was backed by secure hardware key storage (e.g. Secure Enclave)""" + isHardwareBacked: Boolean! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddMobileDevicePublicKey""" type AddMobileDevicePublicKeyPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The time that the mobile device key expires at""" - expiresAt: DateTime + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The time that the mobile device key expires at""" + expiresAt: DateTime } """Autogenerated input type of AddMobileDeviceToken""" input AddMobileDeviceTokenInput { - """The push notification service that issued the device token.""" - service: PushNotificationService! - """The device token.""" - deviceToken: String! - """The name of the device.""" - deviceName: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The push notification service that issued the device token.""" + service: PushNotificationService! + """The device token.""" + deviceToken: String! + """The name of the device.""" + deviceName: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddMobileDeviceToken""" type AddMobileDeviceTokenPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of AddProjectCard""" input AddProjectCardInput { - """The Node ID of the ProjectColumn.""" - projectColumnId: ID! - """The content of the card. Must be a member of the ProjectCardItem union""" - contentId: ID - """The note on the card.""" - note: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the ProjectColumn.""" + projectColumnId: ID! + """The content of the card. Must be a member of the ProjectCardItem union""" + contentId: ID + """The note on the card.""" + note: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Node ID of the project.""" - projectId: ID! - """The name of the column.""" - name: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the project.""" + projectId: ID! + """The name of the column.""" + name: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 AddProjectDraftIssue""" input AddProjectDraftIssueInput { - """ - The ID of the Project to add the draft issue to. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - projectId: ID - """ - The title of the draft issue. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `title` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - title: String - """ - The body of the draft issue. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `body` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - body: String - """ - The IDs of the assignees of the draft issue. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `assigneeIds` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - assigneeIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to add the draft issue to. This field is required.""" + projectId: ID + """The title of the draft issue. This field is required.""" + title: String + """The body of the draft issue.""" + body: String + """The IDs of the assignees of the draft issue.""" + assigneeIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddProjectDraftIssue""" type AddProjectDraftIssuePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The draft issue added to the project.""" - projectNextItem: ProjectNextItem @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The draft issue added to the project.""" + projectNextItem: ProjectNextItem } """Autogenerated input type of AddProjectNextItem""" input AddProjectNextItemInput { - """ - The ID of the Project to add the item to. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - projectId: ID - """ - The content id of the item (Issue or PullRequest). This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `contentId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - contentId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to add the item to. This field is required.""" + projectId: ID + """The content id of the item (Issue or PullRequest). This field is required.""" + contentId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddProjectNextItem""" type AddProjectNextItemPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The item added to the project.""" - projectNextItem: ProjectNextItem @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The item added to the project.""" + projectNextItem: ProjectNextItem } """Autogenerated input type of AddProjectV2DraftIssue""" input AddProjectV2DraftIssueInput { - """The ID of the Project to add the draft issue to.""" - projectId: ID! - """The title of the draft issue.""" - title: String! - """The body of the draft issue.""" - body: String - """The IDs of the assignees of the draft issue.""" - assigneeIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to add the draft issue to.""" + projectId: ID! + """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! + """The body of the draft issue.""" + body: String + """The IDs of the assignees of the draft issue.""" + assigneeIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The ID of the Project to add the item to.""" - projectId: ID! - """The id of the Issue or Pull Request to add.""" - contentId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to add the item to.""" + projectId: ID! + """The id of the Issue or Pull Request to add.""" + contentId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The item added to the project.""" + item: ProjectV2Item } """Autogenerated input type of AddPullRequestReviewComment""" input AddPullRequestReviewCommentInput { - """The node ID of the pull request reviewing""" - pullRequestId: ID - """The Node ID of the review to modify.""" - pullRequestReviewId: ID - """The SHA of the commit to comment on.""" - commitOID: GitObjectID - """The text of the comment.""" - body: String! - """The relative path of the file to comment on.""" - path: String - """The line index in the diff to comment on.""" - position: Int - """The comment id to reply to.""" - inReplyTo: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ + 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 + """ + 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 + """ + 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 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 + """ + 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 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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 Node ID of the pull request to modify.""" - pullRequestId: ID! - """The commit OID the review pertains to.""" - commitOID: GitObjectID - """The contents of the review body comment.""" - body: String - """The event to perform on the pull request review.""" - event: PullRequestReviewEvent - """The review line comments.""" - comments: [DraftPullRequestReviewComment] - """The review line comment threads.""" - threads: [DraftPullRequestReviewThread] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request to modify.""" + pullRequestId: ID! + """The commit OID the review pertains to.""" + commitOID: GitObjectID + """The contents of the review body comment.""" + body: String + """The event to perform on the pull request review.""" + event: PullRequestReviewEvent + """ + 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 review line comment threads.""" + threads: [DraftPullRequestReviewThread] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """Path to the file being commented on.""" - path: String! - """Body of the thread's first comment.""" - body: String! - """The node ID of the pull request reviewing""" - pullRequestId: ID - """The Node ID of the review to modify.""" - pullRequestReviewId: ID - """The line of the blob to which the thread refers. The end of the line range for multi-line comments.""" - line: Int! - """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 - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Path to the file being commented on.""" + path: String! + """Body of the thread's first comment.""" + body: String! + """The node ID of the pull request reviewing""" + pullRequestId: ID + """The Node ID of the review to modify.""" + pullRequestReviewId: ID + """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 + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddPullRequestReviewThread""" type AddPullRequestReviewThreadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The newly created thread.""" - thread: PullRequestReviewThread + """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 Node ID of the pending review to which the reply will belong.""" - pullRequestReviewId: ID - """The Node ID of the thread to which this reply is being written.""" - pullRequestReviewThreadId: ID! - """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 + """The Node ID of the thread to which this reply is being written.""" + pullRequestReviewThreadId: ID! + """The text of the reply.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddPullRequestReviewThreadReply""" type AddPullRequestReviewThreadReplyPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The newly created reply.""" - comment: PullRequestReviewComment + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The newly created reply.""" + comment: PullRequestReviewComment } """Autogenerated input type of AddReaction""" input AddReactionInput { - """The Node ID of the subject to modify.""" - subjectId: ID! - """The name of the emoji to react with.""" - content: ReactionContent! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the subject to modify.""" + subjectId: ID! + """The name of the emoji to react with.""" + content: ReactionContent! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddReaction""" type AddReactionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The reaction object.""" - reaction: Reaction - """The reactable subject.""" - subject: Reactable + """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 AddStar""" input AddStarInput { - """The Starrable ID to star.""" - starrableId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Starrable ID to star.""" + starrableId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddStar""" type AddStarPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The starrable.""" - starrable: Starrable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The starrable.""" + starrable: Starrable } """Autogenerated input type of AddUpvote""" input AddUpvoteInput { - """The Node ID of the discussion or comment to upvote.""" - subjectId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the discussion or comment to upvote.""" + subjectId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of AddUpvote""" type AddUpvotePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The votable subject.""" - subject: Votable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The votable subject.""" + subject: Votable } """Autogenerated input type of AddVerifiableDomain""" input AddVerifiableDomainInput { - """The ID of the owner to add the domain to""" - ownerId: ID! - """The URL of the domain""" - domain: URI! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the owner to add the domain to""" + ownerId: ID! + """The URL of the domain""" + domain: URI! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The verifiable domain that was added.""" + domain: VerifiableDomain +} + +"""Represents an announcement banner.""" +interface AnnouncementBanner { + """The text of the announcement""" + announcement: String + """The expiration date of the announcement, if any""" + announcementExpiresAt: DateTime + """Whether the announcement can be dismissed by the user""" + announcementUserDismissible: Boolean } """A GitHub App.""" type App implements Node { - """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 - 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! + """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 + 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 ApplyMobileSuggestedChanges""" input ApplyMobileSuggestedChangesInput { - """The node id of the PullRequest to apply suggestions to.""" - pullRequestId: ID! - """The OID of the pull request's head ref that the changes should be applied to.""" - currentOID: GitObjectID! - """The data being submitted for these suggested changes.""" - changes: [MobileSuggestedChangeInput!]! - """The suggested change commit message.""" - message: String - """Whether to try signing the commit.""" - sign: Boolean = true - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The node id of the PullRequest to apply suggestions to.""" + pullRequestId: ID! + """The OID of the pull request's head ref that the changes should be applied to.""" + currentOID: GitObjectID! + """The data being submitted for these suggested changes.""" + changes: [MobileSuggestedChangeInput!]! + """The suggested change commit message.""" + message: String + """Whether to try signing the commit.""" + sign: Boolean = true + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ApplyMobileSuggestedChanges""" type ApplyMobileSuggestedChangesPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Returns if the suggestion was successfully applied.""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Returns if the suggestion was successfully applied.""" + success: Boolean } """Autogenerated input type of ApproveActionRequiredWorkflowRuns""" input ApproveActionRequiredWorkflowRunsInput { - """The node ID of the pull request""" - pullRequestId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The node ID of the pull request""" + pullRequestId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ApproveActionRequiredWorkflowRuns""" type ApproveActionRequiredWorkflowRunsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of ApproveDeployments""" input ApproveDeploymentsInput { - """The node ID of the workflow run containing the pending deployments.""" - workflowRunId: ID! - """The ids of environments to reject deployments""" - environmentIds: [ID!]! - """Optional comment for approving deployments""" - comment: String = "" - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The node ID of the workflow run containing the pending deployments.""" + workflowRunId: ID! + """The ids of environments to reject deployments""" + environmentIds: [ID!]! + """Optional comment for approving deployments""" + comment: String = "" + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ApproveDeployments""" type ApproveDeploymentsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The affected deployments.""" - deployments: [Deployment!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The affected deployments.""" + deployments: [Deployment!] } """Autogenerated input type of ApproveMobileAuthDeviceRequest""" input ApproveMobileAuthDeviceRequestInput { - """The ID associated with the mobile device authentication request.""" - requestId: Int! - """The base64 encoded signature of the request.""" - signature: String! - """The signature version.""" - signatureVersion: DeviceAuthSignatureVersion! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID associated with the mobile device authentication request.""" + requestId: Int! + """The base64 encoded signature of the request.""" + signature: String! + """The signature version.""" + signatureVersion: DeviceAuthSignatureVersion! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ApproveMobileAuthDeviceRequest""" type ApproveMobileAuthDeviceRequestPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of ApproveVerifiableDomain""" input ApproveVerifiableDomainInput { - """The ID of the verifiable domain to approve.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the verifiable domain to approve.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the Project to archive the item from.""" - projectId: ID! - """The ID of the ProjectV2Item to archive.""" - itemId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to archive the item from.""" + projectId: ID! + """The ID of the ProjectV2Item to archive.""" + itemId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The item archived from the project.""" + item: ProjectV2Item } """Autogenerated input type of ArchiveRepository""" input ArchiveRepositoryInput { - """The ID of the repository to mark as archived.""" - repositoryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the repository to mark as archived.""" + repositoryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The repository that was marked as archived.""" + repository: Repository } """An artifact from a check suite.""" type Artifact { - """Identifies the primary key from the database.""" - databaseId: Int - """Whether or not the artifact has expired.""" - expired: Boolean! - """The artifact's name.""" - name: String! - """The size of the artifact in bytes.""" - size: Int! + """Identifies the primary key from the database.""" + databaseId: Int + """Whether or not the artifact has expired.""" + expired: Boolean! + """The artifact's name.""" + name: String! + """The size of the artifact in bytes.""" + size: Int! } """The connection type for Artifact.""" type ArtifactConnection { - """A list of edges.""" - edges: [ArtifactEdge] - """A list of nodes.""" - nodes: [Artifact] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [ArtifactEdge] + """A list of nodes.""" + nodes: [Artifact] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type ArtifactEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: Artifact + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Artifact } """Ways in which lists of artifacts can be ordered upon return.""" input ArtifactOrder { - """The field to order artifacts by.""" - field: ArtifactOrderField! - """The direction to order artifacts by the specified field.""" - direction: OrderDirection! + """The field to order artifacts by.""" + field: ArtifactOrderField! + """The direction to order artifacts by the specified field.""" + direction: OrderDirection! } """Properties by which artifact connections can be ordered.""" enum ArtifactOrderField { - """Order artifacts by creation time""" - CREATED_AT - """Order artifacts alphabetically by name""" - NAME + """Order artifacts by creation time""" + CREATED_AT + """Order artifacts alphabetically by name""" + NAME } """An object that can have users assigned to it.""" interface Assignable { - """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 users to assign to this object""" - suggestedAssignees( - """If provided, searches users by login or profile name""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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 users to assign to this object""" + suggestedAssignees( + """If provided, searches users by login or profile name""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """Indicates if the viewer can edit assignees for this object.""" + viewerCanAssign: Boolean! } """Represents an 'assigned' event on any assignable object.""" type AssignedEvent implements Node { - """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! - id: ID! - """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.") + """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! + id: ID! + """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.""" @@ -1017,32 +1087,32 @@ union Assignee = Bot | Mannequin | Organization | User """An entry in the audit log.""" interface AuditEntry { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The corresponding operation type for the action""" - operationType: OperationType - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The corresponding operation type for the action""" + operationType: OperationType + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Types that can initiate an audit log event.""" @@ -1050,120 +1120,120 @@ union AuditEntryActor = Bot | Organization | User """Ordering options for Audit Log connections.""" input AuditLogOrder { - """The field to order Audit Logs by.""" - field: AuditLogOrderField - """The ordering direction.""" - direction: OrderDirection + """The field to order Audit Logs by.""" + field: AuditLogOrderField + """The ordering direction.""" + direction: OrderDirection } """Properties by which Audit Log connections can be ordered.""" enum AuditLogOrderField { - """Order audit log entries by timestamp""" - CREATED_AT + """Order audit log entries by timestamp""" + CREATED_AT } """Represents a 'automatic_base_change_failed' event on a given pull request.""" type AutomaticBaseChangeFailedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """The new base for this PR""" - newBase: String! - """The old base for this PR""" - oldBase: String! - """PullRequest referenced by event.""" - pullRequest: PullRequest! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """The new base for this PR""" - newBase: String! - """The old base for this PR""" - oldBase: String! - """PullRequest referenced by event.""" - pullRequest: PullRequest! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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 'auto_merge_disabled' event on a given pull request.""" type AutoMergeDisabledEvent implements Node { - """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 - 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 + """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 + 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 { - """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 - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest + """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 + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest } """Represents an auto-merge request for a pull request""" type AutoMergeRequest { - """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! + """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 { - """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 - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest + """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 + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest } """Represents a 'auto_squash_enabled' event on a given pull request.""" type AutoSquashEnabledEvent implements Node { - """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 - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest + """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 + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest } """A (potentially binary) string encoded using base64.""" @@ -1171,1165 +1241,1236 @@ scalar Base64String """Represents a 'base_ref_changed' event on a given issue or pull request.""" type BaseRefChangedEvent implements Node { - """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 - 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! + """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 + 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 { - """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! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest + """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! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest } """Represents a 'base_ref_force_pushed' event on a given pull request.""" type BaseRefForcePushedEvent implements Node { - """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! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! - """Identifies the fully qualified ref name for the 'base_ref_force_pushed' event.""" - ref: Ref + """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! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest! + """Identifies the fully qualified ref name for the 'base_ref_force_pushed' event.""" + ref: Ref } """A feed item representing the act of an entity becoming sponsorable""" type BecameSponsorableFeedItem implements FeedItemDisplayable { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The entity that became sponsorable""" - sponsorable: SponsorableItem! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! -} + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The entity that became sponsorable""" + sponsorable: SponsorableItem! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! +} + +"""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 { - """The list of ranges from a Git blame.""" - ranges: [BlameRange!]! + """The list of ranges from a Git blame.""" + ranges: [BlameRange!]! } """Represents a range of information from a Git blame.""" type BlameRange { - """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! + """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 { - """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! - 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 + """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! + 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 } """An identifier value for a dashboard navigation link.""" enum BlockFromOrganizationDuration { - """Block user for 1 day""" - ONE_DAY - """Block user for 3 days""" - THREE_DAYS - """Block user for 7 days""" - SEVEN_DAYS - """Block user for 30 days""" - THIRTY_DAYS - """Block user indefinitely""" - INDEFINITE + """Block user for 1 day""" + ONE_DAY + """Block user for 3 days""" + THREE_DAYS + """Block user for 7 days""" + SEVEN_DAYS + """Block user for 30 days""" + THIRTY_DAYS + """Block user indefinitely""" + INDEFINITE } """Autogenerated input type of BlockUserFromOrganization""" input BlockUserFromOrganizationInput { - """The ID of the organization to block from""" - organizationId: ID! - """The ID of the user to block from the organization""" - blockedUserId: ID! - """The duration to block the user for""" - duration: BlockFromOrganizationDuration! - """Whether or not we send a notification to the blocked user""" - notifyBlockedUser: Boolean = false - """Reason for hiding a user's comments""" - hiddenReason: ReportedContentClassifiers - """The ID of the content that the user was blocked from""" - contentId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the organization to block from""" + organizationId: ID! + """The ID of the user to block from the organization""" + blockedUserId: ID! + """The duration to block the user for""" + duration: BlockFromOrganizationDuration! + """Whether or not we send a notification to the blocked user""" + notifyBlockedUser: Boolean = false + """Reason for hiding a user's comments""" + hiddenReason: ReportedContentClassifiers + """The ID of the content that the user was blocked from""" + contentId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of BlockUserFromOrganization""" type BlockUserFromOrganizationPayload { - """When the user is blocked until, null if blocked indefinitely""" - blockedUntil: DateTime - """The user who is being blocked from the organization""" - blockedUser: User - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The duration the user was blocked for""" - duration: BlockFromOrganizationDuration - """The user who is acting for the organization""" - viewer: User + """When the user is blocked until, null if blocked indefinitely""" + blockedUntil: DateTime + """The user who is being blocked from the organization""" + blockedUser: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The duration the user was blocked for""" + duration: BlockFromOrganizationDuration + """The user who is acting for the organization""" + viewer: User } """Autogenerated input type of BlockUser""" input BlockUserInput { - """Global relay ID of the user to block""" - userId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Global relay ID of the user to block""" + userId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of BlockUser""" type BlockUserPayload { - """The user who is being blocked""" - blockedUser: User - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The user who is doing the blocking""" - viewer: User + """The user who is being blocked""" + blockedUser: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The user who is doing the blocking""" + viewer: User } """A special type of user which takes actions on behalf of GitHub Apps.""" type Bot implements Node & Actor & UniformResourceLocatable { - """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 - 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! + """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 + 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 = App | Team | User +"""Parameters to be used for the branch_name_pattern rule""" +type BranchNamePatternParameters { + """How this rule will appear to users.""" + 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 { + """How this rule will appear to users.""" + 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 { - """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! - id: ID! - """Can admins overwrite 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( - """Filters refs with query on name""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 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! - """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! + """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! + id: ID! + """Can admins overwrite 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( + """Filters refs with query on name""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 { - """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 + """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! + """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 + """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! + """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 + """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 { + """The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given.""" + sponsorableId: ID + """The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.""" + sponsorableLogin: String + """The amount to pay to the sponsorable in US dollars. Valid values: 1-12000.""" + amount: Int! } +"""Types that can represent a repository ruleset bypass actor.""" +union BypassActor = App | Team + """A user, team, or app who has the ability to bypass a force push requirement on a protected branch.""" type BypassForcePushAllowance implements Node { - """The actor that can force push.""" - actor: BranchActorAllowanceActor - """Identifies the branch protection rule associated with the allowed user, team, or app.""" - branchProtectionRule: BranchProtectionRule - id: ID! + """The actor that can force push.""" + actor: BranchActorAllowanceActor + """Identifies the branch protection rule associated with the allowed user, team, or app.""" + branchProtectionRule: BranchProtectionRule + 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! + """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 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 { - """The actor that can bypass.""" - actor: BranchActorAllowanceActor - """Identifies the branch protection rule associated with the allowed user, team, or app.""" - branchProtectionRule: BranchProtectionRule - id: ID! + """The actor that can bypass.""" + actor: BranchActorAllowanceActor + """Identifies the branch protection rule associated with the allowed user, team, or app.""" + branchProtectionRule: BranchProtectionRule + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: BypassPullRequestAllowance } """Autogenerated input type of CancelEnterpriseAdminInvitation""" input CancelEnterpriseAdminInvitationInput { - """The Node ID of the pending enterprise administrator invitation.""" - invitationId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pending enterprise administrator invitation.""" + invitationId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 CancelSponsorship""" input CancelSponsorshipInput { - """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 - """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 - """The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.""" - sponsorableLogin: String - """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 + """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 + """The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.""" + sponsorableLogin: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 CancelWorkflowRun""" input CancelWorkflowRunInput { - """The Node ID of the check suite to cancel""" - checkSuiteId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the check suite to cancel""" + checkSuiteId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CancelWorkflowRun""" type CancelWorkflowRunPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the cancel workflow run operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the cancel workflow run operation succeed?""" + success: Boolean } """Autogenerated input type of ChangeUserStatus""" input ChangeUserStatusInput { - """The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., :grinning:.""" - emoji: String - """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 - """Whether this status should indicate you are not fully available on GitHub, e.g., you are away.""" - limitedAvailability: Boolean = false - """If set, the user status will not be shown after this date.""" - expiresAt: DateTime - """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 + """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 + """Whether this status should indicate you are not fully available on GitHub, e.g., you are away.""" + limitedAvailability: Boolean = false + """If set, the user status will not be shown after this date.""" + expiresAt: DateTime + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ChangeUserStatus""" type ChangeUserStatusPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Your updated status.""" - status: UserStatus + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Your updated status.""" + status: UserStatus } """A single check annotation.""" type CheckAnnotation { - """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 - """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 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 + """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! + """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 { - """The path of the file to add an annotation to.""" - path: String! - """The location of the annotation""" - location: CheckAnnotationRange! - """Represents an annotation's information level""" - annotationLevel: CheckAnnotationLevel! - """A short description of the feedback for these lines of code.""" - message: String! - """The title that represents the annotation.""" - title: String - """Details about this annotation.""" - rawDetails: String + """The path of the file to add an annotation to.""" + path: String! + """The location of the annotation""" + location: CheckAnnotationRange! + """Represents an annotation's information level""" + annotationLevel: CheckAnnotationLevel! + """A short description of the feedback for these lines of code.""" + message: String! + """The title that represents the annotation.""" + title: String + """Details about this annotation.""" + rawDetails: 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 + """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 { - """An annotation indicating an inescapable error.""" - FAILURE - """An annotation indicating some information.""" - NOTICE - """An annotation indicating an ignorable error.""" - WARNING + """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 { - """Column number (1 indexed).""" - column: Int - """Line number (1 indexed).""" - line: Int! + """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 { - """The starting line of the range.""" - startLine: Int! - """The starting column of the range.""" - startColumn: Int - """The ending line of the range.""" - endLine: Int! - """The ending column of the range.""" - endColumn: Int + """The starting line of the range.""" + startLine: Int! + """The starting column of the range.""" + startColumn: Int + """The ending line of the range.""" + endLine: Int! + """The ending column of the range.""" + endColumn: Int } """An inclusive pair of positions for a check annotation.""" type CheckAnnotationSpan { - """End position (inclusive).""" - end: CheckAnnotationPosition! - """Start position (inclusive).""" - start: CheckAnnotationPosition! + """End position (inclusive).""" + end: CheckAnnotationPosition! + """Start position (inclusive).""" + start: CheckAnnotationPosition! } """The possible states for a check suite or run conclusion.""" enum CheckConclusionState { - """The check suite or run requires action.""" - ACTION_REQUIRED - """The check suite or run has timed out.""" - TIMED_OUT - """The check suite or run has been cancelled.""" - CANCELLED - """The check suite or run has failed.""" - FAILURE - """The check suite or run has succeeded.""" - SUCCESS - """The check suite or run was neutral.""" - NEUTRAL - """The check suite or run was skipped.""" - SKIPPED - """The check suite or run has failed at startup.""" - STARTUP_FAILURE - """The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion.""" - STALE + """The check suite or run requires action.""" + ACTION_REQUIRED + """The check suite or run has timed out.""" + TIMED_OUT + """The check suite or run has been cancelled.""" + CANCELLED + """The check suite or run has failed.""" + FAILURE + """The check suite or run has succeeded.""" + SUCCESS + """The check suite or run was neutral.""" + NEUTRAL + """The check suite or run was skipped.""" + SKIPPED + """The check suite or run has failed at startup.""" + STARTUP_FAILURE + """The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion.""" + STALE } """A check run.""" type CheckRun implements Node & UniformResourceLocatable & RequirableByPullRequest { - """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 - """The time it took to run the check (in seconds).""" - duration: Int! - """A reference for the check run on the integrator's system.""" - externalId: String - 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! - """The topological order of the check run within the check suite.""" - number: Int - """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""" + """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 + """The time it took to run the check (in seconds).""" + duration: Int! + """A reference for the check run on the integrator's system.""" + externalId: String + """Identifies the primary key from the database as a BigInt.""" + fullDatabaseId: BigInt + 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! + """The topological order of the check run within the check suite.""" 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! + """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 { - """The text to be displayed on a button in the web UI.""" - label: String! - """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! + """A short explanation of what this action would do.""" + description: String! + """A reference for the action on the integrator's system. """ + identifier: 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! + """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 + """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 { - """Filters the check runs by this type.""" - checkType: CheckRunType - """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 status. Superceded by statuses.""" - status: CheckStatusState - """Filters the check runs by this status. Overrides status.""" - statuses: [CheckStatusState!] - """Filters the check runs by these conclusions.""" - conclusions: [CheckConclusionState!] + """Filters the check runs by this type.""" + checkType: CheckRunType + """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 status. Superceded by statuses.""" + status: CheckStatusState + """Filters the check runs by this status. Overrides status.""" + statuses: [CheckStatusState!] + """Filters the check runs by these conclusions.""" + conclusions: [CheckConclusionState!] } """Descriptive details about the check run.""" input CheckRunOutput { - """A title to provide for this check run.""" - title: String! - """The summary of the check run (supports Commonmark).""" - summary: String! - """The details of the check run (supports Commonmark).""" - text: String - """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!] + """A title to provide for this check run.""" + title: String! + """The summary of the check run (supports Commonmark).""" + summary: String! + """The details of the check run (supports Commonmark).""" + text: String + """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!] } """Images attached to the check run output displayed in the GitHub pull request UI.""" input CheckRunOutputImage { - """The alternative text for the image.""" - alt: String! - """The full URL of the image.""" - imageUrl: URI! - """A short image description.""" - caption: String + """The alternative text for the image.""" + alt: String! + """The full URL of the image.""" + imageUrl: URI! + """A short image description.""" + caption: String } """The possible states of a check run in a status rollup.""" enum CheckRunState { - """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 + """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 { - """The number of check runs with this state.""" - count: Int! - """The state of a check run.""" - state: CheckRunState! + """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 { - """Every check run available.""" - ALL - """The latest check run.""" - LATEST + """Every check run available.""" + ALL + """The latest check run.""" + LATEST } """The possible states for a check suite or run status.""" enum CheckStatusState { - """The check suite or run has been queued.""" - QUEUED - """The check suite or run is in progress.""" - IN_PROGRESS - """The check suite or run has been completed.""" - COMPLETED - """The check suite or run is in waiting state.""" - WAITING - """The check suite or run is in pending state.""" - PENDING - """The check suite or run has been requested.""" - REQUESTED + """The check suite or run has been queued.""" + QUEUED + """The check suite or run is in progress.""" + IN_PROGRESS + """The check suite or run has been completed.""" + COMPLETED + """The check suite or run is in waiting state.""" + WAITING + """The check suite or run is in pending state.""" + PENDING + """The check suite or run has been requested.""" + REQUESTED } """A single check step.""" type CheckStep { - """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! + """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! + """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 cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: CheckStep } """A check suite.""" type CheckSuite implements Node { - """The GitHub App which created this check suite.""" - app: App - """The check suite's artifacts""" - artifacts( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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: ArtifactOrder = {field: CREATED_AT, direction: DESC} - ): ArtifactConnection - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Filters the check runs by this type.""" - filterBy: CheckRunFilter - ): CheckRunConnection - """Whether or not the individual runs in this check suite are re-runnable; DEFAULT: DO NOT USE""" - checkRunsRerunnable: Boolean! - """The commit for this check suite""" - commit: Commit! - """The time the check suite was completed.""" - completedAt: DateTime - """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 duration of the last execution of the check suite""" - duration: Int! - """The event that prompted this check suite, e.g 'pull_request'. Only used by GitHub Actions.""" - event: String - """Whether or not this check suite has reruns""" - hasReruns: Boolean! - id: ID! - """A list of open pull requests matching the check suite.""" - matchingPullRequests( - """A list of states to filter the pull requests by.""" - states: [PullRequestState!] - """A list of label names to filter the pull requests by.""" - labels: [String!] - """The head ref name to filter the pull requests by.""" - headRefName: String - """The base ref name to filter the pull requests by.""" - baseRefName: String - """Ordering options for pull requests returned from the connection.""" - orderBy: IssueOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PullRequestConnection - """The creator-supplied name for the CheckSuite. Currently only used by GitHub Actions, where it is the workflow name.""" - name: String - """The push that triggered this check suite.""" - push: Push - """The repository associated with this check suite.""" - repository: Repository! - """Whether or not this check suite is re-requestable; DEFAULT: DO NOT USE""" - rerequestable: Boolean! - """Whether or not this check suite is re-runnable.""" - rerunnable: Boolean! - """The HTTP path for this check suite""" - resourcePath: URI! - """The time the check suite was started.""" - startedAt: DateTime - """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 path of the workflow file""" - workflowFilePath: String - """The name of the workflow with a fallback value""" - workflowName: String! - """The workflow run associated with this check suite.""" - workflowRun: WorkflowRun + """The GitHub App which created this check suite.""" + app: App + """The check suite's artifacts""" + artifacts( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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: ArtifactOrder = {field: CREATED_AT, direction: DESC} + ): ArtifactConnection + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Filters the check runs by this type.""" + filterBy: CheckRunFilter + ): CheckRunConnection + """Whether or not the individual runs in this check suite are re-runnable; DEFAULT: DO NOT USE""" + checkRunsRerunnable: Boolean! + """The commit for this check suite""" + commit: Commit! + """The time the check suite was completed.""" + completedAt: DateTime + """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 duration of the last execution of the check suite""" + duration: Int! + """The event that prompted this check suite, e.g 'pull_request'. Only used by GitHub Actions.""" + event: String + """Whether or not this check suite has reruns""" + hasReruns: Boolean! + id: ID! + """A list of open pull requests matching the check suite.""" + matchingPullRequests( + """A list of states to filter the pull requests by.""" + states: [PullRequestState!] + """A list of label names to filter the pull requests by.""" + labels: [String!] + """The head ref name to filter the pull requests by.""" + headRefName: String + """The base ref name to filter the pull requests by.""" + baseRefName: String + """Ordering options for pull requests returned from the connection.""" + orderBy: IssueOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PullRequestConnection + """The creator-supplied name for the CheckSuite. Currently only used by GitHub Actions, where it is the workflow name.""" + name: String + """The push that triggered this check suite.""" + push: Push + """The repository associated with this check suite.""" + repository: Repository! + """Whether or not this check suite is re-requestable; DEFAULT: DO NOT USE""" + rerequestable: Boolean! + """Whether or not this check suite is re-runnable.""" + rerunnable: Boolean! + """The HTTP path for this check suite""" + resourcePath: URI! + """The time the check suite was started.""" + startedAt: DateTime + """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 path of the workflow file""" + workflowFilePath: String + """The name of the workflow with a fallback value""" + workflowName: String! + """The workflow run associated with this check suite.""" + workflowRun: WorkflowRun } """The auto-trigger preferences that are available for check suites.""" input CheckSuiteAutoTriggerPreference { - """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 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! + """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 + """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 { - """Filters the check suites created by this application ID.""" - appId: Int - """Filters the check suites by this name.""" - checkName: String + """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 = Mannequin | User + """Autogenerated input type of ClearLabelsFromLabelable""" input ClearLabelsFromLabelableInput { - """The id of the labelable object to clear the labels from.""" - labelableId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the labelable object to clear the labels from.""" + labelableId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the Project.""" - projectId: ID! - """The ID of the item to be cleared.""" - itemId: ID! - """The ID of the field to be cleared.""" - fieldId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project.""" + projectId: ID! + """The ID of the item to be cleared.""" + itemId: ID! + """The ID of the field to be cleared.""" + fieldId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ClearProjectV2ItemFieldValue""" type ClearProjectV2ItemFieldValuePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated item.""" - projectV2Item: ProjectV2Item + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated item.""" + projectV2Item: ProjectV2Item } """Autogenerated input type of CloneProject""" input CloneProjectInput { - """The owner ID to create the project under.""" - targetOwnerId: ID! - """The source project to clone.""" - sourceId: ID! - """Whether or not to clone the source project's workflows.""" - includeWorkflows: Boolean! - """The name of the project.""" - name: String! - """The description of the project.""" - body: String - """The visibility of the project, defaults to false (private).""" - public: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The owner ID to create the project under.""" + targetOwnerId: ID! + """The source project to clone.""" + sourceId: ID! + """Whether or not to clone the source project's workflows.""" + includeWorkflows: Boolean! + """The name of the project.""" + name: String! + """The description of the project.""" + body: String + """The visibility of the project, defaults to false (private).""" + public: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Node ID of the template repository.""" - repositoryId: ID! - """The name of the new repository.""" - name: String! - """The ID of the owner for the new repository.""" - ownerId: ID! - """A short description of the new repository.""" - description: String - """Indicates the repository's visibility level.""" - visibility: RepositoryVisibility! - """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 - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the template repository.""" + repositoryId: ID! + """The name of the new repository.""" + name: String! + """The ID of the owner for the new repository.""" + ownerId: ID! + """A short description of the new repository.""" + description: String + """Indicates the repository's visibility level.""" + visibility: RepositoryVisibility! + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CloneTemplateRepository""" type CloneTemplateRepositoryPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new repository.""" - repository: Repository + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new repository.""" + repository: Repository } """An object that can be closed""" interface Closable { - """`true` 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 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! } """Represents a 'closed' event on any `Closable`.""" type ClosedEvent implements Node & UniformResourceLocatable { - """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! - id: ID! - """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! + """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! + id: ID! + """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! +} + +"""Autogenerated input type of CloseDiscussion""" +input CloseDiscussionInput { + """ID of the discussion to be closed.""" + discussionId: ID! + """The reason why the discussion is being closed.""" + reason: DiscussionCloseReason = RESOLVED + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """ID of the issue to be closed.""" - issueId: ID! - """The reason the issue is to be closed.""" - stateReason: IssueClosedStateReason - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the issue to be closed.""" + issueId: ID! + """The reason the issue is to be closed.""" + stateReason: IssueClosedStateReason + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """ID of the pull request to be closed.""" - pullRequestId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the pull request to be closed.""" + pullRequestId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The pull request that was closed.""" + pullRequest: PullRequest } """The object which triggered a `ClosedEvent`.""" @@ -2337,564 +2478,612 @@ union Closer = Commit | PullRequest """The Code of Conduct for a repository""" type CodeOfConduct implements Node { - """The body of the Code of Conduct""" - body: String - 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 + """The body of the Code of Conduct""" + body: String + 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 } """Collaborators affiliation level with a subject.""" enum CollaboratorAffiliation { - """All outside collaborators of an organization-owned subject.""" - OUTSIDE - """All collaborators with permissions to an organization-owned subject, regardless of organization membership status.""" - DIRECT - """All collaborators the authenticated user can see.""" - ALL + """All outside collaborators of an organization-owned subject.""" + OUTSIDE + """All collaborators with permissions to an organization-owned subject, regardless of organization membership status.""" + DIRECT + """All collaborators the authenticated user can see.""" + ALL } """Represents a comment.""" interface Comment { - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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 - 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! + """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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + 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 { - """Author is a member of the organization that owns the repository.""" - MEMBER - """Author is the owner of the repository.""" - OWNER - """Author is a placeholder for an unclaimed user.""" - MANNEQUIN - """Author has been invited to collaborate on the repository.""" - COLLABORATOR - """Author has previously committed to the repository.""" - CONTRIBUTOR - """Author has not previously committed to the repository.""" - FIRST_TIME_CONTRIBUTOR - """Author has not previously committed to GitHub.""" - FIRST_TIMER - """Author has no association with the repository.""" - NONE + """Author is a member of the organization that owns the repository.""" + MEMBER + """Author is the owner of the repository.""" + OWNER + """Author is a placeholder for an unclaimed user.""" + MANNEQUIN + """Author has been invited to collaborate on the repository.""" + COLLABORATOR + """Author has previously committed to the repository.""" + CONTRIBUTOR + """Author has not previously committed to the repository.""" + FIRST_TIME_CONTRIBUTOR + """Author has not previously committed to GitHub.""" + FIRST_TIMER + """Author has no association with the repository.""" + NONE } """The possible errors that will prevent a user from updating a comment.""" enum CommentCannotUpdateReason { - """Unable to create comment because repository is archived.""" - ARCHIVED - """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 - """You cannot update this comment""" - DENIED + """Unable to create comment because repository is archived.""" + ARCHIVED + """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 + """You cannot update this comment""" + DENIED } """Represents a 'comment_deleted' event on a given issue or pull request.""" type CommentDeletedEvent implements Node { - """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 - id: ID! + """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 + id: ID! } """Represents a Git commit.""" type Commit implements Node & GitObject & Subscribable & UniformResourceLocatable { - """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 `changedFielsIfAvailable` 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Filters the check suites by this type.""" - filterBy: CheckSuiteFilter - ): 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( - """Environments to list deployments for""" - environments: [String!] - """Ordering options for deployments returned from the connection.""" - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): DeploymentConnection - """The diff of changes introduced by this commit.""" - diff: Diff - """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 - """Returns the elements in the list that come before the 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 - """If non-null, filters history to only show commits with matching authorship.""" - author: CommitAuthor - """Allows specifying a beginning time or date for fetching commits.""" - since: GitTimestamp - """Allows specifying an ending time or date for fetching commits.""" - until: GitTimestamp - ): CommitHistoryConnection! - 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 - """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! - """Channel value for subscribing to live updates.""" - updatesChannel: String - """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! + """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 `changedFielsIfAvailable` 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Filters the check suites by this type.""" + filterBy: CheckSuiteFilter + ): 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( + """Environments to list deployments for""" + environments: [String!] + """Ordering options for deployments returned from the connection.""" + orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): DeploymentConnection + """The diff of changes introduced by this commit.""" + diff: Diff + """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 + """Returns the elements in the list that come before the 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 + """If non-null, filters history to only show commits with matching authorship.""" + author: CommitAuthor + """Allows specifying a beginning time or date for fetching commits.""" + since: GitTimestamp + """Allows specifying an ending time or date for fetching commits.""" + until: GitTimestamp + ): CommitHistoryConnection! + 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! + """Channel value for subscribing to live updates.""" + updatesChannel: String + """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 { - """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 - """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 + """Email addresses to filter by. Commits authored by any of the specified email addresses will be returned.""" + emails: [String!] +} + +"""Parameters to be used for the commit_author_email_pattern rule""" +type CommitAuthorEmailPatternParameters { + """How this rule will appear to users.""" + 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 { + """How this rule will appear to users.""" + 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 Node & OrgBlockable & Comment & Deletable & Minimizable & Updatable & UpdatableComment & Reactable & RepositoryNode { - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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 - 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` and `spam`. 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """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 block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """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 unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: 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 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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + 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` and `spam`. 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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 block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """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 unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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! + """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 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 { - """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 - 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 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 + 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! + """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 { - """The field by which to order commit contributions.""" - field: CommitContributionOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field by which to order commit contributions.""" + field: CommitContributionOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which commit contribution connections can be ordered.""" enum CommitContributionOrderField { - """Order commit contributions by when they were made.""" - OCCURRED_AT - """Order commit contributions by how many commits they represent.""" - COMMIT_COUNT + """Order commit contributions by when they were made.""" + OCCURRED_AT + """Order commit contributions by how many commits they represent.""" + COMMIT_COUNT } """This aggregates commits made by a user within one repository.""" type CommitContributionsByRepository { - """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! + """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 + """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 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 { - """The headline of the message.""" - headline: String! - """The body of the message.""" - body: String + """The headline of the message.""" + headline: String! + """The body of the message.""" + body: String +} + +"""Parameters to be used for the commit_message_pattern rule""" +type CommitMessagePatternParameters { + """How this rule will appear to users.""" + 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 { + """How this rule will appear to users.""" + 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! } """ @@ -2911,768 +3100,842 @@ The Ref may be specified by its global node ID or by the Specify a branch using a global node ID: - { "id": "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" } +{ "id": "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" } Specify a branch using `repositoryNameWithOwner` and `branchName`: - { - "repositoryNameWithOwner": "github/graphql-client", - "branchName": "main" - } +{ +"repositoryNameWithOwner": "github/graphql-client", +"branchName": "main" +} """ input CommittableBranch { - """The Node ID of the Ref to be updated.""" - id: ID - """The nameWithOwner of the repository to commit to.""" - repositoryNameWithOwner: String - """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 + """The unqualified name of the branch to append the commit to.""" + branchName: String +} + +"""Parameters to be used for the committer_email_pattern rule""" +type CommitterEmailPatternParameters { + """How this rule will appear to users.""" + 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 { + """How this rule will appear to users.""" + 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 { - """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! - id: ID! - """The status of this comparison.""" - status: ComparisonStatus! + """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! + 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 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 { - """The head ref is both ahead and behind of the base ref, indicating git history has diverged.""" - DIVERGED - """The head ref is ahead of the base ref.""" - AHEAD - """The head ref is behind the base ref.""" - BEHIND - """The head ref and base ref are identical.""" - IDENTICAL + """The head ref is both ahead and behind of the base ref, indicating git history has diverged.""" + DIVERGED + """The head ref is ahead of the base ref.""" + AHEAD + """The head ref is behind the base ref.""" + BEHIND + """The head ref and base ref are identical.""" + IDENTICAL } """Represents a 'connected' event on a given issue or pull request.""" type ConnectedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - 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! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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! } """Represents a contribution a user made on GitHub, such as opening an issue.""" interface Contribution { - """ - 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! + """ + 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 { - """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!]! + """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 { - """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! + """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 { - """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! + """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 { - """The days of contributions in this week.""" - contributionDays: [ContributionCalendarDay!]! - """The date of the earliest square in this week.""" - firstDay: Date! + """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 { - """No contributions occurred.""" - NONE - """Lowest 25% of days of contributions.""" - FIRST_QUARTILE - """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 - """Highest 25% of days of contributions. More contributions than the third quartile.""" - FOURTH_QUARTILE + """No contributions occurred.""" + NONE + """Lowest 25% of days of contributions.""" + FIRST_QUARTILE + """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 + """Highest 25% of days of contributions. More contributions than the third quartile.""" + FOURTH_QUARTILE } """Ordering options for contribution connections.""" input ContributionOrder { - """The ordering direction.""" - direction: OrderDirection! + """The ordering direction.""" + direction: OrderDirection! } """A contributions collection aggregates contributions such as opened issues and commits created by a user.""" type ContributionsCollection { - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """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 - """Ordering options for contributions returned from the connection.""" - orderBy: ContributionOrder = {direction: DESC} - ): CreatedIssueContributionConnection! - """Issue contributions made by the user, grouped by repository.""" - issueContributionsByRepository( - """How many repositories should be included.""" - maxRepositories: Int = 25 - """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 - ): [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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """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 - """Ordering options for contributions returned from the connection.""" - orderBy: ContributionOrder = {direction: DESC} - ): CreatedPullRequestContributionConnection! - """Pull request contributions made by the user, grouped by repository.""" - pullRequestContributionsByRepository( - """How many repositories should be included.""" - maxRepositories: Int = 25 - """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 - ): [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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Should the user's first repository ever be excluded from the result.""" - excludeFirst: Boolean = false - """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! + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """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 + """Ordering options for contributions returned from the connection.""" + orderBy: ContributionOrder = {direction: DESC} + ): CreatedIssueContributionConnection! + """Issue contributions made by the user, grouped by repository.""" + issueContributionsByRepository( + """How many repositories should be included.""" + maxRepositories: Int = 25 + """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 + ): [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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """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 + """Ordering options for contributions returned from the connection.""" + orderBy: ContributionOrder = {direction: DESC} + ): CreatedPullRequestContributionConnection! + """Pull request contributions made by the user, grouped by repository.""" + pullRequestContributionsByRepository( + """How many repositories should be included.""" + maxRepositories: Int = 25 + """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 + ): [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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Should the user's first repository ever be excluded from the result.""" + excludeFirst: Boolean = false + """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! } """Represents a 'converted_note_to_issue' event on a given issue or pull request.""" type ConvertedNoteToIssueEvent implements Node { - """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 - id: ID! + """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 + id: ID! } """Represents a 'converted_to_discussion' event on a given issue.""" type ConvertedToDiscussionEvent implements Node { - """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 - id: ID! + """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 + id: ID! } """Autogenerated input type of ConvertProjectCardNoteToIssue""" input ConvertProjectCardNoteToIssueInput { - """The ProjectCard ID to convert.""" - projectCardId: ID! - """The ID of the repository to create the issue in.""" - repositoryId: ID! - """The title of the newly created issue. Defaults to the card's note text.""" - title: String - """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! + """The ID of the repository to create the issue in.""" + repositoryId: ID! + """The title of the newly created issue. Defaults to the card's note text.""" + title: String + """The body of the newly created issue.""" + body: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ConvertProjectCardNoteToIssue""" type ConvertProjectCardNoteToIssuePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated ProjectCard.""" - projectCard: ProjectCard + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated ProjectCard.""" + projectCard: ProjectCard } """Autogenerated input type of ConvertPullRequestToDraft""" input ConvertPullRequestToDraftInput { - """ID of the pull request to convert to draft""" - pullRequestId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the pull request to convert to draft""" + pullRequestId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - 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! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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! +} + +"""Autogenerated input type of CopyProjectV2""" +input CopyProjectV2Input { + """The ID of the source Project to copy.""" + projectId: ID! + """The owner ID of the new project.""" + ownerId: ID! + """The title of the project.""" + title: String! + """Include draft issues in the new project""" + includeDraftIssues: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 { + """The Node ID of the owner scoping the reattributable data.""" + ownerId: ID! + """The Node ID of the account owning the data to reattribute.""" + sourceId: ID! + """The Node ID of the account which may claim the data.""" + targetId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The global relay id of the repository in which a new branch protection rule should be created in.""" - repositoryId: ID! - """The glob-like pattern used to determine matching branches.""" - pattern: String! - """Are approving reviews required to update matching branches.""" - requiresApprovingReviews: Boolean - """Number of approving reviews required to update matching branches.""" - requiredApprovingReviewCount: Int - """Are commits required to be signed.""" - requiresCommitSignatures: Boolean - """Are merge commits prohibited from being pushed to this branch.""" - requiresLinearHistory: Boolean - """Is branch creation a protected operation.""" - blocksCreations: Boolean - """Are force pushes allowed on this branch.""" - allowsForcePushes: Boolean - """Can this branch be deleted.""" - allowsDeletions: Boolean - """Can admins overwrite branch protection.""" - isAdminEnforced: Boolean - """Are status checks required to update matching branches.""" - requiresStatusChecks: Boolean - """Are branches required to be up to date before merging.""" - requiresStrictStatusChecks: Boolean - """Are reviews from code owners required to update matching branches.""" - requiresCodeOwnerReviews: Boolean - """Will new commits pushed to matching branches dismiss pull request review approvals.""" - dismissesStaleReviews: 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!] - """A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches.""" - bypassPullRequestActorIds: [ID!] - """A list of User, Team, or App IDs allowed to bypass force push targeting matching branches.""" - bypassForcePushActorIds: [ID!] - """Is pushing to matching branches restricted.""" - restrictsPushes: Boolean - """A list of User, Team, or App IDs allowed to push to matching branches.""" - pushActorIds: [ID!] - """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 conversations required to be resolved before merging.""" - requiresConversationResolution: Boolean - """Whether the most recent push must be approved by someone other than the person who pushed it""" - requireLastPushApproval: 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 - """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 - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The global relay id of the repository in which a new branch protection rule should be created in.""" + repositoryId: ID! + """The glob-like pattern used to determine matching branches.""" + pattern: String! + """Are approving reviews required to update matching branches.""" + requiresApprovingReviews: Boolean + """Number of approving reviews required to update matching branches.""" + requiredApprovingReviewCount: Int + """Are commits required to be signed.""" + requiresCommitSignatures: Boolean + """Are merge commits prohibited from being pushed to this branch.""" + requiresLinearHistory: Boolean + """Is branch creation a protected operation.""" + blocksCreations: Boolean + """Are force pushes allowed on this branch.""" + allowsForcePushes: Boolean + """Can this branch be deleted.""" + allowsDeletions: Boolean + """Can admins overwrite branch protection.""" + isAdminEnforced: Boolean + """Are status checks required to update matching branches.""" + requiresStatusChecks: Boolean + """Are branches required to be up to date before merging.""" + requiresStrictStatusChecks: Boolean + """Are reviews from code owners required to update matching branches.""" + requiresCodeOwnerReviews: Boolean + """Will new commits pushed to matching branches dismiss pull request review approvals.""" + dismissesStaleReviews: 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!] + """A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches.""" + bypassPullRequestActorIds: [ID!] + """A list of User, Team, or App IDs allowed to bypass force push targeting matching branches.""" + bypassForcePushActorIds: [ID!] + """Is pushing to matching branches restricted.""" + restrictsPushes: Boolean + """A list of User, Team, or App IDs allowed to push to matching branches.""" + pushActorIds: [ID!] + """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 successful deployments required before merging.""" + requiresDeployments: Boolean + """The list of required deployment environments""" + requiredDeploymentEnvironments: [String!] + """Are conversations required to be resolved before merging.""" + requiresConversationResolution: Boolean + """Whether the most recent push must be approved by someone other than the person who pushed it""" + requireLastPushApproval: 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 + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateBranchProtectionRule""" type CreateBranchProtectionRulePayload { - """The newly created BranchProtectionRule.""" - branchProtectionRule: BranchProtectionRule - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The newly created BranchProtectionRule.""" + branchProtectionRule: BranchProtectionRule + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of CreateCheckRun""" input CreateCheckRunInput { - """The node ID of the repository.""" - repositoryId: ID! - """The name of the check.""" - name: String! - """The SHA of the head commit.""" - headSha: GitObjectID! - """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 current status.""" - status: RequestableCheckStatusState - """The time that the check run began.""" - startedAt: DateTime - """The final conclusion of the check.""" - conclusion: CheckConclusionState - """The time that the check run finished.""" - completedAt: DateTime - """Descriptive details about the run.""" - output: CheckRunOutput - """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 node ID of the repository.""" + repositoryId: ID! + """The name of the check.""" + name: String! + """The SHA of the head commit.""" + headSha: GitObjectID! + """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 current status.""" + status: RequestableCheckStatusState + """The time that the check run began.""" + startedAt: DateTime + """The final conclusion of the check.""" + conclusion: CheckConclusionState + """The time that the check run finished.""" + completedAt: DateTime + """Descriptive details about the run.""" + output: CheckRunOutput + """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 } """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 + """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 { - """The Node ID of the repository.""" - repositoryId: ID! - """The SHA of the head commit.""" - headSha: GitObjectID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the repository.""" + repositoryId: ID! + """The SHA of the head commit.""" + headSha: GitObjectID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 description of changes to files in this commit.""" - fileChanges: FileChanges - """The commit message the be included with the commit.""" - message: CommitMessage! - """The git commit oid expected at the head of the branch prior to the commit""" - expectedHeadOid: GitObjectID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Ref to be updated. Must be a branch.""" + branch: CommittableBranch! + """A description of changes to files in this commit.""" + fileChanges: FileChanges + """The commit message the be included with the commit.""" + message: CommitMessage! + """The git commit oid expected at the head of the branch prior to the commit""" + expectedHeadOid: GitObjectID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 CreateCompletedWorkflowLogsAccess""" input CreateCompletedWorkflowLogsAccessInput { - """The ID of the completed check run""" - checkRunId: ID! - """The number of the step to fetch logs for; this is optional""" - stepNumber: Int - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the completed check run""" + checkRunId: ID! + """The number of the step to fetch logs for; this is optional""" + stepNumber: Int + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateCompletedWorkflowLogsAccess""" type CreateCompletedWorkflowLogsAccessPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The URL to download the logs""" - downloadUrl: URI - """The time that the access expires at""" - expiresAt: DateTime + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The URL to download the logs""" + downloadUrl: URI + """The time that the access expires at""" + expiresAt: DateTime } """Autogenerated input type of CreateDashboardSearchShortcut""" input CreateDashboardSearchShortcutInput { - """The name of the shortcut.""" - name: String! - """The search query for the shortcut.""" - query: String = "" - """The description for the shortcut.""" - description: String = "" - """The search type for the shortcut.""" - searchType: SearchShortcutType! - """The icon for the shortcut.""" - icon: SearchShortcutIcon! - """The color for the shortcut.""" - color: SearchShortcutColor! - """The repository acting as a scope for filtering shortcut query terms.""" - scopingRepository: RepositoryNameWithOwner - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The name of the shortcut.""" + name: String! + """The search query for the shortcut.""" + query: String = "" + """The description for the shortcut.""" + description: String = "" + """The search type for the shortcut.""" + searchType: SearchShortcutType! + """The icon for the shortcut.""" + icon: SearchShortcutIcon! + """The color for the shortcut.""" + color: SearchShortcutColor! + """The repository acting as a scope for filtering shortcut query terms.""" + scopingRepository: RepositoryNameWithOwner + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateDashboardSearchShortcut""" type CreateDashboardSearchShortcutPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The dashboard owning the shortcut""" - dashboard: UserDashboard - """The created search shortcut.""" - shortcut: SearchShortcut - """The edge from the dashboard to the created search shortcut.""" - shortcutEdge: SearchShortcutEdge + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The dashboard owning the shortcut""" + dashboard: UserDashboard + """The created search shortcut.""" + shortcut: SearchShortcut + """The edge from the dashboard to the created search shortcut.""" + shortcutEdge: SearchShortcutEdge } """Represents the contribution a user made by committing to a repository.""" type CreatedCommitContribution implements Contribution { - """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! + """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: CreatedCommitContribution } """A feed item representing the act of a discussion being created""" type CreatedDiscussionFeedItem implements FeedItemDisplayable { - """The user who created the discussion""" - actor: User! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """The discussion that was created""" - discussion: Discussion! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The URL of the preview image for this item""" - previewImageUrl: URI - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """The user who created the discussion""" + actor: User! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """The discussion that was created""" + discussion: Discussion! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The URL of the preview image for this item""" + previewImageUrl: URI + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """Autogenerated input type of CreateDiscussion""" input CreateDiscussionInput { - """The id of the repository on which to create the discussion.""" - repositoryId: ID! - """The title of the discussion.""" - title: String! - """The body of the discussion.""" - body: String! - """The id of the discussion category to associate with this discussion.""" - categoryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the repository on which to create the discussion.""" + repositoryId: ID! + """The title of the discussion.""" + title: String! + """The body of the discussion.""" + body: String! + """The id of the discussion category to associate with this discussion.""" + categoryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The discussion that was just created.""" + discussion: Discussion } """Represents the contribution a user made on GitHub by opening an issue.""" type CreatedIssueContribution implements Contribution { - """ - 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! + """ + 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! + """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 + """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.""" @@ -3680,42 +3943,42 @@ union CreatedIssueOrRestrictedContribution = CreatedIssueContribution | Restrict """Represents the contribution a user made on GitHub by opening a pull request.""" type CreatedPullRequestContribution implements Contribution { - """ - 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! + """ + 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! + """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 + """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.""" @@ -3723,110 +3986,110 @@ union CreatedPullRequestOrRestrictedContribution = CreatedPullRequestContributio """Represents the contribution a user made by leaving a review on a pull request.""" type CreatedPullRequestReviewContribution implements Contribution { - """ - 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! + """ + 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! + """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 + """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 { - """ - 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! + """ + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: CreatedRepositoryContribution } """A feed item representing the act of a repository being created""" type CreatedRepositoryFeedItem implements FeedItemDisplayable { - """The user who created the repository""" - actor: User! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The repository that was created""" - repository: Repository! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """The user who created the repository""" + actor: User! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The repository that was created""" + repository: Repository! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """Represents either a repository the viewer can access or a restricted contribution.""" @@ -3834,621 +4097,733 @@ union CreatedRepositoryOrRestrictedContribution = CreatedRepositoryContribution """Autogenerated input type of CreateEnterpriseOrganization""" input CreateEnterpriseOrganizationInput { - """The ID of the enterprise owning the new organization.""" - enterpriseId: ID! - """The login of the new organization.""" - login: String! - """The profile name of the new organization.""" - profileName: String! - """The email used for sending billing receipts.""" - billingEmail: String! - """The logins for the administrators of the new organization.""" - adminLogins: [String!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the enterprise owning the new organization.""" + enterpriseId: ID! + """The login of the new organization.""" + login: String! + """The profile name of the new organization.""" + profileName: String! + """The email used for sending billing receipts.""" + billingEmail: String! + """The logins for the administrators of the new organization.""" + adminLogins: [String!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The node ID of the repository.""" - repositoryId: ID! - """The name of the environment.""" - name: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The node ID of the repository.""" + repositoryId: ID! + """The name of the environment.""" + name: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the owner for which to create the new IP allow list entry.""" - ownerId: ID! - """An IP address or range of addresses in CIDR notation.""" - allowListValue: String! - """An optional name for the IP allow list entry.""" - name: String - """Whether the IP allow list entry is active when an IP allow list is enabled.""" - isActive: Boolean! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the owner for which to create the new IP allow list entry.""" + ownerId: ID! + """An IP address or range of addresses in CIDR notation.""" + allowListValue: String! + """An optional name for the IP allow list entry.""" + name: String + """Whether the IP allow list entry is active when an IP allow list is enabled.""" + isActive: Boolean! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 CreateIssue""" input CreateIssueInput { - """The Node ID of the repository.""" - repositoryId: ID! - """The title for the issue.""" - title: String! - """The body for the issue description.""" - body: String - """The Node ID for the user assignee for this issue.""" - assigneeIds: [ID!] - """The Node ID of the milestone for this issue.""" - milestoneId: ID - """An array of Node IDs of labels for this issue.""" - labelIds: [ID!] - """An array of Node IDs for projects associated with this issue.""" - projectIds: [ID!] - """The name of an issue template in the repository, assigns labels and assignees from the template to the issue""" - issueTemplate: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the repository.""" + repositoryId: ID! + """The title for the issue.""" + title: String! + """The body for the issue description.""" + body: String + """The Node ID for the user assignee for this issue.""" + assigneeIds: [ID!] + """The Node ID of the milestone for this issue.""" + milestoneId: ID + """An array of Node IDs of labels for this issue.""" + labelIds: [ID!] + """An array of Node IDs for projects associated with this issue.""" + projectIds: [ID!] + """The name of an issue template in the repository, assigns labels and assignees from the template to the issue""" + issueTemplate: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateIssue""" type CreateIssuePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new issue.""" - issue: Issue + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new issue.""" + issue: Issue } """Autogenerated input type of CreateLinkedBranch""" input CreateLinkedBranchInput { - """ID of the issue to link to.""" - issueId: ID! - """The commit SHA to base the new branch on.""" - oid: GitObjectID! - """The name of the new branch. Defaults to issue number and title.""" - name: String - """ID of the repository to create the branch in. Defaults to the issue repository.""" - repositoryId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the issue to link to.""" + issueId: ID! + """The commit SHA to base the new branch on.""" + oid: GitObjectID! + """The name of the new branch. Defaults to issue number and title.""" + name: String + """ID of the repository to create the branch in. Defaults to the issue repository.""" + repositoryId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateLinkedBranch""" type CreateLinkedBranchPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new branch issue reference.""" - linkedBranch: LinkedBranch + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new branch issue reference.""" + linkedBranch: LinkedBranch } """Autogenerated input type of CreateMigrationSource""" input CreateMigrationSourceInput { - """The Octoshift migration source name.""" - name: String! - """The Octoshift migration source URL.""" - url: String! - """The Octoshift migration source access token.""" - accessToken: String - """The Octoshift migration source type.""" - type: MigrationSourceType! - """The ID of the organization that will own the Octoshift migration source.""" - ownerId: ID! - """The GitHub personal access token of the user importing to the target repository.""" - githubPat: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The migration source name.""" + name: String! + """The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`.""" + url: String + """The migration source access token.""" + accessToken: String + """The migration source type.""" + type: MigrationSourceType! + """The ID of the organization that will own the migration source.""" + ownerId: ID! + """The GitHub personal access token of the user importing to the target repository.""" + githubPat: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateMigrationSource""" type CreateMigrationSourcePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The created Octoshift migration source.""" - migrationSource: MigrationSource + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The created migration source.""" + migrationSource: MigrationSource } """Autogenerated input type of CreateMobilePushNotificationSchedules""" input CreateMobilePushNotificationSchedulesInput { - """The days of the week for the schedule.""" - days: [DayOfWeek!]! - """The schedule start time (0:00..23:59)""" - startTime: MobilePushScheduleTime! - """The end start time (0:00..23:59)""" - endTime: MobilePushScheduleTime! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The days of the week for the schedule.""" + days: [DayOfWeek!]! + """The schedule start time (0:00..23:59)""" + startTime: MobilePushScheduleTime! + """The end start time (0:00..23:59)""" + endTime: MobilePushScheduleTime! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateMobilePushNotificationSchedules""" type CreateMobilePushNotificationSchedulesPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new mobile push notification schedules.""" - mobilePushNotificationSchedules: [MobilePushNotificationSchedule!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new mobile push notification schedules.""" + mobilePushNotificationSchedules: [MobilePushNotificationSchedule!] } """Autogenerated input type of CreateMobileSubscription""" input CreateMobileSubscriptionInput { - """The base64 encoded receipt for the apple in-app purchase""" - appleReceipt: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The base64 encoded receipt for the apple in-app purchase""" + appleReceipt: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateMobileSubscription""" type CreateMobileSubscriptionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Whether or not the subscription was successful""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Whether or not the subscription was successful""" + success: Boolean } """Autogenerated input type of CreateProject""" input CreateProjectInput { - """The owner ID to create the project under.""" - ownerId: ID! - """The name of project.""" - name: String! - """The description of project.""" - body: String - """The name of the GitHub-provided template.""" - template: ProjectTemplate - """A list of repository IDs to create as linked repositories for the project""" - repositoryIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The owner ID to create the project under.""" + ownerId: ID! + """The name of project.""" + name: String! + """The description of project.""" + body: String + """The name of the GitHub-provided template.""" + template: ProjectTemplate + """A list of repository IDs to create as linked repositories for the project""" + repositoryIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateProject""" type CreateProjectPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new project.""" - project: Project + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new project.""" + project: Project +} + +"""Autogenerated input type of CreateProjectV2Field""" +input CreateProjectV2FieldInput { + """The ID of the Project to create the field in.""" + projectId: ID! + """The data type of the field.""" + dataType: ProjectV2CustomFieldType! + """The name of the field.""" + name: String! + """Options for a single select field. At least one value is required if data_type is SINGLE_SELECT""" + singleSelectOptions: [ProjectV2SingleSelectFieldOptionInput!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The owner ID to create the project under.""" - ownerId: ID! - """The title of the project.""" - title: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The owner ID to create the project under.""" + ownerId: ID! + """The title of the project.""" + title: String! + """The repository to link the project to.""" + repositoryId: ID + """The team to link the project to. The team will be granted read permissions.""" + teamId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateProjectV2""" type CreateProjectV2Payload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new project.""" - projectV2: ProjectV2 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new project.""" + projectV2: ProjectV2 } """Autogenerated input type of CreatePullRequest""" input CreatePullRequestInput { - """The Node ID of the repository.""" - repositoryId: ID! - """ - 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 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 title of the pull request.""" - title: String! - """The contents of the pull request.""" - body: String - """Indicates whether maintainers can modify the pull request.""" - maintainerCanModify: Boolean = true - """Indicates whether this pull request should be a draft.""" - draft: Boolean = false - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the repository.""" + repositoryId: ID! + """ + 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 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 + """The title of the pull request.""" + title: String! + """The contents of the pull request.""" + body: String + """Indicates whether maintainers can modify the pull request.""" + maintainerCanModify: Boolean = true + """Indicates whether this pull request should be a draft.""" + draft: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new pull request.""" + pullRequest: PullRequest } """Autogenerated input type of CreateRef""" input CreateRefInput { - """The Node ID of the Repository to create the Ref in.""" - repositoryId: ID! - """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! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the Repository to create the Ref in.""" + repositoryId: ID! + """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! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateRef""" type CreateRefPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The newly created ref.""" - ref: Ref + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The newly created ref.""" + ref: Ref } """Autogenerated input type of CreateRepository""" input CreateRepositoryInput { - """The name of the new repository.""" - name: String! - """The ID of the owner for the new repository.""" - ownerId: ID - """A short description of the new repository.""" - description: String - """Indicates the repository's visibility level.""" - visibility: RepositoryVisibility! - """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 - """The URL for a web page about this repository.""" - homepageUrl: URI - """Indicates if the repository should have the wiki feature enabled.""" - hasWikiEnabled: Boolean = false - """Indicates if the repository should have the issues feature enabled.""" - hasIssuesEnabled: Boolean = true - """When an organization is specified as the owner, this ID identifies the team that should be granted access to the new repository.""" - teamId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The name of the new repository.""" + name: String! + """The ID of the owner for the new repository.""" + ownerId: ID + """A short description of the new repository.""" + description: String + """Indicates the repository's visibility level.""" + visibility: RepositoryVisibility! + """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 + """The URL for a web page about this repository.""" + homepageUrl: URI + """Indicates if the repository should have the wiki feature enabled.""" + hasWikiEnabled: Boolean = false + """Indicates if the repository should have the issues feature enabled.""" + hasIssuesEnabled: Boolean = true + """When an organization is specified as the owner, this ID identifies the team that should be granted access to the new repository.""" + teamId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateRepository""" type CreateRepositoryPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new repository.""" - repository: Repository + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new repository.""" + repository: Repository +} + +"""Autogenerated input type of CreateRepositoryRuleset""" +input CreateRepositoryRulesetInput { + """The global relay id of the source in which a new ruleset should be created in.""" + sourceId: ID! + """The name of the ruleset.""" + name: String! + """The target of the ruleset.""" + target: RepositoryRulesetTarget + """The list of rules for this ruleset""" + rules: [RepositoryRuleInput!] + """The set of conditions for this ruleset""" + conditions: RepositoryRuleConditionsInput! + """The enforcement level for this ruleset""" + enforcement: RuleEnforcement! + """The bypass mode for this ruleset""" + bypassMode: RuleBypassMode + """A list of Team or App IDs allowed to bypass rules in this ruleset.""" + bypassActorIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 CreateSavedNotificationThread""" input CreateSavedNotificationThreadInput { - """The notification thread's id.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The notification thread's id.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateSavedNotificationThread""" type CreateSavedNotificationThreadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user that the saved notification belongs to.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user that the saved notification belongs to.""" + viewer: User } """Autogenerated input type of CreateSponsorship""" input CreateSponsorshipInput { - """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 - """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 - """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 - """The amount to pay to the sponsorable in US dollars. Required if a tierId is not specified. Valid values: 1-12000.""" - amount: Int - """Whether the sponsorship should happen monthly/yearly or just this one time. Required if a tierId is not specified.""" - isRecurring: Boolean - """Whether the sponsor should receive email updates from the sponsorable.""" - receiveEmails: Boolean = true - """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 - """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 + """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 + """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 + """The amount to pay to the sponsorable in US dollars. Required if a tierId is not specified. Valid values: 1-12000.""" + amount: Int + """Whether the sponsorship should happen monthly/yearly or just this one time. Required if a tierId is not specified.""" + isRecurring: Boolean + """Whether the sponsor should receive email updates from the sponsorable.""" + receiveEmails: Boolean = true + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { + """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!]! + """Whether the sponsor should receive email updates from the sponsorables.""" + receiveEmails: Boolean = false + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 CreateSponsorsListing""" +input CreateSponsorsListingInput { + """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 + """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 + """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 + """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 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 + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 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 - """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 - """The value of the new tier in US dollars. Valid values: 1-12000.""" - amount: Int! - """Whether sponsorships using this tier should happen monthly/yearly or just once.""" - isRecurring: Boolean = true - """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 - """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 - """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 message new sponsors at this tier will receive.""" - welcomeMessage: 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 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 - """A unique identifier for the client performing the mutation.""" - clientMutationId: 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 + """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 + """The value of the new tier in US dollars. Valid values: 1-12000.""" + amount: Int! + """Whether sponsorships using this tier should happen monthly/yearly or just once.""" + isRecurring: Boolean = true + """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 + """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 + """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 message new sponsors at this tier will receive.""" + welcomeMessage: 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 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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateSponsorsTier""" type CreateSponsorsTierPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new tier.""" - sponsorsTier: SponsorsTier + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new tier.""" + sponsorsTier: SponsorsTier } """Autogenerated input type of CreateTeamDashboardSearchShortcut""" input CreateTeamDashboardSearchShortcutInput { - """The ID of the team.""" - teamId: ID! - """The name of the shortcut.""" - name: String! - """The search query for the shortcut.""" - query: String = "" - """The description for the shortcut.""" - description: String = "" - """The search type for the shortcut.""" - searchType: SearchShortcutType! - """The icon for the shortcut.""" - icon: SearchShortcutIcon! - """The color for the shortcut.""" - color: SearchShortcutColor! - """The repository acting as a scope for filtering shortcut query terms.""" - scopingRepository: RepositoryNameWithOwner - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the team.""" + teamId: ID! + """The name of the shortcut.""" + name: String! + """The search query for the shortcut.""" + query: String = "" + """The description for the shortcut.""" + description: String = "" + """The search type for the shortcut.""" + searchType: SearchShortcutType! + """The icon for the shortcut.""" + icon: SearchShortcutIcon! + """The color for the shortcut.""" + color: SearchShortcutColor! + """The repository acting as a scope for filtering shortcut query terms.""" + scopingRepository: RepositoryNameWithOwner + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateTeamDashboardSearchShortcut""" type CreateTeamDashboardSearchShortcutPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The team dashboard owning the shortcut""" - dashboard: TeamDashboard - """The created search shortcut.""" - shortcut: TeamSearchShortcut - """The edge from the team dashboard to the created search shortcut.""" - shortcutEdge: TeamSearchShortcutEdge + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The team dashboard owning the shortcut""" + dashboard: TeamDashboard + """The created search shortcut.""" + shortcut: TeamSearchShortcut + """The edge from the team dashboard to the created search shortcut.""" + shortcutEdge: TeamSearchShortcutEdge } """Autogenerated input type of CreateTeamDiscussionComment""" input CreateTeamDiscussionCommentInput { - """The ID of the discussion to which the comment belongs.""" - discussionId: ID! - """The content of the comment.""" - body: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the discussion to which the comment belongs.""" + discussionId: ID! + """The content of the comment.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateTeamDiscussionComment""" type CreateTeamDiscussionCommentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new comment.""" - teamDiscussionComment: TeamDiscussionComment + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new comment.""" + teamDiscussionComment: TeamDiscussionComment } """Autogenerated input type of CreateTeamDiscussion""" input CreateTeamDiscussionInput { - """The ID of the team to which the discussion belongs.""" - teamId: ID! - """The title of the discussion.""" - title: String! - """The content of the discussion.""" - body: String! - """If true, restricts the visibility of this discussion to team members and organization admins. If false or not specified, allows any organization member to view this discussion.""" - private: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the team to which the discussion belongs.""" + teamId: ID! + """The title of the discussion.""" + title: String! + """The content of the discussion.""" + body: String! + """If true, restricts the visibility of this discussion to team members and organization admins. If false or not specified, allows any organization member to view this discussion.""" + private: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateTeamDiscussion""" type CreateTeamDiscussionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new discussion.""" - teamDiscussion: TeamDiscussion + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new discussion.""" + teamDiscussion: TeamDiscussion } """Autogenerated input type of CreateUserDashboardPin""" input CreateUserDashboardPinInput { - """ID of the owner of the dashboard to modify.""" - userId: ID - """ID of the item you want to pin in the last position on a user's dashboard.""" - itemId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the owner of the dashboard to modify.""" + userId: ID + """ID of the item you want to pin in the last position on a user's dashboard.""" + itemId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateUserDashboardPin""" type CreateUserDashboardPinPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The owner of the dashboard that was updated.""" - user: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The owner of the dashboard that was updated.""" + user: User } """Autogenerated input type of CreateUserDisinterest""" input CreateUserDisinterestInput { - """Identifier of the disinterested event""" - identifier: String! - """Reason why the user is not interested in event""" - reasons: [FeedDisinterestReason!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Identifier of the disinterested event""" + identifier: String! + """Reason why the user is not interested in event""" + reasons: [FeedDisinterestReason!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of CreateUserDisinterest""" type CreateUserDisinterestPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of CreateUserList""" input CreateUserListInput { - """The name of the new list""" - name: String! - """A description of the list""" - description: String - """Whether or not the list is private""" - isPrivate: Boolean = false - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The name of the new list""" + name: String! + """A description of the list""" + description: String + """Whether or not the list is private""" + isPrivate: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 a mention made by one issue or pull request to another.""" type CrossReferencedEvent implements UniformResourceLocatable & Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - 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! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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! } """The possible custom types to subscribe to""" enum CustomSubscriptionType { - """Subscribe to a repository's discussions.""" - DISCUSSION - """Subscribe to a repository's issues.""" - ISSUE - """Subscribe to a repository's releases.""" - RELEASE - """Subscribe to a repository's pull requests.""" - PULL_REQUEST - """Subscribe to a repository's security alerts.""" - SECURITY_ALERT + """Subscribe to a repository's discussions.""" + DISCUSSION + """Subscribe to a repository's issues.""" + ISSUE + """Subscribe to a repository's releases.""" + RELEASE + """Subscribe to a repository's pull requests.""" + PULL_REQUEST + """Subscribe to a repository's security alerts.""" + SECURITY_ALERT } """The Common Vulnerability Scoring System""" type CVSS { - """The CVSS score associated with this advisory""" - score: Float! - """The CVSS vector string associated with this advisory""" - vectorString: String + """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 { - """The id of the CWE""" - cweId: String! - """A detailed description of this CWE""" - description: String! - id: ID! - """The name of this CWE""" - name: String! + """The id of the CWE""" + cweId: String! + """A detailed description of this CWE""" + description: String! + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: CWE } """Possible filter options for the dashboard feed""" enum DashboardFeedFilterGroup { - """Announcements filter group""" - ANNOUNCEMENTS - """Releases filter group""" - RELEASES - """Sponsors filter group""" - SPONSORS - """Stars filter group""" - STARS - """Repositories filter group""" - REPOSITORIES - """Follows filter group""" - FOLLOWS - """Recommendations filter group""" - RECOMMENDATIONS - """Posts filter group""" - POSTS + """Announcements filter group""" + ANNOUNCEMENTS + """Releases filter group""" + RELEASES + """Sponsors filter group""" + SPONSORS + """Stars filter group""" + STARS + """Repositories filter group""" + REPOSITORIES + """RepositoryActivity filter group""" + REPOSITORYACTIVITY + """Follows filter group""" + FOLLOWS + """Recommendations filter group""" + RECOMMENDATIONS + """Posts filter group""" + POSTS + """ExplicitOnly filter group""" + EXPLICITONLY } """Types that can be pinned to a user's dashboard.""" @@ -4456,22 +4831,22 @@ union DashboardPinnableItem = Gist | Issue | Organization | Project | PullReques """The connection type for DashboardPinnableItem.""" type DashboardPinnableItemConnection { - """A list of edges.""" - edges: [DashboardPinnableItemEdge] - """A list of nodes.""" - nodes: [DashboardPinnableItem] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [DashboardPinnableItemEdge] + """A list of nodes.""" + nodes: [DashboardPinnableItem] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type DashboardPinnableItemEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: DashboardPinnableItem + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: DashboardPinnableItem } """An ISO-8601 encoded date string.""" @@ -4482,826 +4857,878 @@ scalar DateTime """Days of the week.""" enum DayOfWeek { - """Monday""" - MONDAY - """Tuesday""" - TUESDAY - """Wednesday""" - WEDNESDAY - """Thursday""" - THURSDAY - """Friday""" - FRIDAY - """Saturday""" - SATURDAY - """Sunday""" - SUNDAY + """Monday""" + MONDAY + """Tuesday""" + TUESDAY + """Wednesday""" + WEDNESDAY + """Thursday""" + THURSDAY + """Friday""" + FRIDAY + """Saturday""" + SATURDAY + """Sunday""" + SUNDAY } """Autogenerated input type of DeclineTopicSuggestion""" input DeclineTopicSuggestionInput { - """The Node ID of the repository.""" - repositoryId: ID! - """The name of the suggested topic.""" - name: String! - """The reason why the suggested topic is declined.""" - reason: TopicSuggestionDeclineReason! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the repository.""" + repositoryId: ID! + """The name of the suggested topic.""" + name: String! + """The reason why the suggested topic is declined.""" + reason: TopicSuggestionDeclineReason! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeclineTopicSuggestion""" type DeclineTopicSuggestionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The declined topic.""" - topic: Topic + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The declined topic.""" + topic: Topic } """The possible base permissions for repositories.""" enum DefaultRepositoryPermissionField { - """No access""" - NONE - """Can read repos by default""" - READ - """Can read and write repos by default""" - WRITE - """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 + """Can read, write, and administrate repos by default""" + ADMIN } """Entities that can be deleted.""" interface Deletable { - """Check if the current viewer can delete this object.""" - viewerCanDelete: Boolean! + """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! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The global relay id of the branch protection rule to be deleted.""" + branchProtectionRuleId: ID! + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteDeployment""" input DeleteDeploymentInput { - """The Node ID of the deployment to be deleted.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the deployment to be deleted.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteDeployment""" type DeleteDeploymentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteDiscussionComment""" input DeleteDiscussionCommentInput { - """The Node id of the discussion comment to delete.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node id of the discussion comment to delete.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The id of the discussion to delete.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the discussion to delete.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Node ID of the environment to be deleted.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the environment to be deleted.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteEnvironment""" type DeleteEnvironmentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteIpAllowListEntry""" input DeleteIpAllowListEntryInput { - """The ID of the IP allow list entry to delete.""" - ipAllowListEntryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the IP allow list entry to delete.""" + ipAllowListEntryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the comment to delete.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the comment to delete.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteIssueComment""" type DeleteIssueCommentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteIssue""" input DeleteIssueInput { - """The ID of the issue to delete.""" - issueId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the issue to delete.""" + issueId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The repository the issue belonged to""" + repository: Repository } """Autogenerated input type of DeleteLinkedBranch""" input DeleteLinkedBranchInput { - """The ID of the linked branch""" - linkedBranchId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the linked branch""" + linkedBranchId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 DeleteMobileDevicePublicKey""" input DeleteMobileDevicePublicKeyInput { - """The type of mobile device key to delete""" - type: MobileDeviceKeyType! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The type of mobile device key to delete""" + type: MobileDeviceKeyType! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteMobileDevicePublicKey""" type DeleteMobileDevicePublicKeyPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteMobileDeviceToken""" input DeleteMobileDeviceTokenInput { - """The push notification service that issued the device token.""" - service: PushNotificationService! - """The device token to delete.""" - deviceToken: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The push notification service that issued the device token.""" + service: PushNotificationService! + """The device token to delete.""" + deviceToken: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteMobileDeviceToken""" type DeleteMobileDeviceTokenPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of DeleteMobilePushNotificationSchedule""" input DeleteMobilePushNotificationScheduleInput { - """The Node ID of the mobile push notification schedule to be deleted.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the mobile push notification schedule to be deleted.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteMobilePushNotificationSchedule""" type DeleteMobilePushNotificationSchedulePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of DeleteProjectCard""" input DeleteProjectCardInput { - """The id of the card to delete.""" - cardId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the card to delete.""" + cardId: ID! + """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 + """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 { - """The id of the column to delete.""" - columnId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the column to delete.""" + columnId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Project ID to update.""" - projectId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Project ID to update.""" + projectId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteProjectNextItem""" input DeleteProjectNextItemInput { - """ - The ID of the Project from which the item should be removed. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - projectId: ID - """ - The ID of the item to be removed. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `itemId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - itemId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project from which the item should be removed. This field is required.""" + projectId: ID + """The ID of the item to be removed. This field is required.""" + itemId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteProjectNextItem""" type DeleteProjectNextItemPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The ID of the deleted item.""" - deletedItemId: ID @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The ID of the deleted item.""" + deletedItemId: ID } """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 + """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 { + """The ID of the field to delete.""" + fieldId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { + """The ID of the Project to delete.""" + projectId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteProjectV2Item""" input DeleteProjectV2ItemInput { - """The ID of the Project from which the item should be removed.""" - projectId: ID! - """The ID of the item to be removed.""" - itemId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project from which the item should be removed.""" + projectId: ID! + """The ID of the item to be removed.""" + itemId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 DeleteProjectV2Workflow""" +input DeleteProjectV2WorkflowInput { + """The ID of the workflow to be removed.""" + workflowId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The ID of the comment to delete.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the comment to delete.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Node ID of the pull request review to delete.""" - pullRequestReviewId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request review to delete.""" + pullRequestReviewId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Node ID of the Ref to be deleted.""" - refId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the Ref to be deleted.""" + refId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteRef""" type DeleteRefPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""Autogenerated input type of DeleteRepositoryRuleset""" +input DeleteRepositoryRulesetInput { + """The global relay id of the repository ruleset to be deleted.""" + repositoryRulesetId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""Autogenerated return type of DeleteRepositoryRuleset""" +type DeleteRepositoryRulesetPayload { + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteSavedNotificationThread""" input DeleteSavedNotificationThreadInput { - """The saved notification thread's id.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The saved notification thread's id.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteSavedNotificationThread""" type DeleteSavedNotificationThreadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user that deleted the saved notification.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user that deleted the saved notification.""" + viewer: User } """Autogenerated input type of DeleteTeamDiscussionComment""" input DeleteTeamDiscussionCommentInput { - """The ID of the comment to delete.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the comment to delete.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteTeamDiscussionComment""" type DeleteTeamDiscussionCommentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteTeamDiscussion""" input DeleteTeamDiscussionInput { - """The discussion ID to delete.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The discussion ID to delete.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteTeamDiscussion""" type DeleteTeamDiscussionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of DeleteUserDashboardPin""" input DeleteUserDashboardPinInput { - """ID of the owner of the dashboard to modify.""" - userId: ID - """ID of the item you want to unpin from a user's dashboard.""" - itemId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the owner of the dashboard to modify.""" + userId: ID + """ID of the item you want to unpin from a user's dashboard.""" + itemId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of DeleteUserDashboardPin""" type DeleteUserDashboardPinPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The owner of the dashboard that was updated.""" - user: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The owner of the dashboard that was updated.""" + user: User } """Autogenerated input type of DeleteUserList""" input DeleteUserListInput { - """The ID of the list to delete.""" - listId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the list to delete.""" + listId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the verifiable domain to delete.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the verifiable domain to delete.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Identifies the milestone title associated with the 'demilestoned' event.""" - milestoneTitle: String! - """Object referenced by event.""" - subject: MilestoneItem! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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 { - """The error from a dependency update""" - error: DependabotUpdateError - """The associated pull request""" - pullRequest: PullRequest - """The repository associated with this node.""" - repository: Repository! + """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 { - """The body of the error""" - body: String! - """The error code""" - errorType: String! - """The title of the error""" - title: String! + """The body of the error""" + body: String! + """The error code""" + errorType: String! + """The title of the error""" + title: String! } """The possible ecosystems of a dependency graph package.""" enum DependencyGraphEcosystem { - """Ruby gems hosted at RubyGems.org""" - RUBYGEMS - """JavaScript packages hosted at npmjs.com""" - NPM - """Python packages hosted at PyPI.org""" - PIP - """Java artifacts hosted at the Maven central repository""" - MAVEN - """.NET packages hosted at the NuGet Gallery""" - NUGET - """PHP packages hosted at packagist.org""" - COMPOSER - """Go modules""" - GO - """GitHub Actions""" - ACTIONS - """Rust crates""" - RUST - """Dart packages hosted at pub.dev""" - PUB + """Ruby gems hosted at RubyGems.org""" + RUBYGEMS + """JavaScript packages hosted at npmjs.com""" + NPM + """Python packages hosted at PyPI.org""" + PIP + """Java artifacts hosted at the Maven central repository""" + MAVEN + """.NET packages hosted at the NuGet Gallery""" + NUGET + """PHP packages hosted at packagist.org""" + COMPOSER + """Go modules""" + GO + """GitHub Actions""" + ACTIONS + """Rust crates""" + RUST + """Dart packages hosted at pub.dev""" + PUB } """Represents a 'deployed' event on a given pull request.""" type DeployedEvent implements Node { - """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! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! - """The ref associated with the 'deployed' event.""" - ref: Ref + """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! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest! + """The ref associated with the 'deployed' event.""" + ref: Ref } """A repository deploy key.""" type DeployKey implements Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - 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! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: DeployKey } """Represents triggered deployment instance.""" type Deployment implements Node { - """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 - 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! + """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 + 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! + """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 + """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 { - """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! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! + """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! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest! } """Ordering options for deployment connections""" input DeploymentOrder { - """The field to order deployments by.""" - field: DeploymentOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order deployments by.""" + field: DeploymentOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which deployment connections can be ordered.""" enum DeploymentOrderField { - """Order collection by creation time""" - CREATED_AT + """Order collection by creation time""" + CREATED_AT } """A protection rule.""" type DeploymentProtectionRule { - """Identifies the primary key from the database.""" - databaseId: Int - """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! + """Identifies the primary key from the database.""" + databaseId: Int + """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! + """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 + """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 { - """Required reviewers""" - REQUIRED_REVIEWERS - """Wait timer""" - WAIT_TIMER + """Required reviewers""" + REQUIRED_REVIEWERS + """Wait timer""" + WAIT_TIMER } """A request to deploy a workflow run to an environment.""" type DeploymentRequest { - """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 + """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! + """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 cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: DeploymentRequest } """A deployment review.""" type DeploymentReview implements Node { - """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! - id: ID! - """The decision of the user.""" - state: DeploymentReviewState! - """The user that reviewed the deployment.""" - user: User! + """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! + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: DeploymentReview } """Users and teams.""" @@ -5309,1165 +5736,1296 @@ union DeploymentReviewer = 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: DeploymentReviewer } """The possible states for a deployment review.""" enum DeploymentReviewState { - """The deployment was approved.""" - APPROVED - """The deployment was rejected.""" - REJECTED + """The deployment was approved.""" + APPROVED + """The deployment was rejected.""" + REJECTED } """The possible states in which a deployment can be.""" enum DeploymentState { - """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 pending.""" - PENDING - """The deployment has queued""" - QUEUED - """The deployment is in progress.""" - IN_PROGRESS - """The deployment is waiting.""" - WAITING + """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 pending.""" + PENDING + """The deployment was successful.""" + SUCCESS + """The deployment has queued""" + QUEUED + """The deployment is in progress.""" + IN_PROGRESS + """The deployment is waiting.""" + WAITING } """Describes the status of a given deployment attempt.""" type DeploymentStatus implements Node { - """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 URL of the deployment.""" - environmentUrl: URI - 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! + """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 URL of the deployment.""" + environmentUrl: URI + 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! + """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 + """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 { - """The deployment is pending.""" - PENDING - """The deployment was successful.""" - SUCCESS - """The deployment has failed.""" - FAILURE - """The deployment is inactive.""" - INACTIVE - """The deployment experienced an error.""" - ERROR - """The deployment is queued""" - QUEUED - """The deployment is in progress.""" - IN_PROGRESS - """The deployment is waiting.""" - WAITING + """The deployment is pending.""" + PENDING + """The deployment was successful.""" + SUCCESS + """The deployment has failed.""" + FAILURE + """The deployment is inactive.""" + INACTIVE + """The deployment experienced an error.""" + ERROR + """The deployment is queued""" + QUEUED + """The deployment is in progress.""" + IN_PROGRESS + """The deployment is waiting.""" + WAITING +} + +"""Autogenerated input type of DequeuePullRequest""" +input DequeuePullRequestInput { + """The ID of the pull request to be dequeued.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 } """Version of the signature being used for mobile device authentication requests.""" enum DeviceAuthSignatureVersion { - """Indicates a base64 encoded signature of `signatureVersion|payload_bytes|challengeNum`""" - V1 + """Indicates a base64 encoded signature of `signatureVersion|payload_bytes|challengeNum`""" + V1 } """Represents a diff between two commits objects.""" type Diff { - """The set of entries constituting this diff.""" - diffEntries( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PatchConnection! - """The number of files changed in this diff.""" - filesChanged: Int! - """The number of lines added in this diff.""" - linesAdded: Int! - """The total lines added or removed in this diff.""" - linesChanged: Int! - """The number of lines removed in this diff.""" - linesDeleted: Int! - """Returns a patch by the given path.""" - patch( - """The path of the patch to return.""" - path: String! - ): Patch - """The set of patches constituting this diff.""" - patches( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PatchConnection! + """The set of entries constituting this diff.""" + diffEntries( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PatchConnection! + """The number of files changed in this diff.""" + filesChanged: Int! + """The number of lines added in this diff.""" + linesAdded: Int! + """The total lines added or removed in this diff.""" + linesChanged: Int! + """The number of lines removed in this diff.""" + linesDeleted: Int! + """Returns a patch by the given path.""" + patch( + """The path of the patch to return.""" + path: String! + ): Patch + """The set of patches constituting this diff.""" + patches( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PatchConnection! } """Represents a line of a diff between two commits objects.""" type DiffLine { - """The absolute blob line number in the left or right blob this line represents.""" - blobLineNumber: Int! - """HTML formatted contents of this line.""" - html: String! - """Indicates whether this line is missing a newline character at the end.""" - isMissingNewlineAtEnd: Boolean! - """Left side line number.""" - left: Int - """Position of this line in the diff.""" - position: Int! - """Plain text contents of this line without any formatting/prefixing.""" - raw: String! - """Right side line number.""" - right: Int - """Plain text contents of this line.""" - text: String! - """Comment threads that begin on this line.""" - threads( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PullRequestThreadConnection - """Type of this line.""" - type: DiffLineType! + """The absolute blob line number in the left or right blob this line represents.""" + blobLineNumber: Int! + """HTML formatted contents of this line.""" + html: String! + """Indicates whether this line is missing a newline character at the end.""" + isMissingNewlineAtEnd: Boolean! + """Left side line number.""" + left: Int + """Position of this line in the diff.""" + position: Int! + """Plain text contents of this line without any formatting/prefixing.""" + raw: String! + """Right side line number.""" + right: Int + """Plain text contents of this line.""" + text: String! + """Comment threads that begin on this line.""" + threads( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PullRequestThreadConnection + """Type of this line.""" + type: DiffLineType! } """A range of diff lines which defines a patch.""" input DiffLineRange { - """The line number where the range starts.""" - start: Int! - """The line number where the range ends.""" - end: Int! + """The line number where the range starts.""" + start: Int! + """The line number where the range ends.""" + end: Int! } """The possible DiffLine types.""" enum DiffLineType { - """A diff hunk header line.""" - HUNK - """A diff context line.""" - CONTEXT - """A diff addition line.""" - ADDITION - """A diff deletion line.""" - DELETION - """An injected diff context line.""" - INJECTED_CONTEXT + """A diff hunk header line.""" + HUNK + """A diff context line.""" + CONTEXT + """A diff addition line.""" + ADDITION + """A diff deletion line.""" + DELETION + """An injected diff context line.""" + INJECTED_CONTEXT } """The possible sides of a diff.""" enum DiffSide { - """The left side of the diff.""" - LEFT - """The right side of the diff.""" - RIGHT + """The left side of the diff.""" + LEFT + """The right side of the diff.""" + RIGHT } """Autogenerated input type of DisablePullRequestAutoMerge""" input DisablePullRequestAutoMergeInput { - """ID of the pull request to disable auto merge on.""" - pullRequestId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the pull request to disable auto merge on.""" + pullRequestId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - 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! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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 Comment & Updatable & Deletable & Labelable & Lockable & RepositoryNode & Subscribable & OrgBlockable & Reactable & Votable & MentionSuggestable & Node { - """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 comment.""" - 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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): HTML! - """The body rendered to text.""" - bodyText: String! - """The category for this discussion.""" - category: DiscussionCategory! - """Get a comment from a url""" - comment( - """The url to decode.""" - url: String - ): DiscussionComment - """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 - id: ID! - """Check if this comment was edited and includes an edit with the creation data""" - includesCreatedEdit: Boolean! - """A list of labels associated with the object.""" - labels( - """Ordering options for labels returned from the connection.""" - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 moment the editor made the last edit""" - lastEditedAt: DateTime - """`true` if the object is locked""" - locked: Boolean! - """A list of mentionable items that can be mentioned in the context of this object.""" - mentionableItems( - """Filters users, teams with query on mentionable items""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): MentionableItemConnection - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """Allows specifying the order in which reactions are returned.""" - orderBy: ReactionOrder - ): ReactionConnection! - """The linked release for this discussion""" - release: Release - """The repository associated with this node.""" - repository: Repository! - """The path for this discussion.""" - resourcePath: URI! - """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 - """Check if the current viewer can block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """Check if the current viewer can delete this object.""" - viewerCanDelete: Boolean! - """Can user react to this subject""" - viewerCanReact: Boolean! - """Check if the viewer is able to change their subscription status for the repository.""" - viewerCanSubscribe: Boolean! - """Check if the current viewer can unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: 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 +type Discussion implements Closable & Comment & Updatable & Deletable & Labelable & Lockable & RepositoryNode & Subscribable & OrgBlockable & Reactable & Votable & MentionSuggestable & Node { + """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 comment.""" + 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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + """Get a comment from a url""" + comment( + """The url to decode.""" + url: String + ): DiscussionComment + """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 + id: ID! + """Check if this comment was edited and includes an edit with the creation data""" + includesCreatedEdit: Boolean! + """A list of labels associated with the object.""" + labels( + """Ordering options for labels returned from the connection.""" + orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 moment the editor made the last edit""" + lastEditedAt: DateTime + """`true` if the object is locked""" + locked: Boolean! + """A list of mentionable items that can be mentioned in the context of this object.""" + mentionableItems( + """Filters users, teams with query on mentionable items""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): MentionableItemConnection + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """Allows specifying the order in which reactions are returned.""" + orderBy: ReactionOrder + ): ReactionConnection! + """The linked release for this discussion""" + release: Release + """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! + """Channel value for subscribing to live updates.""" + updatesChannel( + """The name of the channel to use.""" + name: DiscussionPubSubTopic = UPDATED + ): String + """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 + """Check if the current viewer can block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: 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 viewer is able to change their subscription status for the repository.""" + viewerCanSubscribe: Boolean! + """Check if the current viewer can unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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 { - """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! - id: ID! - """Whether or not discussions in this category support choosing an answer with the markDiscussionCommentAsAnswer mutation.""" - isAnswerable: Boolean! - """Indicates if this category supports discussion polls.""" - isPollable: Boolean! - """The name of this category.""" - name: String! - """The repository associated with this node.""" - repository: Repository! - """The slug of this category.""" - slug: String! - """Indicates if this category supports announcements.""" - supportsAnnouncements: Boolean! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! + """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! + id: ID! + """Whether or not discussions in this category support choosing an answer with the markDiscussionCommentAsAnswer mutation.""" + isAnswerable: Boolean! + """Indicates if this category supports discussion polls.""" + isPollable: Boolean! + """The name of this category.""" + name: String! + """The repository associated with this node.""" + repository: Repository! + """The slug of this category.""" + slug: String! + """Indicates if this category supports announcements.""" + supportsAnnouncements: Boolean! + """The category's form template.""" + template: DiscussionTemplate + """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! + """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 + """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 { + """The discussion has been resolved""" + RESOLVED + """The discussion is no longer relevant""" + OUTDATED + """The discussion is a duplicate of another""" + DUPLICATE } """A comment on a discussion.""" type DiscussionComment implements Comment & Deletable & Minimizable & Updatable & UpdatableComment & OrgBlockable & Reactable & Votable & Node { - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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 - 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` and `spam`. 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """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 block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """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! - """Check if the current viewer can unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: Boolean! - """Can the current user unmark this comment as an answer?""" - viewerCanUnmarkAsAnswer: 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 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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + 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` and `spam`. 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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 block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """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! + """Check if the current viewer can unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: Boolean! + """Can the current user unmark this comment as an answer?""" + viewerCanUnmarkAsAnswer: 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! + """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 + """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! + """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 + """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 { - """The field by which to order discussions.""" - field: DiscussionOrderField! - """The direction in which to order discussions by the specified field.""" - direction: OrderDirection! + """The field by which to order discussions.""" + field: DiscussionOrderField! + """The direction in which to order discussions by the specified field.""" + direction: OrderDirection! } """Properties by which discussion connections can be ordered.""" enum DiscussionOrderField { - """Order discussions by creation time.""" - CREATED_AT - """Order discussions by most recent modification time.""" - UPDATED_AT + """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 { - """The discussion that this poll belongs to.""" - discussion: Discussion - 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! + """The discussion that this poll belongs to.""" + discussion: Discussion + 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 { - 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! + 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! + """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 + """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 { - """The field to order poll options by.""" - field: DiscussionPollOptionOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order poll options by.""" + field: DiscussionPollOptionOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which discussion poll option connections can be ordered.""" enum DiscussionPollOptionOrderField { - """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 + """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 PubSub channels for an discussion.""" +enum DiscussionPubSubTopic { + """The channel ID for observing discussion updates.""" + UPDATED + """The channel ID for updating items on the discussion timeline.""" + TIMELINE +} + +"""The possible states of a discussion.""" +enum DiscussionState { + """A discussion that is open""" + OPEN + """A discussion that has been closed""" + CLOSED +} + +"""The possible state reasons of a discussion.""" +enum DiscussionStateReason { + """The discussion has been resolved""" + RESOLVED + """The discussion is no longer relevant""" + OUTDATED + """The discussion is a duplicate of another""" + DUPLICATE + """The discussion was reopened""" + REOPENED +} + +"""A discussion category form template.""" +type DiscussionTemplate { + """The URL to access the new discussion form using the template.""" + url: URI! } """Autogenerated input type of DismissPullRequestReview""" input DismissPullRequestReviewInput { - """The Node ID of the pull request review to modify.""" - pullRequestReviewId: ID! - """The contents of the pull request review dismissal message.""" - message: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request review to modify.""" + pullRequestReviewId: ID! + """The contents of the pull request review dismissal message.""" + message: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """A fix has already been started""" - FIX_STARTED - """No bandwidth to fix this""" - NO_BANDWIDTH - """Risk is tolerable to this project""" - TOLERABLE_RISK - """This alert is inaccurate or incorrect""" - INACCURATE - """Vulnerable code is not actually used""" - NOT_USED + """A fix has already been started""" + FIX_STARTED + """No bandwidth to fix this""" + NO_BANDWIDTH + """Risk is tolerable to this project""" + TOLERABLE_RISK + """This alert is inaccurate or incorrect""" + INACCURATE + """Vulnerable code is not actually used""" + NOT_USED } """Autogenerated input type of DismissRepositoryVulnerabilityAlert""" input DismissRepositoryVulnerabilityAlertInput { - """The Dependabot alert ID to dismiss.""" - repositoryVulnerabilityAlertId: ID! - """The reason the Dependabot alert is being dismissed.""" - dismissReason: DismissReason! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Dependabot alert ID to dismiss.""" + repositoryVulnerabilityAlertId: ID! + """The reason the Dependabot alert is being dismissed.""" + dismissReason: DismissReason! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The Dependabot alert that was dismissed""" + repositoryVulnerabilityAlert: RepositoryVulnerabilityAlert } """A draft issue within a project.""" type DraftIssue implements Node { - """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 - id: ID! - """The project (beta) that contains this draft issue.""" - project: ProjectNext! - """The project (beta) item that wraps this draft issue.""" - projectItem: ProjectNextItem! - """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! - """A list of suggested users to assign to this draft issues""" - suggestedAssignees( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 - ): UserConnection! - """The title of the draft issue""" - title: String! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! + """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 + id: ID! + """The project (beta) that contains this draft issue.""" + project: ProjectNext! + """The project (beta) item that wraps this draft issue.""" + projectItem: ProjectNextItem! + """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! + """A list of suggested users to assign to this draft issues""" + suggestedAssignees( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 + ): UserConnection! + """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 { - """Path to the file being commented on.""" - path: String! - """Position in the file to leave a comment on.""" - position: Int! - """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! + """Body of the comment to leave.""" + body: String! } """Specifies a review comment thread to be left with a Pull Request Review.""" input DraftPullRequestReviewThread { - """Path to the file being commented on.""" - path: String! - """The line of the blob to which the thread refers. The end of the line range for multi-line comments.""" - line: Int! - """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 - """Body of the comment to leave.""" - body: String! + """Path to the file being commented on.""" + path: String! + """The line of the blob to which the thread refers. The end of the line range for multi-line comments.""" + line: Int! + """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 + """Body of the comment to leave.""" + body: String! } """Autogenerated input type of EnablePullRequestAutoMerge""" input EnablePullRequestAutoMergeInput { - """ID of the pull request to enable auto-merge on.""" - pullRequestId: ID! - """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 - """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 - """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 - """The email address to associate with this merge.""" - authorEmail: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the pull request to enable auto-merge on.""" + pullRequestId: ID! + """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 + """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 + """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 + """The email address to associate with this merge.""" + authorEmail: String + """The expected head OID of the pull request.""" + expectedHeadOid: GitObjectID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { + """The ID of the pull request to enqueue.""" + pullRequestId: ID! + """Add the pull request to the front of the queue.""" + jump: Boolean + """The expected head OID of the pull request.""" + expectedHeadOid: GitObjectID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """A URL pointing to the enterprise's public avatar.""" - avatarUrl( - """The size of the resulting square image.""" - size: Int - ): URI! - """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! - id: ID! - """The location of the enterprise.""" - location: String - """A list of users who are members of this enterprise.""" - members( - """Only return members within the organizations with these logins""" - organizationLogins: [String!] - """The search string to look for.""" - query: String - """Ordering options for members returned from the connection.""" - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} - """The role of the user in the enterprise organization or server.""" - role: EnterpriseUserAccountMembershipRole - """Only return members within the selected GitHub Enterprise deployment""" - deployment: EnterpriseUserDeployment - """Only return members with this two-factor authentication status. Does not include members who only have an account on a GitHub Enterprise Server instance.""" - hasTwoFactorEnabled: Boolean = null - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterpriseMemberConnection! - """The name of the enterprise.""" - name: String! - """A list of organizations that belong to this enterprise.""" - organizations( - """The search string to look for.""" - query: String - """The viewer's role in an organization.""" - viewerOrganizationRole: RoleInOrganization - """Ordering options for organizations returned from the connection.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """Enterprise information only visible to enterprise owners.""" - ownerInfo: EnterpriseOwnerInfo - """The HTTP path for this enterprise.""" - resourcePath: URI! - """The URL-friendly identifier for the enterprise.""" - slug: String! - """The HTTP URL for this enterprise.""" - url: URI! - """Is the current viewer an admin of this enterprise?""" - viewerIsAdmin: Boolean! - """The URL of the enterprise website.""" - websiteUrl: URI +type Enterprise implements Node & AnnouncementBanner { + """The text of the announcement""" + announcement: String + """The expiration date of the announcement, if any""" + announcementExpiresAt: DateTime + """Whether the announcement can be dismissed by the user""" + announcementUserDismissible: Boolean + """A URL pointing to the enterprise's public avatar.""" + avatarUrl( + """The size of the resulting square image.""" + size: Int + ): URI! + """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! + id: ID! + """The location of the enterprise.""" + location: String + """A list of users who are members of this enterprise.""" + members( + """Only return members within the organizations with these logins""" + organizationLogins: [String!] + """The search string to look for.""" + query: String + """Ordering options for members returned from the connection.""" + orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + """The role of the user in the enterprise organization or server.""" + role: EnterpriseUserAccountMembershipRole + """Only return members within the selected GitHub Enterprise deployment""" + deployment: EnterpriseUserDeployment + """Only return members with this two-factor authentication status. Does not include members who only have an account on a GitHub Enterprise Server instance.""" + hasTwoFactorEnabled: Boolean = null + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterpriseMemberConnection! + """The name of the enterprise.""" + name: String! + """A list of organizations that belong to this enterprise.""" + organizations( + """The search string to look for.""" + query: String + """The viewer's role in an organization.""" + viewerOrganizationRole: RoleInOrganization + """Ordering options for organizations returned from the connection.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """Enterprise information visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope.""" + ownerInfo: EnterpriseOwnerInfo + """The HTTP path for this enterprise.""" + resourcePath: URI! + """The URL-friendly identifier for the enterprise.""" + slug: String! + """The HTTP URL for this enterprise.""" + url: URI! + """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 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! + """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 { - """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! - 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! + """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! + 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! + """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 + """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 { - """The field to order enterprise administrator invitations by.""" - field: EnterpriseAdministratorInvitationOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order enterprise administrator invitations by.""" + field: EnterpriseAdministratorInvitationOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which enterprise administrator invitation connections can be ordered.""" enum EnterpriseAdministratorInvitationOrderField { - """Order enterprise administrator member invitations by creation time""" - CREATED_AT + """Order enterprise administrator member invitations by creation time""" + CREATED_AT } """The possible administrator roles in an enterprise account.""" enum EnterpriseAdministratorRole { - """Represents an owner of the enterprise account.""" - OWNER - """Represents a billing manager of the enterprise account.""" - BILLING_MANAGER + """Represents an owner of the enterprise account.""" + OWNER + """Represents a billing manager of the enterprise account.""" + BILLING_MANAGER } """The possible values for the enterprise allow private repository forking policy value.""" enum EnterpriseAllowPrivateRepositoryForkingPolicyValue { - """Members can fork a repository to an organization within this enterprise.""" - ENTERPRISE_ORGANIZATIONS - """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 enterprise-managed user account or an organization inside this enterprise.""" - ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS - """Members can fork a repository to their user account.""" - USER_ACCOUNTS - """Members can fork a repository to their user account or an organization, either inside or outside of this enterprise.""" - EVERYWHERE + """Members can fork a repository to an organization within this enterprise.""" + ENTERPRISE_ORGANIZATIONS + """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 enterprise-managed user account or an organization inside this enterprise.""" + ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS + """Members can fork a repository to their user account.""" + USER_ACCOUNTS + """Members can fork a repository to their user account or an organization, either inside or outside of this enterprise.""" + EVERYWHERE } """Metadata for an audit entry containing enterprise account information.""" interface EnterpriseAuditEntryData { - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI + """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 { - """The number of licenseable users/emails across the enterprise.""" - allLicensableUsersCount: Int! - """The number of data packs used by all organizations owned by the enterprise.""" - assetPacks: Int! - """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 number of licenseable users/emails across the enterprise.""" + allLicensableUsersCount: Int! + """The number of data packs used by all organizations owned by the enterprise.""" + assetPacks: Int! + """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 possible values for the enterprise base repository permission setting.""" enum EnterpriseDefaultRepositoryPermissionSettingValue { - """Organizations in the enterprise choose base repository permissions for their members.""" - NO_POLICY - """Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories.""" - ADMIN - """Organization members will be able to clone, pull, and push all organization repositories.""" - WRITE - """Organization members will be able to clone and pull all organization repositories.""" - READ - """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, pull, push, and add new collaborators to all organization repositories.""" + ADMIN + """Organization members will be able to clone, pull, and push all organization repositories.""" + WRITE + """Organization members will be able to clone and pull all organization repositories.""" + READ + """Organization members will only be able to clone and pull public repositories.""" + NONE } """The possible values for an enabled/disabled enterprise setting.""" enum EnterpriseEnabledDisabledSettingValue { - """The setting is enabled for organizations in the enterprise.""" - ENABLED - """The setting is disabled for organizations in the enterprise.""" - DISABLED - """There is no policy set for organizations in the enterprise.""" - NO_POLICY + """The setting is enabled for organizations in the enterprise.""" + ENABLED + """The setting is disabled for organizations in the enterprise.""" + DISABLED + """There is no policy set for organizations in the enterprise.""" + NO_POLICY } """The possible values for an enabled/no policy enterprise setting.""" enum EnterpriseEnabledSettingValue { - """The setting is enabled for organizations in the enterprise.""" - ENABLED - """There is no policy set for organizations in the enterprise.""" - NO_POLICY + """The setting is enabled for organizations in the enterprise.""" + ENABLED + """There is no policy set for organizations in the enterprise.""" + NO_POLICY } -"""An identity provider configured to provision identities for an enterprise.""" +"""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 { - """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( - """Filter to external identities with valid org membership only""" - membersOnly: Boolean - """Filter to external identities with the users login""" - login: String - """Filter to external identities with the users userName/NameID attribute""" - userName: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ExternalIdentityConnection! - 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 + """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( + """Filter to external identities with valid org membership only""" + membersOnly: Boolean + """Filter to external identities with the users login""" + login: String + """Filter to external identities with the users userName/NameID attribute""" + userName: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ExternalIdentityConnection! + 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.""" @@ -6475,1072 +7033,1126 @@ union EnterpriseMember = 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 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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: EnterpriseMember } """Ordering options for enterprise member connections.""" input EnterpriseMemberOrder { - """The field to order enterprise members by.""" - field: EnterpriseMemberOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order enterprise members by.""" + field: EnterpriseMemberOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which enterprise member connections can be ordered.""" enum EnterpriseMemberOrderField { - """Order enterprise members by login""" - LOGIN - """Order enterprise members by creation time""" - CREATED_AT + """Order enterprise members by login""" + LOGIN + """Order enterprise members by creation time""" + CREATED_AT } """The possible values for the enterprise members can create repositories setting.""" enum EnterpriseMembersCanCreateRepositoriesSettingValue { - """Organization administrators choose whether to allow members to create repositories.""" - NO_POLICY - """Members will be able to create public and private repositories.""" - ALL - """Members will be able to create only public repositories.""" - PUBLIC - """Members will be able to create only private repositories.""" - PRIVATE - """Members will not be able to create public or private repositories.""" - DISABLED + """Organization administrators choose whether to allow members to create repositories.""" + NO_POLICY + """Members will be able to create public and private repositories.""" + ALL + """Members will be able to create only public repositories.""" + PUBLIC + """Members will be able to create only private repositories.""" + PRIVATE + """Members will not be able to create public or private repositories.""" + DISABLED } """The possible values for the members can make purchases setting.""" enum EnterpriseMembersCanMakePurchasesSettingValue { - """The setting is enabled for organizations in the enterprise.""" - ENABLED - """The setting is disabled for organizations in the enterprise.""" - DISABLED + """The setting is enabled for organizations in the enterprise.""" + ENABLED + """The setting is disabled for organizations in the enterprise.""" + DISABLED } """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! + """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! + """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 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 only visible to enterprise owners.""" + """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 { - """A list of all of the administrators for this enterprise.""" - admins( - """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 - """Ordering options for administrators returned from the connection.""" - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} - """Only return administrators with this two-factor authentication status.""" - hasTwoFactorEnabled: Boolean = null - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The permission to find organizations for.""" - value: DefaultRepositoryPermissionField! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): OrganizationConnection! - """A list of domains owned by the enterprise.""" - 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 - """Returns the last _n_ elements from the list.""" - last: Int - """Filter whether or not the domain is verified.""" - isVerified: Boolean = null - """Filter whether or not the domain is approved.""" - isApproved: Boolean = null - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Whether or not to only return installations discovered via GitHub Connect.""" - connectedOnly: Boolean = false - """Ordering options for Enterprise Server installations returned.""" - orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} - ): EnterpriseServerInstallationConnection! - """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.""" - 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! - """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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The setting to find organizations for.""" - value: OrganizationMembersCanCreateRepositoriesSettingValue! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): 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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): OrganizationConnection! - """A list of outside collaborators across the repositories in the enterprise.""" - outsideCollaborators( - """The login of one specific outside collaborator.""" - login: String - """The search string to look for.""" - query: String - """Ordering options for outside collaborators returned from the connection.""" - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} - """Only return outside collaborators on repositories with this visibility.""" - visibility: RepositoryVisibility - """Only return outside collaborators with this two-factor authentication status.""" - hasTwoFactorEnabled: Boolean = null - """Only return outside collaborators within the organizations with these logins""" - organizationLogins: [String!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterpriseOutsideCollaboratorConnection! - """A list of pending administrator invitations for the enterprise.""" - pendingAdminInvitations( - """The search string to look for.""" - query: String - """Ordering options for pending enterprise administrator invitations returned from the connection.""" - orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC} - """The role to filter by.""" - role: EnterpriseAdministratorRole - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterpriseAdministratorInvitationConnection! - """A list of pending collaborator invitations across the repositories in the enterprise.""" - pendingCollaboratorInvitations( - """The search string to look for.""" - query: String - """Ordering options for pending repository collaborator invitations returned from the connection.""" - orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): RepositoryInvitationConnection! - """A list of pending member invitations for organizations in the enterprise.""" - pendingMemberInvitations( - """The search string to look for.""" - query: String - """Only return invitations within the organizations with these logins""" - organizationLogins: [String!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterprisePendingMemberInvitationConnection! - """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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): OrganizationConnection! - """The SAML Identity Provider for the enterprise. When used by a GitHub App, requires an installation token with read and write access to members.""" - 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 - """The setting value to find organizations for.""" - value: IdentityProviderConfigurationState! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): OrganizationConnection! - """A list of members with a support entitlement.""" - supportEntitlements( - """Ordering options for support entitlement users returned from the connection.""" - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterpriseMemberConnection! - """The setting value for whether team discussions are enabled for organizations in this enterprise.""" - teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue! - """A list of enterprise organizations configured with the provided team discussions setting value.""" - teamDiscussionsSettingOrganizations( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): OrganizationConnection! - """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 - """The setting value to find organizations for.""" - value: Boolean! - """Ordering options for organizations with this setting.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - ): OrganizationConnection! + """A list of all of the administrators for this enterprise.""" + admins( + """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 + """Ordering options for administrators returned from the connection.""" + orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + """Only return administrators with this two-factor authentication status.""" + hasTwoFactorEnabled: Boolean = null + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The permission to find organizations for.""" + value: DefaultRepositoryPermissionField! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """Returns the last _n_ elements from the list.""" + last: Int + """Filter whether or not the domain is verified.""" + isVerified: Boolean = null + """Filter whether or not the domain is approved.""" + isApproved: Boolean = null + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Whether or not to only return installations discovered via GitHub Connect.""" + connectedOnly: Boolean = false + """Ordering options for Enterprise Server installations returned.""" + orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} + ): EnterpriseServerInstallationConnection! + """A list of failed invitations in the enterprise.""" + failedInvitations( + """The search string to look for.""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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! + """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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting to find organizations for.""" + value: OrganizationMembersCanCreateRepositoriesSettingValue! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): OrganizationConnection! + """A list of outside collaborators across the repositories in the enterprise.""" + outsideCollaborators( + """The login of one specific outside collaborator.""" + login: String + """The search string to look for.""" + query: String + """Ordering options for outside collaborators returned from the connection.""" + orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + """Only return outside collaborators on repositories with this visibility.""" + visibility: RepositoryVisibility + """Only return outside collaborators with this two-factor authentication status.""" + hasTwoFactorEnabled: Boolean = null + """Only return outside collaborators within the organizations with these logins""" + organizationLogins: [String!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterpriseOutsideCollaboratorConnection! + """A list of pending administrator invitations for the enterprise.""" + pendingAdminInvitations( + """The search string to look for.""" + query: String + """Ordering options for pending enterprise administrator invitations returned from the connection.""" + orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC} + """The role to filter by.""" + role: EnterpriseAdministratorRole + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterpriseAdministratorInvitationConnection! + """A list of pending collaborator invitations across the repositories in the enterprise.""" + pendingCollaboratorInvitations( + """The search string to look for.""" + query: String + """Ordering options for pending repository collaborator invitations returned from the connection.""" + orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): RepositoryInvitationConnection! + """A list of pending member invitations for organizations in the enterprise.""" + pendingMemberInvitations( + """The search string to look for.""" + query: String + """Only return invitations within the organizations with these logins""" + organizationLogins: [String!] + """Only return invitations matching this invitation source""" + invitationSource: OrganizationInvitationSource + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterprisePendingMemberInvitationConnection! + """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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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 + """The setting value to find organizations for.""" + value: IdentityProviderConfigurationState! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): OrganizationConnection! + """A list of members with a support entitlement.""" + supportEntitlements( + """Ordering options for support entitlement users returned from the connection.""" + orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterpriseMemberConnection! + """The setting value for whether team discussions are enabled for organizations in this enterprise.""" + teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue! + """A list of enterprise organizations configured with the provided team discussions setting value.""" + teamDiscussionsSettingOrganizations( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): OrganizationConnection! + """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 + """The setting value to find organizations for.""" + value: Boolean! + """Ordering options for organizations with this setting.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + ): 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! + """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 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 { - 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! + 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! + """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 + """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 { - """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! - 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( - """Ordering options for Enterprise Server user accounts returned from the connection.""" - orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterpriseServerUserAccountConnection! - """User accounts uploads for the Enterprise Server installation.""" - userAccountsUploads( - """Ordering options for Enterprise Server user accounts uploads returned from the connection.""" - orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterpriseServerUserAccountsUploadConnection! + """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! + 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( + """Ordering options for Enterprise Server user accounts returned from the connection.""" + orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterpriseServerUserAccountConnection! + """User accounts uploads for the Enterprise Server installation.""" + userAccountsUploads( + """Ordering options for Enterprise Server user accounts uploads returned from the connection.""" + orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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! + """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 + """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 { - """The field to order Enterprise Server installations by.""" - field: EnterpriseServerInstallationOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order Enterprise Server installations by.""" + field: EnterpriseServerInstallationOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which Enterprise Server installation connections can be ordered.""" enum EnterpriseServerInstallationOrderField { - """Order Enterprise Server installations by host name""" - HOST_NAME - """Order Enterprise Server installations by customer name""" - CUSTOMER_NAME - """Order Enterprise Server installations by creation time""" - CREATED_AT + """Order Enterprise Server installations by host name""" + HOST_NAME + """Order Enterprise Server installations by customer name""" + CUSTOMER_NAME + """Order Enterprise Server installations by creation time""" + CREATED_AT } """A user account on an Enterprise Server installation.""" type EnterpriseServerUserAccount implements Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """User emails belonging to this user account.""" - emails( - """Ordering options for Enterprise Server user account emails returned from the connection.""" - orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): EnterpriseServerUserAccountEmailConnection! - """The Enterprise Server installation on which this user account exists.""" - enterpriseServerInstallation: EnterpriseServerInstallation! - 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! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """User emails belonging to this user account.""" + emails( + """Ordering options for Enterprise Server user account emails returned from the connection.""" + orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterpriseServerUserAccountEmailConnection! + """The Enterprise Server installation on which this user account exists.""" + enterpriseServerInstallation: EnterpriseServerInstallation! + 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! + """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 + """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 { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """The email address.""" - email: String! - 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! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The email address.""" + email: String! + 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! + """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 + """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 { - """The field to order emails by.""" - field: EnterpriseServerUserAccountEmailOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order emails by.""" + field: EnterpriseServerUserAccountEmailOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which Enterprise Server user account email connections can be ordered.""" enum EnterpriseServerUserAccountEmailOrderField { - """Order emails by email""" - EMAIL + """Order emails by email""" + EMAIL } """Ordering options for Enterprise Server user account connections.""" input EnterpriseServerUserAccountOrder { - """The field to order user accounts by.""" - field: EnterpriseServerUserAccountOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order user accounts by.""" + field: EnterpriseServerUserAccountOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which Enterprise Server user account connections can be ordered.""" enum EnterpriseServerUserAccountOrderField { - """Order user accounts by login""" - LOGIN - """Order user accounts by creation time on the Enterprise Server installation""" - REMOTE_CREATED_AT + """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 { - """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! - 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! + """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! + 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! + """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 + """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 { - """The field to order user accounts uploads by.""" - field: EnterpriseServerUserAccountsUploadOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order user accounts uploads by.""" + field: EnterpriseServerUserAccountsUploadOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which Enterprise Server user accounts upload connections can be ordered.""" enum EnterpriseServerUserAccountsUploadOrderField { - """Order user accounts uploads by creation time""" - CREATED_AT + """Order user accounts uploads by creation time""" + CREATED_AT } """Synchronization state of the Enterprise Server user accounts upload""" enum EnterpriseServerUserAccountsUploadSyncState { - """The synchronization of the upload is pending.""" - PENDING - """The synchronization of the upload succeeded.""" - SUCCESS - """The synchronization of the upload failed.""" - FAILURE + """The synchronization of the upload is pending.""" + PENDING + """The synchronization of the upload succeeded.""" + SUCCESS + """The synchronization of the upload failed.""" + FAILURE } """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 { - """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! - 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( - """The search string to look for.""" - query: String - """Ordering options for organizations returned from the connection.""" - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - """The role of the user in the enterprise organization.""" - role: EnterpriseUserAccountMembershipRole - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 + """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( + """The search string to look for.""" + query: String + """Ordering options for installations returned from the connection.""" + orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} + """The role of the user in the installation.""" + role: EnterpriseUserAccountMembershipRole + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): EnterpriseServerInstallationMembershipConnection! + 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( + """The search string to look for.""" + query: String + """Ordering options for organizations returned from the connection.""" + orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + """The role of the user in the enterprise organization.""" + role: EnterpriseUserAccountMembershipRole + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 { - """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 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 { - """The user is part of a GitHub Enterprise Cloud deployment.""" - CLOUD - """The user is part of a GitHub Enterprise Server deployment.""" - SERVER + """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 { - """Identifies the primary key from the database.""" - databaseId: Int - id: ID! - """The name of the environment""" - name: String! - """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! + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """The name of the environment""" + name: String! + """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Environment } -"""An external identity provisioned by SAML SSO or SCIM.""" +"""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 { - """The GUID for this identity""" - guid: String! - 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 + """The GUID for this identity""" + guid: String! + 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 { - """The attribute metadata as JSON""" - metadata: String - """The attribute name""" - name: String! - """The attribute value""" - value: String! + """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! + """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 + """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 { - """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 + """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 { - """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 + """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 user's dashboard feed.""" type Feed { - """The filter settings for this feed""" - filters: [FeedFilter!] - """A list of feed items""" - 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 - """Filter timeline items by type.""" - itemTypes: [FeedItemType!] = [] - ): FeedItemConnection! + """The filter settings for this feed""" + filters: [FeedFilter!] + """A list of feed items""" + 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 + """Filter timeline items by type.""" + itemTypes: [FeedItemType!] = [] + ): FeedItemConnection! } """The possible reasons that a user expressed disinterest in a Feed event.""" enum FeedDisinterestReason { - """User is not interested in this resource.""" - RESOURCE - """User is not interested in this type of event.""" - EVENT_TYPE - """User is not interested in this type of event from this resource.""" - EVENT_TYPE_RESOURCE - """User has dismissed this event.""" - DISMISSED + """User is not interested in this resource.""" + RESOURCE + """User is not interested in this type of event.""" + EVENT_TYPE + """User is not interested in this type of event from this resource.""" + EVENT_TYPE_RESOURCE + """User has dismissed this event.""" + DISMISSED } """A single content filter for an event feed""" type FeedFilter { - """The filter group that this filter belongs to""" - filterGroup: DashboardFeedFilterGroup! - """Whether or not the filter is enabled""" - isEnabled: Boolean! - """The name of the filter""" - name: String! + """The filter group that this filter belongs to""" + filterGroup: DashboardFeedFilterGroup! + """Whether or not the filter is enabled""" + isEnabled: Boolean! + """The name of the filter""" + name: String! } """Types that can appear in the dashboard feed""" @@ -7548,82 +8160,82 @@ union FeedItem = AddedToListFeedItem | BecameSponsorableFeedItem | CreatedDiscus """The connection type for FeedItem.""" type FeedItemConnection { - """A list of edges.""" - edges: [FeedItemEdge] - """A list of nodes.""" - nodes: [FeedItem] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [FeedItemEdge] + """A list of nodes.""" + nodes: [FeedItem] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An item that is displayable in the dashboard feed""" interface FeedItemDisplayable { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """An edge in a connection.""" type FeedItemEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: FeedItem + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: FeedItem } """How the feed item's related items are related""" enum FeedItemRelatedBy { - """There are no related items""" - NONE - """Items are related by actor""" - ACTOR - """Items are related by subject""" - SUBJECT + """There are no related items""" + NONE + """Items are related by actor""" + ACTOR + """Items are related by subject""" + SUBJECT } """A list of item types to include in the response""" enum FeedItemType { - """A feed item representing the act of a repository being starred""" - STARRED_REPOSITORY_FEED_ITEM - """A feed item representing the act of a repository being forked.""" - FORKED_REPOSITORY_FEED_ITEM - """A feed item representing the act of a repository being created""" - CREATED_REPOSITORY_FEED_ITEM - """A feed item representing the act of a release being published""" - PUBLISHED_RELEASE_FEED_ITEM - """A feed item representing the act of a discussion being created""" - CREATED_DISCUSSION_FEED_ITEM - """A feed item representing the act of an entity being sponsored""" - SPONSORED_USER_FEED_ITEM - """A feed item representing the act of an entity being followed""" - FOLLOWED_USER_FEED_ITEM - """A feed item representing the act of an entity becoming sponsorable""" - BECAME_SPONSORABLE_FEED_ITEM - """A feed item representing the act of a repository being recommended""" - REPOSITORY_RECOMMENDATION_FEED_ITEM - """A feed item representing the act of an actor adding a repository to a user list""" - ADDED_TO_LIST_FEED_ITEM - """A feed item representing the act of a Sponsors goal being near complete""" - NEAR_SPONSORS_GOAL_FEED_ITEM - """A feed item representing the act of an user or organization being recommended to follow""" - FOLLOW_RECOMMENDATION_FEED_ITEM - """A feed item representing the act of an open source pull request being merged""" - MERGED_PULL_REQUEST_FEED_ITEM + """A feed item representing the act of a repository being starred""" + STARRED_REPOSITORY_FEED_ITEM + """A feed item representing the act of a repository being forked.""" + FORKED_REPOSITORY_FEED_ITEM + """A feed item representing the act of a repository being created""" + CREATED_REPOSITORY_FEED_ITEM + """A feed item representing the act of a release being published""" + PUBLISHED_RELEASE_FEED_ITEM + """A feed item representing the act of a discussion being created""" + CREATED_DISCUSSION_FEED_ITEM + """A feed item representing the act of an entity being sponsored""" + SPONSORED_USER_FEED_ITEM + """A feed item representing the act of an entity being followed""" + FOLLOWED_USER_FEED_ITEM + """A feed item representing the act of an entity becoming sponsorable""" + BECAME_SPONSORABLE_FEED_ITEM + """A feed item representing the act of a repository being recommended""" + REPOSITORY_RECOMMENDATION_FEED_ITEM + """A feed item representing the act of an actor adding a repository to a user list""" + ADDED_TO_LIST_FEED_ITEM + """A feed item representing the act of a Sponsors goal being near complete""" + NEAR_SPONSORS_GOAL_FEED_ITEM + """A feed item representing the act of an user or organization being recommended to follow""" + FOLLOW_RECOMMENDATION_FEED_ITEM + """A feed item representing the act of an open source pull request being merged""" + MERGED_PULL_REQUEST_FEED_ITEM } """TreeEntry file types.""" @@ -7631,10 +8243,10 @@ union File = ImageFileType | MarkdownFileType | PdfFileType | TextFileType """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 { - """The path in the repository where the file will be located""" - path: String! - """The base64 encoded contents of the file""" - contents: Base64String! + """The path in the repository where the file will be located""" + path: String! + """The base64 encoded contents of the file""" + contents: Base64String! } """ @@ -7680,107 +8292,109 @@ 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") - } - ] - } +{ +"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`: +content `new content here\n`: - { - "additions" [ - { - "path": "docs/README.txt", - "contents": base64encode("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. +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" - } - ] - } +{ +"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") - } - ] - } +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") - } - ] - } +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 { - """Files to delete.""" - deletions: [FileDeletion!] = [] - """File to add or change.""" - additions: [FileAddition!] = [] + """Files to delete.""" + deletions: [FileDeletion!] = [] + """File to add or change.""" + additions: [FileAddition!] = [] } """A command to delete the file at the given path as part of a commit.""" input FileDeletion { - """The path to delete""" - path: String! + """The path to delete""" + path: String! } """Represents a line of a file.""" type FileLine { - """HTML formatted contents of this line.""" - html: String! - """Line number for this line.""" - number: Int! + """HTML formatted contents of this line.""" + html: String! + """HTML formatted contents of this line. (Base-64 encoded)""" + htmlRaw: Base64String! + """Line number for this line.""" + number: Int! } """The possible viewed states of a file .""" enum FileViewedState { - """The file has new changes since last viewed.""" - DISMISSED - """The file has been marked as viewed.""" - VIEWED - """The file has not been marked as viewed.""" - UNVIEWED + """The file has new changes since last viewed.""" + DISMISSED + """The file has been marked as viewed.""" + VIEWED + """The file has not been marked as viewed.""" + UNVIEWED } """Entities that can followed by GitHub users""" @@ -7788,480 +8402,480 @@ union Followable = Organization | User """A feed item representing the act of an entity being followed""" type FollowedUserFeedItem implements FeedItemDisplayable { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """The entity that was followed""" - followee: Followable! - """The user who performed the follow action""" - follower: User! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """The entity that was followed""" + followee: Followable! + """The user who performed the follow action""" + follower: User! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """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! + """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 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! } """Autogenerated input type of FollowOrganization""" input FollowOrganizationInput { - """ID of the organization to follow.""" - organizationId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the organization to follow.""" + organizationId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The organization that was followed.""" + organization: Organization } """A feed item representing the act of an user or organization being recommended to follow""" type FollowRecommendationFeedItem implements FeedItemDisplayable { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """The user or organization that is recommended to follow""" - followee: Followable! - """A unique identifier for this item""" - identifier: String! - """The reason why the user or organization was recommended""" - reason: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """The user or organization that is recommended to follow""" + followee: Followable! + """A unique identifier for this item""" + identifier: String! + """The reason why the user or organization was recommended""" + reason: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """Autogenerated input type of FollowUser""" input FollowUserInput { - """ID of the user to follow.""" - userId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the user to follow.""" + userId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The user that was followed.""" + user: User } """A feed item representing the act of a repository being forked.""" type ForkedRepositoryFeedItem implements FeedItemDisplayable { - """The user who forked the repository""" - actor: User! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The repository that was forked""" - repository: Repository! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """The user who forked the repository""" + actor: User! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The repository that was forked""" + repository: Repository! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """A funding platform link for a repository.""" type FundingLink { - """The funding platform this link is for.""" - platform: FundingPlatform! - """The configured URL for this funding link.""" - url: URI! + """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 { - """GitHub funding platform.""" - GITHUB - """Patreon funding platform.""" - PATREON - """Open Collective funding platform.""" - OPEN_COLLECTIVE - """Ko-fi funding platform.""" - KO_FI - """Tidelift funding platform.""" - TIDELIFT - """Community Bridge funding platform.""" - COMMUNITY_BRIDGE - """Liberapay funding platform.""" - LIBERAPAY - """IssueHunt funding platform.""" - ISSUEHUNT - """Otechie funding platform.""" - OTECHIE - """LFX Crowdfunding funding platform.""" - LFX_CROWDFUNDING - """Custom funding platform.""" - CUSTOM + """GitHub funding platform.""" + GITHUB + """Patreon funding platform.""" + PATREON + """Open Collective funding platform.""" + OPEN_COLLECTIVE + """Ko-fi funding platform.""" + KO_FI + """Tidelift funding platform.""" + TIDELIFT + """Community Bridge funding platform.""" + COMMUNITY_BRIDGE + """Liberapay funding platform.""" + LIBERAPAY + """IssueHunt funding platform.""" + ISSUEHUNT + """Otechie funding platform.""" + OTECHIE + """LFX Crowdfunding funding platform.""" + LFX_CROWDFUNDING + """Custom funding platform.""" + CUSTOM } """A generic hovercard context with a message and icon""" type GenericHovercardContext implements HovercardContext { - """A string describing this context""" - message: String! - """An octicon to accompany this context""" - octicon: String! + """A string describing this context""" + message: String! + """An octicon to accompany this context""" + octicon: String! } """A Gist.""" type Gist implements Node & Starrable & UniformResourceLocatable { - """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! - 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! + """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! + 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 Node & Comment & Deletable & Minimizable & Updatable & UpdatableComment { - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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! - 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` and `spam`. 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 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 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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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! + 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` and `spam`. 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 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! + """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 + """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! + """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 cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Gist } """A file in a gist.""" type GistFile { - """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 - """Get the text data of this file as separate lines with syntax highlighting. If any syntax highlighting is applied, HTML strings will be returned.""" - lines( - """Optionally limit how many lines are returned.""" - limit: Int = 100 - ): [String!]! - """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 + """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 + """Get the text data of this file as separate lines with syntax highlighting. If any syntax highlighting is applied, HTML strings will be returned.""" + lines( + """Optionally limit how many lines are returned.""" + limit: Int = 100 + ): [String!]! + """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 { - """The field to order repositories by.""" - field: GistOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order repositories by.""" + field: GistOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which gist connections can be ordered.""" enum GistOrderField { - """Order gists by creation time""" - CREATED_AT - """Order gists by update time""" - UPDATED_AT - """Order gists by push time""" - PUSHED_AT + """Order gists by creation time""" + CREATED_AT + """Order gists by update time""" + UPDATED_AT + """Order gists by push time""" + PUSHED_AT } """The privacy of a Gist""" enum GistPrivacy { - """Public""" - PUBLIC - """Secret""" - SECRET - """Gists that are public and secret""" - ALL + """Public""" + PUBLIC + """Secret""" + SECRET + """Gists that are public and secret""" + ALL } """Represents an actor in a Git commit (ie. an author or committer).""" type GitActor { - """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 + """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! + """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 + """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 { - """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 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!] + """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 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 { - """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! - id: ID! - """The Git object ID""" - oid: GitObjectID! - """The Repository the Git object belongs to""" - repository: Repository! + """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! + id: ID! + """The Git object ID""" + oid: GitObjectID! + """The Repository the Git object belongs to""" + repository: Repository! } """A Git object ID.""" @@ -8269,58 +8883,58 @@ scalar GitObjectID """Information about a signature (GPG or S/MIME) on a Commit or Tag.""" interface GitSignature { - """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! - """True if the signature was made with GitHub's signing key.""" - wasSignedByGitHub: Boolean! + """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! + """True if the signature was made with GitHub's signing key.""" + wasSignedByGitHub: Boolean! } """The state of a Git signature.""" enum GitSignatureState { - """Valid signature and verified by GitHub""" - VALID - """Invalid signature""" - INVALID - """Malformed signature""" - MALFORMED_SIG - """Key used for signing not known to GitHub""" - UNKNOWN_KEY - """Invalid email used for signing""" - BAD_EMAIL - """Email used for signing unverified on GitHub""" - UNVERIFIED_EMAIL - """Email used for signing not known to GitHub""" - NO_USER - """Unknown signature type""" - UNKNOWN_SIG_TYPE - """Unsigned""" - UNSIGNED - """Internal error - the GPG verification service is unavailable at the moment""" - GPGVERIFY_UNAVAILABLE - """Internal error - the GPG verification service misbehaved""" - GPGVERIFY_ERROR - """The usage flags for the key that signed this don't allow signing""" - NOT_SIGNING_KEY - """Signing key expired""" - EXPIRED_KEY - """Valid signature, pending certificate revocation checking""" - OCSP_PENDING - """Valid signature, though certificate revocation check failed""" - OCSP_ERROR - """The signing certificate or its chain could not be verified""" - BAD_CERT - """One or more certificates in chain has been revoked""" - OCSP_REVOKED + """Valid signature and verified by GitHub""" + VALID + """Invalid signature""" + INVALID + """Malformed signature""" + MALFORMED_SIG + """Key used for signing not known to GitHub""" + UNKNOWN_KEY + """Invalid email used for signing""" + BAD_EMAIL + """Email used for signing unverified on GitHub""" + UNVERIFIED_EMAIL + """Email used for signing not known to GitHub""" + NO_USER + """Unknown signature type""" + UNKNOWN_SIG_TYPE + """Unsigned""" + UNSIGNED + """Internal error - the GPG verification service is unavailable at the moment""" + GPGVERIFY_UNAVAILABLE + """Internal error - the GPG verification service misbehaved""" + GPGVERIFY_ERROR + """The usage flags for the key that signed this don't allow signing""" + NOT_SIGNING_KEY + """Signing key expired""" + EXPIRED_KEY + """Valid signature, pending certificate revocation checking""" + OCSP_PENDING + """Valid signature, though certificate revocation check failed""" + OCSP_ERROR + """The signing certificate or its chain could not be verified""" + BAD_CERT + """One or more certificates in chain has been revoked""" + OCSP_REVOKED } """Git SSH string""" @@ -8331,126 +8945,126 @@ scalar GitTimestamp """Represents a GPG signature on a Commit or Tag.""" type GpgSignature implements GitSignature { - """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! - """True if the signature was made with GitHub's signing key.""" - wasSignedByGitHub: Boolean! + """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! + """True if the signature was made with GitHub's signing key.""" + wasSignedByGitHub: Boolean! } """Autogenerated input type of GrantEnterpriseOrganizationsMigratorRole""" input GrantEnterpriseOrganizationsMigratorRoleInput { - """The ID of the enterprise to which all organizations managed by it will be granted the migrator role.""" - enterpriseId: ID! - """The login of the user to grant the migrator role""" - login: String! - """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! + """The login of the user to grant the migrator role""" + login: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 ID of the organization that the user/team belongs to.""" - organizationId: ID! - """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! + """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 } """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 unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Represents a 'head_ref_deleted' event on a given pull request.""" type HeadRefDeletedEvent implements Node { - """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! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! + """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! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest! } """Represents a 'head_ref_force_pushed' event on a given pull request.""" type HeadRefForcePushedEvent implements Node { - """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! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! - """Identifies the fully qualified ref name for the 'head_ref_force_pushed' event.""" - ref: Ref + """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! + 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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest! } """Detail needed to display a hovercard for a user""" type Hovercard { - """Each of the contexts for this hovercard""" - contexts: [HovercardContext!]! + """Each of the contexts for this hovercard""" + contexts: [HovercardContext!]! } """An individual line of a hovercard""" interface HovercardContext { - """A string describing this context""" - message: String! - """An octicon to accompany this context""" - octicon: String! + """A string describing this context""" + message: String! + """An octicon to accompany this context""" + octicon: String! } """A string containing HTML code.""" @@ -8458,137 +9072,137 @@ scalar HTML """The possible states in which authentication can be configured with an identity provider.""" enum IdentityProviderConfigurationState { - """Authentication with an identity provider is configured and enforced.""" - ENFORCED - """Authentication with an identity provider is configured but not enforced.""" - CONFIGURED - """Authentication with an identity provider is not configured.""" - UNCONFIGURED + """Authentication with an identity provider is configured and enforced.""" + ENFORCED + """Authentication with an identity provider is configured but not enforced.""" + CONFIGURED + """Authentication with an identity provider is not configured.""" + UNCONFIGURED } """Represents an image file (png, jpeg, gif).""" type ImageFileType implements RawBlobUrl { - """The URL to this file.""" - url: URI + """The URL to this file.""" + url: URI } """Represents the kinds of interactions a user can have with another record.""" enum InteractionType { - """User created the record.""" - AUTHORED - """User opened the record when it was closed.""" - REOPENED - """User left a comment on the record.""" - COMMENTED - """Another user commented on the user's record.""" - RECEIVED_COMMENT - """User's comment record was edited.""" - COMMENT_EDITED - """Another user's comment record was edited.""" - RECEIVED_COMMENT_EDITED - """User left a comment in a pull request review.""" - REVIEW_COMMENTED - """The user's review was requested on the record.""" - REVIEW_REQUESTED - """User's record received a review.""" - REVIEW_RECEIVED - """User deployed the record.""" - DEPLOYED - """User was assigned to the record.""" - ASSIGNED - """The user's record was referenced via a commit.""" - REFERENCED + """User created the record.""" + AUTHORED + """User opened the record when it was closed.""" + REOPENED + """User left a comment on the record.""" + COMMENTED + """Another user commented on the user's record.""" + RECEIVED_COMMENT + """User's comment record was edited.""" + COMMENT_EDITED + """Another user's comment record was edited.""" + RECEIVED_COMMENT_EDITED + """User left a comment in a pull request review.""" + REVIEW_COMMENTED + """The user's review was requested on the record.""" + REVIEW_REQUESTED + """User's record received a review.""" + REVIEW_RECEIVED + """User deployed the record.""" + DEPLOYED + """User was assigned to the record.""" + ASSIGNED + """The user's record was referenced via a commit.""" + REFERENCED } """Autogenerated input type of InviteEnterpriseAdmin""" input InviteEnterpriseAdminInput { - """The ID of the enterprise to which you want to invite an administrator.""" - enterpriseId: ID! - """The login of a user to invite as an administrator.""" - invitee: String - """The email of the person to invite as an administrator.""" - email: String - """The role of the administrator.""" - role: EnterpriseAdministratorRole - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the enterprise to which you want to invite an administrator.""" + enterpriseId: ID! + """The login of a user to invite as an administrator.""" + invitee: String + """The email of the person to invite as an administrator.""" + email: String + """The role of the administrator.""" + role: EnterpriseAdministratorRole + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The created enterprise administrator invitation.""" + invitation: EnterpriseAdministratorInvitation } """The possible values for the IP allow list enabled setting.""" enum IpAllowListEnabledSettingValue { - """The setting is enabled for the owner.""" - ENABLED - """The setting is disabled for the owner.""" - DISABLED + """The setting is enabled for the owner.""" + ENABLED + """The setting is disabled for the owner.""" + DISABLED } """An IP address or range of addresses that is allowed to access an owner's resources.""" type IpAllowListEntry implements Node { - """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! - 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! + """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! + 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! + """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 + """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 { - """The field to order IP allow list entries by.""" - field: IpAllowListEntryOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order IP allow list entries by.""" + field: IpAllowListEntryOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which IP allow list entry connections can be ordered.""" enum IpAllowListEntryOrderField { - """Order IP allow list entries by creation time.""" - CREATED_AT - """Order IP allow list entries by the allow list value.""" - ALLOW_LIST_VALUE + """Order IP allow list entries by creation time.""" + CREATED_AT + """Order IP allow list entries by the allow list value.""" + ALLOW_LIST_VALUE } """The possible values for the IP allow list configuration for installed GitHub Apps setting.""" enum IpAllowListForInstalledAppsEnabledSettingValue { - """The setting is enabled for the owner.""" - ENABLED - """The setting is disabled for the owner.""" - DISABLED + """The setting is enabled for the owner.""" + ENABLED + """The setting is disabled for the owner.""" + DISABLED } """Types that can own an IP allow list.""" @@ -8596,610 +9210,622 @@ union IpAllowListOwner = App | Enterprise | Organization """An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.""" type Issue implements Node & Assignable & Closable & Comment & Updatable & UpdatableComment & Labelable & Lockable & MentionSuggestable & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & OrgBlockable & ProjectNextOwner & ProjectV2Owner { - """Reason that the conversation was locked.""" - activeLockReason: LockReason - """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! - """Identifies the body of the issue.""" - body: String! - """The body rendered to HTML.""" - bodyHTML( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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! - """`true` 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( - """Include closed PRs in results""" - includeClosedPrs: Boolean = false - """Return results ordered by state""" - orderByState: Boolean = false - """Return only manually linked PRs""" - userLinkedOnly: Boolean = false - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PullRequestConnection - """A list of comments associated with the Issue.""" - comments( - """Ordering options for issue comments returned from the connection.""" - orderBy: IssueCommentOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 - """The actor who edited the comment.""" - editor: Actor - """The hovercard information for this issue""" - hovercard( - """Whether or not to include notification contexts""" - includeNotificationContexts: Boolean = true - ): Hovercard! - 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 - """A list of labels associated with the object.""" - labels( - """Ordering options for labels returned from the connection.""" - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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! - """A list of mentionable items that can be mentioned in the context of this object.""" - mentionableItems( - """Filters users, teams with query on mentionable items""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): MentionableItemConnection - """Identifies the milestone associated with the issue.""" - milestone: Milestone - """Identifies the issue number.""" - number: Int! - """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! - """List of project cards associated with this issue.""" - projectCards( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 archived states to filter the cards by""" - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - ): ProjectCardConnection! - """List of project items associated with this issue.""" - projectItems( - """Include archived items.""" - includeArchived: 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 - ): ProjectV2ItemConnection! - """Find a project by project (beta) number.""" - projectNext( - """The project (beta) number.""" - number: Int! - ): ProjectNext @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """List of project (beta) items associated with this issue.""" - projectNextItems( - """Include archived items.""" - includeArchived: 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 - ): ProjectNextItemConnection! - """Find a project by number.""" - projectV2( - """The project number.""" + """Reason that the conversation was locked.""" + activeLockReason: LockReason + """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! + """Identifies the body of the issue.""" + body: String! + """The body rendered to HTML.""" + bodyHTML( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + """Whether or not to render tasklist blocks using Mobile-specific HTML""" + renderMobileTasklistBlocks: Boolean = false + ): 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( + """Include closed PRs in results""" + includeClosedPrs: Boolean = false + """Return results ordered by state""" + orderByState: Boolean = false + """Return only manually linked PRs""" + userLinkedOnly: Boolean = false + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PullRequestConnection + """A list of comments associated with the Issue.""" + comments( + """Ordering options for issue comments returned from the connection.""" + orderBy: IssueCommentOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 + """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! + 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 + """A list of labels associated with the object.""" + labels( + """Ordering options for labels returned from the connection.""" + orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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! + """A list of mentionable items that can be mentioned in the context of this object.""" + mentionableItems( + """Filters users, teams with query on mentionable items""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): MentionableItemConnection + """Identifies the milestone associated with the issue.""" + milestone: Milestone + """Identifies the issue number.""" number: Int! - ): ProjectV2 - """A list of projects (beta) under the owner.""" - projectsNext( - """A project (beta) to search for under the the owner.""" - query: String - """How to order the returned projects (beta).""" - sortBy: ProjectNextOrderField = TITLE - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectNextConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """A list of projects under the owner.""" - projectsV2( - """A project to search for under the the owner.""" - query: String - """How to order the returned projects.""" - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """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""" - resourcePath: URI! - """Identifies the state of the issue.""" - state: IssueState! - """Identifies the reason for the issue state.""" - stateReason: IssueStateReason - """A list of suggested users to assign to this object""" - suggestedAssignees( - """If provided, searches users by login or profile name""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """Number of tasks in the issue's task list""" - taskListItemCount( - """Limit the count to tasks in the specified statuses.""" - statuses: [TaskListItemStatus] - ): Int! - """A list of events, comments, commits, etc. associated with the issue.""" - timeline( - """Allows filtering timeline events by a `since` timestamp.""" - since: DateTime - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): IssueTimelineConnection! @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.") - """Get a timeline item from a url""" - timelineItem( - """The url to decode.""" - url: String - ): IssueTimelineItems - """A list of events, comments, commits, etc. associated with the issue.""" - timelineItems( - """Filter timeline items by a `since` timestamp.""" - since: DateTime - """Skips the first _n_ elements in the list.""" - skip: Int - """ID of element to focus on.""" - focus: ID - """Filter timeline items by type.""" - itemTypes: [IssueTimelineItemsItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): IssueTimelineItemsConnection! - """Identifies the issue title.""" - title: String! - """Identifies the issue title rendered to HTML.""" - titleHTML: String! - """Returns a count of how many comments this issue has received.""" - totalCommentsCount: Int - """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! - """Channel value for subscribing to live updates.""" - updatesChannel( - """The name of the channel to use.""" - name: IssuePubSubTopic = UPDATED - ): String - """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 - """Check if the current viewer can block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """Can user react to this subject""" - viewerCanReact: Boolean! - """Can the viewer reopen this issue""" - viewerCanReopen: Boolean! - """Check if the viewer is able to change their subscription status for the repository.""" - viewerCanSubscribe: Boolean! - """Check if the current viewer can unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: 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! - """Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.""" - viewerSubscription: SubscriptionState + """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! + """List of project cards associated with this issue.""" + projectCards( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 archived states to filter the cards by""" + archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] + ): ProjectCardConnection! + """List of project items associated with this issue.""" + projectItems( + """Include archived items.""" + includeArchived: 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 + ): ProjectV2ItemConnection! + """Find a project by project (beta) number.""" + projectNext( + """The project (beta) number.""" + number: Int! + ): ProjectNext + """List of project (beta) items associated with this issue.""" + projectNextItems( + """Include archived items.""" + includeArchived: 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 + ): ProjectNextItemConnection! + """Find a project by number.""" + projectV2( + """The project number.""" + number: Int! + ): ProjectV2 + """A list of projects (beta) under the owner.""" + projectsNext( + """A project (beta) to search for under the the owner.""" + query: String + """How to order the returned projects (beta).""" + sortBy: ProjectNextOrderField = TITLE + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! + """A list of projects under the owner.""" + projectsV2( + """A project to search for under the the owner.""" + query: String + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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""" + resourcePath: URI! + """Identifies the state of the issue.""" + state: IssueState! + """Identifies the reason for the issue state.""" + stateReason: IssueStateReason + """A list of suggested users to assign to this object""" + suggestedAssignees( + """If provided, searches users by login or profile name""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """Number of tasks in the issue's task list""" + taskListItemCount( + """Limit the count to tasks in the specified statuses.""" + statuses: [TaskListItemStatus] + ): Int! + """A list of events, comments, commits, etc. associated with the issue.""" + timeline( + """Allows filtering timeline events by a `since` timestamp.""" + since: DateTime + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): IssueTimelineConnection! @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.") + """Get a timeline item from a url""" + timelineItem( + """The url to decode.""" + url: String + ): IssueTimelineItems + """A list of events, comments, commits, etc. associated with the issue.""" + timelineItems( + """Filter timeline items by a `since` timestamp.""" + since: DateTime + """Skips the first _n_ elements in the list.""" + skip: Int + """ID of element to focus on.""" + focus: ID + """Filter timeline items by type.""" + itemTypes: [IssueTimelineItemsItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): IssueTimelineItemsConnection! + """Identifies the issue title.""" + title: String! + """Identifies the issue title rendered to HTML.""" + titleHTML: String! + """Returns a count of how many comments this issue has received.""" + totalCommentsCount: Int + """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! + """Channel value for subscribing to live updates.""" + updatesChannel( + """The name of the channel to use.""" + name: IssuePubSubTopic = UPDATED + ): String + """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! + """Check if the current viewer can block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """Indicates if the object can be closed by the viewer.""" + viewerCanClose: 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 unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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! + """Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.""" + viewerSubscription: SubscriptionState } """The possible state reasons of a closed issue.""" enum IssueClosedStateReason { - """An issue that has been closed as completed""" - COMPLETED - """An issue that has been closed as not planned""" - NOT_PLANNED + """An issue that has been closed as completed""" + COMPLETED + """An issue that has been closed as not planned""" + NOT_PLANNED } """Represents a comment on an Issue.""" type IssueComment implements Node & Comment & Deletable & Minimizable & Updatable & UpdatableComment & Reactable & OrgBlockable & RepositoryNode { - """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( - """Whether or not to include the HTML for code blocks""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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 - 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! - """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` and `spam`. 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 - """ - 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """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 block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """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 unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: 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 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( + """Whether or not to include the HTML for code blocks""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + 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! + """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` and `spam`. 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 + """ + 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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 block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """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 unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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! + """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 + """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 { - """The field in which to order issue comments by.""" - field: IssueCommentOrderField! - """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! + """The direction in which to order issue comments by the specified field.""" + direction: OrderDirection! } """Properties by which issue comment connections can be ordered.""" enum IssueCommentOrderField { - """Order issue comments by update time""" - UPDATED_AT + """Order issue comments by update time""" + UPDATED_AT } """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! + """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 { - """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 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! } """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Issue } """Ways in which to filter lists of issues.""" input IssueFilters { - """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 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 subscribed to by viewer.""" - viewerSubscribed: Boolean = false + """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 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 subscribed to by viewer.""" + viewerSubscribed: Boolean = false } """Ways in which lists of issues can be ordered upon return.""" input IssueOrder { - """The field in which to order issues by.""" - field: IssueOrderField! - """The direction in which to order issues by the specified field.""" - direction: OrderDirection! + """The field in which to order issues by.""" + field: IssueOrderField! + """The direction in which to order issues by the specified field.""" + direction: OrderDirection! } """Properties by which issue connections can be ordered.""" enum IssueOrderField { - """Order issues by creation time""" - CREATED_AT - """Order issues by update time""" - UPDATED_AT - """Order issues by comment count""" - COMMENTS + """Order issues by creation time""" + CREATED_AT + """Order issues by update time""" + UPDATED_AT + """Order issues by comment count""" + COMMENTS } """Used for return value of Repository.issueOrPullRequest.""" @@ -9207,58 +9833,82 @@ union IssueOrPullRequest = Issue | PullRequest """The possible PubSub channels for an issue.""" enum IssuePubSubTopic { - """The channel ID for observing issue updates.""" - UPDATED - """The channel ID for updating items on the issue timeline.""" - TIMELINE - """The channel ID for observing issue state updates.""" - STATE - """The channel ID for observing issue close references.""" - CLOSE_REFERENCES + """The channel ID for observing issue updates.""" + UPDATED + """The channel ID for updating items on the issue timeline.""" + TIMELINE + """The channel ID for observing issue state updates.""" + STATE + """The channel ID for observing issue close references.""" + CLOSE_REFERENCES } """The possible states of an issue.""" enum IssueState { - """An issue that is still open""" - OPEN - """An issue that has been closed""" - CLOSED + """An issue that is still open""" + OPEN + """An issue that has been closed""" + CLOSED } """The possible state reasons of an issue.""" enum IssueStateReason { - """An issue that has been reopened""" - REOPENED - """An issue that has been closed as not planned""" - NOT_PLANNED - """An issue that has been closed as completed""" - COMPLETED + """An issue that has been reopened""" + REOPENED + """An issue that has been closed as not planned""" + NOT_PLANNED + """An issue that has been closed as completed""" + COMPLETED } """A repository issue template.""" type IssueTemplate { - """The template purpose.""" - about: String - """The suggested issue body.""" - body: String - """The template filename.""" - filename: String! - """The template name.""" - name: String! - """The suggested issue title.""" - title: String + """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( + """Ordering options for labels returned from the connection.""" + orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 template name.""" + name: String! + """The suggested issue title.""" + title: String } """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! + """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""" @@ -9266,10 +9916,10 @@ union IssueTimelineItem = AssignedEvent | ClosedEvent | Commit | CrossReferenced """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: IssueTimelineItem } """An item in an issue timeline""" @@ -9277,1050 +9927,1106 @@ union IssueTimelineItems = AddedToProjectEvent | AssignedEvent | ClosedEvent | C """The connection type for IssueTimelineItems.""" type IssueTimelineItemsConnection { - """Identifies the count of items after the focused item (`focus`).""" - afterFocusCount: Int! - """Identifies the count of items before the focused item (`focus`).""" - beforeFocusCount: Int! - """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! + """Identifies the count of items after the focused item (`focus`).""" + afterFocusCount: Int! + """Identifies the count of items before the focused item (`focus`).""" + beforeFocusCount: Int! + """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 + """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 comment on an Issue.""" - ISSUE_COMMENT - """Represents a mention made by one issue or pull request to another.""" - CROSS_REFERENCED_EVENT - """Represents a 'added_to_project' event on a given issue or pull request.""" - ADDED_TO_PROJECT_EVENT - """Represents an 'assigned' event on any assignable object.""" - ASSIGNED_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_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 '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 '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 'pinned' event on a given issue or pull request.""" - PINNED_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 '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 '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 a 'user_blocked' event on a given user.""" - USER_BLOCKED_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 comment on an Issue.""" + ISSUE_COMMENT + """Represents a mention made by one issue or pull request to another.""" + CROSS_REFERENCED_EVENT + """Represents a 'added_to_project' event on a given issue or pull request.""" + ADDED_TO_PROJECT_EVENT + """Represents an 'assigned' event on any assignable object.""" + ASSIGNED_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_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 '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 '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 'pinned' event on a given issue or pull request.""" + PINNED_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 '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 '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 a 'user_blocked' event on a given user.""" + USER_BLOCKED_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 signing up for a GitHub account.""" type JoinedGitHubContribution implements Contribution { - """ - 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! + """ + 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 { - """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 - id: ID! - """Indicates whether or not this is a default label.""" - isDefault: Boolean! - """A list of issues associated with this label.""" - issues( - """Ordering options for issues returned from the connection.""" - orderBy: IssueOrder - """A list of label names to filter the pull requests by.""" - labels: [String!] - """A list of states to filter the issues by.""" - states: [IssueState!] - """Filtering options for issues returned from the connection.""" - filterBy: IssueFilters - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """Identifies the label name.""" - name: String! - """A list of pull requests associated with this label.""" - pullRequests( - """A list of states to filter the pull requests by.""" - states: [PullRequestState!] - """A list of label names to filter the pull requests by.""" - labels: [String!] - """The head ref name to filter the pull requests by.""" - headRefName: String - """The base ref name to filter the pull requests by.""" - baseRefName: String - """Ordering options for pull requests returned from the connection.""" - orderBy: IssueOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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! + """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 + id: ID! + """Indicates whether or not this is a default label.""" + isDefault: Boolean! + """A list of issues associated with this label.""" + issues( + """Ordering options for issues returned from the connection.""" + orderBy: IssueOrder + """A list of label names to filter the pull requests by.""" + labels: [String!] + """A list of states to filter the issues by.""" + states: [IssueState!] + """Filtering options for issues returned from the connection.""" + filterBy: IssueFilters + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """Identifies the label name.""" + name: String! + """A list of pull requests associated with this label.""" + pullRequests( + """A list of states to filter the pull requests by.""" + states: [PullRequestState!] + """A list of label names to filter the pull requests by.""" + labels: [String!] + """The head ref name to filter the pull requests by.""" + headRefName: String + """The base ref name to filter the pull requests by.""" + baseRefName: String + """Ordering options for pull requests returned from the connection.""" + orderBy: IssueOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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! } """An object that can have labels assigned to it.""" interface Labelable { - """A list of labels associated with the object.""" - labels( - """Ordering options for labels returned from the connection.""" - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 + """A list of labels associated with the object.""" + labels( + """Ordering options for labels returned from the connection.""" + orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 + """Indicates if the viewer can edit labels for this object.""" + viewerCanLabel: Boolean! } """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! + """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! } """Represents a 'labeled' event on a given issue or pull request.""" type LabeledEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Identifies the label associated with the 'labeled' event.""" - label: Label! - """Identifies the `Labelable` associated with the event.""" - labelable: Labelable! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Identifies the label associated with the 'labeled' event.""" + label: Label! + """Identifies the `Labelable` associated with the event.""" + labelable: Labelable! } """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 + """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 { - """The field in which to order labels by.""" - field: LabelOrderField! - """The direction in which to order labels by the specified field.""" - direction: OrderDirection! + """The field in which to order labels by.""" + field: LabelOrderField! + """The direction in which to order labels by the specified field.""" + direction: OrderDirection! } """Properties by which label connections can be ordered.""" enum LabelOrderField { - """Order labels by name """ - NAME - """Order labels by creation time""" - CREATED_AT + """Order labels by name """ + NAME + """Order labels by creation time""" + CREATED_AT } """Represents a given language found in repositories.""" type Language implements Node { - """The color defined for the current language.""" - color: String - id: ID! - """The name of the current language.""" - name: String! + """The color defined for the current language.""" + color: String + 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! + """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! + cursor: String! + node: Language! + """The number of bytes of code written in the language.""" + size: Int! } """Ordering options for language connections.""" input LanguageOrder { - """The field to order languages by.""" - field: LanguageOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order languages by.""" + field: LanguageOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which language connections can be ordered.""" enum LanguageOrderField { - """Order languages by the size of all files containing the language""" - SIZE + """Order languages by the size of all files containing the language""" + SIZE } """A repository's open source license""" type License implements Node { - """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! - 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 """ - 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 """ - spdxId: String - """URL to the license on """ - url: URI + """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! + 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 """ + 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 """ + spdxId: String + """URL to the license on """ + url: URI } """Describes a License's conditions, permissions, and limitations""" type LicenseRule { - """A description of the rule""" - description: String! - """The machine-readable rule key""" - key: String! - """The human-readable rule label""" - label: String! + """A description of the rule""" + description: String! + """The machine-readable rule key""" + key: String! + """The human-readable rule label""" + label: String! } """A branch linked to an issue.""" type LinkedBranch implements Node { - id: ID! - """The branch's ref.""" - ref: Ref + id: ID! + """The branch's ref.""" + ref: Ref } """The connection type for LinkedBranch.""" 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: LinkedBranch } """Autogenerated input type of LinkIssueOrPullRequest""" input LinkIssueOrPullRequestInput { - """ID of the issue or pull request to link to.""" - baseIssueOrPullRequestId: ID! - """IDs of the issue or pull request to link.""" - linkingIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the issue or pull request to link to.""" + baseIssueOrPullRequestId: ID! + """IDs of the issue or pull request to link.""" + linkingIds: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of LinkIssueOrPullRequest""" type LinkIssueOrPullRequestPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Issues or pull requests linked to the base object.""" - linkedIssuesOrPullRequests: [IssueOrPullRequest!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Issues or pull requests linked to the base object.""" + linkedIssuesOrPullRequests: [IssueOrPullRequest!] } """Autogenerated input type of LinkProjectV2ToRepository""" input LinkProjectV2ToRepositoryInput { - """The ID of the project to link to the repository.""" - projectId: ID! - """The ID of the repository to link to the project.""" - repositoryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the project to link to the repository.""" + projectId: ID! + """The ID of the repository to link to the project.""" + repositoryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { + """The ID of the project to link to the team.""" + projectId: ID! + """The ID of the team to link to the project.""" + teamId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The ID of the Project to link to a Repository""" - projectId: ID! - """The ID of the Repository to link to a Project.""" - repositoryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to link to a Repository""" + projectId: ID! + """The ID of the Repository to link to a Project.""" + repositoryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 unique identifier for the client performing the mutation.""" + clientMutationId: String + """The linked Project.""" + project: Project + """The linked Repository.""" + repository: Repository } """An object that can be locked.""" interface Lockable { - """Reason that the conversation was locked.""" - activeLockReason: LockReason - """`true` if the object is locked""" - locked: Boolean! + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Reason that the conversation was locked (optional).""" - lockReason: LockReason - """Object that was locked.""" - lockable: Lockable! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Reason that the conversation was locked (optional).""" + lockReason: LockReason + """Object that was locked.""" + lockable: Lockable! } """Autogenerated input type of LockLockable""" input LockLockableInput { - """ID of the item to be locked.""" - lockableId: ID! - """A reason for why the item will be locked.""" - lockReason: LockReason - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the item to be locked.""" + lockableId: ID! + """A reason for why the item will be locked.""" + lockReason: LockReason + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """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 too heated.""" - TOO_HEATED - """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 off-topic.""" + OFF_TOPIC + """The issue or pull request was locked because the conversation was too heated.""" + TOO_HEATED + """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 } """A placeholder user for attribution of imported data on GitHub.""" type Mannequin implements Node & Actor & UniformResourceLocatable { - """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 - id: ID! - """The username of the actor.""" - login: 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 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 + id: ID! + """The username of the actor.""" + login: 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! +} + +"""The connection type for Mannequin.""" +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 { + """The field to order mannequins by.""" + field: MannequinOrderField! + """The ordering direction.""" + direction: OrderDirection! +} + +"""Properties by which mannequins can be ordered.""" +enum MannequinOrderField { + """Order mannequins alphabetically by their source login.""" + LOGIN + """Order mannequins why when they were created.""" + CREATED_AT } """Autogenerated input type of MarkDiscussionCommentAsAnswer""" input MarkDiscussionCommentAsAnswerInput { - """The Node ID of the discussion comment to mark as an answer.""" - id: ID! - """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! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The discussion that includes the chosen comment.""" + discussion: Discussion } """Represents a markdown file.""" type MarkdownFileType implements TextFile { - """The syntax highlighted html for the markdown.""" - contentHTML: HTML - """The raw content of the markdown.""" - contentRaw: String - """The lines for this file.""" - fileLines: [FileLine] + """The syntax highlighted html for the markdown.""" + contentHTML: HTML + """The raw content of the markdown.""" + contentRaw: String + """The lines for this file.""" + fileLines: [FileLine] } """Represents a 'marked_as_duplicate' event on a given issue or pull request.""" type MarkedAsDuplicateEvent implements Node { - """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 - id: ID! - """Canonical and duplicate belong to different repositories.""" - isCrossRepository: Boolean! + """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 + id: ID! + """Canonical and duplicate belong to different repositories.""" + isCrossRepository: Boolean! } """A public description of a Marketplace category.""" type MarketplaceCategory implements Node { - """The category's description.""" - description: String - """The technical description of how apps listed in this category work with GitHub.""" - howItWorks: String - 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! + """The category's description.""" + description: String + """The technical description of how apps listed in this category work with GitHub.""" + howItWorks: String + 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 { - """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! - 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! + """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! + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: MarketplaceListing } """Autogenerated input type of MarkFileAsViewed""" input MarkFileAsViewedInput { - """The Node ID of the pull request.""" - pullRequestId: ID! - """The path of the file to mark as viewed""" - path: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request.""" + pullRequestId: ID! + """The path of the file to mark as viewed""" + path: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkFileAsViewed""" type MarkFileAsViewedPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated pull request.""" - pullRequest: PullRequest + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated pull request.""" + pullRequest: PullRequest } """Autogenerated input type of MarkNotificationAsDone""" input MarkNotificationAsDoneInput { - """The NotificationThread id.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread id.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationAsDone""" type MarkNotificationAsDonePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user that the notification belongs to.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user that the notification belongs to.""" + viewer: User } """Autogenerated input type of MarkNotificationAsRead""" input MarkNotificationAsReadInput { - """The NotificationThread id.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread id.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationAsRead""" type MarkNotificationAsReadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user that the notification belongs to.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user that the notification belongs to.""" + viewer: User } """Autogenerated input type of MarkNotificationAsUndone""" input MarkNotificationAsUndoneInput { - """The NotificationThread id.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread id.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationAsUndone""" type MarkNotificationAsUndonePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user that the notification belongs to.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user that the notification belongs to.""" + viewer: User } """Autogenerated input type of MarkNotificationAsUnread""" input MarkNotificationAsUnreadInput { - """The NotificationThread id.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread id.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationAsUnread""" type MarkNotificationAsUnreadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user that the notification belongs to.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user that the notification belongs to.""" + viewer: User } """Autogenerated input type of MarkNotificationsAsDone""" input MarkNotificationsAsDoneInput { - """The NotificationThread IDs that will be marked as done.""" - ids: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread IDs that will be marked as done.""" + ids: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationsAsDone""" type MarkNotificationsAsDonePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of MarkNotificationsAsRead""" input MarkNotificationsAsReadInput { - """The NotificationThread IDs that will be marked as read.""" - ids: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread IDs that will be marked as read.""" + ids: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationsAsRead""" type MarkNotificationsAsReadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of MarkNotificationsAsUndone""" input MarkNotificationsAsUndoneInput { - """The NotificationThread IDs to be marked as undone.""" - ids: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread IDs to be marked as undone.""" + ids: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationsAsUndone""" type MarkNotificationsAsUndonePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of MarkNotificationsAsUnread""" input MarkNotificationsAsUnreadInput { - """The NotificationThread IDs that will be marked as unread.""" - ids: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The NotificationThread IDs that will be marked as unread.""" + ids: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationsAsUnread""" type MarkNotificationsAsUnreadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean } """Autogenerated input type of MarkNotificationSubjectAsRead""" input MarkNotificationSubjectAsReadInput { - """The id of the notification subject to mark as read.""" - subjectId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the notification subject to mark as read.""" + subjectId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MarkNotificationSubjectAsRead""" type MarkNotificationSubjectAsReadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user that the saved notification belongs to.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user that the saved notification belongs to.""" + viewer: User } """Autogenerated input type of MarkPullRequestReadyForReview""" input MarkPullRequestReadyForReviewInput { - """ID of the pull request to be marked as ready for review.""" - pullRequestId: ID! - """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! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The pull request that is ready for review.""" + pullRequest: PullRequest } """Audit log entry for a members_can_delete_repos.clear event.""" type MembersCanDeleteReposClearAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a members_can_delete_repos.disable event.""" type MembersCanDeleteReposDisableAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a members_can_delete_repos.enable event.""" type MembersCanDeleteReposEnableAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Entities that have members who can set status messages.""" interface MemberStatusable { - """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! + """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! } """An item that is mentionable on an issue/pull request""" @@ -10328,343 +11034,460 @@ union MentionableItem = Bot | Team | User """The connection type for MentionableItem.""" type MentionableItemConnection { - """A list of edges.""" - edges: [MentionableItemEdge] - """A list of nodes.""" - nodes: [MentionableItem] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [MentionableItemEdge] + """A list of nodes.""" + nodes: [MentionableItem] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type MentionableItemEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: MentionableItem + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: MentionableItem } """Represents a 'mentioned' event on a given issue or pull request.""" type MentionedEvent implements Node { - """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 - id: ID! + """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 + id: ID! } """An object that supports user or team mention suggestions.""" interface MentionSuggestable { - """A list of mentionable items that can be mentioned in the context of this object.""" - mentionableItems( - """Filters users, teams with query on mentionable items""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): MentionableItemConnection + """A list of mentionable items that can be mentioned in the context of this object.""" + mentionableItems( + """Filters users, teams with query on mentionable items""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): MentionableItemConnection } """Whether or not a PullRequest can be merged.""" enum MergeableState { - """The pull request can be merged.""" - MERGEABLE - """The pull request cannot be merged due to merge conflicts.""" - CONFLICTING - """The mergeability of the pull request is still being calculated.""" - UNKNOWN + """The pull request can be merged.""" + MERGEABLE + """The pull request cannot be merged due to merge conflicts.""" + CONFLICTING + """The mergeability of the pull request is still being calculated.""" + UNKNOWN } """Autogenerated input type of MergeBranch""" input MergeBranchInput { - """The Node ID of the Repository containing the base branch that will be modified.""" - repositoryId: ID! - """The name of the base branch that the provided head will be merged into.""" - base: String! - """The head to merge into the base branch. This can be a branch name or a commit GitObjectID.""" - head: String! - """Message to use for the merge commit. If omitted, a default will be used.""" - commitMessage: String - """The email address to associate with this commit.""" - authorEmail: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the Repository containing the base branch that will be modified.""" + repositoryId: ID! + """The name of the base branch that the provided head will be merged into.""" + base: String! + """The head to merge into the base branch. This can be a branch name or a commit GitObjectID.""" + head: String! + """Message to use for the merge commit. If omitted, a default will be used.""" + commitMessage: String + """The email address to associate with this commit.""" + authorEmail: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MergeBranch""" type MergeBranchPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The resulting merge Commit.""" - mergeCommit: Commit + """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 { - """Default to the pull request's title.""" - PR_TITLE - """Default to the pull request's body.""" - PR_BODY - """Default to a blank commit message.""" - BLANK + """Default to the pull request's title.""" + PR_TITLE + """Default to the pull request's body.""" + PR_BODY + """Default to a blank commit message.""" + BLANK } """The possible default commit titles for merges.""" enum MergeCommitTitle { - """Default to the pull request's title.""" - PR_TITLE - """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 + """Default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).""" + MERGE_MESSAGE } """Represents a 'merged' event on a given pull request.""" type MergedEvent implements Node & UniformResourceLocatable { - """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! - 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! + """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! + 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! } """A feed item representing the act of an open source pull request being merged""" type MergedPullRequestFeedItem implements FeedItemDisplayable { - """The author of the pull request""" - actor: User! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The pull request that was merged""" - pullRequest: PullRequest! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """The author of the pull request""" + actor: User! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The pull request that was merged""" + pullRequest: PullRequest! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """Autogenerated input type of MergePullRequest""" input MergePullRequestInput { - """ID of the pull request to be merged.""" - pullRequestId: ID! - """Commit headline to use for the merge commit; if omitted, a default message will be used.""" - commitHeadline: String - """Commit body to use for the merge commit; if omitted, a default message will be used""" - commitBody: 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 - """The email address to associate with this merge.""" - authorEmail: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the pull request to be merged.""" + pullRequestId: ID! + """Commit headline to use for the merge commit; if omitted, a default message will be used.""" + commitHeadline: String + """Commit body to use for the merge commit; if omitted, a default message will be used""" + commitBody: 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 + """The email address to associate with this merge.""" + authorEmail: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { + """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 + 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 { + """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 { + """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 + 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! } -"""Represents an Octoshift migration.""" +"""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 { + """The entry is currently queued.""" + QUEUED + """The entry is currently waiting for checks to pass.""" + AWAITING_CHECKS + """The entry is currently mergeable.""" + MERGEABLE + """The entry is currently unmergeable.""" + UNMERGEABLE + """The entry is currently locked.""" + LOCKED +} + +"""The possible merging strategies for a merge queue.""" +enum MergeQueueMergingStrategy { + """Entries only allowed to merge if they are passing.""" + ALLGREEN + """Failing Entires are allowed to merge if they are with a passing entry.""" + HEADGREEN +} + +"""Represents a GitHub Enterprise Importer (GEI) migration.""" interface Migration { - """The Octoshift 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 - id: ID! - """The URL for the migration log (expires 1 day after migration completes).""" - migrationLogUrl: URI - """The Octoshift migration source.""" - migrationSource: MigrationSource! - """The target repository name.""" - repositoryName: String! - """The Octoshift migration source URL.""" - sourceUrl: URI! - """The Octoshift migration state.""" - state: MigrationState! -} - -"""An Octoshift migration source.""" + """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 + 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! +} + +"""A GitHub Enterprise Importer (GEI) migration source.""" type MigrationSource implements Node { - id: ID! - """The Octoshift migration source name.""" - name: String! - """The Octoshift migration source type.""" - type: MigrationSourceType! - """The Octoshift migration source URL.""" - url: URI! + 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 Octoshift migration sources.""" +"""Represents the different GitHub Enterprise Importer (GEI) migration sources.""" enum MigrationSourceType { - """An Azure DevOps migration source.""" - AZURE_DEVOPS - """A Bitbucket Server migration source.""" - BITBUCKET_SERVER - """A GitHub Migration API source.""" - GITHUB_ARCHIVE + """An Azure DevOps migration source.""" + AZURE_DEVOPS + """A Bitbucket Server migration source.""" + BITBUCKET_SERVER + """A GitHub Migration API source.""" + GITHUB_ARCHIVE } -"""The Octoshift migration state.""" +"""The GitHub Enterprise Importer (GEI) migration state.""" enum MigrationState { - """The Octoshift migration has not started.""" - NOT_STARTED - """The Octoshift migration has been queued.""" - QUEUED - """The Octoshift migration is in progress.""" - IN_PROGRESS - """The Octoshift migration has succeeded.""" - SUCCEEDED - """The Octoshift migration has failed.""" - FAILED - """The Octoshift migration needs to have its credentials validated.""" - PENDING_VALIDATION - """The Octoshift migration has invalid credentials.""" - FAILED_VALIDATION + """The migration has not started.""" + NOT_STARTED + """The migration has been queued.""" + QUEUED + """The migration is in progress.""" + IN_PROGRESS + """The migration has succeeded.""" + SUCCEEDED + """The migration has failed.""" + FAILED + """The migration needs to have its credentials validated.""" + PENDING_VALIDATION + """The migration has invalid credentials.""" + FAILED_VALIDATION } """Represents a Milestone object on a given repository.""" type Milestone implements Node & Closable & UniformResourceLocatable { - """`true` 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 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 - """Identifies the due date of the milestone.""" - dueOn: DateTime - id: ID! - """A list of issues associated with the milestone.""" - issues( - """Ordering options for issues returned from the connection.""" - orderBy: IssueOrder - """A list of label names to filter the pull requests by.""" - labels: [String!] - """A list of states to filter the issues by.""" - states: [IssueState!] - """Filtering options for issues returned from the connection.""" - filterBy: IssueFilters - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """Identifies the number of the milestone.""" - number: Int! - """Identifies the percentage complete for the milestone""" - progressPercentage: Float! - """A list of pull requests associated with the milestone.""" - pullRequests( - """A list of states to filter the pull requests by.""" - states: [PullRequestState!] - """A list of label names to filter the pull requests by.""" - labels: [String!] - """The head ref name to filter the pull requests by.""" - headRefName: String - """The base ref name to filter the pull requests by.""" - baseRefName: String - """Ordering options for pull requests returned from the connection.""" - orderBy: IssueOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 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 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 + """Identifies the due date of the milestone.""" + dueOn: DateTime + id: ID! + """A list of issues associated with the milestone.""" + issues( + """Ordering options for issues returned from the connection.""" + orderBy: IssueOrder + """A list of label names to filter the pull requests by.""" + labels: [String!] + """A list of states to filter the issues by.""" + states: [IssueState!] + """Filtering options for issues returned from the connection.""" + filterBy: IssueFilters + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """Identifies the number of the milestone.""" + number: Int! + """Identifies the percentage complete for the milestone""" + progressPercentage: Float! + """A list of pull requests associated with the milestone.""" + pullRequests( + """A list of states to filter the pull requests by.""" + states: [PullRequestState!] + """A list of label names to filter the pull requests by.""" + labels: [String!] + """The head ref name to filter the pull requests by.""" + headRefName: String + """The base ref name to filter the pull requests by.""" + baseRefName: String + """Ordering options for pull requests returned from the connection.""" + orderBy: IssueOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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! + """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! } """Represents a 'milestoned' event on a given issue or pull request.""" type MilestonedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Identifies the milestone title associated with the 'milestoned' event.""" - milestoneTitle: String! - """Object referenced by event.""" - subject: MilestoneItem! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Identifies the milestone title associated with the 'milestoned' event.""" + milestoneTitle: String! + """Object referenced by event.""" + subject: MilestoneItem! } """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 + """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.""" @@ -10672,431 +11495,437 @@ union MilestoneItem = Issue | PullRequest """Ordering options for milestone connections.""" input MilestoneOrder { - """The field to order milestones by.""" - field: MilestoneOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order milestones by.""" + field: MilestoneOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which milestone connections can be ordered.""" enum MilestoneOrderField { - """Order milestones by when they are due.""" - DUE_DATE - """Order milestones by when they were created.""" - CREATED_AT - """Order milestones by when they were last updated.""" - UPDATED_AT - """Order milestones by their number.""" - NUMBER + """Order milestones by when they are due.""" + DUE_DATE + """Order milestones by when they were created.""" + CREATED_AT + """Order milestones by when they were last updated.""" + UPDATED_AT + """Order milestones by their number.""" + NUMBER } """The possible states of a milestone.""" enum MilestoneState { - """A milestone that is still open.""" - OPEN - """A milestone that has been closed.""" - CLOSED + """A milestone that is still open.""" + OPEN + """A milestone that has been closed.""" + CLOSED } """Entities that can be minimized.""" interface Minimizable { - """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` and `spam`. 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! + """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` and `spam`. 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! } """Autogenerated input type of MinimizeComment""" input MinimizeCommentInput { - """The Node ID of the subject to modify.""" - subjectId: ID! - """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! + """The classification of comment""" + classifier: ReportedContentClassifiers! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The comment that was minimized.""" + minimizedComment: Minimizable } """Represents the different mobile actions.""" enum MobileAppAction { - """Event came from a press""" - PRESS - """Event came from a swipe""" - SWIPE - """Event came from a left swipe RTL""" - LEFT_SWIPE - """Event came from a right swipe LTR""" - RIGHT_SWIPE - """Event came from a long press""" - LONG_PRESS - """Event came from a gesture""" - GESTURE - """Event came from a key command""" - KEY_COMMAND + """Event came from a press""" + PRESS + """Event came from a swipe""" + SWIPE + """Event came from a left swipe RTL""" + LEFT_SWIPE + """Event came from a right swipe LTR""" + RIGHT_SWIPE + """Event came from a long press""" + LONG_PRESS + """Event came from a gesture""" + GESTURE + """Event came from a key command""" + KEY_COMMAND } """Represents the different mobile elements.""" enum MobileAppElement { - """The viewer has initiated a pull to refresh gesture""" - VIEWER_PULL_TO_REFRESH - """A filter on the list of discussions related to the repository""" - REPOSITORY_DISCUSSIONS_LIST_FILTER - """A filter on the list of discussions related to the viewer""" - VIEWER_DISCUSSIONS_LIST_FILTER - """Explore button in the bottom navigation""" - EXPLORE_BOTTOM_NAVIGATION - """A trending repository on explore""" - EXPLORE_TRENDING_REPOSITORY - """A for you repository on explore""" - EXPLORE_FOR_YOU_REPOSITORY - """A featured repository on explore""" - EXPLORE_FEATURED_REPOSITORY - """A trending repository star button on explore""" - EXPLORE_STAR_TRENDING_REPOSITORY - """A for you repository star button on explore""" - EXPLORE_STAR_FOR_YOU_REPOSITORY - """A featured repository star button on explore""" - EXPLORE_STAR_FEATURED_REPOSITORY - """Trending list filter bar on explore""" - EXPLORE_TRENDING_LIST_FILTER - """A repository star button""" - STAR_REPOSITORY - """Show more button on a rollup""" - SHOW_MORE_ROLLUP - """A follow button""" - FOLLOW - """Home button in the bottom navigation""" - HOME_BOTTOM_NAVIGATION - """An item in the Favorites list in Home""" - HOME_FAVORITE_REPOSITORY_ITEM - """Global list of issues for a user on home""" - HOME_ISSUES - """Global list of pull requests for a user on home""" - HOME_PULL_REQUESTS - """Global list of repositories for a user on home""" - HOME_REPOSITORIES - """Global list of organizations for a user on home""" - HOME_ORGANIZATIONS - """Create issue button on home""" - HOME_CREATE_ISSUE - """An item in the Recent activity list in Home""" - HOME_RECENT_ACTIVITY_ITEM - """Release notes banner on home""" - HOME_RELEASE_NOTES - """Global list of discussions for a user on home""" - HOME_DISCUSSIONS - """Global list of starred repositories for a user on home""" - HOME_STARRED - """Global list of shortcuts for a user on home""" - HOME_SHORTCUTS - """A list item in the notification list.""" - NOTIFICATION_LIST_ITEM - """Undo button when a notification is swiped.""" - NOTIFICATION_LIST_ITEM_UNDO - """A filter on the list of notifications""" - NOTIFICATION_LIST_FILTER - """Filter button on notification screen.""" - NOTIFICATION_FILTER - """Notification button in the bottom navigation.""" - NOTIFICATION_BOTTOM_NAVIGATION - """A push notification sent to a device.""" - NOTIFICATION_PUSH - """A list item in the issues list.""" - ISSUES_LIST_ITEM - """A filter on the list of issues related to the user.""" - VIEWER_ISSUES_LIST_FILTER - """A filter on the list of issues related to the repository.""" - REPOSITORY_ISSUES_LIST_FILTER - """The issue composer.""" - ISSUE_COMPOSER - """The issues search bar.""" - ISSUES_SEARCH - """Profile button in the bottom navigation""" - PROFILE_BOTTOM_NAVIGATION - """A list item in the projects list.""" - PROJECTS_LIST_ITEM - """A list item in the table view of a project.""" - PROJECTS_TABLE_VIEW_LIST_ITEM - """Open details of an item in a project""" - PROJECTS_QUICK_ACTION_OPEN_DETAILS - """The edit field quick action for an item in a project""" - PROJECTS_QUICK_ACTION_EDIT_FIELD - """The edit title quick action for an item in a project""" - PROJECTS_QUICK_ACTION_EDIT_TITLE - """The close quick action for an item in a project""" - PROJECTS_QUICK_ACTION_CLOSE - """The re-open quick action for an item in a project""" - PROJECTS_QUICK_ACTION_REOPEN - """The delete quick action for an item in a project""" - PROJECTS_QUICK_ACTION_DELETE - """The other projects quick action for an item in a project""" - PROJECTS_QUICK_ACTION_OTHER_PROJECTS - """The project view""" - PROJECT_VIEW - """The CTA displayed when the API responds with a timeout loading a project view""" - PROJECT_VIEW_TIMEOUT_CTA - """A list item in the pull requests list.""" - PULL_REQUESTS_LIST_ITEM - """A filter on the list of pull requests related to the user.""" - VIEWER_PULL_REQUESTS_LIST_FILTER - """A filter on the list of pull requests related to the repository.""" - REPOSITORY_PULL_REQUESTS_LIST_FILTER - """The pull requests search bar.""" - PULL_REQUESTS_SEARCH - """Triage sheet.""" - TRIAGE_EXPAND - """Triage sheet comment button.""" - TRIAGE_COMMENT - """Triage sheet comment up button.""" - TRIAGE_COMMENT_UP - """Triage sheet comment down button.""" - TRIAGE_COMMENT_DOWN - """Triage sheet comment edit.""" - TRIAGE_COMMENT_EDIT - """Triage sheet review request edit.""" - TRIAGE_REVIEW_REQUEST_EDIT - """Triage sheet assignee edit.""" - TRIAGE_ASSIGNEE_EDIT - """Triage sheet label edit.""" - TRIAGE_LABEL_EDIT - """Triage sheet linked item edit.""" - TRIAGE_LINKED_ITEM_EDIT - """Triage sheet project edit.""" - TRIAGE_PROJECT_EDIT - """Triage sheet project next edit.""" - TRIAGE_PROJECT_NEXT_EDIT - """Triage sheet project next recent tab picker.""" - TRIAGE_PROJECT_NEXT_PICKER_RECENT - """Triage sheet project next owner tab picker.""" - TRIAGE_PROJECT_NEXT_PICKER_OWNER - """Triage sheet milestone edit.""" - TRIAGE_MILESTONE_EDIT - """Triage sheet close button.""" - TRIAGE_CLOSE - """Triage sheet lock button.""" - TRIAGE_LOCK - """Triage sheet unsubscribe button.""" - TRIAGE_UNSUBSCRIBE - """Legacy push notifications onboarding banner.""" - ONBOARDING_BANNER - """Notifications onboarding banner, including configuring push notifications, swipe settings and push schedules.""" - NOTIFICATIONS_ONBOARDING_BANNER - """A list item in the shortcuts list.""" - SHORTCUTS_LIST_ITEM - """A list item in the shortcut suggestions list.""" - SHORTCUT_SUGGESTIONS_LIST_ITEM - """A latest release on a repository.""" - REPOSITORY_LATEST_RELEASE - """A latest release on a list of releases.""" - RELEASES_LIST_LATEST_RELEASE - """Release asset download button.""" - RELEASE_DOWNLOAD_ASSET - """A linked discussion to a release.""" - RELEASE_LINKED_DISCUSSION - """A filter on the list of repositories related to the user or the organization""" - PROFILE_REPOSITORY_LIST_FILTER - """A filter on the ranked list of repositories related to the viewer.""" - HOME_REPOSITORY_LIST_FILTER + """The viewer has initiated a pull to refresh gesture""" + VIEWER_PULL_TO_REFRESH + """A filter on the list of discussions related to the repository""" + REPOSITORY_DISCUSSIONS_LIST_FILTER + """A filter on the list of discussions related to the viewer""" + VIEWER_DISCUSSIONS_LIST_FILTER + """Explore button in the bottom navigation""" + EXPLORE_BOTTOM_NAVIGATION + """A trending repository on explore""" + EXPLORE_TRENDING_REPOSITORY + """A for you repository on explore""" + EXPLORE_FOR_YOU_REPOSITORY + """A featured repository on explore""" + EXPLORE_FEATURED_REPOSITORY + """A trending repository star button on explore""" + EXPLORE_STAR_TRENDING_REPOSITORY + """A for you repository star button on explore""" + EXPLORE_STAR_FOR_YOU_REPOSITORY + """A featured repository star button on explore""" + EXPLORE_STAR_FEATURED_REPOSITORY + """Trending list filter bar on explore""" + EXPLORE_TRENDING_LIST_FILTER + """A repository star button""" + STAR_REPOSITORY + """Show more button on a rollup""" + SHOW_MORE_ROLLUP + """A follow button""" + FOLLOW + """Home button in the bottom navigation""" + HOME_BOTTOM_NAVIGATION + """An item in the Favorites list in Home""" + HOME_FAVORITE_REPOSITORY_ITEM + """Global list of issues for a user on home""" + HOME_ISSUES + """Global list of pull requests for a user on home""" + HOME_PULL_REQUESTS + """Global list of repositories for a user on home""" + HOME_REPOSITORIES + """Global list of organizations for a user on home""" + HOME_ORGANIZATIONS + """Create issue button on home""" + HOME_CREATE_ISSUE + """An item in the Recent activity list in Home""" + HOME_RECENT_ACTIVITY_ITEM + """Release notes banner on home""" + HOME_RELEASE_NOTES + """Global list of discussions for a user on home""" + HOME_DISCUSSIONS + """Global list of starred repositories for a user on home""" + HOME_STARRED + """Global list of shortcuts for a user on home""" + HOME_SHORTCUTS + """A list item in the notification list.""" + NOTIFICATION_LIST_ITEM + """Undo button when a notification is swiped.""" + NOTIFICATION_LIST_ITEM_UNDO + """A filter on the list of notifications""" + NOTIFICATION_LIST_FILTER + """Filter button on notification screen.""" + NOTIFICATION_FILTER + """Notification button in the bottom navigation.""" + NOTIFICATION_BOTTOM_NAVIGATION + """A push notification sent to a device.""" + NOTIFICATION_PUSH + """A list item in the issues list.""" + ISSUES_LIST_ITEM + """A filter on the list of issues related to the user.""" + VIEWER_ISSUES_LIST_FILTER + """A filter on the list of issues related to the repository.""" + REPOSITORY_ISSUES_LIST_FILTER + """The issue composer.""" + ISSUE_COMPOSER + """The issues search bar.""" + ISSUES_SEARCH + """Profile button in the bottom navigation""" + PROFILE_BOTTOM_NAVIGATION + """A list item in the projects list.""" + PROJECTS_LIST_ITEM + """A list item in the table view of a project.""" + PROJECTS_TABLE_VIEW_LIST_ITEM + """Open details of an item in a project""" + PROJECTS_QUICK_ACTION_OPEN_DETAILS + """The edit field quick action for an item in a project""" + PROJECTS_QUICK_ACTION_EDIT_FIELD + """The edit title quick action for an item in a project""" + PROJECTS_QUICK_ACTION_EDIT_TITLE + """The close quick action for an item in a project""" + PROJECTS_QUICK_ACTION_CLOSE + """The re-open quick action for an item in a project""" + PROJECTS_QUICK_ACTION_REOPEN + """The delete quick action for an item in a project""" + PROJECTS_QUICK_ACTION_DELETE + """The other projects quick action for an item in a project""" + PROJECTS_QUICK_ACTION_OTHER_PROJECTS + """The project view""" + PROJECT_VIEW + """The CTA displayed when the API responds with a timeout loading a project view""" + PROJECT_VIEW_TIMEOUT_CTA + """A list item in the pull requests list.""" + PULL_REQUESTS_LIST_ITEM + """A filter on the list of pull requests related to the user.""" + VIEWER_PULL_REQUESTS_LIST_FILTER + """A filter on the list of pull requests related to the repository.""" + REPOSITORY_PULL_REQUESTS_LIST_FILTER + """The pull requests search bar.""" + PULL_REQUESTS_SEARCH + """Triage sheet.""" + TRIAGE_EXPAND + """Triage sheet comment button.""" + TRIAGE_COMMENT + """Triage sheet comment up button.""" + TRIAGE_COMMENT_UP + """Triage sheet comment down button.""" + TRIAGE_COMMENT_DOWN + """Triage sheet comment edit.""" + TRIAGE_COMMENT_EDIT + """Triage sheet review request edit.""" + TRIAGE_REVIEW_REQUEST_EDIT + """Triage sheet assignee edit.""" + TRIAGE_ASSIGNEE_EDIT + """Triage sheet label edit.""" + TRIAGE_LABEL_EDIT + """Triage sheet linked item edit.""" + TRIAGE_LINKED_ITEM_EDIT + """Triage sheet project edit.""" + TRIAGE_PROJECT_EDIT + """Triage sheet project next edit.""" + TRIAGE_PROJECT_NEXT_EDIT + """Triage sheet project next recent tab picker.""" + TRIAGE_PROJECT_NEXT_PICKER_RECENT + """Triage sheet project next owner tab picker.""" + TRIAGE_PROJECT_NEXT_PICKER_OWNER + """Triage sheet milestone edit.""" + TRIAGE_MILESTONE_EDIT + """Triage sheet close button.""" + TRIAGE_CLOSE + """Triage sheet lock button.""" + TRIAGE_LOCK + """Triage sheet unsubscribe button.""" + TRIAGE_UNSUBSCRIBE + """Legacy push notifications onboarding banner.""" + ONBOARDING_BANNER + """Notifications onboarding banner, including configuring push notifications, swipe settings and push schedules.""" + NOTIFICATIONS_ONBOARDING_BANNER + """A list item in the shortcuts list.""" + SHORTCUTS_LIST_ITEM + """A list item in the shortcut suggestions list.""" + SHORTCUT_SUGGESTIONS_LIST_ITEM + """A latest release on a repository.""" + REPOSITORY_LATEST_RELEASE + """A latest release on a list of releases.""" + RELEASES_LIST_LATEST_RELEASE + """Release asset download button.""" + RELEASE_DOWNLOAD_ASSET + """A linked discussion to a release.""" + RELEASE_LINKED_DISCUSSION + """A filter on the list of repositories related to the user or the organization""" + PROFILE_REPOSITORY_LIST_FILTER + """A filter on the ranked list of repositories related to the viewer.""" + HOME_REPOSITORY_LIST_FILTER + """Option to disable sending analytics data""" + SETTINGS_DISABLE_ANALYTICS } """Represents the different mobile applications.""" enum MobileAppType { - """Event came from Android app""" - ANDROID - """Event came from iOS app""" - IOS + """Event came from Android app""" + ANDROID + """Event came from iOS app""" + IOS } """Represents an active auth request for user.""" type MobileAuthRequest { - """Whether the auth request requires a user input challenge in order to approve.""" - challengeRequired: Boolean! - """The ID associated with the mobile auth request.""" - id: Int! - """The random payload (base64 encoded) provided to the mobile device to be signed for mobile device auth.""" - payload: String! - """The type of the mobile auth request.""" - type: MobileAuthRequestType! + """Whether the auth request requires a user input challenge in order to approve.""" + challengeRequired: Boolean! + """The ID associated with the mobile auth request.""" + id: Int! + """The random payload (base64 encoded) provided to the mobile device to be signed for mobile device auth.""" + payload: String! + """The type of the mobile auth request.""" + type: MobileAuthRequestType! } """Represents the different mobile auth request types.""" enum MobileAuthRequestType { - """The request came from an unknown flow.""" - UNKNOWN - """The request came from the two factor login flow.""" - TWO_FACTOR_LOGIN - """The request came from the device verification flow.""" - DEVICE_VERIFICATION - """The request came from the two factor password reset flow.""" - TWO_FACTOR_PASSWORD_RESET - """The request came from the Sudo challenge.""" - TWO_FACTOR_SUDO_CHALLENGE + """The request came from an unknown flow.""" + UNKNOWN + """The request came from the two factor login flow.""" + TWO_FACTOR_LOGIN + """The request came from the device verification flow.""" + DEVICE_VERIFICATION + """The request came from the two factor password reset flow.""" + TWO_FACTOR_PASSWORD_RESET + """The request came from the Sudo challenge.""" + TWO_FACTOR_SUDO_CHALLENGE } """Represents the status of the mobile device auth for the user.""" type MobileAuthStatus { - """The active auth request for the user, if any.""" - activeAuthRequest: MobileAuthRequest - """Whether the requestor has a valid device key. The requestor can use this to determine ahead of time that approving or rejecting the returned auth request will fail.""" - hasValidDeviceAuthKey: Boolean! + """The active auth request for the user, if any.""" + activeAuthRequest: MobileAuthRequest + """Whether the requestor has a valid device key. The requestor can use this to determine ahead of time that approving or rejecting the returned auth request will fail.""" + hasValidDeviceAuthKey: Boolean! } """The type of mobile device key that the device is registering""" enum MobileDeviceKeyType { - """An auth mobile device key can be used for authentication mechanisms like two factor authentication""" - AUTH - """A recovery mobile device key can be used for account recovery""" - RECOVERY + """An auth mobile device key can be used for authentication mechanisms like two factor authentication""" + AUTH + """A recovery mobile device key can be used for account recovery""" + RECOVERY } """Represents the different mobile devices.""" enum MobileDeviceType { - """Event came from a phone device.""" - PHONE - """Event came from a tablet device.""" - TABLET + """Event came from a phone device.""" + PHONE + """Event came from a tablet device.""" + TABLET } """Represents the different extra mobile context.""" enum MobileEventContext { - """The notification was marked as saved.""" - SAVE - """The notification was marked as saved.""" - UNSAVE - """The notification was marked as done.""" - DONE - """The notification was marked as undone.""" - UNDONE - """The notification was marked as read.""" - READ - """The notification was marked as unread.""" - UNREAD - """The notification list was subscribed to.""" - SUBSCRIBE - """The notification list was unsubscribed from.""" - UNSUBSCRIBE - """The issue or pull request was created by the user.""" - CREATED - """The issue or pull request was assigned to the user.""" - ASSIGNED - """The issue or pull request mentioned the user.""" - MENTIONED - """The pull request requested review from the user.""" - REVIEW_REQUESTED - """The issue or pull request is closed.""" - CLOSED - """The issue or pull request is open.""" - OPEN - """Release notes have been displayed to a user""" - DISPLAYED - """A banner (release notes, feature onboarding, etc.) dismissed by a user""" - DISMISSED - """A banner (release notes, feature onboarding, etc.) has been opened by a user""" - OPENED - """An action on an item that is trending""" - TRENDING - """An action on an item as part of the default Awesome Lists topic""" - AWESOME - """An action on an item that is part of the user's feed""" - FEED + """The notification was marked as saved.""" + SAVE + """The notification was marked as saved.""" + UNSAVE + """The notification was marked as done.""" + DONE + """The notification was marked as undone.""" + UNDONE + """The notification was marked as read.""" + READ + """The notification was marked as unread.""" + UNREAD + """The notification list was subscribed to.""" + SUBSCRIBE + """The notification list was unsubscribed from.""" + UNSUBSCRIBE + """The issue or pull request was created by the user.""" + CREATED + """The issue or pull request was assigned to the user.""" + ASSIGNED + """The issue or pull request mentioned the user.""" + MENTIONED + """The pull request requested review from the user.""" + REVIEW_REQUESTED + """The issue or pull request is closed.""" + CLOSED + """The issue or pull request is open.""" + OPEN + """Release notes have been displayed to a user""" + DISPLAYED + """A banner (release notes, feature onboarding, etc.) dismissed by a user""" + DISMISSED + """A banner (release notes, feature onboarding, etc.) has been opened by a user""" + OPENED + """An action on an item that is trending""" + TRENDING + """An action on an item as part of the default Awesome Lists topic""" + AWESOME + """An action on an item that is part of the user's feed""" + FEED } """Autogenerated input type of MobileEventsUpdate""" input MobileEventsUpdateInput { - """An array of hydro events.""" - eventsBatch: [MobileHydroEvent!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """An array of hydro events.""" + eventsBatch: [MobileHydroEvent!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MobileEventsUpdate""" type MobileEventsUpdatePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The user who posted the events.""" - user: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The user who posted the events.""" + user: User } """Details about a hydro event.""" input MobileHydroEvent { - """The element of the event that took place on.""" - appElement: MobileAppElement! - """The app type the event took place on.""" - appType: MobileAppType! - """The device type the event took place on.""" - deviceType: MobileDeviceType! - """The action that was performed.""" - action: MobileAppAction! - """The time the event was performed.""" - performedAt: DateTime! - """The device type the event took place on.""" - subjectType: MobileSubjectType - """Extra context provided for the mobile event""" - context: MobileEventContext + """The element of the event that took place on.""" + appElement: MobileAppElement! + """The app type the event took place on.""" + appType: MobileAppType! + """The device type the event took place on.""" + deviceType: MobileDeviceType! + """The action that was performed.""" + action: MobileAppAction! + """The time the event was performed.""" + performedAt: DateTime! + """The device type the event took place on.""" + subjectType: MobileSubjectType + """Extra context provided for the mobile event""" + context: MobileEventContext } """Locales necessary to support to provide server-side localized achievement text to mobile clients.""" enum MobileLocale { - """English (US)""" - EN + """English (US)""" + EN } """A push notifications schedule for a user.""" type MobilePushNotificationSchedule implements Node { - """The schedule day.""" - day: DayOfWeek! - """The schedule end time (0:00..23:59)""" - endTime: MobilePushScheduleTime! - id: ID! - """The schedule start time (0:00..23:59)""" - startTime: MobilePushScheduleTime! - """The user's time zone name""" - timeZone: String! + """The schedule day.""" + day: DayOfWeek! + """The schedule end time (0:00..23:59)""" + endTime: MobilePushScheduleTime! + id: ID! + """The schedule start time (0:00..23:59)""" + startTime: MobilePushScheduleTime! + """The user's time zone name""" + timeZone: String! } """The connection type for MobilePushNotificationSchedule.""" type MobilePushNotificationScheduleConnection { - """A list of edges.""" - edges: [MobilePushNotificationScheduleEdge] - """A list of nodes.""" - nodes: [MobilePushNotificationSchedule] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [MobilePushNotificationScheduleEdge] + """A list of nodes.""" + nodes: [MobilePushNotificationSchedule] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type MobilePushNotificationScheduleEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: MobilePushNotificationSchedule + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: MobilePushNotificationSchedule } """The viewer's mobile push notification settings""" type MobilePushNotificationSettings { - """Does the viewer get mobile push notifications for issues or pull requests in which they assigned?""" - getsAssignments: Boolean! - """Does the viewer get mobile push notifications for deployment requests?""" - getsDeploymentRequests: Boolean! - """Does the viewer get mobile push notifications for comments in which they are directly mentioned?""" - getsDirectMentions: Boolean! - """Does the viewer get mobile push notifications when their pull requests have been reviewed?""" - getsPullRequestReviews: Boolean! - """Does the viewer get mobile push notifications for pull requests in which their review was requested?""" - getsReviewRequests: Boolean! - """Does the viewer have scheduled push notifications enabled/disabled?""" - scheduledNotifications: Boolean! + """Does the viewer get mobile push notifications for issues or pull requests in which they assigned?""" + getsAssignments: Boolean! + """Does the viewer get mobile push notifications when their CI activity state changes?""" + getsCiActivity: Boolean! + """Does the viewer get mobile push notifications for CI activity only when it fails?""" + getsCiFailedOnly: Boolean! + """Does the viewer get mobile push notifications for deployment requests?""" + getsDeploymentRequests: Boolean! + """Does the viewer get mobile push notifications for comments in which they are directly mentioned?""" + getsDirectMentions: Boolean! + """Does the viewer get mobile push notifications when their pull requests have been reviewed?""" + getsPullRequestReviews: Boolean! + """Does the viewer get mobile push notifications for pull requests in which their review was requested?""" + getsReviewRequests: Boolean! + """Does the viewer have scheduled push notifications enabled/disabled?""" + scheduledNotifications: Boolean! } """A string representing the time of day with format HH:MM. eg. 00:00...23:59""" @@ -11104,1668 +11933,1800 @@ scalar MobilePushScheduleTime """Represents the different mobile subject types.""" enum MobileSubjectType { - """The subject of the event is a check suite.""" - CHECK_SUITE - """The subject of the event is a commit.""" - COMMIT - """The subject of the event is a list of commits.""" - COMMITS - """The subject of the event is a deployment review.""" - DEPLOYMENT_REVIEW - """The subject of the event is a draft issue.""" - DRAFT_ISSUE - """The subject of the event is a discussion.""" - DISCUSSION - """The subject of the event is a list of discussions.""" - DISCUSSIONS - """The subject of the event is an author filter.""" - FILTER_AUTHOR - """The subject of the event is an assignee filter.""" - FILTER_ASSIGNEE - """The subject of the event is a discussion category filter.""" - FILTER_DISCUSSION_CATEGORY - """The subject of the event is a discussion unanswered filter.""" - FILTER_DISCUSSION_IS_UNANSWERED - """The subject of the event is a discussion sort filter.""" - FILTER_DISCUSSION_TOP - """The subject of the event is a discussion viewer filter.""" - FILTER_DISCUSSION_VIEWER - """The subject of the event is an issue status filter.""" - FILTER_ISSUE_STATUS - """The subject of the event is an issue viewer filter.""" - FILTER_ISSUE_VIEWER - """The subject of the event is a label filter.""" - FILTER_LABEL - """The subject of the event is a language filter.""" - FILTER_LANGUAGE - """The subject of the event is a milestone filter.""" - FILTER_MILESTONE - """The subject of the event is a notification unread filter.""" - FILTER_NOTIFICATION_IS_UNREAD - """The subject of the event is a notification status filter.""" - FILTER_NOTIFICATION_STATUS - """The subject of the event is a notification 'filter' filter.""" - FILTER_NOTIFICATION_FILTER - """The subject of the event is an organization filter.""" - FILTER_ORGANIZATION - """The subject of the event is a project filter.""" - FILTER_PROJECT - """The subject of the event is a pull request review status filter.""" - FILTER_PULL_REQUEST_REVIEW_STATUS - """The subject of the event is a pull request status filter.""" - FILTER_PULL_REQUEST_STATUS - """The subject of the event is a pull request viewer filter.""" - FILTER_PULL_REQUEST_VIEWER - """The subject of the event is a repository filter.""" - FILTER_REPOSITORY - """The subject of the event is a repository visibility filter.""" - FILTER_REPOSITORY_VISIBILITY - """The subject of the event is a sort filter.""" - FILTER_SORT - """The subject of the event is a trending repository date range filter.""" - FILTER_TRENDING_DATE_RANGE - """The subject of the event is a trending repository programming language filter.""" - FILTER_TRENDING_LANGUAGE - """The subject of the event is a trending repository spoken language filter.""" - FILTER_TRENDING_SPOKEN_LANGUAGE - """The subject of the event is a repository type filter.""" - FILTER_REPOSITORY_TYPE - """The subject of the event is a gist.""" - GIST - """The subject of the event is the home screen.""" - HOME - """The subject of the event is a issue.""" - ISSUE - """The subject of the event is a list of issues.""" - ISSUES - """The subject of the event is a list of notifications.""" - NOTIFICATIONS - """The subject of the event is a organization.""" - ORGANIZATION - """The subject of the event is a pull request.""" - PULL_REQUEST - """The subject of the event is a list of pull requesst.""" - PULL_REQUESTS - """The subject of the event is push notifications feature.""" - PUSH_NOTIFICATIONS - """The subject of the event is a mention push notification.""" - PUSH_NOTIFICATION_MENTION - """The subject of the event is a mobile two factor auth request.""" - PUSH_NOTIFICATION_MOBILE_AUTH_REQUEST - """The subject of the event is a review request push notification.""" - PUSH_NOTIFICATION_REVIEW_REQUEST - """The subject of the event is an assign push notification.""" - PUSH_NOTIFICATION_ASSIGN - """The subject of the event is a deployment approval push notification.""" - PUSH_NOTIFICATION_DEPLOYMENT_APPROVAL - """The subject of the event is a pull request review push notification.""" - PUSH_NOTIFICATION_PULL_REQUEST_REVIEW - """The subject of the event is a release.""" - RELEASE - """The subject of the event is a list of releases.""" - RELEASES - """The subject of the event is a list of repositories.""" - REPOSITORIES - """The subject of the event is a repository.""" - REPOSITORY - """The subject of the event is a repository advisory.""" - REPOSITORY_ADVISORY - """The subject of the event is a repository dependabot thread alert.""" - REPOSITORY_DEPENDABOT_THREAD_ALERT - """The subject of the event is a repository vulnerability alert.""" - REPOSITORY_VULNERABILITY_ALERT - """The subject of the event is a security advisory.""" - SECURITY_ADVISORY - """The subject of the event is a shortcut.""" - SHORTCUT - """The subject of the event is swipe actions feature.""" - SWIPE_ACTIONS - """The subject of the event is a team discussion.""" - TEAM_DISCUSSION - """The subject of the event is a workflow run.""" - WORKFLOW_RUN - """The subject of the event is a user.""" - USER - """The subject of the event is a list of users.""" - USERS + """The subject of the event is a check suite.""" + CHECK_SUITE + """The subject of the event is a commit.""" + COMMIT + """The subject of the event is a list of commits.""" + COMMITS + """The subject of the event is a deployment review.""" + DEPLOYMENT_REVIEW + """The subject of the event is a draft issue.""" + DRAFT_ISSUE + """The subject of the event is a discussion.""" + DISCUSSION + """The subject of the event is a list of discussions.""" + DISCUSSIONS + """The subject of the event is an author filter.""" + FILTER_AUTHOR + """The subject of the event is an assignee filter.""" + FILTER_ASSIGNEE + """The subject of the event is a discussion category filter.""" + FILTER_DISCUSSION_CATEGORY + """The subject of the event is a discussion unanswered filter.""" + FILTER_DISCUSSION_IS_UNANSWERED + """The subject of the event is a discussion sort filter.""" + FILTER_DISCUSSION_TOP + """The subject of the event is a discussion viewer filter.""" + FILTER_DISCUSSION_VIEWER + """The subject of the event is an issue status filter.""" + FILTER_ISSUE_STATUS + """The subject of the event is an issue viewer filter.""" + FILTER_ISSUE_VIEWER + """The subject of the event is a label filter.""" + FILTER_LABEL + """The subject of the event is a language filter.""" + FILTER_LANGUAGE + """The subject of the event is a milestone filter.""" + FILTER_MILESTONE + """The subject of the event is a notification unread filter.""" + FILTER_NOTIFICATION_IS_UNREAD + """The subject of the event is a notification status filter.""" + FILTER_NOTIFICATION_STATUS + """The subject of the event is a notification 'filter' filter.""" + FILTER_NOTIFICATION_FILTER + """The subject of the event is an organization filter.""" + FILTER_ORGANIZATION + """The subject of the event is a project filter.""" + FILTER_PROJECT + """The subject of the event is a pull request review status filter.""" + FILTER_PULL_REQUEST_REVIEW_STATUS + """The subject of the event is a pull request status filter.""" + FILTER_PULL_REQUEST_STATUS + """The subject of the event is a pull request viewer filter.""" + FILTER_PULL_REQUEST_VIEWER + """The subject of the event is a repository filter.""" + FILTER_REPOSITORY + """The subject of the event is a repository visibility filter.""" + FILTER_REPOSITORY_VISIBILITY + """The subject of the event is a sort filter.""" + FILTER_SORT + """The subject of the event is a trending repository date range filter.""" + FILTER_TRENDING_DATE_RANGE + """The subject of the event is a trending repository programming language filter.""" + FILTER_TRENDING_LANGUAGE + """The subject of the event is a trending repository spoken language filter.""" + FILTER_TRENDING_SPOKEN_LANGUAGE + """The subject of the event is a repository type filter.""" + FILTER_REPOSITORY_TYPE + """The subject of the event is a gist.""" + GIST + """The subject of the event is the home screen.""" + HOME + """The subject of the event is a issue.""" + ISSUE + """The subject of the event is a list of issues.""" + ISSUES + """The subject of the event is a list of notifications.""" + NOTIFICATIONS + """The subject of the event is a organization.""" + ORGANIZATION + """The subject of the event is a pull request.""" + PULL_REQUEST + """The subject of the event is a list of pull requesst.""" + PULL_REQUESTS + """The subject of the event is push notifications feature.""" + PUSH_NOTIFICATIONS + """The subject of the event is a mention push notification.""" + PUSH_NOTIFICATION_MENTION + """The subject of the event is a mobile two factor auth request.""" + PUSH_NOTIFICATION_MOBILE_AUTH_REQUEST + """The subject of the event is a review request push notification.""" + PUSH_NOTIFICATION_REVIEW_REQUEST + """The subject of the event is a CI action.""" + PUSH_NOTIFICATION_ACTION + """The subject of the event is an assign push notification.""" + PUSH_NOTIFICATION_ASSIGN + """The subject of the event is a deployment approval push notification.""" + PUSH_NOTIFICATION_DEPLOYMENT_APPROVAL + """The subject of the event is a pull request review push notification.""" + PUSH_NOTIFICATION_PULL_REQUEST_REVIEW + """The subject of the event is a release.""" + RELEASE + """The subject of the event is a list of releases.""" + RELEASES + """The subject of the event is a list of repositories.""" + REPOSITORIES + """The subject of the event is a repository.""" + REPOSITORY + """The subject of the event is a repository advisory.""" + REPOSITORY_ADVISORY + """The subject of the event is a repository dependabot thread alert.""" + REPOSITORY_DEPENDABOT_THREAD_ALERT + """The subject of the event is a repository vulnerability alert.""" + REPOSITORY_VULNERABILITY_ALERT + """The subject of the event is a security advisory.""" + SECURITY_ADVISORY + """The subject of the event is a shortcut.""" + SHORTCUT + """The subject of the event is swipe actions feature.""" + SWIPE_ACTIONS + """The subject of the event is a team discussion.""" + TEAM_DISCUSSION + """The subject of the event is a workflow run.""" + WORKFLOW_RUN + """The subject of the event is a user.""" + USER + """The subject of the event is a list of users.""" + USERS } """Describes a suggested change to a file to be applied in a new commit.""" input MobileSuggestedChangeInput { - """ID of the comment with the suggested change.""" - commentId: ID! - """ID of the suggested change""" - suggestedChangeId: ID! + """ID of the comment with the suggested change.""" + commentId: ID! + """ID of the suggested change""" + suggestedChangeId: ID! } """Autogenerated input type of MoveDashboardSearchShortcut""" input MoveDashboardSearchShortcutInput { - """The ID of the shortcut to move.""" - shortcutId: ID! - """Place the shortcut after the shortcut with this ID. Pass null to place at top.""" - afterShortcutId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the shortcut to move.""" + shortcutId: ID! + """Place the shortcut after the shortcut with this ID. Pass null to place at top.""" + afterShortcutId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of MoveDashboardSearchShortcut""" type MoveDashboardSearchShortcutPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The dashboard owning the shortcuts.""" - dashboard: UserDashboard - """The new edge of the moved shortcut.""" - shortcutEdge: SearchShortcutEdge + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The dashboard owning the shortcuts.""" + dashboard: UserDashboard + """The new edge of the moved shortcut.""" + shortcutEdge: SearchShortcutEdge } """Represents a 'moved_columns_in_project' event on a given issue or pull request.""" type MovedColumnsInProjectEvent implements Node { - """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 - id: ID! + """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 + id: ID! } """Autogenerated input type of MoveProjectCard""" input MoveProjectCardInput { - """The id of the card to move.""" - cardId: ID! - """The id of the column to move it into.""" - columnId: ID! - """Place the new card after the card with this id. Pass null to place it at the top.""" - afterCardId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the card to move.""" + cardId: ID! + """The id of the column to move it into.""" + columnId: ID! + """Place the new card after the card with this id. Pass null to place it at the top.""" + afterCardId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The id of the column to move.""" - columnId: ID! - """Place the new column after the column with this id. Pass null to place it at the front.""" - afterColumnId: ID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the column to move.""" + columnId: ID! + """Place the new column after the column with this id. Pass null to place it at the front.""" + afterColumnId: ID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The new edge of the moved column.""" + columnEdge: ProjectColumnEdge } """The root query for implementing GraphQL mutations.""" type Mutation { - """Clear all of a customer's queued migrations""" - abortQueuedMigrations( - """Parameters for AbortQueuedMigrations""" - input: AbortQueuedMigrationsInput! - ): AbortQueuedMigrationsPayload - """Accepts a pending invitation for a user to become an administrator of an enterprise.""" - acceptEnterpriseAdministratorInvitation( - """Parameters for AcceptEnterpriseAdministratorInvitation""" - input: AcceptEnterpriseAdministratorInvitationInput! - ): AcceptEnterpriseAdministratorInvitationPayload - """Applies a suggested topic to the repository.""" - acceptTopicSuggestion( - """Parameters for AcceptTopicSuggestion""" - input: AcceptTopicSuggestionInput! - ): AcceptTopicSuggestionPayload - """Adds assignees to an assignable object.""" - addAssigneesToAssignable( - """Parameters for AddAssigneesToAssignable""" - input: AddAssigneesToAssignableInput! - ): AddAssigneesToAssignablePayload - """Adds a comment to an Issue or Pull Request.""" - addComment( - """Parameters for AddComment""" - input: AddCommentInput! - ): AddCommentPayload - """Adds a comment to a Discussion, possibly as a reply to another comment.""" - addDiscussionComment( - """Parameters for AddDiscussionComment""" - input: AddDiscussionCommentInput! - ): AddDiscussionCommentPayload - """Vote for an option in a discussion poll.""" - addDiscussionPollVote( - """Parameters for AddDiscussionPollVote""" - input: AddDiscussionPollVoteInput! - ): AddDiscussionPollVotePayload - """Adds a support entitlement to an enterprise member.""" - addEnterpriseSupportEntitlement( - """Parameters for AddEnterpriseSupportEntitlement""" - input: AddEnterpriseSupportEntitlementInput! - ): AddEnterpriseSupportEntitlementPayload - """Adds labels to a labelable object.""" - addLabelsToLabelable( - """Parameters for AddLabelsToLabelable""" - input: AddLabelsToLabelableInput! - ): AddLabelsToLabelablePayload - """Adds a public key registrations associated with the viewer's mobile device.""" - addMobileDevicePublicKey( - """Parameters for AddMobileDevicePublicKey""" - input: AddMobileDevicePublicKeyInput! - ): AddMobileDevicePublicKeyPayload - """Associate a mobile device token with the current viewer.""" - addMobileDeviceToken( - """Parameters for AddMobileDeviceToken""" - input: AddMobileDeviceTokenInput! - ): AddMobileDeviceTokenPayload - """Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both.""" - addProjectCard( - """Parameters for AddProjectCard""" - input: AddProjectCardInput! - ): AddProjectCardPayload - """Adds a column to a Project.""" - addProjectColumn( - """Parameters for AddProjectColumn""" - input: AddProjectColumnInput! - ): AddProjectColumnPayload - """Creates a new draft issue and add it to a Project.""" - addProjectDraftIssue( - """Parameters for AddProjectDraftIssue""" - input: AddProjectDraftIssueInput! - ): AddProjectDraftIssuePayload @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Adds an existing item (Issue or PullRequest) to a Project.""" - addProjectNextItem( - """Parameters for AddProjectNextItem""" - input: AddProjectNextItemInput! - ): AddProjectNextItemPayload @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Creates a new draft issue and add it to a Project.""" - addProjectV2DraftIssue( - """Parameters for AddProjectV2DraftIssue""" - input: AddProjectV2DraftIssueInput! - ): AddProjectV2DraftIssuePayload - """Links an existing content instance to a Project.""" - addProjectV2ItemById( - """Parameters for AddProjectV2ItemById""" - input: AddProjectV2ItemByIdInput! - ): AddProjectV2ItemByIdPayload - """Adds a review to a Pull Request.""" - addPullRequestReview( - """Parameters for AddPullRequestReview""" - input: AddPullRequestReviewInput! - ): AddPullRequestReviewPayload - """Adds a comment to a review.""" - addPullRequestReviewComment( - """Parameters for AddPullRequestReviewComment""" - input: AddPullRequestReviewCommentInput! - ): AddPullRequestReviewCommentPayload - """Adds a new thread to a pending Pull Request Review.""" - addPullRequestReviewThread( - """Parameters for AddPullRequestReviewThread""" - input: AddPullRequestReviewThreadInput! - ): AddPullRequestReviewThreadPayload - """Adds a reply to an existing Pull Request Review Thread.""" - addPullRequestReviewThreadReply( - """Parameters for AddPullRequestReviewThreadReply""" - input: AddPullRequestReviewThreadReplyInput! - ): AddPullRequestReviewThreadReplyPayload - """Adds a reaction to a subject.""" - addReaction( - """Parameters for AddReaction""" - input: AddReactionInput! - ): AddReactionPayload - """Adds a star to a Starrable.""" - addStar( - """Parameters for AddStar""" - input: AddStarInput! - ): AddStarPayload - """Add an upvote to a discussion or discussion comment.""" - addUpvote( - """Parameters for AddUpvote""" - input: AddUpvoteInput! - ): AddUpvotePayload - """Adds a verifiable domain to an owning account.""" - addVerifiableDomain( - """Parameters for AddVerifiableDomain""" - input: AddVerifiableDomainInput! - ): AddVerifiableDomainPayload - """Applies a set of suggested changes to files""" - applyMobileSuggestedChanges( - """Parameters for ApplyMobileSuggestedChanges""" - input: ApplyMobileSuggestedChangesInput! - ): ApplyMobileSuggestedChangesPayload - """Approve all of the action_required workflows on a pull request""" - approveActionRequiredWorkflowRuns( - """Parameters for ApproveActionRequiredWorkflowRuns""" - input: ApproveActionRequiredWorkflowRunsInput! - ): ApproveActionRequiredWorkflowRunsPayload - """Approve all pending deployments under one or more environments""" - approveDeployments( - """Parameters for ApproveDeployments""" - input: ApproveDeploymentsInput! - ): ApproveDeploymentsPayload - """Approves a mobile authentication request associated with a specific device.""" - approveMobileAuthDeviceRequest( - """Parameters for ApproveMobileAuthDeviceRequest""" - input: ApproveMobileAuthDeviceRequestInput! - ): ApproveMobileAuthDeviceRequestPayload - """Approve a verifiable domain for notification delivery.""" - approveVerifiableDomain( - """Parameters for ApproveVerifiableDomain""" - input: ApproveVerifiableDomainInput! - ): ApproveVerifiableDomainPayload - """Archives a ProjectV2Item""" - archiveProjectV2Item( - """Parameters for ArchiveProjectV2Item""" - input: ArchiveProjectV2ItemInput! - ): ArchiveProjectV2ItemPayload - """Marks a repository as archived.""" - archiveRepository( - """Parameters for ArchiveRepository""" - input: ArchiveRepositoryInput! - ): ArchiveRepositoryPayload - """Block another user""" - blockUser( - """Parameters for BlockUser""" - input: BlockUserInput! - ): BlockUserPayload - """Block a user from an organization""" - blockUserFromOrganization( - """Parameters for BlockUserFromOrganization""" - input: BlockUserFromOrganizationInput! - ): BlockUserFromOrganizationPayload - """Cancels a pending invitation for an administrator to join an enterprise.""" - cancelEnterpriseAdminInvitation( - """Parameters for CancelEnterpriseAdminInvitation""" - input: CancelEnterpriseAdminInvitationInput! - ): CancelEnterpriseAdminInvitationPayload - """Cancel an active sponsorship.""" - cancelSponsorship( - """Parameters for CancelSponsorship""" - input: CancelSponsorshipInput! - ): CancelSponsorshipPayload - """Cancels a workflow run""" - cancelWorkflowRun( - """Parameters for CancelWorkflowRun""" - input: CancelWorkflowRunInput! - ): CancelWorkflowRunPayload - """Update your status on GitHub.""" - changeUserStatus( - """Parameters for ChangeUserStatus""" - input: ChangeUserStatusInput! - ): ChangeUserStatusPayload - """Clears all labels from a labelable object.""" - clearLabelsFromLabelable( - """Parameters for ClearLabelsFromLabelable""" - input: ClearLabelsFromLabelableInput! - ): ClearLabelsFromLabelablePayload - """This mutation clears the value of a field for an item in a Project. Currently only text, number, date, assignees, labels, single-select, iteration and milestone fields are supported.""" - clearProjectV2ItemFieldValue( - """Parameters for ClearProjectV2ItemFieldValue""" - input: ClearProjectV2ItemFieldValueInput! - ): ClearProjectV2ItemFieldValuePayload - """Creates a new project by cloning configuration from an existing project.""" - cloneProject( - """Parameters for CloneProject""" - input: CloneProjectInput! - ): CloneProjectPayload - """Create a new repository with the same files and directory structure as a template repository.""" - cloneTemplateRepository( - """Parameters for CloneTemplateRepository""" - input: CloneTemplateRepositoryInput! - ): CloneTemplateRepositoryPayload - """Close an issue.""" - closeIssue( - """Parameters for CloseIssue""" - input: CloseIssueInput! - ): CloseIssuePayload - """Close a pull request.""" - closePullRequest( - """Parameters for ClosePullRequest""" - input: ClosePullRequestInput! - ): ClosePullRequestPayload - """Convert a project note card to one associated with a newly created issue.""" - convertProjectCardNoteToIssue( - """Parameters for ConvertProjectCardNoteToIssue""" - input: ConvertProjectCardNoteToIssueInput! - ): ConvertProjectCardNoteToIssuePayload - """Converts a pull request to draft""" - convertPullRequestToDraft( - """Parameters for ConvertPullRequestToDraft""" - input: ConvertPullRequestToDraftInput! - ): ConvertPullRequestToDraftPayload - """Create a new branch protection rule""" - createBranchProtectionRule( - """Parameters for CreateBranchProtectionRule""" - input: CreateBranchProtectionRuleInput! - ): CreateBranchProtectionRulePayload - """Create a check run.""" - createCheckRun( - """Parameters for CreateCheckRun""" - input: CreateCheckRunInput! - ): CreateCheckRunPayload - """Create a check suite""" - createCheckSuite( - """Parameters for CreateCheckSuite""" - input: CreateCheckSuiteInput! - ): CreateCheckSuitePayload - """ - 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 - """Creates access metadata for fetching completed workflow logs""" - createCompletedWorkflowLogsAccess( - """Parameters for CreateCompletedWorkflowLogsAccess""" - input: CreateCompletedWorkflowLogsAccessInput! - ): CreateCompletedWorkflowLogsAccessPayload - """Create a new dashboard search shortcut for the current viewer.""" - createDashboardSearchShortcut( - """Parameters for CreateDashboardSearchShortcut""" - input: CreateDashboardSearchShortcutInput! - ): CreateDashboardSearchShortcutPayload - """Create a discussion.""" - createDiscussion( - """Parameters for CreateDiscussion""" - input: CreateDiscussionInput! - ): CreateDiscussionPayload - """Creates an organization as part of an enterprise account.""" - createEnterpriseOrganization( - """Parameters for CreateEnterpriseOrganization""" - input: CreateEnterpriseOrganizationInput! - ): CreateEnterpriseOrganizationPayload - """Creates an environment or simply returns it if already exists.""" - createEnvironment( - """Parameters for CreateEnvironment""" - input: CreateEnvironmentInput! - ): CreateEnvironmentPayload - """Creates a new IP allow list entry.""" - createIpAllowListEntry( - """Parameters for CreateIpAllowListEntry""" - input: CreateIpAllowListEntryInput! - ): CreateIpAllowListEntryPayload - """Creates a new issue.""" - createIssue( - """Parameters for CreateIssue""" - input: CreateIssueInput! - ): CreateIssuePayload - """Create a branch linked to an issue.""" - createLinkedBranch( - """Parameters for CreateLinkedBranch""" - input: CreateLinkedBranchInput! - ): CreateLinkedBranchPayload - """Creates an Octoshift migration source.""" - createMigrationSource( - """Parameters for CreateMigrationSource""" - input: CreateMigrationSourceInput! - ): CreateMigrationSourcePayload - """Creates mobile push notification schedules.""" - createMobilePushNotificationSchedules( - """Parameters for CreateMobilePushNotificationSchedules""" - input: CreateMobilePushNotificationSchedulesInput! - ): CreateMobilePushNotificationSchedulesPayload - """Creates a subscription representing a in-app purchase""" - createMobileSubscription( - """Parameters for CreateMobileSubscription""" - input: CreateMobileSubscriptionInput! - ): CreateMobileSubscriptionPayload - """Creates a new project.""" - createProject( - """Parameters for CreateProject""" - input: CreateProjectInput! - ): CreateProjectPayload - """Creates a new project.""" - createProjectV2( - """Parameters for CreateProjectV2""" - input: CreateProjectV2Input! - ): CreateProjectV2Payload - """Create a new pull request""" - createPullRequest( - """Parameters for CreatePullRequest""" - input: CreatePullRequestInput! - ): CreatePullRequestPayload - """Create a new Git Ref.""" - createRef( - """Parameters for CreateRef""" - input: CreateRefInput! - ): CreateRefPayload - """Create a new repository.""" - createRepository( - """Parameters for CreateRepository""" - input: CreateRepositoryInput! - ): CreateRepositoryPayload - """Adds a saved notification thread.""" - createSavedNotificationThread( - """Parameters for CreateSavedNotificationThread""" - input: CreateSavedNotificationThreadInput! - ): CreateSavedNotificationThreadPayload - """Create a new payment tier for your GitHub Sponsors profile.""" - createSponsorsTier( - """Parameters for CreateSponsorsTier""" - input: CreateSponsorsTierInput! - ): CreateSponsorsTierPayload - """Start a new sponsorship of a maintainer in GitHub Sponsors, or reactivate a past sponsorship.""" - createSponsorship( - """Parameters for CreateSponsorship""" - input: CreateSponsorshipInput! - ): CreateSponsorshipPayload - """Create a new search shortcut for the given team dashboard.""" - createTeamDashboardSearchShortcut( - """Parameters for CreateTeamDashboardSearchShortcut""" - input: CreateTeamDashboardSearchShortcutInput! - ): CreateTeamDashboardSearchShortcutPayload - """Creates a new team discussion.""" - createTeamDiscussion( - """Parameters for CreateTeamDiscussion""" - input: CreateTeamDiscussionInput! - ): CreateTeamDiscussionPayload - """Creates a new team discussion comment.""" - createTeamDiscussionComment( - """Parameters for CreateTeamDiscussionComment""" - input: CreateTeamDiscussionCommentInput! - ): CreateTeamDiscussionCommentPayload - """Pin an item to a user's dashboard without modifying other pins.""" - createUserDashboardPin( - """Parameters for CreateUserDashboardPin""" - input: CreateUserDashboardPinInput! - ): CreateUserDashboardPinPayload - """Register a user's disinterest in a feed item""" - createUserDisinterest( - """Parameters for CreateUserDisinterest""" - input: CreateUserDisinterestInput! - ): CreateUserDisinterestPayload - """Creates a new user list.""" - createUserList( - """Parameters for CreateUserList""" - input: CreateUserListInput! - ): CreateUserListPayload - """Rejects a suggested topic for the repository.""" - declineTopicSuggestion( - """Parameters for DeclineTopicSuggestion""" - input: DeclineTopicSuggestionInput! - ): DeclineTopicSuggestionPayload - """Delete a branch protection rule""" - deleteBranchProtectionRule( - """Parameters for DeleteBranchProtectionRule""" - input: DeleteBranchProtectionRuleInput! - ): DeleteBranchProtectionRulePayload - """Deletes a deployment.""" - deleteDeployment( - """Parameters for DeleteDeployment""" - input: DeleteDeploymentInput! - ): DeleteDeploymentPayload - """Delete a discussion and all of its replies.""" - deleteDiscussion( - """Parameters for DeleteDiscussion""" - input: DeleteDiscussionInput! - ): DeleteDiscussionPayload - """Delete a discussion comment. If it has replies, wipe it instead.""" - deleteDiscussionComment( - """Parameters for DeleteDiscussionComment""" - input: DeleteDiscussionCommentInput! - ): DeleteDiscussionCommentPayload - """Deletes an environment""" - deleteEnvironment( - """Parameters for DeleteEnvironment""" - input: DeleteEnvironmentInput! - ): DeleteEnvironmentPayload - """Deletes an IP allow list entry.""" - deleteIpAllowListEntry( - """Parameters for DeleteIpAllowListEntry""" - input: DeleteIpAllowListEntryInput! - ): DeleteIpAllowListEntryPayload - """Deletes an Issue object.""" - deleteIssue( - """Parameters for DeleteIssue""" - input: DeleteIssueInput! - ): DeleteIssuePayload - """Deletes an IssueComment object.""" - deleteIssueComment( - """Parameters for DeleteIssueComment""" - input: DeleteIssueCommentInput! - ): DeleteIssueCommentPayload - """Unlink a branch from an issue.""" - deleteLinkedBranch( - """Parameters for DeleteLinkedBranch""" - input: DeleteLinkedBranchInput! - ): DeleteLinkedBranchPayload - """Deletes the public key registration associated with the viewer's mobile device.""" - deleteMobileDevicePublicKey( - """Parameters for DeleteMobileDevicePublicKey""" - input: DeleteMobileDevicePublicKeyInput! - ): DeleteMobileDevicePublicKeyPayload - """Delete a mobile device token.""" - deleteMobileDeviceToken( - """Parameters for DeleteMobileDeviceToken""" - input: DeleteMobileDeviceTokenInput! - ): DeleteMobileDeviceTokenPayload - """Delete a mobile push notification schedule.""" - deleteMobilePushNotificationSchedule( - """Parameters for DeleteMobilePushNotificationSchedule""" - input: DeleteMobilePushNotificationScheduleInput! - ): DeleteMobilePushNotificationSchedulePayload - """Deletes a project.""" - deleteProject( - """Parameters for DeleteProject""" - input: DeleteProjectInput! - ): DeleteProjectPayload - """Deletes a project card.""" - deleteProjectCard( - """Parameters for DeleteProjectCard""" - input: DeleteProjectCardInput! - ): DeleteProjectCardPayload - """Deletes a project column.""" - deleteProjectColumn( - """Parameters for DeleteProjectColumn""" - input: DeleteProjectColumnInput! - ): DeleteProjectColumnPayload - """Deletes an item from a Project.""" - deleteProjectNextItem( - """Parameters for DeleteProjectNextItem""" - input: DeleteProjectNextItemInput! - ): DeleteProjectNextItemPayload @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Deletes an item from a Project.""" - deleteProjectV2Item( - """Parameters for DeleteProjectV2Item""" - input: DeleteProjectV2ItemInput! - ): DeleteProjectV2ItemPayload - """Deletes a pull request review.""" - deletePullRequestReview( - """Parameters for DeletePullRequestReview""" - input: DeletePullRequestReviewInput! - ): DeletePullRequestReviewPayload - """Deletes a pull request review comment.""" - deletePullRequestReviewComment( - """Parameters for DeletePullRequestReviewComment""" - input: DeletePullRequestReviewCommentInput! - ): DeletePullRequestReviewCommentPayload - """Delete a Git Ref.""" - deleteRef( - """Parameters for DeleteRef""" - input: DeleteRefInput! - ): DeleteRefPayload - """Deletes a saved notification thread.""" - deleteSavedNotificationThread( - """Parameters for DeleteSavedNotificationThread""" - input: DeleteSavedNotificationThreadInput! - ): DeleteSavedNotificationThreadPayload - """Deletes a team discussion.""" - deleteTeamDiscussion( - """Parameters for DeleteTeamDiscussion""" - input: DeleteTeamDiscussionInput! - ): DeleteTeamDiscussionPayload - """Deletes a team discussion comment.""" - deleteTeamDiscussionComment( - """Parameters for DeleteTeamDiscussionComment""" - input: DeleteTeamDiscussionCommentInput! - ): DeleteTeamDiscussionCommentPayload - """Unpin an item from a user's dashboard without modifying other pins.""" - deleteUserDashboardPin( - """Parameters for DeleteUserDashboardPin""" - input: DeleteUserDashboardPinInput! - ): DeleteUserDashboardPinPayload - """Deletes a user list.""" - deleteUserList( - """Parameters for DeleteUserList""" - input: DeleteUserListInput! - ): DeleteUserListPayload - """Deletes a verifiable domain.""" - deleteVerifiableDomain( - """Parameters for DeleteVerifiableDomain""" - input: DeleteVerifiableDomainInput! - ): DeleteVerifiableDomainPayload - """Disable auto merge on the given pull request""" - disablePullRequestAutoMerge( - """Parameters for DisablePullRequestAutoMerge""" - input: DisablePullRequestAutoMergeInput! - ): DisablePullRequestAutoMergePayload - """Dismisses an approved or rejected pull request review.""" - dismissPullRequestReview( - """Parameters for DismissPullRequestReview""" - input: DismissPullRequestReviewInput! - ): DismissPullRequestReviewPayload - """Dismisses the Dependabot alert.""" - dismissRepositoryVulnerabilityAlert( - """Parameters for DismissRepositoryVulnerabilityAlert""" - input: DismissRepositoryVulnerabilityAlertInput! - ): DismissRepositoryVulnerabilityAlertPayload - """Enable the default auto-merge on a pull request.""" - enablePullRequestAutoMerge( - """Parameters for EnablePullRequestAutoMerge""" - input: EnablePullRequestAutoMergeInput! - ): EnablePullRequestAutoMergePayload - """Follow an organization.""" - followOrganization( - """Parameters for FollowOrganization""" - input: FollowOrganizationInput! - ): FollowOrganizationPayload - """Follow a user.""" - followUser( - """Parameters for FollowUser""" - input: FollowUserInput! - ): FollowUserPayload - """Grant the migrator role to a user for all organizations under an enterprise account.""" - grantEnterpriseOrganizationsMigratorRole( - """Parameters for GrantEnterpriseOrganizationsMigratorRole""" - input: GrantEnterpriseOrganizationsMigratorRoleInput! - ): GrantEnterpriseOrganizationsMigratorRolePayload - """Grant the migrator role to a user or a team.""" - grantMigratorRole( - """Parameters for GrantMigratorRole""" - input: GrantMigratorRoleInput! - ): GrantMigratorRolePayload - """Invite someone to become an administrator of the enterprise.""" - inviteEnterpriseAdmin( - """Parameters for InviteEnterpriseAdmin""" - input: InviteEnterpriseAdminInput! - ): InviteEnterpriseAdminPayload - """Link an issue to a pull request or a pull request to an issue.""" - linkIssueOrPullRequest( - """Parameters for LinkIssueOrPullRequest""" - input: LinkIssueOrPullRequestInput! - ): LinkIssueOrPullRequestPayload - """Links a project to a repository.""" - linkProjectV2ToRepository( - """Parameters for LinkProjectV2ToRepository""" - input: LinkProjectV2ToRepositoryInput! - ): LinkProjectV2ToRepositoryPayload - """Creates a repository link for a project.""" - linkRepositoryToProject( - """Parameters for LinkRepositoryToProject""" - input: LinkRepositoryToProjectInput! - ): LinkRepositoryToProjectPayload - """Lock a lockable object""" - lockLockable( - """Parameters for LockLockable""" - input: LockLockableInput! - ): LockLockablePayload - """Mark a discussion comment as the chosen answer for discussions in an answerable category.""" - markDiscussionCommentAsAnswer( - """Parameters for MarkDiscussionCommentAsAnswer""" - input: MarkDiscussionCommentAsAnswerInput! - ): MarkDiscussionCommentAsAnswerPayload - """Mark a pull request file as viewed""" - markFileAsViewed( - """Parameters for MarkFileAsViewed""" - input: MarkFileAsViewedInput! - ): MarkFileAsViewedPayload - """Marks a notification as done""" - markNotificationAsDone( - """Parameters for MarkNotificationAsDone""" - input: MarkNotificationAsDoneInput! - ): MarkNotificationAsDonePayload - """Marks a notification as read""" - markNotificationAsRead( - """Parameters for MarkNotificationAsRead""" - input: MarkNotificationAsReadInput! - ): MarkNotificationAsReadPayload - """Marks a notification as undone""" - markNotificationAsUndone( - """Parameters for MarkNotificationAsUndone""" - input: MarkNotificationAsUndoneInput! - ): MarkNotificationAsUndonePayload - """Marks a notification as unread""" - markNotificationAsUnread( - """Parameters for MarkNotificationAsUnread""" - input: MarkNotificationAsUnreadInput! - ): MarkNotificationAsUnreadPayload - """Marks a notification as read""" - markNotificationSubjectAsRead( - """Parameters for MarkNotificationSubjectAsRead""" - input: MarkNotificationSubjectAsReadInput! - ): MarkNotificationSubjectAsReadPayload - """Marks a notification as done""" - markNotificationsAsDone( - """Parameters for MarkNotificationsAsDone""" - input: MarkNotificationsAsDoneInput! - ): MarkNotificationsAsDonePayload - """Marks multiple notifications as read""" - markNotificationsAsRead( - """Parameters for MarkNotificationsAsRead""" - input: MarkNotificationsAsReadInput! - ): MarkNotificationsAsReadPayload - """Marks a notification as undone""" - markNotificationsAsUndone( - """Parameters for MarkNotificationsAsUndone""" - input: MarkNotificationsAsUndoneInput! - ): MarkNotificationsAsUndonePayload - """Marks notifications as unread""" - markNotificationsAsUnread( - """Parameters for MarkNotificationsAsUnread""" - input: MarkNotificationsAsUnreadInput! - ): MarkNotificationsAsUnreadPayload - """Marks a pull request ready for review.""" - markPullRequestReadyForReview( - """Parameters for MarkPullRequestReadyForReview""" - input: MarkPullRequestReadyForReviewInput! - ): MarkPullRequestReadyForReviewPayload - """Merge a head into a branch.""" - mergeBranch( - """Parameters for MergeBranch""" - input: MergeBranchInput! - ): MergeBranchPayload - """Merge a pull request.""" - mergePullRequest( - """Parameters for MergePullRequest""" - input: MergePullRequestInput! - ): MergePullRequestPayload - """Minimizes a comment on an Issue, Commit, Pull Request, or Gist""" - minimizeComment( - """Parameters for MinimizeComment""" - input: MinimizeCommentInput! - ): MinimizeCommentPayload - """Sends a batch of hydro analytics for a user.""" - mobileEventsUpdate( - """Parameters for MobileEventsUpdate""" - input: MobileEventsUpdateInput! - ): MobileEventsUpdatePayload - """Move a dashboard shortcut to a position behind another for the current viewer.""" - moveDashboardSearchShortcut( - """Parameters for MoveDashboardSearchShortcut""" - input: MoveDashboardSearchShortcutInput! - ): MoveDashboardSearchShortcutPayload - """Moves a project card to another place.""" - moveProjectCard( - """Parameters for MoveProjectCard""" - input: MoveProjectCardInput! - ): MoveProjectCardPayload - """Moves a project column to another place.""" - moveProjectColumn( - """Parameters for MoveProjectColumn""" - input: MoveProjectColumnInput! - ): MoveProjectColumnPayload - """Pin an issue to a repository""" - pinIssue( - """Parameters for PinIssue""" - input: PinIssueInput! - ): PinIssuePayload - """Regenerates the identity provider recovery codes for an enterprise""" - regenerateEnterpriseIdentityProviderRecoveryCodes( - """Parameters for RegenerateEnterpriseIdentityProviderRecoveryCodes""" - input: RegenerateEnterpriseIdentityProviderRecoveryCodesInput! - ): RegenerateEnterpriseIdentityProviderRecoveryCodesPayload - """Regenerates a verifiable domain's verification token.""" - regenerateVerifiableDomainToken( - """Parameters for RegenerateVerifiableDomainToken""" - input: RegenerateVerifiableDomainTokenInput! - ): RegenerateVerifiableDomainTokenPayload - """Reject all pending deployments under one or more environments""" - rejectDeployments( - """Parameters for RejectDeployments""" - input: RejectDeploymentsInput! - ): RejectDeploymentsPayload - """Rejects a mobile authentication request associated with a specific device.""" - rejectMobileAuthDeviceRequest( - """Parameters for RejectMobileAuthDeviceRequest""" - input: RejectMobileAuthDeviceRequestInput! - ): RejectMobileAuthDeviceRequestPayload - """Removes assignees from an assignable object.""" - removeAssigneesFromAssignable( - """Parameters for RemoveAssigneesFromAssignable""" - input: RemoveAssigneesFromAssignableInput! - ): RemoveAssigneesFromAssignablePayload - """Remove a dashboard search shortcut for the current viewer.""" - removeDashboardSearchShortcut( - """Parameters for RemoveDashboardSearchShortcut""" - input: RemoveDashboardSearchShortcutInput! - ): RemoveDashboardSearchShortcutPayload - """Removes an administrator from the enterprise.""" - removeEnterpriseAdmin( - """Parameters for RemoveEnterpriseAdmin""" - input: RemoveEnterpriseAdminInput! - ): RemoveEnterpriseAdminPayload - """Removes the identity provider from an enterprise""" - removeEnterpriseIdentityProvider( - """Parameters for RemoveEnterpriseIdentityProvider""" - input: RemoveEnterpriseIdentityProviderInput! - ): RemoveEnterpriseIdentityProviderPayload - """Removes an organization from the enterprise""" - removeEnterpriseOrganization( - """Parameters for RemoveEnterpriseOrganization""" - input: RemoveEnterpriseOrganizationInput! - ): RemoveEnterpriseOrganizationPayload - """Removes a support entitlement from an enterprise member.""" - removeEnterpriseSupportEntitlement( - """Parameters for RemoveEnterpriseSupportEntitlement""" - input: RemoveEnterpriseSupportEntitlementInput! - ): RemoveEnterpriseSupportEntitlementPayload - """Removes labels from a Labelable object.""" - removeLabelsFromLabelable( - """Parameters for RemoveLabelsFromLabelable""" - input: RemoveLabelsFromLabelableInput! - ): RemoveLabelsFromLabelablePayload - """Removes outside collaborator from all repositories in an organization.""" - removeOutsideCollaborator( - """Parameters for RemoveOutsideCollaborator""" - input: RemoveOutsideCollaboratorInput! - ): RemoveOutsideCollaboratorPayload - """Removes a reaction from a subject.""" - removeReaction( - """Parameters for RemoveReaction""" - input: RemoveReactionInput! - ): RemoveReactionPayload - """Removes a star from a Starrable.""" - removeStar( - """Parameters for RemoveStar""" - input: RemoveStarInput! - ): RemoveStarPayload - """Remove an upvote to a discussion or discussion comment.""" - removeUpvote( - """Parameters for RemoveUpvote""" - input: RemoveUpvoteInput! - ): RemoveUpvotePayload - """Reopen a issue.""" - reopenIssue( - """Parameters for ReopenIssue""" - input: ReopenIssueInput! - ): ReopenIssuePayload - """Reopen a pull request.""" - reopenPullRequest( - """Parameters for ReopenPullRequest""" - input: ReopenPullRequestInput! - ): ReopenPullRequestPayload - """Set review requests on a pull request.""" - requestReviews( - """Parameters for RequestReviews""" - input: RequestReviewsInput! - ): RequestReviewsPayload - """Rerequests an existing check suite.""" - rerequestCheckSuite( - """Parameters for RerequestCheckSuite""" - input: RerequestCheckSuiteInput! - ): RerequestCheckSuitePayload - """Re-runs a check run for a mobile client requestor""" - rerunCheckRunMobile( - """Parameters for RerunCheckRunMobile""" - input: RerunCheckRunMobileInput! - ): RerunCheckRunMobilePayload - """Re-runs a check suite for a mobile client""" - rerunCheckSuiteMobile( - """Parameters for RerunCheckSuiteMobile""" - input: RerunCheckSuiteMobileInput! - ): RerunCheckSuiteMobilePayload - """Marks a review thread as resolved.""" - resolveReviewThread( - """Parameters for ResolveReviewThread""" - input: ResolveReviewThreadInput! - ): ResolveReviewThreadPayload - """Revoke the migrator role to a user for all organizations under an enterprise account.""" - revokeEnterpriseOrganizationsMigratorRole( - """Parameters for RevokeEnterpriseOrganizationsMigratorRole""" - input: RevokeEnterpriseOrganizationsMigratorRoleInput! - ): RevokeEnterpriseOrganizationsMigratorRolePayload - """Revoke the migrator role from a user or a team.""" - revokeMigratorRole( - """Parameters for RevokeMigratorRole""" - input: RevokeMigratorRoleInput! - ): RevokeMigratorRolePayload - """Set the filters for a user's dashboard feed""" - setDashboardFeedFilters( - """Parameters for SetDashboardFeedFilters""" - input: SetDashboardFeedFiltersInput! - ): SetDashboardFeedFiltersPayload - """Set/reset dashboard search shortcuts.""" - setDashboardSearchShortcuts( - """Parameters for SetDashboardSearchShortcuts""" - input: SetDashboardSearchShortcutsInput! - ): SetDashboardSearchShortcutsPayload - """Creates or updates the identity provider for an enterprise.""" - setEnterpriseIdentityProvider( - """Parameters for SetEnterpriseIdentityProvider""" - input: SetEnterpriseIdentityProviderInput! - ): SetEnterpriseIdentityProviderPayload - """Sets all the labels for a labelable object.""" - setLabelsForLabelable( - """Parameters for SetLabelsForLabelable""" - input: SetLabelsForLabelableInput! - ): SetLabelsForLabelablePayload - """Set an organization level interaction limit for an organization's public repositories.""" - setOrganizationInteractionLimit( - """Parameters for SetOrganizationInteractionLimit""" - input: SetOrganizationInteractionLimitInput! - ): SetOrganizationInteractionLimitPayload - """Sets an interaction limit setting for a repository.""" - setRepositoryInteractionLimit( - """Parameters for SetRepositoryInteractionLimit""" - input: SetRepositoryInteractionLimitInput! - ): SetRepositoryInteractionLimitPayload - """Set a user level interaction limit for an user's public repositories.""" - setUserInteractionLimit( - """Parameters for SetUserInteractionLimit""" - input: SetUserInteractionLimitInput! - ): SetUserInteractionLimitPayload - """Start a repository migration.""" - startRepositoryMigration( - """Parameters for StartRepositoryMigration""" - input: StartRepositoryMigrationInput! - ): StartRepositoryMigrationPayload - """Submits a pending pull request review.""" - submitPullRequestReview( - """Parameters for SubmitPullRequestReview""" - input: SubmitPullRequestReviewInput! - ): SubmitPullRequestReviewPayload - """Transfer an issue to a different repository""" - transferIssue( - """Parameters for TransferIssue""" - input: TransferIssueInput! - ): TransferIssuePayload - """Unarchives a ProjectV2Item""" - unarchiveProjectV2Item( - """Parameters for UnarchiveProjectV2Item""" - input: UnarchiveProjectV2ItemInput! - ): UnarchiveProjectV2ItemPayload - """Unarchives a repository.""" - unarchiveRepository( - """Parameters for UnarchiveRepository""" - input: UnarchiveRepositoryInput! - ): UnarchiveRepositoryPayload - """Unblock another user""" - unblockUser( - """Parameters for UnblockUser""" - input: UnblockUserInput! - ): UnblockUserPayload - """Unblock a user from an organization""" - unblockUserFromOrganization( - """Parameters for UnblockUserFromOrganization""" - input: UnblockUserFromOrganizationInput! - ): UnblockUserFromOrganizationPayload - """Undo a user's disinterest in a feed item""" - undoUserDisinterest( - """Parameters for UndoUserDisinterest""" - input: UndoUserDisinterestInput! - ): UndoUserDisinterestPayload - """Unfollow an organization.""" - unfollowOrganization( - """Parameters for UnfollowOrganization""" - input: UnfollowOrganizationInput! - ): UnfollowOrganizationPayload - """Unfollow a user.""" - unfollowUser( - """Parameters for UnfollowUser""" - input: UnfollowUserInput! - ): UnfollowUserPayload - """Unlinks a project from a repository.""" - unlinkProjectV2FromRepository( - """Parameters for UnlinkProjectV2FromRepository""" - input: UnlinkProjectV2FromRepositoryInput! - ): UnlinkProjectV2FromRepositoryPayload - """Deletes a repository link from a project.""" - unlinkRepositoryFromProject( - """Parameters for UnlinkRepositoryFromProject""" - input: UnlinkRepositoryFromProjectInput! - ): UnlinkRepositoryFromProjectPayload - """Unlock a lockable object""" - unlockLockable( - """Parameters for UnlockLockable""" - input: UnlockLockableInput! - ): UnlockLockablePayload - """Unmark a discussion comment as the chosen answer for discussions in an answerable category.""" - unmarkDiscussionCommentAsAnswer( - """Parameters for UnmarkDiscussionCommentAsAnswer""" - input: UnmarkDiscussionCommentAsAnswerInput! - ): UnmarkDiscussionCommentAsAnswerPayload - """Unmark a pull request file as viewed""" - unmarkFileAsViewed( - """Parameters for UnmarkFileAsViewed""" - input: UnmarkFileAsViewedInput! - ): UnmarkFileAsViewedPayload - """Unmark an issue as a duplicate of another issue.""" - unmarkIssueAsDuplicate( - """Parameters for UnmarkIssueAsDuplicate""" - input: UnmarkIssueAsDuplicateInput! - ): UnmarkIssueAsDuplicatePayload - """Unminimizes a comment on an Issue, Commit, Pull Request, or Gist""" - unminimizeComment( - """Parameters for UnminimizeComment""" - input: UnminimizeCommentInput! - ): UnminimizeCommentPayload - """Unpin a pinned issue from a repository""" - unpinIssue( - """Parameters for UnpinIssue""" - input: UnpinIssueInput! - ): UnpinIssuePayload - """Marks a review thread as unresolved.""" - unresolveReviewThread( - """Parameters for UnresolveReviewThread""" - input: UnresolveReviewThreadInput! - ): UnresolveReviewThreadPayload - """Update a branch protection rule""" - updateBranchProtectionRule( - """Parameters for UpdateBranchProtectionRule""" - input: UpdateBranchProtectionRuleInput! - ): UpdateBranchProtectionRulePayload - """Update a check run""" - updateCheckRun( - """Parameters for UpdateCheckRun""" - input: UpdateCheckRunInput! - ): UpdateCheckRunPayload - """Modifies the settings of an existing check suite""" - updateCheckSuitePreferences( - """Parameters for UpdateCheckSuitePreferences""" - input: UpdateCheckSuitePreferencesInput! - ): UpdateCheckSuitePreferencesPayload - """Update a dashboard search shortcut for the current viewer.""" - updateDashboardSearchShortcut( - """Parameters for UpdateDashboardSearchShortcut""" - input: UpdateDashboardSearchShortcutInput! - ): UpdateDashboardSearchShortcutPayload - """Updates the selected teams for the current viewers user dashboard.""" - updateDashboardSelectedTeams( - """Parameters for UpdateDashboardSelectedTeams""" - input: UpdateDashboardSelectedTeamsInput! - ): UpdateDashboardSelectedTeamsPayload - """Update a discussion""" - updateDiscussion( - """Parameters for UpdateDiscussion""" - input: UpdateDiscussionInput! - ): UpdateDiscussionPayload - """Update the contents of a comment on a Discussion""" - updateDiscussionComment( - """Parameters for UpdateDiscussionComment""" - input: UpdateDiscussionCommentInput! - ): UpdateDiscussionCommentPayload - """Updates the role of an enterprise administrator.""" - updateEnterpriseAdministratorRole( - """Parameters for UpdateEnterpriseAdministratorRole""" - input: UpdateEnterpriseAdministratorRoleInput! - ): UpdateEnterpriseAdministratorRolePayload - """Sets whether private repository forks are enabled for an enterprise.""" - updateEnterpriseAllowPrivateRepositoryForkingSetting( - """Parameters for UpdateEnterpriseAllowPrivateRepositoryForkingSetting""" - input: UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput! - ): UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload - """Sets the base repository permission for organizations in an enterprise.""" - updateEnterpriseDefaultRepositoryPermissionSetting( - """Parameters for UpdateEnterpriseDefaultRepositoryPermissionSetting""" - input: UpdateEnterpriseDefaultRepositoryPermissionSettingInput! - ): UpdateEnterpriseDefaultRepositoryPermissionSettingPayload - """Sets whether organization members with admin permissions on a repository can change repository visibility.""" - updateEnterpriseMembersCanChangeRepositoryVisibilitySetting( - """Parameters for UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting""" - input: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput! - ): UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload - """Sets the members can create repositories setting for an enterprise.""" - updateEnterpriseMembersCanCreateRepositoriesSetting( - """Parameters for UpdateEnterpriseMembersCanCreateRepositoriesSetting""" - input: UpdateEnterpriseMembersCanCreateRepositoriesSettingInput! - ): UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload - """Sets the members can delete issues setting for an enterprise.""" - updateEnterpriseMembersCanDeleteIssuesSetting( - """Parameters for UpdateEnterpriseMembersCanDeleteIssuesSetting""" - input: UpdateEnterpriseMembersCanDeleteIssuesSettingInput! - ): UpdateEnterpriseMembersCanDeleteIssuesSettingPayload - """Sets the members can delete repositories setting for an enterprise.""" - updateEnterpriseMembersCanDeleteRepositoriesSetting( - """Parameters for UpdateEnterpriseMembersCanDeleteRepositoriesSetting""" - input: UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput! - ): UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload - """Sets whether members can invite collaborators are enabled for an enterprise.""" - updateEnterpriseMembersCanInviteCollaboratorsSetting( - """Parameters for UpdateEnterpriseMembersCanInviteCollaboratorsSetting""" - input: UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput! - ): UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload - """Sets whether or not an organization admin can make purchases.""" - updateEnterpriseMembersCanMakePurchasesSetting( - """Parameters for UpdateEnterpriseMembersCanMakePurchasesSetting""" - input: UpdateEnterpriseMembersCanMakePurchasesSettingInput! - ): UpdateEnterpriseMembersCanMakePurchasesSettingPayload - """Sets the members can update protected branches setting for an enterprise.""" - updateEnterpriseMembersCanUpdateProtectedBranchesSetting( - """Parameters for UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting""" - input: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput! - ): UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload - """Sets the members can view dependency insights for an enterprise.""" - updateEnterpriseMembersCanViewDependencyInsightsSetting( - """Parameters for UpdateEnterpriseMembersCanViewDependencyInsightsSetting""" - input: UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput! - ): UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload - """Sets whether organization projects are enabled for an enterprise.""" - updateEnterpriseOrganizationProjectsSetting( - """Parameters for UpdateEnterpriseOrganizationProjectsSetting""" - input: UpdateEnterpriseOrganizationProjectsSettingInput! - ): UpdateEnterpriseOrganizationProjectsSettingPayload - """Updates the role of an enterprise owner with an organization.""" - updateEnterpriseOwnerOrganizationRole( - """Parameters for UpdateEnterpriseOwnerOrganizationRole""" - input: UpdateEnterpriseOwnerOrganizationRoleInput! - ): UpdateEnterpriseOwnerOrganizationRolePayload - """Updates an enterprise's profile.""" - updateEnterpriseProfile( - """Parameters for UpdateEnterpriseProfile""" - input: UpdateEnterpriseProfileInput! - ): UpdateEnterpriseProfilePayload - """Sets whether repository projects are enabled for a enterprise.""" - updateEnterpriseRepositoryProjectsSetting( - """Parameters for UpdateEnterpriseRepositoryProjectsSetting""" - input: UpdateEnterpriseRepositoryProjectsSettingInput! - ): UpdateEnterpriseRepositoryProjectsSettingPayload - """Sets whether team discussions are enabled for an enterprise.""" - updateEnterpriseTeamDiscussionsSetting( - """Parameters for UpdateEnterpriseTeamDiscussionsSetting""" - input: UpdateEnterpriseTeamDiscussionsSettingInput! - ): UpdateEnterpriseTeamDiscussionsSettingPayload - """Sets whether two factor authentication is required for all users in an enterprise.""" - updateEnterpriseTwoFactorAuthenticationRequiredSetting( - """Parameters for UpdateEnterpriseTwoFactorAuthenticationRequiredSetting""" - input: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput! - ): UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload - """Updates an environment.""" - updateEnvironment( - """Parameters for UpdateEnvironment""" - input: UpdateEnvironmentInput! - ): UpdateEnvironmentPayload - """Sets whether an IP allow list is enabled on an owner.""" - updateIpAllowListEnabledSetting( - """Parameters for UpdateIpAllowListEnabledSetting""" - input: UpdateIpAllowListEnabledSettingInput! - ): UpdateIpAllowListEnabledSettingPayload - """Updates an IP allow list entry.""" - updateIpAllowListEntry( - """Parameters for UpdateIpAllowListEntry""" - input: UpdateIpAllowListEntryInput! - ): UpdateIpAllowListEntryPayload - """Sets whether IP allow list configuration for installed GitHub Apps is enabled on an owner.""" - updateIpAllowListForInstalledAppsEnabledSetting( - """Parameters for UpdateIpAllowListForInstalledAppsEnabledSetting""" - input: UpdateIpAllowListForInstalledAppsEnabledSettingInput! - ): UpdateIpAllowListForInstalledAppsEnabledSettingPayload - """Updates an Issue.""" - updateIssue( - """Parameters for UpdateIssue""" - input: UpdateIssueInput! - ): UpdateIssuePayload - """Updates an IssueComment object.""" - updateIssueComment( - """Parameters for UpdateIssueComment""" - input: UpdateIssueCommentInput! - ): UpdateIssueCommentPayload - """Update existing mobile push notification schedules.""" - updateMobilePushNotificationSchedules( - """Parameters for UpdateMobilePushNotificationSchedules""" - input: UpdateMobilePushNotificationSchedulesInput! - ): UpdateMobilePushNotificationSchedulesPayload - """Update mobile push notification settings.""" - updateMobilePushNotificationSettings( - """Parameters for UpdateMobilePushNotificationSettings""" - input: UpdateMobilePushNotificationSettingsInput! - ): UpdateMobilePushNotificationSettingsPayload - """Update the setting to restrict notifications to only verified or approved domains available to an owner.""" - updateNotificationRestrictionSetting( - """Parameters for UpdateNotificationRestrictionSetting""" - input: UpdateNotificationRestrictionSettingInput! - ): UpdateNotificationRestrictionSettingPayload - """Updates the user's notification settings.""" - updateNotificationSettings( - """Parameters for UpdateNotificationSettings""" - input: UpdateNotificationSettingsInput! - ): UpdateNotificationSettingsPayload - """Sets whether private repository forks are enabled for an organization.""" - updateOrganizationAllowPrivateRepositoryForkingSetting( - """Parameters for UpdateOrganizationAllowPrivateRepositoryForkingSetting""" - input: UpdateOrganizationAllowPrivateRepositoryForkingSettingInput! - ): UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload - """Sets whether contributors are required to sign off on web-based commits for repositories in an organization.""" - updateOrganizationWebCommitSignoffSetting( - """Parameters for UpdateOrganizationWebCommitSignoffSetting""" - input: UpdateOrganizationWebCommitSignoffSettingInput! - ): UpdateOrganizationWebCommitSignoffSettingPayload - """Updates an existing project.""" - updateProject( - """Parameters for UpdateProject""" - input: UpdateProjectInput! - ): UpdateProjectPayload - """Updates an existing project card.""" - updateProjectCard( - """Parameters for UpdateProjectCard""" - input: UpdateProjectCardInput! - ): UpdateProjectCardPayload - """Updates an existing project column.""" - updateProjectColumn( - """Parameters for UpdateProjectColumn""" - input: UpdateProjectColumnInput! - ): UpdateProjectColumnPayload - """Updates a draft issue within a Project.""" - updateProjectDraftIssue( - """Parameters for UpdateProjectDraftIssue""" - input: UpdateProjectDraftIssueInput! - ): UpdateProjectDraftIssuePayload @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Updates an existing project (beta).""" - updateProjectNext( - """Parameters for UpdateProjectNext""" - input: UpdateProjectNextInput! - ): UpdateProjectNextPayload @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Updates a field of an item from a Project.""" - updateProjectNextItemField( - """Parameters for UpdateProjectNextItemField""" - input: UpdateProjectNextItemFieldInput! - ): UpdateProjectNextItemFieldPayload @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Updates an existing project (beta).""" - updateProjectV2( - """Parameters for UpdateProjectV2""" - input: UpdateProjectV2Input! - ): UpdateProjectV2Payload - """Updates a draft issue within a Project.""" - updateProjectV2DraftIssue( - """Parameters for UpdateProjectV2DraftIssue""" - input: UpdateProjectV2DraftIssueInput! - ): UpdateProjectV2DraftIssuePayload - """This mutation updates the value of a field for an item in a Project. Currently only single-select, text, number, date, and iteration fields are supported.""" - updateProjectV2ItemFieldValue( - """Parameters for UpdateProjectV2ItemFieldValue""" - input: UpdateProjectV2ItemFieldValueInput! - ): UpdateProjectV2ItemFieldValuePayload - """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 - """Update a pull request""" - updatePullRequest( - """Parameters for UpdatePullRequest""" - input: UpdatePullRequestInput! - ): UpdatePullRequestPayload - """Merge or Rebase HEAD from upstream branch into pull request branch""" - updatePullRequestBranch( - """Parameters for UpdatePullRequestBranch""" - input: UpdatePullRequestBranchInput! - ): UpdatePullRequestBranchPayload - """Updates the body of a pull request review.""" - updatePullRequestReview( - """Parameters for UpdatePullRequestReview""" - input: UpdatePullRequestReviewInput! - ): UpdatePullRequestReviewPayload - """Updates a pull request review comment.""" - updatePullRequestReviewComment( - """Parameters for UpdatePullRequestReviewComment""" - input: UpdatePullRequestReviewCommentInput! - ): UpdatePullRequestReviewCommentPayload - """Update a Git Ref.""" - updateRef( - """Parameters for UpdateRef""" - input: UpdateRefInput! - ): UpdateRefPayload - """Update information about a repository.""" - updateRepository( - """Parameters for UpdateRepository""" - input: UpdateRepositoryInput! - ): UpdateRepositoryPayload - """Sets whether contributors are required to sign off on web-based commits for a repository.""" - updateRepositoryWebCommitSignoffSetting( - """Parameters for UpdateRepositoryWebCommitSignoffSetting""" - input: UpdateRepositoryWebCommitSignoffSettingInput! - ): UpdateRepositoryWebCommitSignoffSettingPayload - """Change visibility of your sponsorship and opt in or out of email updates from the maintainer.""" - updateSponsorshipPreferences( - """Parameters for UpdateSponsorshipPreferences""" - input: UpdateSponsorshipPreferencesInput! - ): UpdateSponsorshipPreferencesPayload - """Updates the state for subscribable subjects.""" - updateSubscription( - """Parameters for UpdateSubscription""" - input: UpdateSubscriptionInput! - ): UpdateSubscriptionPayload - """Update a team dashboard search shortcut for the current viewer.""" - updateTeamDashboardSearchShortcut( - """Parameters for UpdateTeamDashboardSearchShortcut""" - input: UpdateTeamDashboardSearchShortcutInput! - ): UpdateTeamDashboardSearchShortcutPayload - """Updates a team discussion.""" - updateTeamDiscussion( - """Parameters for UpdateTeamDiscussion""" - input: UpdateTeamDiscussionInput! - ): UpdateTeamDiscussionPayload - """Updates a discussion comment.""" - updateTeamDiscussionComment( - """Parameters for UpdateTeamDiscussionComment""" - input: UpdateTeamDiscussionCommentInput! - ): UpdateTeamDiscussionCommentPayload - """Update team repository.""" - updateTeamsRepository( - """Parameters for UpdateTeamsRepository""" - input: UpdateTeamsRepositoryInput! - ): UpdateTeamsRepositoryPayload - """Replaces the repository's topics with the given topics.""" - updateTopics( - """Parameters for UpdateTopics""" - input: UpdateTopicsInput! - ): UpdateTopicsPayload - """Update sort order and hidden status of the current user's dashboard navigation links.""" - updateUserDashboardNavLinks( - """Parameters for UpdateUserDashboardNavLinks""" - input: UpdateUserDashboardNavLinksInput! - ): UpdateUserDashboardNavLinksPayload - """Pin an item to a user's dashboard without modifying other pins.""" - updateUserDashboardPins( - """Parameters for UpdateUserDashboardPins""" - input: UpdateUserDashboardPinsInput! - ): UpdateUserDashboardPinsPayload - """Updates an existing user list.""" - updateUserList( - """Parameters for UpdateUserList""" - input: UpdateUserListInput! - ): UpdateUserListPayload - """Updates which of the viewer's lists an item belongs to""" - updateUserListsForItem( - """Parameters for UpdateUserListsForItem""" - input: UpdateUserListsForItemInput! - ): UpdateUserListsForItemPayload - """Update the user's mobile time zone.""" - updateUserMobileTimeZone( - """Parameters for UpdateUserMobileTimeZone""" - input: UpdateUserMobileTimeZoneInput! - ): UpdateUserMobileTimeZonePayload - """Verify that a verifiable domain has the expected DNS record.""" - verifyVerifiableDomain( - """Parameters for VerifyVerifiableDomain""" - input: VerifyVerifiableDomainInput! - ): VerifyVerifiableDomainPayload + """Clear all of a customer's queued migrations""" + abortQueuedMigrations( + """Parameters for AbortQueuedMigrations""" + input: AbortQueuedMigrationsInput! + ): AbortQueuedMigrationsPayload + """Accepts a pending invitation for a user to become an administrator of an enterprise.""" + acceptEnterpriseAdministratorInvitation( + """Parameters for AcceptEnterpriseAdministratorInvitation""" + input: AcceptEnterpriseAdministratorInvitationInput! + ): AcceptEnterpriseAdministratorInvitationPayload + """Applies a suggested topic to the repository.""" + acceptTopicSuggestion( + """Parameters for AcceptTopicSuggestion""" + input: AcceptTopicSuggestionInput! + ): AcceptTopicSuggestionPayload + """Adds assignees to an assignable object.""" + addAssigneesToAssignable( + """Parameters for AddAssigneesToAssignable""" + input: AddAssigneesToAssignableInput! + ): AddAssigneesToAssignablePayload + """Adds a comment to an Issue or Pull Request.""" + addComment( + """Parameters for AddComment""" + input: AddCommentInput! + ): AddCommentPayload + """Adds a comment to a Discussion, possibly as a reply to another comment.""" + addDiscussionComment( + """Parameters for AddDiscussionComment""" + input: AddDiscussionCommentInput! + ): AddDiscussionCommentPayload + """Vote for an option in a discussion poll.""" + addDiscussionPollVote( + """Parameters for AddDiscussionPollVote""" + input: AddDiscussionPollVoteInput! + ): AddDiscussionPollVotePayload + """Adds enterprise members to an organization within the enterprise.""" + addEnterpriseOrganizationMember( + """Parameters for AddEnterpriseOrganizationMember""" + input: AddEnterpriseOrganizationMemberInput! + ): AddEnterpriseOrganizationMemberPayload + """Adds a support entitlement to an enterprise member.""" + addEnterpriseSupportEntitlement( + """Parameters for AddEnterpriseSupportEntitlement""" + input: AddEnterpriseSupportEntitlementInput! + ): AddEnterpriseSupportEntitlementPayload + """Adds labels to a labelable object.""" + addLabelsToLabelable( + """Parameters for AddLabelsToLabelable""" + input: AddLabelsToLabelableInput! + ): AddLabelsToLabelablePayload + """Adds a public key registrations associated with the viewer's mobile device.""" + addMobileDevicePublicKey( + """Parameters for AddMobileDevicePublicKey""" + input: AddMobileDevicePublicKeyInput! + ): AddMobileDevicePublicKeyPayload + """Associate a mobile device token with the current viewer.""" + addMobileDeviceToken( + """Parameters for AddMobileDeviceToken""" + input: AddMobileDeviceTokenInput! + ): AddMobileDeviceTokenPayload + """Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both.""" + addProjectCard( + """Parameters for AddProjectCard""" + input: AddProjectCardInput! + ): AddProjectCardPayload + """Adds a column to a Project.""" + addProjectColumn( + """Parameters for AddProjectColumn""" + input: AddProjectColumnInput! + ): AddProjectColumnPayload + """Creates a new draft issue and add it to a Project.""" + addProjectDraftIssue( + """Parameters for AddProjectDraftIssue""" + input: AddProjectDraftIssueInput! + ): AddProjectDraftIssuePayload + """Adds an existing item (Issue or PullRequest) to a Project.""" + addProjectNextItem( + """Parameters for AddProjectNextItem""" + input: AddProjectNextItemInput! + ): AddProjectNextItemPayload + """Creates a new draft issue and add it to a Project.""" + addProjectV2DraftIssue( + """Parameters for AddProjectV2DraftIssue""" + input: AddProjectV2DraftIssueInput! + ): AddProjectV2DraftIssuePayload + """Links an existing content instance to a Project.""" + addProjectV2ItemById( + """Parameters for AddProjectV2ItemById""" + input: AddProjectV2ItemByIdInput! + ): AddProjectV2ItemByIdPayload + """Adds a review to a Pull Request.""" + addPullRequestReview( + """Parameters for AddPullRequestReview""" + input: AddPullRequestReviewInput! + ): AddPullRequestReviewPayload + """Adds a comment to a review.""" + addPullRequestReviewComment( + """Parameters for AddPullRequestReviewComment""" + input: AddPullRequestReviewCommentInput! + ): AddPullRequestReviewCommentPayload + """Adds a new thread to a pending Pull Request Review.""" + addPullRequestReviewThread( + """Parameters for AddPullRequestReviewThread""" + input: AddPullRequestReviewThreadInput! + ): AddPullRequestReviewThreadPayload + """Adds a reply to an existing Pull Request Review Thread.""" + addPullRequestReviewThreadReply( + """Parameters for AddPullRequestReviewThreadReply""" + input: AddPullRequestReviewThreadReplyInput! + ): AddPullRequestReviewThreadReplyPayload + """Adds a reaction to a subject.""" + addReaction( + """Parameters for AddReaction""" + input: AddReactionInput! + ): AddReactionPayload + """Adds a star to a Starrable.""" + addStar( + """Parameters for AddStar""" + input: AddStarInput! + ): AddStarPayload + """Add an upvote to a discussion or discussion comment.""" + addUpvote( + """Parameters for AddUpvote""" + input: AddUpvoteInput! + ): AddUpvotePayload + """Adds a verifiable domain to an owning account.""" + addVerifiableDomain( + """Parameters for AddVerifiableDomain""" + input: AddVerifiableDomainInput! + ): AddVerifiableDomainPayload + """Applies a set of suggested changes to files""" + applyMobileSuggestedChanges( + """Parameters for ApplyMobileSuggestedChanges""" + input: ApplyMobileSuggestedChangesInput! + ): ApplyMobileSuggestedChangesPayload + """Approve all of the action_required workflows on a pull request""" + approveActionRequiredWorkflowRuns( + """Parameters for ApproveActionRequiredWorkflowRuns""" + input: ApproveActionRequiredWorkflowRunsInput! + ): ApproveActionRequiredWorkflowRunsPayload + """Approve all pending deployments under one or more environments""" + approveDeployments( + """Parameters for ApproveDeployments""" + input: ApproveDeploymentsInput! + ): ApproveDeploymentsPayload + """Approves a mobile authentication request associated with a specific device.""" + approveMobileAuthDeviceRequest( + """Parameters for ApproveMobileAuthDeviceRequest""" + input: ApproveMobileAuthDeviceRequestInput! + ): ApproveMobileAuthDeviceRequestPayload + """Approve a verifiable domain for notification delivery.""" + approveVerifiableDomain( + """Parameters for ApproveVerifiableDomain""" + input: ApproveVerifiableDomainInput! + ): ApproveVerifiableDomainPayload + """Archives a ProjectV2Item""" + archiveProjectV2Item( + """Parameters for ArchiveProjectV2Item""" + input: ArchiveProjectV2ItemInput! + ): ArchiveProjectV2ItemPayload + """Marks a repository as archived.""" + archiveRepository( + """Parameters for ArchiveRepository""" + input: ArchiveRepositoryInput! + ): ArchiveRepositoryPayload + """Block another user""" + blockUser( + """Parameters for BlockUser""" + input: BlockUserInput! + ): BlockUserPayload + """Block a user from an organization""" + blockUserFromOrganization( + """Parameters for BlockUserFromOrganization""" + input: BlockUserFromOrganizationInput! + ): BlockUserFromOrganizationPayload + """Cancels a pending invitation for an administrator to join an enterprise.""" + cancelEnterpriseAdminInvitation( + """Parameters for CancelEnterpriseAdminInvitation""" + input: CancelEnterpriseAdminInvitationInput! + ): CancelEnterpriseAdminInvitationPayload + """Cancel an active sponsorship.""" + cancelSponsorship( + """Parameters for CancelSponsorship""" + input: CancelSponsorshipInput! + ): CancelSponsorshipPayload + """Cancels a workflow run""" + cancelWorkflowRun( + """Parameters for CancelWorkflowRun""" + input: CancelWorkflowRunInput! + ): CancelWorkflowRunPayload + """Update your status on GitHub.""" + changeUserStatus( + """Parameters for ChangeUserStatus""" + input: ChangeUserStatusInput! + ): ChangeUserStatusPayload + """Clears all labels from a labelable object.""" + clearLabelsFromLabelable( + """Parameters for ClearLabelsFromLabelable""" + input: ClearLabelsFromLabelableInput! + ): ClearLabelsFromLabelablePayload + """This mutation clears the value of a field for an item in a Project. Currently only text, number, date, assignees, labels, single-select, iteration and milestone fields are supported.""" + clearProjectV2ItemFieldValue( + """Parameters for ClearProjectV2ItemFieldValue""" + input: ClearProjectV2ItemFieldValueInput! + ): ClearProjectV2ItemFieldValuePayload + """Creates a new project by cloning configuration from an existing project.""" + cloneProject( + """Parameters for CloneProject""" + input: CloneProjectInput! + ): CloneProjectPayload + """Create a new repository with the same files and directory structure as a template repository.""" + cloneTemplateRepository( + """Parameters for CloneTemplateRepository""" + input: CloneTemplateRepositoryInput! + ): CloneTemplateRepositoryPayload + """Close a discussion.""" + closeDiscussion( + """Parameters for CloseDiscussion""" + input: CloseDiscussionInput! + ): CloseDiscussionPayload + """Close an issue.""" + closeIssue( + """Parameters for CloseIssue""" + input: CloseIssueInput! + ): CloseIssuePayload + """Close a pull request.""" + closePullRequest( + """Parameters for ClosePullRequest""" + input: ClosePullRequestInput! + ): ClosePullRequestPayload + """Convert a project note card to one associated with a newly created issue.""" + convertProjectCardNoteToIssue( + """Parameters for ConvertProjectCardNoteToIssue""" + input: ConvertProjectCardNoteToIssueInput! + ): ConvertProjectCardNoteToIssuePayload + """Converts a pull request to draft""" + convertPullRequestToDraft( + """Parameters for ConvertPullRequestToDraft""" + input: ConvertPullRequestToDraftInput! + ): ConvertPullRequestToDraftPayload + """Copy a project.""" + copyProjectV2( + """Parameters for CopyProjectV2""" + input: CopyProjectV2Input! + ): CopyProjectV2Payload + """Invites a user to claim reattributable data""" + createAttributionInvitation( + """Parameters for CreateAttributionInvitation""" + input: CreateAttributionInvitationInput! + ): CreateAttributionInvitationPayload + """Create a new branch protection rule""" + createBranchProtectionRule( + """Parameters for CreateBranchProtectionRule""" + input: CreateBranchProtectionRuleInput! + ): CreateBranchProtectionRulePayload + """Create a check run.""" + createCheckRun( + """Parameters for CreateCheckRun""" + input: CreateCheckRunInput! + ): CreateCheckRunPayload + """Create a check suite""" + createCheckSuite( + """Parameters for CreateCheckSuite""" + input: CreateCheckSuiteInput! + ): CreateCheckSuitePayload + """ + 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 + """Creates access metadata for fetching completed workflow logs""" + createCompletedWorkflowLogsAccess( + """Parameters for CreateCompletedWorkflowLogsAccess""" + input: CreateCompletedWorkflowLogsAccessInput! + ): CreateCompletedWorkflowLogsAccessPayload + """Create a new dashboard search shortcut for the current viewer.""" + createDashboardSearchShortcut( + """Parameters for CreateDashboardSearchShortcut""" + input: CreateDashboardSearchShortcutInput! + ): CreateDashboardSearchShortcutPayload + """Create a discussion.""" + createDiscussion( + """Parameters for CreateDiscussion""" + input: CreateDiscussionInput! + ): CreateDiscussionPayload + """Creates an organization as part of an enterprise account.""" + createEnterpriseOrganization( + """Parameters for CreateEnterpriseOrganization""" + input: CreateEnterpriseOrganizationInput! + ): CreateEnterpriseOrganizationPayload + """Creates an environment or simply returns it if already exists.""" + createEnvironment( + """Parameters for CreateEnvironment""" + input: CreateEnvironmentInput! + ): CreateEnvironmentPayload + """Creates a new IP allow list entry.""" + createIpAllowListEntry( + """Parameters for CreateIpAllowListEntry""" + input: CreateIpAllowListEntryInput! + ): CreateIpAllowListEntryPayload + """Creates a new issue.""" + createIssue( + """Parameters for CreateIssue""" + input: CreateIssueInput! + ): CreateIssuePayload + """Create a branch linked to an issue.""" + createLinkedBranch( + """Parameters for CreateLinkedBranch""" + input: CreateLinkedBranchInput! + ): CreateLinkedBranchPayload + """Creates a GitHub Enterprise Importer (GEI) migration source.""" + createMigrationSource( + """Parameters for CreateMigrationSource""" + input: CreateMigrationSourceInput! + ): CreateMigrationSourcePayload + """Creates mobile push notification schedules.""" + createMobilePushNotificationSchedules( + """Parameters for CreateMobilePushNotificationSchedules""" + input: CreateMobilePushNotificationSchedulesInput! + ): CreateMobilePushNotificationSchedulesPayload + """Creates a subscription representing a in-app purchase""" + createMobileSubscription( + """Parameters for CreateMobileSubscription""" + input: CreateMobileSubscriptionInput! + ): CreateMobileSubscriptionPayload + """Creates a new project.""" + createProject( + """Parameters for CreateProject""" + input: CreateProjectInput! + ): CreateProjectPayload + """Creates a new project.""" + createProjectV2( + """Parameters for CreateProjectV2""" + input: CreateProjectV2Input! + ): CreateProjectV2Payload + """Create a new project field.""" + createProjectV2Field( + """Parameters for CreateProjectV2Field""" + input: CreateProjectV2FieldInput! + ): CreateProjectV2FieldPayload + """Create a new pull request""" + createPullRequest( + """Parameters for CreatePullRequest""" + input: CreatePullRequestInput! + ): CreatePullRequestPayload + """Create a new Git Ref.""" + createRef( + """Parameters for CreateRef""" + input: CreateRefInput! + ): CreateRefPayload + """Create a new repository.""" + createRepository( + """Parameters for CreateRepository""" + input: CreateRepositoryInput! + ): CreateRepositoryPayload + """Create a repository ruleset""" + createRepositoryRuleset( + """Parameters for CreateRepositoryRuleset""" + input: CreateRepositoryRulesetInput! + ): CreateRepositoryRulesetPayload + """Adds a saved notification thread.""" + createSavedNotificationThread( + """Parameters for CreateSavedNotificationThread""" + input: CreateSavedNotificationThreadInput! + ): CreateSavedNotificationThreadPayload + """Create a GitHub Sponsors profile to allow others to sponsor you or your organization.""" + createSponsorsListing( + """Parameters for CreateSponsorsListing""" + input: CreateSponsorsListingInput! + ): CreateSponsorsListingPayload + """Create a new payment tier for your GitHub Sponsors profile.""" + createSponsorsTier( + """Parameters for CreateSponsorsTier""" + input: CreateSponsorsTierInput! + ): CreateSponsorsTierPayload + """Start a new sponsorship of a maintainer in GitHub Sponsors, or reactivate a past sponsorship.""" + createSponsorship( + """Parameters for CreateSponsorship""" + input: CreateSponsorshipInput! + ): CreateSponsorshipPayload + """Make many one-time 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 + """Create a new search shortcut for the given team dashboard.""" + createTeamDashboardSearchShortcut( + """Parameters for CreateTeamDashboardSearchShortcut""" + input: CreateTeamDashboardSearchShortcutInput! + ): CreateTeamDashboardSearchShortcutPayload + """Creates a new team discussion.""" + createTeamDiscussion( + """Parameters for CreateTeamDiscussion""" + input: CreateTeamDiscussionInput! + ): CreateTeamDiscussionPayload + """Creates a new team discussion comment.""" + createTeamDiscussionComment( + """Parameters for CreateTeamDiscussionComment""" + input: CreateTeamDiscussionCommentInput! + ): CreateTeamDiscussionCommentPayload + """Pin an item to a user's dashboard without modifying other pins.""" + createUserDashboardPin( + """Parameters for CreateUserDashboardPin""" + input: CreateUserDashboardPinInput! + ): CreateUserDashboardPinPayload + """Register a user's disinterest in a feed item""" + createUserDisinterest( + """Parameters for CreateUserDisinterest""" + input: CreateUserDisinterestInput! + ): CreateUserDisinterestPayload + """Creates a new user list.""" + createUserList( + """Parameters for CreateUserList""" + input: CreateUserListInput! + ): CreateUserListPayload + """Rejects a suggested topic for the repository.""" + declineTopicSuggestion( + """Parameters for DeclineTopicSuggestion""" + input: DeclineTopicSuggestionInput! + ): DeclineTopicSuggestionPayload + """Delete a branch protection rule""" + deleteBranchProtectionRule( + """Parameters for DeleteBranchProtectionRule""" + input: DeleteBranchProtectionRuleInput! + ): DeleteBranchProtectionRulePayload + """Deletes a deployment.""" + deleteDeployment( + """Parameters for DeleteDeployment""" + input: DeleteDeploymentInput! + ): DeleteDeploymentPayload + """Delete a discussion and all of its replies.""" + deleteDiscussion( + """Parameters for DeleteDiscussion""" + input: DeleteDiscussionInput! + ): DeleteDiscussionPayload + """Delete a discussion comment. If it has replies, wipe it instead.""" + deleteDiscussionComment( + """Parameters for DeleteDiscussionComment""" + input: DeleteDiscussionCommentInput! + ): DeleteDiscussionCommentPayload + """Deletes an environment""" + deleteEnvironment( + """Parameters for DeleteEnvironment""" + input: DeleteEnvironmentInput! + ): DeleteEnvironmentPayload + """Deletes an IP allow list entry.""" + deleteIpAllowListEntry( + """Parameters for DeleteIpAllowListEntry""" + input: DeleteIpAllowListEntryInput! + ): DeleteIpAllowListEntryPayload + """Deletes an Issue object.""" + deleteIssue( + """Parameters for DeleteIssue""" + input: DeleteIssueInput! + ): DeleteIssuePayload + """Deletes an IssueComment object.""" + deleteIssueComment( + """Parameters for DeleteIssueComment""" + input: DeleteIssueCommentInput! + ): DeleteIssueCommentPayload + """Unlink a branch from an issue.""" + deleteLinkedBranch( + """Parameters for DeleteLinkedBranch""" + input: DeleteLinkedBranchInput! + ): DeleteLinkedBranchPayload + """Deletes the public key registration associated with the viewer's mobile device.""" + deleteMobileDevicePublicKey( + """Parameters for DeleteMobileDevicePublicKey""" + input: DeleteMobileDevicePublicKeyInput! + ): DeleteMobileDevicePublicKeyPayload + """Delete a mobile device token.""" + deleteMobileDeviceToken( + """Parameters for DeleteMobileDeviceToken""" + input: DeleteMobileDeviceTokenInput! + ): DeleteMobileDeviceTokenPayload + """Delete a mobile push notification schedule.""" + deleteMobilePushNotificationSchedule( + """Parameters for DeleteMobilePushNotificationSchedule""" + input: DeleteMobilePushNotificationScheduleInput! + ): DeleteMobilePushNotificationSchedulePayload + """Deletes a project.""" + deleteProject( + """Parameters for DeleteProject""" + input: DeleteProjectInput! + ): DeleteProjectPayload + """Deletes a project card.""" + deleteProjectCard( + """Parameters for DeleteProjectCard""" + input: DeleteProjectCardInput! + ): DeleteProjectCardPayload + """Deletes a project column.""" + deleteProjectColumn( + """Parameters for DeleteProjectColumn""" + input: DeleteProjectColumnInput! + ): DeleteProjectColumnPayload + """Deletes an item from a Project.""" + deleteProjectNextItem( + """Parameters for DeleteProjectNextItem""" + input: DeleteProjectNextItemInput! + ): DeleteProjectNextItemPayload + """Delete a project.""" + deleteProjectV2( + """Parameters for DeleteProjectV2""" + input: DeleteProjectV2Input! + ): DeleteProjectV2Payload + """Delete a project field.""" + deleteProjectV2Field( + """Parameters for DeleteProjectV2Field""" + input: DeleteProjectV2FieldInput! + ): DeleteProjectV2FieldPayload + """Deletes an item from a Project.""" + deleteProjectV2Item( + """Parameters for DeleteProjectV2Item""" + input: DeleteProjectV2ItemInput! + ): DeleteProjectV2ItemPayload + """Deletes a project workflow.""" + deleteProjectV2Workflow( + """Parameters for DeleteProjectV2Workflow""" + input: DeleteProjectV2WorkflowInput! + ): DeleteProjectV2WorkflowPayload + """Deletes a pull request review.""" + deletePullRequestReview( + """Parameters for DeletePullRequestReview""" + input: DeletePullRequestReviewInput! + ): DeletePullRequestReviewPayload + """Deletes a pull request review comment.""" + deletePullRequestReviewComment( + """Parameters for DeletePullRequestReviewComment""" + input: DeletePullRequestReviewCommentInput! + ): DeletePullRequestReviewCommentPayload + """Delete a Git Ref.""" + deleteRef( + """Parameters for DeleteRef""" + input: DeleteRefInput! + ): DeleteRefPayload + """Delete a repository ruleset""" + deleteRepositoryRuleset( + """Parameters for DeleteRepositoryRuleset""" + input: DeleteRepositoryRulesetInput! + ): DeleteRepositoryRulesetPayload + """Deletes a saved notification thread.""" + deleteSavedNotificationThread( + """Parameters for DeleteSavedNotificationThread""" + input: DeleteSavedNotificationThreadInput! + ): DeleteSavedNotificationThreadPayload + """Deletes a team discussion.""" + deleteTeamDiscussion( + """Parameters for DeleteTeamDiscussion""" + input: DeleteTeamDiscussionInput! + ): DeleteTeamDiscussionPayload + """Deletes a team discussion comment.""" + deleteTeamDiscussionComment( + """Parameters for DeleteTeamDiscussionComment""" + input: DeleteTeamDiscussionCommentInput! + ): DeleteTeamDiscussionCommentPayload + """Unpin an item from a user's dashboard without modifying other pins.""" + deleteUserDashboardPin( + """Parameters for DeleteUserDashboardPin""" + input: DeleteUserDashboardPinInput! + ): DeleteUserDashboardPinPayload + """Deletes a user list.""" + deleteUserList( + """Parameters for DeleteUserList""" + input: DeleteUserListInput! + ): DeleteUserListPayload + """Deletes a verifiable domain.""" + deleteVerifiableDomain( + """Parameters for DeleteVerifiableDomain""" + input: DeleteVerifiableDomainInput! + ): DeleteVerifiableDomainPayload + """Remove a pull request from the merge queue.""" + dequeuePullRequest( + """Parameters for DequeuePullRequest""" + input: DequeuePullRequestInput! + ): DequeuePullRequestPayload + """Disable auto merge on the given pull request""" + disablePullRequestAutoMerge( + """Parameters for DisablePullRequestAutoMerge""" + input: DisablePullRequestAutoMergeInput! + ): DisablePullRequestAutoMergePayload + """Dismisses an approved or rejected pull request review.""" + dismissPullRequestReview( + """Parameters for DismissPullRequestReview""" + input: DismissPullRequestReviewInput! + ): DismissPullRequestReviewPayload + """Dismisses the Dependabot alert.""" + dismissRepositoryVulnerabilityAlert( + """Parameters for DismissRepositoryVulnerabilityAlert""" + input: DismissRepositoryVulnerabilityAlertInput! + ): DismissRepositoryVulnerabilityAlertPayload + """Enable the default auto-merge on a pull request.""" + enablePullRequestAutoMerge( + """Parameters for EnablePullRequestAutoMerge""" + input: EnablePullRequestAutoMergeInput! + ): EnablePullRequestAutoMergePayload + """Add a pull request to the merge queue.""" + enqueuePullRequest( + """Parameters for EnqueuePullRequest""" + input: EnqueuePullRequestInput! + ): EnqueuePullRequestPayload + """Follow an organization.""" + followOrganization( + """Parameters for FollowOrganization""" + input: FollowOrganizationInput! + ): FollowOrganizationPayload + """Follow a user.""" + followUser( + """Parameters for FollowUser""" + input: FollowUserInput! + ): FollowUserPayload + """Grant the migrator role to a user for all organizations under an enterprise account.""" + grantEnterpriseOrganizationsMigratorRole( + """Parameters for GrantEnterpriseOrganizationsMigratorRole""" + input: GrantEnterpriseOrganizationsMigratorRoleInput! + ): GrantEnterpriseOrganizationsMigratorRolePayload + """Grant the migrator role to a user or a team.""" + grantMigratorRole( + """Parameters for GrantMigratorRole""" + input: GrantMigratorRoleInput! + ): GrantMigratorRolePayload + """Invite someone to become an administrator of the enterprise.""" + inviteEnterpriseAdmin( + """Parameters for InviteEnterpriseAdmin""" + input: InviteEnterpriseAdminInput! + ): InviteEnterpriseAdminPayload + """Link an issue to a pull request or a pull request to an issue.""" + linkIssueOrPullRequest( + """Parameters for LinkIssueOrPullRequest""" + input: LinkIssueOrPullRequestInput! + ): LinkIssueOrPullRequestPayload + """Links a project to a repository.""" + linkProjectV2ToRepository( + """Parameters for LinkProjectV2ToRepository""" + input: LinkProjectV2ToRepositoryInput! + ): LinkProjectV2ToRepositoryPayload + """Links a project to a team.""" + linkProjectV2ToTeam( + """Parameters for LinkProjectV2ToTeam""" + input: LinkProjectV2ToTeamInput! + ): LinkProjectV2ToTeamPayload + """Creates a repository link for a project.""" + linkRepositoryToProject( + """Parameters for LinkRepositoryToProject""" + input: LinkRepositoryToProjectInput! + ): LinkRepositoryToProjectPayload + """Lock a lockable object""" + lockLockable( + """Parameters for LockLockable""" + input: LockLockableInput! + ): LockLockablePayload + """Mark a discussion comment as the chosen answer for discussions in an answerable category.""" + markDiscussionCommentAsAnswer( + """Parameters for MarkDiscussionCommentAsAnswer""" + input: MarkDiscussionCommentAsAnswerInput! + ): MarkDiscussionCommentAsAnswerPayload + """Mark a pull request file as viewed""" + markFileAsViewed( + """Parameters for MarkFileAsViewed""" + input: MarkFileAsViewedInput! + ): MarkFileAsViewedPayload + """Marks a notification as done""" + markNotificationAsDone( + """Parameters for MarkNotificationAsDone""" + input: MarkNotificationAsDoneInput! + ): MarkNotificationAsDonePayload + """Marks a notification as read""" + markNotificationAsRead( + """Parameters for MarkNotificationAsRead""" + input: MarkNotificationAsReadInput! + ): MarkNotificationAsReadPayload + """Marks a notification as undone""" + markNotificationAsUndone( + """Parameters for MarkNotificationAsUndone""" + input: MarkNotificationAsUndoneInput! + ): MarkNotificationAsUndonePayload + """Marks a notification as unread""" + markNotificationAsUnread( + """Parameters for MarkNotificationAsUnread""" + input: MarkNotificationAsUnreadInput! + ): MarkNotificationAsUnreadPayload + """Marks a notification as read""" + markNotificationSubjectAsRead( + """Parameters for MarkNotificationSubjectAsRead""" + input: MarkNotificationSubjectAsReadInput! + ): MarkNotificationSubjectAsReadPayload + """Marks a notification as done""" + markNotificationsAsDone( + """Parameters for MarkNotificationsAsDone""" + input: MarkNotificationsAsDoneInput! + ): MarkNotificationsAsDonePayload + """Marks multiple notifications as read""" + markNotificationsAsRead( + """Parameters for MarkNotificationsAsRead""" + input: MarkNotificationsAsReadInput! + ): MarkNotificationsAsReadPayload + """Marks a notification as undone""" + markNotificationsAsUndone( + """Parameters for MarkNotificationsAsUndone""" + input: MarkNotificationsAsUndoneInput! + ): MarkNotificationsAsUndonePayload + """Marks notifications as unread""" + markNotificationsAsUnread( + """Parameters for MarkNotificationsAsUnread""" + input: MarkNotificationsAsUnreadInput! + ): MarkNotificationsAsUnreadPayload + """Marks a pull request ready for review.""" + markPullRequestReadyForReview( + """Parameters for MarkPullRequestReadyForReview""" + input: MarkPullRequestReadyForReviewInput! + ): MarkPullRequestReadyForReviewPayload + """Merge a head into a branch.""" + mergeBranch( + """Parameters for MergeBranch""" + input: MergeBranchInput! + ): MergeBranchPayload + """Merge a pull request.""" + mergePullRequest( + """Parameters for MergePullRequest""" + input: MergePullRequestInput! + ): MergePullRequestPayload + """Minimizes a comment on an Issue, Commit, Pull Request, or Gist""" + minimizeComment( + """Parameters for MinimizeComment""" + input: MinimizeCommentInput! + ): MinimizeCommentPayload + """Sends a batch of hydro analytics for a user.""" + mobileEventsUpdate( + """Parameters for MobileEventsUpdate""" + input: MobileEventsUpdateInput! + ): MobileEventsUpdatePayload + """Move a dashboard shortcut to a position behind another for the current viewer.""" + moveDashboardSearchShortcut( + """Parameters for MoveDashboardSearchShortcut""" + input: MoveDashboardSearchShortcutInput! + ): MoveDashboardSearchShortcutPayload + """Moves a project card to another place.""" + moveProjectCard( + """Parameters for MoveProjectCard""" + input: MoveProjectCardInput! + ): MoveProjectCardPayload + """Moves a project column to another place.""" + moveProjectColumn( + """Parameters for MoveProjectColumn""" + input: MoveProjectColumnInput! + ): MoveProjectColumnPayload + """Pin an issue to a repository""" + pinIssue( + """Parameters for PinIssue""" + input: PinIssueInput! + ): PinIssuePayload + """Publish an existing sponsorship tier that is currently still a draft to a GitHub Sponsors profile.""" + publishSponsorsTier( + """Parameters for PublishSponsorsTier""" + input: PublishSponsorsTierInput! + ): PublishSponsorsTierPayload + """Regenerates the identity provider recovery codes for an enterprise""" + regenerateEnterpriseIdentityProviderRecoveryCodes( + """Parameters for RegenerateEnterpriseIdentityProviderRecoveryCodes""" + input: RegenerateEnterpriseIdentityProviderRecoveryCodesInput! + ): RegenerateEnterpriseIdentityProviderRecoveryCodesPayload + """Regenerates a verifiable domain's verification token.""" + regenerateVerifiableDomainToken( + """Parameters for RegenerateVerifiableDomainToken""" + input: RegenerateVerifiableDomainTokenInput! + ): RegenerateVerifiableDomainTokenPayload + """Reject all pending deployments under one or more environments""" + rejectDeployments( + """Parameters for RejectDeployments""" + input: RejectDeploymentsInput! + ): RejectDeploymentsPayload + """Rejects a mobile authentication request associated with a specific device.""" + rejectMobileAuthDeviceRequest( + """Parameters for RejectMobileAuthDeviceRequest""" + input: RejectMobileAuthDeviceRequestInput! + ): RejectMobileAuthDeviceRequestPayload + """Removes assignees from an assignable object.""" + removeAssigneesFromAssignable( + """Parameters for RemoveAssigneesFromAssignable""" + input: RemoveAssigneesFromAssignableInput! + ): RemoveAssigneesFromAssignablePayload + """Remove a dashboard search shortcut for the current viewer.""" + removeDashboardSearchShortcut( + """Parameters for RemoveDashboardSearchShortcut""" + input: RemoveDashboardSearchShortcutInput! + ): RemoveDashboardSearchShortcutPayload + """Removes an administrator from the enterprise.""" + removeEnterpriseAdmin( + """Parameters for RemoveEnterpriseAdmin""" + input: RemoveEnterpriseAdminInput! + ): RemoveEnterpriseAdminPayload + """Removes the identity provider from an enterprise""" + removeEnterpriseIdentityProvider( + """Parameters for RemoveEnterpriseIdentityProvider""" + input: RemoveEnterpriseIdentityProviderInput! + ): RemoveEnterpriseIdentityProviderPayload + """Removes a user from all organizations within the enterprise""" + removeEnterpriseMember( + """Parameters for RemoveEnterpriseMember""" + input: RemoveEnterpriseMemberInput! + ): RemoveEnterpriseMemberPayload + """Removes an organization from the enterprise""" + removeEnterpriseOrganization( + """Parameters for RemoveEnterpriseOrganization""" + input: RemoveEnterpriseOrganizationInput! + ): RemoveEnterpriseOrganizationPayload + """Removes a support entitlement from an enterprise member.""" + removeEnterpriseSupportEntitlement( + """Parameters for RemoveEnterpriseSupportEntitlement""" + input: RemoveEnterpriseSupportEntitlementInput! + ): RemoveEnterpriseSupportEntitlementPayload + """Removes labels from a Labelable object.""" + removeLabelsFromLabelable( + """Parameters for RemoveLabelsFromLabelable""" + input: RemoveLabelsFromLabelableInput! + ): RemoveLabelsFromLabelablePayload + """Removes outside collaborator from all repositories in an organization.""" + removeOutsideCollaborator( + """Parameters for RemoveOutsideCollaborator""" + input: RemoveOutsideCollaboratorInput! + ): RemoveOutsideCollaboratorPayload + """Removes a reaction from a subject.""" + removeReaction( + """Parameters for RemoveReaction""" + input: RemoveReactionInput! + ): RemoveReactionPayload + """Removes a star from a Starrable.""" + removeStar( + """Parameters for RemoveStar""" + input: RemoveStarInput! + ): RemoveStarPayload + """Remove a search shortcut on the respective team's dashboard.""" + removeTeamDashboardSearchShortcut( + """Parameters for RemoveTeamDashboardSearchShortcut""" + input: RemoveTeamDashboardSearchShortcutInput! + ): RemoveTeamDashboardSearchShortcutPayload + """Remove an upvote to a discussion or discussion comment.""" + removeUpvote( + """Parameters for RemoveUpvote""" + input: RemoveUpvoteInput! + ): RemoveUpvotePayload + """Reopen a discussion.""" + reopenDiscussion( + """Parameters for ReopenDiscussion""" + input: ReopenDiscussionInput! + ): ReopenDiscussionPayload + """Reopen a issue.""" + reopenIssue( + """Parameters for ReopenIssue""" + input: ReopenIssueInput! + ): ReopenIssuePayload + """Reopen a pull request.""" + reopenPullRequest( + """Parameters for ReopenPullRequest""" + input: ReopenPullRequestInput! + ): ReopenPullRequestPayload + """Replaces all assignees for assignable object.""" + replaceAssigneesForAssignable( + """Parameters for ReplaceAssigneesForAssignable""" + input: ReplaceAssigneesForAssignableInput! + ): ReplaceAssigneesForAssignablePayload + """Set review requests on a pull request.""" + requestReviews( + """Parameters for RequestReviews""" + input: RequestReviewsInput! + ): RequestReviewsPayload + """Rerequests an existing check suite.""" + rerequestCheckSuite( + """Parameters for RerequestCheckSuite""" + input: RerequestCheckSuiteInput! + ): RerequestCheckSuitePayload + """Re-runs a check run for a mobile client requestor""" + rerunCheckRunMobile( + """Parameters for RerunCheckRunMobile""" + input: RerunCheckRunMobileInput! + ): RerunCheckRunMobilePayload + """Re-runs a check suite for a mobile client""" + rerunCheckSuiteMobile( + """Parameters for RerunCheckSuiteMobile""" + input: RerunCheckSuiteMobileInput! + ): RerunCheckSuiteMobilePayload + """Marks a review thread as resolved.""" + resolveReviewThread( + """Parameters for ResolveReviewThread""" + input: ResolveReviewThreadInput! + ): ResolveReviewThreadPayload + """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 + """Create a pull request that reverts the changes from a merged pull request.""" + revertPullRequest( + """Parameters for RevertPullRequest""" + input: RevertPullRequestInput! + ): RevertPullRequestPayload + """Revoke the migrator role to a user for all organizations under an enterprise account.""" + revokeEnterpriseOrganizationsMigratorRole( + """Parameters for RevokeEnterpriseOrganizationsMigratorRole""" + input: RevokeEnterpriseOrganizationsMigratorRoleInput! + ): RevokeEnterpriseOrganizationsMigratorRolePayload + """Revoke the migrator role from a user or a team.""" + revokeMigratorRole( + """Parameters for RevokeMigratorRole""" + input: RevokeMigratorRoleInput! + ): RevokeMigratorRolePayload + """Set the filters for a user's dashboard feed""" + setDashboardFeedFilters( + """Parameters for SetDashboardFeedFilters""" + input: SetDashboardFeedFiltersInput! + ): SetDashboardFeedFiltersPayload + """Set/reset dashboard search shortcuts.""" + setDashboardSearchShortcuts( + """Parameters for SetDashboardSearchShortcuts""" + input: SetDashboardSearchShortcutsInput! + ): SetDashboardSearchShortcutsPayload + """Creates or updates the identity provider for an enterprise.""" + setEnterpriseIdentityProvider( + """Parameters for SetEnterpriseIdentityProvider""" + input: SetEnterpriseIdentityProviderInput! + ): SetEnterpriseIdentityProviderPayload + """Sets all the labels for a labelable object.""" + setLabelsForLabelable( + """Parameters for SetLabelsForLabelable""" + input: SetLabelsForLabelableInput! + ): SetLabelsForLabelablePayload + """Set an organization level interaction limit for an organization's public repositories.""" + setOrganizationInteractionLimit( + """Parameters for SetOrganizationInteractionLimit""" + input: SetOrganizationInteractionLimitInput! + ): SetOrganizationInteractionLimitPayload + """Sets an interaction limit setting for a repository.""" + setRepositoryInteractionLimit( + """Parameters for SetRepositoryInteractionLimit""" + input: SetRepositoryInteractionLimitInput! + ): SetRepositoryInteractionLimitPayload + """Set a user level interaction limit for an user's public repositories.""" + setUserInteractionLimit( + """Parameters for SetUserInteractionLimit""" + input: SetUserInteractionLimitInput! + ): SetUserInteractionLimitPayload + """Starts a GitHub Enterprise Importer organization migration.""" + startOrganizationMigration( + """Parameters for StartOrganizationMigration""" + input: StartOrganizationMigrationInput! + ): StartOrganizationMigrationPayload + """Starts a GitHub Enterprise Importer (GEI) repository migration.""" + startRepositoryMigration( + """Parameters for StartRepositoryMigration""" + input: StartRepositoryMigrationInput! + ): StartRepositoryMigrationPayload + """Submits a pending pull request review.""" + submitPullRequestReview( + """Parameters for SubmitPullRequestReview""" + input: SubmitPullRequestReviewInput! + ): SubmitPullRequestReviewPayload + """Transfer an organization from one enterprise to another enterprise.""" + transferEnterpriseOrganization( + """Parameters for TransferEnterpriseOrganization""" + input: TransferEnterpriseOrganizationInput! + ): TransferEnterpriseOrganizationPayload + """Transfer an issue to a different repository""" + transferIssue( + """Parameters for TransferIssue""" + input: TransferIssueInput! + ): TransferIssuePayload + """Unarchives a ProjectV2Item""" + unarchiveProjectV2Item( + """Parameters for UnarchiveProjectV2Item""" + input: UnarchiveProjectV2ItemInput! + ): UnarchiveProjectV2ItemPayload + """Unarchives a repository.""" + unarchiveRepository( + """Parameters for UnarchiveRepository""" + input: UnarchiveRepositoryInput! + ): UnarchiveRepositoryPayload + """Unblock another user""" + unblockUser( + """Parameters for UnblockUser""" + input: UnblockUserInput! + ): UnblockUserPayload + """Unblock a user from an organization""" + unblockUserFromOrganization( + """Parameters for UnblockUserFromOrganization""" + input: UnblockUserFromOrganizationInput! + ): UnblockUserFromOrganizationPayload + """Undo a user's disinterest in a feed item""" + undoUserDisinterest( + """Parameters for UndoUserDisinterest""" + input: UndoUserDisinterestInput! + ): UndoUserDisinterestPayload + """Unfollow an organization.""" + unfollowOrganization( + """Parameters for UnfollowOrganization""" + input: UnfollowOrganizationInput! + ): UnfollowOrganizationPayload + """Unfollow a user.""" + unfollowUser( + """Parameters for UnfollowUser""" + input: UnfollowUserInput! + ): UnfollowUserPayload + """Unlinks a project from a repository.""" + unlinkProjectV2FromRepository( + """Parameters for UnlinkProjectV2FromRepository""" + input: UnlinkProjectV2FromRepositoryInput! + ): UnlinkProjectV2FromRepositoryPayload + """Unlinks a project to a team.""" + unlinkProjectV2FromTeam( + """Parameters for UnlinkProjectV2FromTeam""" + input: UnlinkProjectV2FromTeamInput! + ): UnlinkProjectV2FromTeamPayload + """Deletes a repository link from a project.""" + unlinkRepositoryFromProject( + """Parameters for UnlinkRepositoryFromProject""" + input: UnlinkRepositoryFromProjectInput! + ): UnlinkRepositoryFromProjectPayload + """Unlock a lockable object""" + unlockLockable( + """Parameters for UnlockLockable""" + input: UnlockLockableInput! + ): UnlockLockablePayload + """Unmark a discussion comment as the chosen answer for discussions in an answerable category.""" + unmarkDiscussionCommentAsAnswer( + """Parameters for UnmarkDiscussionCommentAsAnswer""" + input: UnmarkDiscussionCommentAsAnswerInput! + ): UnmarkDiscussionCommentAsAnswerPayload + """Unmark a pull request file as viewed""" + unmarkFileAsViewed( + """Parameters for UnmarkFileAsViewed""" + input: UnmarkFileAsViewedInput! + ): UnmarkFileAsViewedPayload + """Unmark an issue as a duplicate of another issue.""" + unmarkIssueAsDuplicate( + """Parameters for UnmarkIssueAsDuplicate""" + input: UnmarkIssueAsDuplicateInput! + ): UnmarkIssueAsDuplicatePayload + """Unminimizes a comment on an Issue, Commit, Pull Request, or Gist""" + unminimizeComment( + """Parameters for UnminimizeComment""" + input: UnminimizeCommentInput! + ): UnminimizeCommentPayload + """Unpin a pinned issue from a repository""" + unpinIssue( + """Parameters for UnpinIssue""" + input: UnpinIssueInput! + ): UnpinIssuePayload + """Marks a review thread as unresolved.""" + unresolveReviewThread( + """Parameters for UnresolveReviewThread""" + input: UnresolveReviewThreadInput! + ): UnresolveReviewThreadPayload + """Update a branch protection rule""" + updateBranchProtectionRule( + """Parameters for UpdateBranchProtectionRule""" + input: UpdateBranchProtectionRuleInput! + ): UpdateBranchProtectionRulePayload + """Update a check run""" + updateCheckRun( + """Parameters for UpdateCheckRun""" + input: UpdateCheckRunInput! + ): UpdateCheckRunPayload + """Modifies the settings of an existing check suite""" + updateCheckSuitePreferences( + """Parameters for UpdateCheckSuitePreferences""" + input: UpdateCheckSuitePreferencesInput! + ): UpdateCheckSuitePreferencesPayload + """Update a dashboard search shortcut for the current viewer.""" + updateDashboardSearchShortcut( + """Parameters for UpdateDashboardSearchShortcut""" + input: UpdateDashboardSearchShortcutInput! + ): UpdateDashboardSearchShortcutPayload + """Updates the selected teams for the current viewers user dashboard.""" + updateDashboardSelectedTeams( + """Parameters for UpdateDashboardSelectedTeams""" + input: UpdateDashboardSelectedTeamsInput! + ): UpdateDashboardSelectedTeamsPayload + """Update a discussion""" + updateDiscussion( + """Parameters for UpdateDiscussion""" + input: UpdateDiscussionInput! + ): UpdateDiscussionPayload + """Update the contents of a comment on a Discussion""" + updateDiscussionComment( + """Parameters for UpdateDiscussionComment""" + input: UpdateDiscussionCommentInput! + ): UpdateDiscussionCommentPayload + """Updates the role of an enterprise administrator.""" + updateEnterpriseAdministratorRole( + """Parameters for UpdateEnterpriseAdministratorRole""" + input: UpdateEnterpriseAdministratorRoleInput! + ): UpdateEnterpriseAdministratorRolePayload + """Sets whether private repository forks are enabled for an enterprise.""" + updateEnterpriseAllowPrivateRepositoryForkingSetting( + """Parameters for UpdateEnterpriseAllowPrivateRepositoryForkingSetting""" + input: UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput! + ): UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload + """Sets the base repository permission for organizations in an enterprise.""" + updateEnterpriseDefaultRepositoryPermissionSetting( + """Parameters for UpdateEnterpriseDefaultRepositoryPermissionSetting""" + input: UpdateEnterpriseDefaultRepositoryPermissionSettingInput! + ): UpdateEnterpriseDefaultRepositoryPermissionSettingPayload + """Sets whether organization members with admin permissions on a repository can change repository visibility.""" + updateEnterpriseMembersCanChangeRepositoryVisibilitySetting( + """Parameters for UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting""" + input: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput! + ): UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload + """Sets the members can create repositories setting for an enterprise.""" + updateEnterpriseMembersCanCreateRepositoriesSetting( + """Parameters for UpdateEnterpriseMembersCanCreateRepositoriesSetting""" + input: UpdateEnterpriseMembersCanCreateRepositoriesSettingInput! + ): UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload + """Sets the members can delete issues setting for an enterprise.""" + updateEnterpriseMembersCanDeleteIssuesSetting( + """Parameters for UpdateEnterpriseMembersCanDeleteIssuesSetting""" + input: UpdateEnterpriseMembersCanDeleteIssuesSettingInput! + ): UpdateEnterpriseMembersCanDeleteIssuesSettingPayload + """Sets the members can delete repositories setting for an enterprise.""" + updateEnterpriseMembersCanDeleteRepositoriesSetting( + """Parameters for UpdateEnterpriseMembersCanDeleteRepositoriesSetting""" + input: UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput! + ): UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload + """Sets whether members can invite collaborators are enabled for an enterprise.""" + updateEnterpriseMembersCanInviteCollaboratorsSetting( + """Parameters for UpdateEnterpriseMembersCanInviteCollaboratorsSetting""" + input: UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput! + ): UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload + """Sets whether or not an organization admin can make purchases.""" + updateEnterpriseMembersCanMakePurchasesSetting( + """Parameters for UpdateEnterpriseMembersCanMakePurchasesSetting""" + input: UpdateEnterpriseMembersCanMakePurchasesSettingInput! + ): UpdateEnterpriseMembersCanMakePurchasesSettingPayload + """Sets the members can update protected branches setting for an enterprise.""" + updateEnterpriseMembersCanUpdateProtectedBranchesSetting( + """Parameters for UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting""" + input: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput! + ): UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload + """Sets the members can view dependency insights for an enterprise.""" + updateEnterpriseMembersCanViewDependencyInsightsSetting( + """Parameters for UpdateEnterpriseMembersCanViewDependencyInsightsSetting""" + input: UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput! + ): UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload + """Sets whether organization projects are enabled for an enterprise.""" + updateEnterpriseOrganizationProjectsSetting( + """Parameters for UpdateEnterpriseOrganizationProjectsSetting""" + input: UpdateEnterpriseOrganizationProjectsSettingInput! + ): UpdateEnterpriseOrganizationProjectsSettingPayload + """Updates the role of an enterprise owner with an organization.""" + updateEnterpriseOwnerOrganizationRole( + """Parameters for UpdateEnterpriseOwnerOrganizationRole""" + input: UpdateEnterpriseOwnerOrganizationRoleInput! + ): UpdateEnterpriseOwnerOrganizationRolePayload + """Updates an enterprise's profile.""" + updateEnterpriseProfile( + """Parameters for UpdateEnterpriseProfile""" + input: UpdateEnterpriseProfileInput! + ): UpdateEnterpriseProfilePayload + """Sets whether repository projects are enabled for a enterprise.""" + updateEnterpriseRepositoryProjectsSetting( + """Parameters for UpdateEnterpriseRepositoryProjectsSetting""" + input: UpdateEnterpriseRepositoryProjectsSettingInput! + ): UpdateEnterpriseRepositoryProjectsSettingPayload + """Sets whether team discussions are enabled for an enterprise.""" + updateEnterpriseTeamDiscussionsSetting( + """Parameters for UpdateEnterpriseTeamDiscussionsSetting""" + input: UpdateEnterpriseTeamDiscussionsSettingInput! + ): UpdateEnterpriseTeamDiscussionsSettingPayload + """Sets whether two factor authentication is required for all users in an enterprise.""" + updateEnterpriseTwoFactorAuthenticationRequiredSetting( + """Parameters for UpdateEnterpriseTwoFactorAuthenticationRequiredSetting""" + input: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput! + ): UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload + """Updates an environment.""" + updateEnvironment( + """Parameters for UpdateEnvironment""" + input: UpdateEnvironmentInput! + ): UpdateEnvironmentPayload + """Sets whether an IP allow list is enabled on an owner.""" + updateIpAllowListEnabledSetting( + """Parameters for UpdateIpAllowListEnabledSetting""" + input: UpdateIpAllowListEnabledSettingInput! + ): UpdateIpAllowListEnabledSettingPayload + """Updates an IP allow list entry.""" + updateIpAllowListEntry( + """Parameters for UpdateIpAllowListEntry""" + input: UpdateIpAllowListEntryInput! + ): UpdateIpAllowListEntryPayload + """Sets whether IP allow list configuration for installed GitHub Apps is enabled on an owner.""" + updateIpAllowListForInstalledAppsEnabledSetting( + """Parameters for UpdateIpAllowListForInstalledAppsEnabledSetting""" + input: UpdateIpAllowListForInstalledAppsEnabledSettingInput! + ): UpdateIpAllowListForInstalledAppsEnabledSettingPayload + """Updates an Issue.""" + updateIssue( + """Parameters for UpdateIssue""" + input: UpdateIssueInput! + ): UpdateIssuePayload + """Updates an IssueComment object.""" + updateIssueComment( + """Parameters for UpdateIssueComment""" + input: UpdateIssueCommentInput! + ): UpdateIssueCommentPayload + """Update existing mobile push notification schedules.""" + updateMobilePushNotificationSchedules( + """Parameters for UpdateMobilePushNotificationSchedules""" + input: UpdateMobilePushNotificationSchedulesInput! + ): UpdateMobilePushNotificationSchedulesPayload + """Update mobile push notification settings.""" + updateMobilePushNotificationSettings( + """Parameters for UpdateMobilePushNotificationSettings""" + input: UpdateMobilePushNotificationSettingsInput! + ): UpdateMobilePushNotificationSettingsPayload + """Update the setting to restrict notifications to only verified or approved domains available to an owner.""" + updateNotificationRestrictionSetting( + """Parameters for UpdateNotificationRestrictionSetting""" + input: UpdateNotificationRestrictionSettingInput! + ): UpdateNotificationRestrictionSettingPayload + """Updates the user's notification settings.""" + updateNotificationSettings( + """Parameters for UpdateNotificationSettings""" + input: UpdateNotificationSettingsInput! + ): UpdateNotificationSettingsPayload + """Sets whether private repository forks are enabled for an organization.""" + updateOrganizationAllowPrivateRepositoryForkingSetting( + """Parameters for UpdateOrganizationAllowPrivateRepositoryForkingSetting""" + input: UpdateOrganizationAllowPrivateRepositoryForkingSettingInput! + ): UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload + """Sets whether contributors are required to sign off on web-based commits for repositories in an organization.""" + updateOrganizationWebCommitSignoffSetting( + """Parameters for UpdateOrganizationWebCommitSignoffSetting""" + input: UpdateOrganizationWebCommitSignoffSettingInput! + ): UpdateOrganizationWebCommitSignoffSettingPayload + """Updates an existing project.""" + updateProject( + """Parameters for UpdateProject""" + input: UpdateProjectInput! + ): UpdateProjectPayload + """Updates an existing project card.""" + updateProjectCard( + """Parameters for UpdateProjectCard""" + input: UpdateProjectCardInput! + ): UpdateProjectCardPayload + """Updates an existing project column.""" + updateProjectColumn( + """Parameters for UpdateProjectColumn""" + input: UpdateProjectColumnInput! + ): UpdateProjectColumnPayload + """Updates a draft issue within a Project.""" + updateProjectDraftIssue( + """Parameters for UpdateProjectDraftIssue""" + input: UpdateProjectDraftIssueInput! + ): UpdateProjectDraftIssuePayload + """Updates an existing project (beta).""" + updateProjectNext( + """Parameters for UpdateProjectNext""" + input: UpdateProjectNextInput! + ): UpdateProjectNextPayload + """Updates a field of an item from a Project.""" + updateProjectNextItemField( + """Parameters for UpdateProjectNextItemField""" + input: UpdateProjectNextItemFieldInput! + ): UpdateProjectNextItemFieldPayload + """Updates an existing project (beta).""" + updateProjectV2( + """Parameters for UpdateProjectV2""" + input: UpdateProjectV2Input! + ): UpdateProjectV2Payload + """Updates a draft issue within a Project.""" + updateProjectV2DraftIssue( + """Parameters for UpdateProjectV2DraftIssue""" + input: UpdateProjectV2DraftIssueInput! + ): UpdateProjectV2DraftIssuePayload + """This mutation updates the value of a field for an item in a Project. Currently only single-select, text, number, date, and iteration fields are supported.""" + updateProjectV2ItemFieldValue( + """Parameters for UpdateProjectV2ItemFieldValue""" + input: UpdateProjectV2ItemFieldValueInput! + ): UpdateProjectV2ItemFieldValuePayload + """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 + """Update a pull request""" + updatePullRequest( + """Parameters for UpdatePullRequest""" + input: UpdatePullRequestInput! + ): UpdatePullRequestPayload + """Merge or Rebase HEAD from upstream branch into pull request branch""" + updatePullRequestBranch( + """Parameters for UpdatePullRequestBranch""" + input: UpdatePullRequestBranchInput! + ): UpdatePullRequestBranchPayload + """Updates the body of a pull request review.""" + updatePullRequestReview( + """Parameters for UpdatePullRequestReview""" + input: UpdatePullRequestReviewInput! + ): UpdatePullRequestReviewPayload + """Updates a pull request review comment.""" + updatePullRequestReviewComment( + """Parameters for UpdatePullRequestReviewComment""" + input: UpdatePullRequestReviewCommentInput! + ): UpdatePullRequestReviewCommentPayload + """Update a Git Ref.""" + updateRef( + """Parameters for UpdateRef""" + input: UpdateRefInput! + ): UpdateRefPayload + """Update information about a repository.""" + updateRepository( + """Parameters for UpdateRepository""" + input: UpdateRepositoryInput! + ): UpdateRepositoryPayload + """Update a repository ruleset""" + updateRepositoryRuleset( + """Parameters for UpdateRepositoryRuleset""" + input: UpdateRepositoryRulesetInput! + ): UpdateRepositoryRulesetPayload + """Sets whether contributors are required to sign off on web-based commits for a repository.""" + updateRepositoryWebCommitSignoffSetting( + """Parameters for UpdateRepositoryWebCommitSignoffSetting""" + input: UpdateRepositoryWebCommitSignoffSettingInput! + ): UpdateRepositoryWebCommitSignoffSettingPayload + """Change visibility of your sponsorship and opt in or out of email updates from the maintainer.""" + updateSponsorshipPreferences( + """Parameters for UpdateSponsorshipPreferences""" + input: UpdateSponsorshipPreferencesInput! + ): UpdateSponsorshipPreferencesPayload + """Updates the state for subscribable subjects.""" + updateSubscription( + """Parameters for UpdateSubscription""" + input: UpdateSubscriptionInput! + ): UpdateSubscriptionPayload + """Update a team dashboard search shortcut for the current viewer.""" + updateTeamDashboardSearchShortcut( + """Parameters for UpdateTeamDashboardSearchShortcut""" + input: UpdateTeamDashboardSearchShortcutInput! + ): UpdateTeamDashboardSearchShortcutPayload + """Updates a team discussion.""" + updateTeamDiscussion( + """Parameters for UpdateTeamDiscussion""" + input: UpdateTeamDiscussionInput! + ): UpdateTeamDiscussionPayload + """Updates a discussion comment.""" + updateTeamDiscussionComment( + """Parameters for UpdateTeamDiscussionComment""" + input: UpdateTeamDiscussionCommentInput! + ): UpdateTeamDiscussionCommentPayload + """Update team repository.""" + updateTeamsRepository( + """Parameters for UpdateTeamsRepository""" + input: UpdateTeamsRepositoryInput! + ): UpdateTeamsRepositoryPayload + """Replaces the repository's topics with the given topics.""" + updateTopics( + """Parameters for UpdateTopics""" + input: UpdateTopicsInput! + ): UpdateTopicsPayload + """Update sort order and hidden status of the current user's dashboard navigation links.""" + updateUserDashboardNavLinks( + """Parameters for UpdateUserDashboardNavLinks""" + input: UpdateUserDashboardNavLinksInput! + ): UpdateUserDashboardNavLinksPayload + """Pin an item to a user's dashboard without modifying other pins.""" + updateUserDashboardPins( + """Parameters for UpdateUserDashboardPins""" + input: UpdateUserDashboardPinsInput! + ): UpdateUserDashboardPinsPayload + """Updates an existing user list.""" + updateUserList( + """Parameters for UpdateUserList""" + input: UpdateUserListInput! + ): UpdateUserListPayload + """Updates which of the viewer's lists an item belongs to""" + updateUserListsForItem( + """Parameters for UpdateUserListsForItem""" + input: UpdateUserListsForItemInput! + ): UpdateUserListsForItemPayload + """Update the user's mobile time zone.""" + updateUserMobileTimeZone( + """Parameters for UpdateUserMobileTimeZone""" + input: UpdateUserMobileTimeZoneInput! + ): UpdateUserMobileTimeZonePayload + """Verify that a verifiable domain has the expected DNS record.""" + verifyVerifiableDomain( + """Parameters for VerifyVerifiableDomain""" + input: VerifyVerifiableDomainInput! + ): VerifyVerifiableDomainPayload } """A feed item representing the act of a Sponsors goal being near complete""" type NearSponsorsGoalFeedItem implements FeedItemDisplayable { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The sponsorable that owns this Sponsors goal""" - sponsorable: SponsorableItem! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The sponsorable that owns this Sponsors goal""" + sponsorable: SponsorableItem! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """An object with an ID.""" interface Node { - """ID of the object.""" - id: ID! + """ID of the object.""" + id: ID! } """Represents a notification filter for the viewer's notifications.""" type NotificationFilter implements Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Returns true if the record is a default filter.""" - isDefaultFilter: Boolean! - """The user-provided name of the custom inbox""" - name: String! - """The query used to filter the inbox.""" - queryString: String! - """The count of unread notifications in the inbox.""" - unreadCount: Int! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Returns true if the record is a default filter.""" + isDefaultFilter: Boolean! + """The user-provided name of the custom inbox""" + name: String! + """The query used to filter the inbox.""" + queryString: String! + """The count of unread notifications in the inbox.""" + unreadCount: Int! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! } """The connection type for NotificationFilter.""" type NotificationFilterConnection { - """A list of edges.""" - edges: [NotificationFilterEdge] - """A list of nodes.""" - nodes: [NotificationFilter] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [NotificationFilterEdge] + """A list of nodes.""" + nodes: [NotificationFilter] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type NotificationFilterEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: NotificationFilter + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: NotificationFilter } """A list of notification lists the viewer has received a notification for.""" type NotificationListWithThreadCount { - """The count of notifications for the list with any of the requested statuses.""" - count: Int! - """Notification lists which have at least one notification with the requested status.""" - list: NotificationsList! - """The count of notifications for the list which are unread (will be 0 if requested statuses does not include UNREAD).""" - unreadCount: Int! + """The count of notifications for the list with any of the requested statuses.""" + count: Int! + """Notification lists which have at least one notification with the requested status.""" + list: NotificationsList! + """The count of notifications for the list which are unread (will be 0 if requested statuses does not include UNREAD).""" + unreadCount: Int! } """The connection type for NotificationListWithThreadCount.""" type NotificationListWithThreadCountConnection { - """A list of edges.""" - edges: [NotificationListWithThreadCountEdge] - """A list of nodes.""" - nodes: [NotificationListWithThreadCount] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [NotificationListWithThreadCountEdge] + """A list of nodes.""" + nodes: [NotificationListWithThreadCount] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type NotificationListWithThreadCountEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: NotificationListWithThreadCount + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: NotificationListWithThreadCount } """The reason you received a notification about a subject.""" enum NotificationReason { - """You were assigned to the Issue/PR.""" - ASSIGN - """You created the thread.""" - AUTHOR - """You commented on the thread.""" - COMMENT - """You accepted an invitation to contribute to the repository.""" - INVITATION - """You subscribed to the thread (via an Issue or Pull Request).""" - MANUAL - """You were specifically @mentioned in the content.""" - MENTION - """You were requested for review.""" - REVIEW_REQUESTED - """You were given credit for contributing to a Security Advisory.""" - SECURITY_ADVISORY_CREDIT - """You have access to the notification subject's Dependabot alerts.""" - SECURITY_ALERT - """You changed the thread state (for example, closing an Issue or merging a Pull Request).""" - STATE_CHANGE - """You are watching the subject of the notification.""" - SUBSCRIBED - """You were on a team that was mentioned.""" - TEAM_MENTION - """You are subscribed to continuous integration activity.""" - CI_ACTIVITY - """You were requested for review for deployment.""" - APPROVAL_REQUESTED - """You saved this notification""" - SAVED - """A pull request you're subscribed to was marked ready for review.""" - READY_FOR_REVIEW + """You were assigned to the Issue/PR.""" + ASSIGN + """You created the thread.""" + AUTHOR + """You commented on the thread.""" + COMMENT + """You accepted an invitation to contribute to the repository.""" + INVITATION + """You subscribed to the thread (via an Issue or Pull Request).""" + MANUAL + """You were specifically @mentioned in the content.""" + MENTION + """You were requested for review.""" + REVIEW_REQUESTED + """You were given credit for contributing to a Security Advisory.""" + SECURITY_ADVISORY_CREDIT + """You have access to the notification subject's Dependabot alerts.""" + SECURITY_ALERT + """You changed the thread state (for example, closing an Issue or merging a Pull Request).""" + STATE_CHANGE + """You are watching the subject of the notification.""" + SUBSCRIBED + """You were on a team that was mentioned.""" + TEAM_MENTION + """You are subscribed to continuous integration activity.""" + CI_ACTIVITY + """You were requested for review for deployment.""" + APPROVAL_REQUESTED + """You saved this notification""" + SAVED + """A pull request you're subscribed to was marked ready for review.""" + READY_FOR_REVIEW } """The possible values for the notification restriction setting.""" enum NotificationRestrictionSettingValue { - """The setting is enabled for the owner.""" - ENABLED - """The setting is disabled for the owner.""" - DISABLED + """The setting is enabled for the owner.""" + ENABLED + """The setting is disabled for the owner.""" + DISABLED } """The viewer's notification settings""" type NotificationSettings { - """Did the view enable notifications for continuous integration activity?""" - enabledCiNotifications: Boolean! - """Does the viewer get mobile push notifications for comments in which they are directly mentioned?""" - getsDirectMentionMobilePush: Boolean! - """Does the viewer get email notifications for threads in which they are participating?""" - getsParticipatingEmail: Boolean! - """Does the viewer get web notifications for threads in which they are participating?""" - getsParticipatingWeb: Boolean! - """Does the viewer get web notifications for vulnerability alerts?""" - getsVulnerabilityAlertsWeb: Boolean! - """Does the viewer get email notifications for threads which they are watching or to which they are subscribed?""" - getsWatchingEmail: Boolean! - """Does the viewer get web notifications for threads which they are watching or to which they are subscribed?""" - getsWatchingWeb: Boolean! - """The email addresses belonging to this user that can receive notifications.""" - notifiableEmails: [String!]! + """Did the view enable notifications for continuous integration activity?""" + enabledCiNotifications: Boolean! + """Does the viewer get mobile push notifications for comments in which they are directly mentioned?""" + getsDirectMentionMobilePush: Boolean! + """Does the viewer get email notifications for threads in which they are participating?""" + getsParticipatingEmail: Boolean! + """Does the viewer get web notifications for threads in which they are participating?""" + getsParticipatingWeb: Boolean! + """Does the viewer get web notifications for vulnerability alerts?""" + getsVulnerabilityAlertsWeb: Boolean! + """Does the viewer get email notifications for threads which they are watching or to which they are subscribed?""" + getsWatchingEmail: Boolean! + """Does the viewer get web notifications for threads which they are watching or to which they are subscribed?""" + getsWatchingWeb: Boolean! + """The email addresses belonging to this user that can receive notifications.""" + notifiableEmails: [String!]! } """The parent object that the notification thread's subject belongs to.""" @@ -12776,888 +13737,958 @@ union NotificationsSubject = CheckSuite | Commit | Discussion | Gist | Issue | P """The possible states of a notification.""" enum NotificationStatus { - """A notification is read""" - READ - """A notification is unread""" - UNREAD - """A notification is archived""" - ARCHIVED - """A notification is done""" - DONE + """A notification is read""" + READ + """A notification is unread""" + UNREAD + """A notification is archived""" + ARCHIVED + """A notification is done""" + DONE } """Represents a notification thread for the viewer.""" type NotificationThread implements Node { - id: ID! - """Archived state of the notification.""" - isArchived: Boolean! - """Done state of the notification.""" - isDone: Boolean! - """Whether a notification has been saved""" - isSaved: Boolean! - """Whether a notification has been starred""" - isStarred: Boolean! - """Unread state of the notification.""" - isUnread: Boolean! - """The last time that notifications were read for this thread.""" - lastReadAt: DateTime - """The last time that notifications were updated for this thread.""" - lastSummarizedAt: DateTime! - """The last time that a notification was received on this thread for the current user""" - lastUpdatedAt: DateTime! - """The notification's list.""" - list: NotificationsList! - """The notification's list id""" - listId: String! - """The notification's list type""" - listType: String! - """The oldest unread author internal anchor""" - oldestUnreadItemAnchor: String - """The reason a notification was received.""" - reason: NotificationReason - """The last 3 recent participants.""" - recentParticipants: [User!]! - """The notification's subject.""" - subject: NotificationsSubject! - """Subscription status for the thread""" - subscriptionStatus: NotificationThreadSubscriptionState! - """The notification's rollup summary id""" - summaryId: String! - """The author of the item being used to summarize the thread.""" - summaryItemAuthor: User - """The body text of the item being used to summarize the thread.""" - summaryItemBody: String - """The notification's thread id""" - threadId: String! - """The notification's thread type""" - threadType: String! - """The notification's title""" - title: String! - """The number of unread items.""" - unreadItemsCount: Int! - """The HTTP URL for the notification thread's subject""" - url: URI! + id: ID! + """Archived state of the notification.""" + isArchived: Boolean! + """Done state of the notification.""" + isDone: Boolean! + """Whether a notification has been saved""" + isSaved: Boolean! + """Whether a notification has been starred""" + isStarred: Boolean! + """Unread state of the notification.""" + isUnread: Boolean! + """The last time that notifications were read for this thread.""" + lastReadAt: DateTime + """The last time that notifications were updated for this thread.""" + lastSummarizedAt: DateTime! + """The last time that a notification was received on this thread for the current user""" + lastUpdatedAt: DateTime! + """The notification's list.""" + list: NotificationsList! + """The notification's list id""" + listId: String! + """The notification's list type""" + listType: String! + """The oldest unread author internal anchor""" + oldestUnreadItemAnchor: String + """The reason a notification was received.""" + reason: NotificationReason + """The last 3 recent participants.""" + recentParticipants: [User!]! + """The notification's subject.""" + subject: NotificationsSubject! + """Subscription status for the thread""" + subscriptionStatus: NotificationThreadSubscriptionState! + """The notification's rollup summary id""" + summaryId: String! + """The author of the item being used to summarize the thread.""" + summaryItemAuthor: User + """The body text of the item being used to summarize the thread.""" + summaryItemBody: String + """The notification's thread id""" + threadId: String! + """The notification's thread type""" + threadType: String! + """The notification's title""" + title: String! + """The number of unread items.""" + unreadItemsCount: Int! + """The HTTP URL for the notification thread's subject""" + url: URI! } """A list of notification threads.""" type NotificationThreadConnection { - """A list of edges.""" - edges: [NotificationThreadEdge] - """A list of nodes.""" - nodes: [NotificationThread] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [NotificationThreadEdge] + """A list of nodes.""" + nodes: [NotificationThread] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type NotificationThreadEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: NotificationThread + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: NotificationThread } """Ways in which to filter lists of notification threads.""" input NotificationThreadFilters { - """Only return notifications where the status is in the list.""" - statuses: [NotificationStatus!] - """Only return notification threads where the reason is in the list""" - reasons: [NotificationReason!] - """Only return notification threads where the list is in the given list""" - listIds: [ID!] - """Only return starred notifications. All other filters will be ignored.""" - starredOnly: Boolean = false - """Only return saved notifications. All other filters will be ignored.""" - savedOnly: Boolean = false - """Only return matching thread types""" - threadTypes: [String!] + """Only return notifications where the status is in the list.""" + statuses: [NotificationStatus!] + """Only return notification threads where the reason is in the list""" + reasons: [NotificationReason!] + """Only return notification threads where the list is in the given list""" + listIds: [ID!] + """Only return starred notifications. All other filters will be ignored.""" + starredOnly: Boolean = false + """Only return saved notifications. All other filters will be ignored.""" + savedOnly: Boolean = false + """Only return matching thread types""" + threadTypes: [String!] } """The possible types of notification thread subscription lists.""" enum NotificationThreadSubscriptionListType { - """Repository""" - REPOSITORY - """Team""" - TEAM + """Repository""" + REPOSITORY + """Team""" + TEAM } """The possible subscription states of a notification thread.""" enum NotificationThreadSubscriptionState { - """The thread's list is ignored.""" - LIST_IGNORED - """The thread's list is subscribed to.""" - LIST_SUBSCRIBED - """The thread is subscribed to.""" - THREAD_SUBSCRIBED - """The thread's type is subscribed to.""" - THREAD_TYPE_SUBSCRIBED - """The thread is not subscribed to.""" - UNSUBSCRIBED + """The thread's list is ignored.""" + LIST_IGNORED + """The thread's list is subscribed to.""" + LIST_SUBSCRIBED + """The thread is subscribed to.""" + THREAD_SUBSCRIBED + """The thread's type is subscribed to.""" + THREAD_TYPE_SUBSCRIBED + """The thread is not subscribed to.""" + UNSUBSCRIBED } """Metadata for an audit entry with action oauth_application.*""" interface OauthApplicationAuditEntryData { - """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 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 Node & AuditEntry & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The application URL of the OAuth Application.""" - applicationUrl: URI - """The callback URL of the OAuth Application.""" - callbackUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - 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 - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The rate limit of the OAuth Application.""" - rateLimit: Int - """The state of the OAuth Application.""" - state: OauthApplicationCreateAuditEntryState - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The application URL of the OAuth Application.""" + applicationUrl: URI + """The callback URL of the OAuth Application.""" + callbackUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + 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 + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The rate limit of the OAuth Application.""" + rateLimit: Int + """The state of the OAuth Application.""" + state: OauthApplicationCreateAuditEntryState + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The state of an OAuth Application when it was created.""" enum OauthApplicationCreateAuditEntryState { - """The OAuth Application was active and allowed to have OAuth Accesses.""" - ACTIVE - """The OAuth Application was suspended from generating OAuth Accesses due to abuse or security concerns.""" - SUSPENDED - """The OAuth Application was in the process of being deleted.""" - PENDING_DELETION + """The OAuth Application was active and allowed to have OAuth Accesses.""" + ACTIVE + """The OAuth Application was suspended from generating OAuth Accesses due to abuse or security concerns.""" + SUSPENDED + """The OAuth Application was in the process of being deleted.""" + PENDING_DELETION } -"""An OIDC identity provider configured to provision identities for an enterprise.""" +"""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 { - """The enterprise this identity provider belongs to.""" - enterprise: Enterprise - """ExternalIdentities provisioned by this identity provider.""" - externalIdentities( - """Filter to external identities with valid org membership only""" - membersOnly: Boolean - """Filter to external identities with the users login""" - login: String - """Filter to external identities with the users userName/NameID attribute""" - userName: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ExternalIdentityConnection! - id: ID! - """The OIDC identity provider type""" - providerType: OIDCProviderType! - """The id of the tenant this provider is attached to""" - tenantId: String! + """The enterprise this identity provider belongs to.""" + enterprise: Enterprise + """ExternalIdentities provisioned by this identity provider.""" + externalIdentities( + """Filter to external identities with valid org membership only""" + membersOnly: Boolean + """Filter to external identities with the users login""" + login: String + """Filter to external identities with the users userName/NameID attribute""" + userName: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ExternalIdentityConnection! + 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 { - """Azure Active Directory""" - AAD + """Azure Active Directory""" + AAD } """The corresponding operation type for the action""" enum OperationType { - """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 + """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 { - """Specifies an ascending order for a given `orderBy` argument.""" - ASC - """Specifies a descending order for a given `orderBy` argument.""" - DESC + """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 Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The email address used to invite a billing manager for the organization.""" - invitationEmail: String - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The email address used to invite a billing manager for the organization.""" + invitationEmail: String + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.add_member""" type OrgAddMemberAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The permission level of the member added to the organization.""" - permission: OrgAddMemberAuditEntryPermission - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The permission level of the member added to the organization.""" + permission: OrgAddMemberAuditEntryPermission + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The permissions available to members on an Organization.""" enum OrgAddMemberAuditEntryPermission { - """Can read and clone repositories.""" - READ - """Can read, clone, push, and add collaborators to repositories.""" - ADMIN + """Can read and clone repositories.""" + READ + """Can read, clone, push, and add collaborators to repositories.""" + ADMIN } """An account on GitHub, with one or more owners, that has repositories, members and teams.""" -type Organization implements Node & Actor & PackageOwner & ProjectOwner & ProjectNextOwner & ProjectV2Owner & ProjectV2Recent & RepositoryDiscussionAuthor & RepositoryDiscussionCommentAuthor & RepositoryOwner & UniformResourceLocatable & MemberStatusable & ProfileOwner & Sponsorable { - """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! - """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 - """The query string to filter audit entries""" - query: String - """Ordering options for the returned audit log entries.""" - orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC} - ): OrganizationAuditEntryConnection! - """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 - """Returns the last _n_ elements from the list.""" - last: Int - """Filter by if the domain is verified.""" - isVerified: Boolean = null - """Filter by if the domain is approved.""" - isApproved: Boolean = null - """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( - """The search string to look for.""" - query: String - """The organization role to filter by.""" - organizationRole: RoleInOrganization - """Ordering options for enterprise owners returned from the connection.""" - orderBy: OrgEnterpriseOwnerOrder = {field: LOGIN, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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! - id: ID! - """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! - """Check if 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! - """Whether or not the viewer is blocked from the organization""" - isViewerBlocked: Boolean - """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 organization's public profile location.""" - location: String - """The organization's login name.""" - login: String! - """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 - """Returns target repository if one is set for Org level Discussions""" - organizationDiscussionsRepository: Repository - """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] - """Find packages in a repository by ID.""" - repositoryId: ID - """Filter registry package by type.""" - packageType: PackageType - """Ordering of the returned packages.""" - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - ): 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( - """Filter the types of pinnable items that are returned.""" - types: [PinnableItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """A list of repositories and gists this profile owner has pinned to their profile""" - pinnedItems( - """Filter the types of pinned items that are returned.""" - types: [PinnableItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """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 - """Find a project by project (beta) number.""" - projectNext( - """The project (beta) number.""" - number: Int! - ): ProjectNext @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Find a project by number.""" - projectV2( - """The project number.""" - number: Int! - ): ProjectV2 - """A list of projects under the owner.""" - projects( - """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!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectConnection! - """A list of projects (beta) under the owner.""" - projectsNext( - """A project (beta) to search for under the the owner.""" - query: String - """How to order the returned projects (beta).""" - sortBy: ProjectNextOrderField = TITLE - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectNextConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-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( - """A project to search for under the the owner.""" - query: String - """How to order the returned projects.""" - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 organization's profile readme.""" - readme: RepositoryReadme - """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( - """If non-null, filters repositories according to privacy""" - privacy: RepositoryPrivacy - """Ordering options for repositories returned from the connection""" - orderBy: RepositoryOrder - """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] - """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 whether they have been locked""" - isLocked: Boolean - """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" - language: String - """An optional type to use to filter the repositories.""" - type: RepositoryType - """An optional filter to search the repositories.""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 repositories according to whether they are forks of another repository""" - isFork: Boolean - ): RepositoryConnection! - """Find Repository.""" - repository( - """Name of Repository to find.""" - name: String! - """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" - followRenames: Boolean = true - ): 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 in a specific repository.""" - repositoryId: ID - """Filter discussion comments to only those that were marked as the answer""" - onlyAnswers: Boolean = false - ): DiscussionCommentConnection! - """Discussions this user has started.""" - repositoryDiscussions( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 - """Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.""" - answered: Boolean = null - ): 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 - """Filter repository migrations by state.""" - state: MigrationState - """Filter repository migrations by repository name.""" - repositoryName: String - """Ordering options for repository migrations returned.""" - orderBy: RepositoryMigrationOrder = {field: CREATED_AT, direction: ASC} - ): 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! - """The Organization's SAML identity providers""" - 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 - """If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see.""" - tierId: ID - """Ordering options for sponsors returned from the connection.""" - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} - ): SponsorConnection! - """Events involving this sponsorable, such as new sponsorships.""" - sponsorsActivities( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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 - """Ordering options for activity returned from the connection.""" - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} - """Filter activities to only the specified actions.""" - actions: [SponsorsActivityAction!] = [] - ): 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. Only returns a sponsorship if it is active.""" - sponsorshipForViewerAsSponsor: Sponsorship - """The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. Only returns a sponsorship if it is active.""" - sponsorshipForViewerAsSponsorable: 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! - """This object's sponsorships as the maintainer.""" - sponsorshipsAsMaintainer( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Whether or not to include private sponsorships in the result set""" - includePrivate: Boolean = false - """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! - """This object's sponsorships as the sponsor.""" - sponsorshipsAsSponsor( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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( - """If non-null, filters teams according to privacy""" - privacy: TeamPrivacy - """If non-null, filters teams according to whether the viewer is an admin or member on team""" - role: TeamRole - """If non-null, filters teams with query on team name and team slug""" - query: String - """User logins to filter by""" - userLogins: [String!] - """Ordering options for teams returned from the connection""" - orderBy: TeamOrder - """If true, filters teams that are mapped to an LDAP Group (Enterprise only)""" - ldapMapped: Boolean - """If true, restrict to only root teams""" - rootTeamsOnly: Boolean = false - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 HTTP path listing organization's teams""" - teamsResourcePath: URI! - """The HTTP URL listing organization's teams""" - teamsUrl: URI! - """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! - """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 +type Organization implements Node & Actor & PackageOwner & ProjectOwner & ProjectNextOwner & ProjectV2Owner & ProjectNextRecent & ProjectV2Recent & RepositoryDiscussionAuthor & RepositoryDiscussionCommentAuthor & RepositoryOwner & UniformResourceLocatable & MemberStatusable & ProfileOwner & Sponsorable & AnnouncementBanner { + """The text of the announcement""" + announcement: String + """The expiration date of the announcement, if any""" + announcementExpiresAt: DateTime + """Whether the announcement can be dismissed by the user""" + announcementUserDismissible: Boolean + """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! + """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 + """The query string to filter audit entries""" + query: String + """Ordering options for the returned audit log entries.""" + orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC} + ): OrganizationAuditEntryConnection! + """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 + """Returns the last _n_ elements from the list.""" + last: Int + """Filter by if the domain is verified.""" + isVerified: Boolean = null + """Filter by if the domain is approved.""" + isApproved: Boolean = null + """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( + """The search string to look for.""" + query: String + """The organization role to filter by.""" + organizationRole: RoleInOrganization + """Ordering options for enterprise owners returned from the connection.""" + orderBy: OrgEnterpriseOwnerOrder = {field: LOGIN, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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! + id: ID! + """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! + """Whether or not the viewer is blocked from the organization""" + isViewerBlocked: Boolean + """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 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 + """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 + """Returns target repository if one is set for Org level Discussions""" + organizationDiscussionsRepository: Repository + """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] + """Find packages in a repository by ID.""" + repositoryId: ID + """Filter registry package by type.""" + packageType: PackageType + """Ordering of the returned packages.""" + orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + ): 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( + """Filter the types of pinnable items that are returned.""" + types: [PinnableItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """A list of repositories and gists this profile owner has pinned to their profile""" + pinnedItems( + """Filter the types of pinned items that are returned.""" + types: [PinnableItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """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 + """Find a project by project (beta) number.""" + projectNext( + """The project (beta) number.""" + number: Int! + ): ProjectNext + """Find a project by number.""" + projectV2( + """The project number.""" + number: Int! + ): ProjectV2 + """A list of projects under the owner.""" + projects( + """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!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectConnection! + """A list of projects (beta) under the owner.""" + projectsNext( + """A project (beta) to search for under the the owner.""" + query: String + """How to order the returned projects (beta).""" + sortBy: ProjectNextOrderField = TITLE + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! + """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( + """A project to search for under the the owner.""" + query: String + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 organization's profile readme.""" + readme: RepositoryReadme + """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! + """Recent projects (beta) that this user has modified in the context of the owner.""" + recentProjectsNext( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! + """A list of repositories that the user owns.""" + repositories( + """If non-null, filters repositories according to privacy""" + privacy: RepositoryPrivacy + """Ordering options for repositories returned from the connection""" + orderBy: RepositoryOrder + """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] + """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 whether they have been locked""" + isLocked: Boolean + """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" + language: String + """An optional type to use to filter the repositories.""" + type: RepositoryType + """An optional filter to search the repositories.""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 repositories according to whether they are forks of another repository""" + isFork: Boolean + ): RepositoryConnection! + """Find Repository.""" + repository( + """Name of Repository to find.""" + name: String! + """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" + followRenames: Boolean = true + ): 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 in a specific repository.""" + repositoryId: ID + """Filter discussion comments to only those that were marked as the answer""" + onlyAnswers: Boolean = false + ): DiscussionCommentConnection! + """Discussions this user has started.""" + repositoryDiscussions( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 + """Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.""" + answered: Boolean = null + """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 + """Filter repository migrations by state.""" + state: MigrationState + """Filter repository migrations by repository name.""" + repositoryName: String + """Ordering options for repository migrations returned.""" + orderBy: RepositoryMigrationOrder = {field: CREATED_AT, direction: ASC} + ): 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! + """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 + """Returns the last _n_ elements from the list.""" + last: Int + """Return rulesets configured at higher levels that apply to this organization""" + includeParents: Boolean = false + ): 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 + """If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see.""" + tierId: ID + """Ordering options for sponsors returned from the connection.""" + orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + ): SponsorConnection! + """Events involving this sponsorable, such as new sponsorships.""" + sponsorsActivities( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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 + """Ordering options for activity returned from the connection.""" + orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} + """Filter activities to only the specified actions.""" + actions: [SponsorsActivityAction!] = [] + """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 + ): 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( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Whether or not to include private sponsorships in the result set""" + includePrivate: Boolean = false + """Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.""" + orderBy: SponsorshipOrder + """Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received.""" + activeOnly: Boolean = true + ): SponsorshipConnection! + """The sponsorships where this user or organization is the funder.""" + sponsorshipsAsSponsor( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.""" + orderBy: SponsorshipOrder + """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!] + """Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made.""" + activeOnly: Boolean = true + ): 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( + """If non-null, filters teams according to privacy""" + privacy: TeamPrivacy + """If non-null, filters teams according to notification setting""" + notificationSetting: TeamNotificationSetting + """If non-null, filters teams according to whether the viewer is an admin or member on team""" + role: TeamRole + """If non-null, filters teams with query on team name and team slug""" + query: String + """User logins to filter by""" + userLogins: [String!] + """Ordering options for teams returned from the connection""" + orderBy: TeamOrder + """If true, filters teams that are mapped to an LDAP Group (Enterprise only)""" + ldapMapped: Boolean + """If true, restrict to only root teams""" + rootTeamsOnly: Boolean = false + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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 that occurred before this time.""" + until: DateTime + """Filter payments to those made to the users or organizations with the specified usernames.""" + sponsorableLogins: [String!] = [] + ): 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! + """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.""" @@ -13665,229 +14696,284 @@ union OrganizationAuditEntry = MembersCanDeleteReposClearAuditEntry | MembersCan """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! + """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 { - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI } """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 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! + """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 + """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! + """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! + """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""" +"""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 { - """The digest algorithm used to sign SAML requests for the Identity Provider.""" - digestMethod: URI - """External Identities provisioned by this Identity Provider""" - externalIdentities( - """Filter to external identities with valid org membership only""" - membersOnly: Boolean - """Filter to external identities with the users login""" - login: String - """Filter to external identities with the users userName/NameID attribute""" - userName: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ExternalIdentityConnection! - 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 + """The digest algorithm used to sign SAML requests for the Identity Provider.""" + digestMethod: URI + """External Identities provisioned by this Identity Provider""" + externalIdentities( + """Filter to external identities with valid org membership only""" + membersOnly: Boolean + """Filter to external identities with the users login""" + login: String + """Filter to external identities with the users userName/NameID attribute""" + userName: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ExternalIdentityConnection! + 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 { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """The email address of the user invited to the organization.""" - email: String - id: ID! - """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! - """The organization the invite is for""" - organization: Organization! - """The user's pending role in the organization (e.g. member, owner).""" - role: OrganizationInvitationRole! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The email address of the user invited to the organization.""" + email: String + 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! + """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! + """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 + """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 { - """The user is invited to be a direct member of the organization.""" - DIRECT_MEMBER - """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's previous role will be reinstated.""" - REINSTATE + """The user is invited to be a direct member of the organization.""" + DIRECT_MEMBER + """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's previous role will be reinstated.""" + REINSTATE +} + +"""The possible organization invitation sources.""" +enum OrganizationInvitationSource { + """The invitation was sent before this feature was added""" + UNKNOWN + """The invitation was created from the web interface or from API""" + MEMBER + """The invitation was created from SCIM""" + SCIM } """The possible organization invitation types.""" enum OrganizationInvitationType { - """The invitation was to an existing user.""" - USER - """The invitation was to an email address.""" - EMAIL + """The invitation was to an existing user.""" + USER + """The invitation was to an email address.""" + EMAIL } """The connection type for User.""" 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! + """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 + """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 { - """The user is a member of the organization.""" - MEMBER - """The user is an administrator of the organization.""" - ADMIN + """The user is a member of the organization.""" + MEMBER + """The user is an administrator of the organization.""" + ADMIN } """The possible values for the members can create repositories setting on an organization.""" enum OrganizationMembersCanCreateRepositoriesSettingValue { - """Members will be able to create public and private repositories.""" - ALL - """Members will be able to create only private repositories.""" - PRIVATE - """Members will be able to create only internal repositories.""" - INTERNAL - """Members will not be able to create public or private repositories.""" - DISABLED + """Members will be able to create public and private repositories.""" + ALL + """Members will be able to create only private repositories.""" + PRIVATE + """Members will be able to create only internal repositories.""" + INTERNAL + """Members will not be able to create public or private repositories.""" + DISABLED +} + +"""A GitHub Enterprise Importer (GEI) organization migration.""" +type OrganizationMigration implements Node { + """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 + 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 { + """The Octoshift migration has not started.""" + NOT_STARTED + """The Octoshift migration has been queued.""" + QUEUED + """The Octoshift migration is in progress.""" + IN_PROGRESS + """The Octoshift migration is performing pre repository migrations.""" + PRE_REPO_MIGRATION + """The Octoshift org migration is performing repository migrations.""" + REPO_MIGRATION + """The Octoshift migration is performing post repository migrations.""" + POST_REPO_MIGRATION + """The Octoshift migration has succeeded.""" + SUCCEEDED + """The Octoshift migration has failed.""" + FAILED } """Ordering options for organization connections.""" input OrganizationOrder { - """The field to order organizations by.""" - field: OrganizationOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order organizations by.""" + field: OrganizationOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which organization connections can be ordered.""" enum OrganizationOrderField { - """Order organizations by creation time""" - CREATED_AT - """Order organizations by login""" - LOGIN + """Order organizations by creation time""" + CREATED_AT + """Order organizations by login""" + LOGIN } """Used for argument of CreateProjectV2 mutation.""" @@ -13895,961 +14981,963 @@ union OrganizationOrUser = Organization | User """An organization list hovercard context""" type OrganizationsHovercardContext implements HovercardContext { - """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 - ): OrganizationConnection! - """The total number of organizations this user is in""" - totalOrganizationCount: Int! + """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( + """Ordering options for the User's organizations.""" + orderBy: OrganizationOrder = null + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """The total number of organizations this user is in""" + totalOrganizationCount: Int! } """An organization teams hovercard context""" type OrganizationTeamsHovercardContext implements HovercardContext { - """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! + """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! } """Entities that have the action to block the creating user.""" interface OrgBlockable { - """Check if the current viewer can block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """Check if the current viewer can unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: Boolean! + """Check if the current viewer can block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """Check if the current viewer can unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: Boolean! } """Audit log entry for a org.block_user""" type OrgBlockUserAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The blocked user.""" - blockedUser: User - """The username of the blocked user.""" - blockedUserName: String - """The HTTP path for the blocked user.""" - blockedUserResourcePath: URI - """The HTTP URL for the blocked user.""" - blockedUserUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The blocked user.""" + blockedUser: User + """The username of the blocked user.""" + blockedUserName: String + """The HTTP path for the blocked user.""" + blockedUserResourcePath: URI + """The HTTP URL for the blocked user.""" + blockedUserUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.config.disable_collaborators_only event.""" type OrgConfigDisableCollaboratorsOnlyAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.config.enable_collaborators_only event.""" type OrgConfigEnableCollaboratorsOnlyAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.create event.""" type OrgCreateAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The billing plan for the Organization.""" - billingPlan: OrgCreateAuditEntryBillingPlan - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The billing plan for the Organization.""" + billingPlan: OrgCreateAuditEntryBillingPlan + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The billing plans available for organizations.""" enum OrgCreateAuditEntryBillingPlan { - """Free Plan""" - FREE - """Team Plan""" - BUSINESS - """Enterprise Cloud Plan""" - BUSINESS_PLUS - """Legacy Unlimited Plan""" - UNLIMITED - """Tiered Per Seat Plan""" - TIERED_PER_SEAT + """Free Plan""" + FREE + """Team Plan""" + BUSINESS + """Enterprise Cloud Plan""" + BUSINESS_PLUS + """Legacy Unlimited Plan""" + UNLIMITED + """Tiered Per Seat Plan""" + TIERED_PER_SEAT } """Audit log entry for a org.disable_oauth_app_restrictions event.""" type OrgDisableOauthAppRestrictionsAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.disable_saml event.""" type OrgDisableSamlAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The SAML provider's digest algorithm URL.""" - digestMethodUrl: URI - id: ID! - """The SAML provider's issuer URL.""" - issuerUrl: URI - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The SAML provider's signature algorithm URL.""" - signatureMethodUrl: URI - """The SAML provider's single sign-on URL.""" - singleSignOnUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The SAML provider's digest algorithm URL.""" + digestMethodUrl: URI + id: ID! + """The SAML provider's issuer URL.""" + issuerUrl: URI + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The SAML provider's signature algorithm URL.""" + signatureMethodUrl: URI + """The SAML provider's single sign-on URL.""" + singleSignOnUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.disable_two_factor_requirement event.""" type OrgDisableTwoFactorRequirementAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.enable_oauth_app_restrictions event.""" type OrgEnableOauthAppRestrictionsAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.enable_saml event.""" type OrgEnableSamlAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The SAML provider's digest algorithm URL.""" - digestMethodUrl: URI - id: ID! - """The SAML provider's issuer URL.""" - issuerUrl: URI - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The SAML provider's signature algorithm URL.""" - signatureMethodUrl: URI - """The SAML provider's single sign-on URL.""" - singleSignOnUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The SAML provider's digest algorithm URL.""" + digestMethodUrl: URI + id: ID! + """The SAML provider's issuer URL.""" + issuerUrl: URI + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The SAML provider's signature algorithm URL.""" + signatureMethodUrl: URI + """The SAML provider's single sign-on URL.""" + singleSignOnUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.enable_two_factor_requirement event.""" type OrgEnableTwoFactorRequirementAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Ordering options for an organization's enterprise owner connections.""" input OrgEnterpriseOwnerOrder { - """The field to order enterprise owners by.""" - field: OrgEnterpriseOwnerOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order enterprise owners by.""" + field: OrgEnterpriseOwnerOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which enterprise owners can be ordered.""" enum OrgEnterpriseOwnerOrderField { - """Order enterprise owners by login.""" - LOGIN + """Order enterprise owners by login.""" + LOGIN } """Audit log entry for a org.invite_member event.""" type OrgInviteMemberAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The email address of the organization invitation.""" - email: String - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The organization invitation.""" - organizationInvitation: OrganizationInvitation - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The email address of the organization invitation.""" + email: String + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The organization invitation.""" + organizationInvitation: OrganizationInvitation + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.invite_to_business event.""" type OrgInviteToBusinessAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.oauth_app_access_approved event.""" type OrgOauthAppAccessApprovedAuditEntry implements Node & AuditEntry & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - 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 - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + 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 + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.oauth_app_access_denied event.""" type OrgOauthAppAccessDeniedAuditEntry implements Node & AuditEntry & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - 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 - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + 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 + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.oauth_app_access_requested event.""" type OrgOauthAppAccessRequestedAuditEntry implements Node & AuditEntry & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - 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 - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + 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 + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.remove_billing_manager event.""" type OrgRemoveBillingManagerAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The reason for the billing manager being removed.""" - reason: OrgRemoveBillingManagerAuditEntryReason - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The reason for the billing manager being removed.""" + reason: OrgRemoveBillingManagerAuditEntryReason + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The reason a billing manager was removed from an Organization.""" enum OrgRemoveBillingManagerAuditEntryReason { - """The organization required 2FA of its billing managers and this user did not have 2FA enabled.""" - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE - """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 + """SAML external identity missing""" + SAML_EXTERNAL_IDENTITY_MISSING + """SAML SSO enforcement requires an external identity""" + SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY } """Audit log entry for a org.remove_member event.""" type OrgRemoveMemberAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The types of membership the member has with the organization.""" - membershipTypes: [OrgRemoveMemberAuditEntryMembershipType!] - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The reason for the member being removed.""" - reason: OrgRemoveMemberAuditEntryReason - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The types of membership the member has with the organization.""" + membershipTypes: [OrgRemoveMemberAuditEntryMembershipType!] + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The reason for the member being removed.""" + reason: OrgRemoveMemberAuditEntryReason + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The type of membership a user has with an Organization.""" enum OrgRemoveMemberAuditEntryMembershipType { - """A suspended member.""" - SUSPENDED - """A direct member is a user that is a member of the Organization.""" - DIRECT_MEMBER - """Organization administrators 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 admins 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 - """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 - """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 + """A direct member is a user that is a member of the Organization.""" + DIRECT_MEMBER + """Organization administrators 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 admins 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 + """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 + """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 } """The reason a member was removed from an Organization.""" enum OrgRemoveMemberAuditEntryReason { - """The organization required 2FA of its billing managers and this user did not have 2FA enabled.""" - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE - """SAML external identity missing""" - SAML_EXTERNAL_IDENTITY_MISSING - """SAML SSO enforcement requires an external identity""" - SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY - """User account has been deleted""" - USER_ACCOUNT_DELETED - """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 + """SAML external identity missing""" + SAML_EXTERNAL_IDENTITY_MISSING + """SAML SSO enforcement requires an external identity""" + SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY + """User account has been deleted""" + USER_ACCOUNT_DELETED + """User was removed from organization during account recovery""" + TWO_FACTOR_ACCOUNT_RECOVERY } """Audit log entry for a org.remove_outside_collaborator event.""" type OrgRemoveOutsideCollaboratorAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The types of membership the outside collaborator has with the organization.""" - membershipTypes: [OrgRemoveOutsideCollaboratorAuditEntryMembershipType!] - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The reason for the outside collaborator being removed from the Organization.""" - reason: OrgRemoveOutsideCollaboratorAuditEntryReason - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The types of membership the outside collaborator has with the organization.""" + membershipTypes: [OrgRemoveOutsideCollaboratorAuditEntryMembershipType!] + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The reason for the outside collaborator being removed from the Organization.""" + reason: OrgRemoveOutsideCollaboratorAuditEntryReason + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The type of membership a user has with an Organization.""" enum OrgRemoveOutsideCollaboratorAuditEntryMembershipType { - """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 - """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 + """A billing manager is a user who manages the billing settings for the Organization, such as updating payment information.""" + BILLING_MANAGER } """The reason an outside collaborator was removed from an Organization.""" enum OrgRemoveOutsideCollaboratorAuditEntryReason { - """The organization required 2FA of its billing managers and this user did not have 2FA enabled.""" - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE - """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 + """SAML external identity missing""" + SAML_EXTERNAL_IDENTITY_MISSING } """Audit log entry for a org.restore_member event.""" type OrgRestoreMemberAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The number of custom email routings for the restored member.""" - restoredCustomEmailRoutingsCount: Int - """The number of issue assignments for the restored member.""" - restoredIssueAssignmentsCount: Int - """Restored organization membership objects.""" - restoredMemberships: [OrgRestoreMemberAuditEntryMembership!] - """The number of restored memberships.""" - restoredMembershipsCount: Int - """The number of repositories of the restored member.""" - restoredRepositoriesCount: Int - """The number of starred repositories for the restored member.""" - restoredRepositoryStarsCount: Int - """The number of watched repositories for the restored member.""" - restoredRepositoryWatchesCount: Int - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The number of custom email routings for the restored member.""" + restoredCustomEmailRoutingsCount: Int + """The number of issue assignments for the restored member.""" + restoredIssueAssignmentsCount: Int + """Restored organization membership objects.""" + restoredMemberships: [OrgRestoreMemberAuditEntryMembership!] + """The number of restored memberships.""" + restoredMembershipsCount: Int + """The number of repositories of the restored member.""" + restoredRepositoriesCount: Int + """The number of starred repositories for the restored member.""" + restoredRepositoryStarsCount: Int + """The number of watched repositories for the restored member.""" + restoredRepositoryWatchesCount: Int + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Types of memberships that can be restored for an Organization member.""" @@ -14857,634 +15945,634 @@ union OrgRestoreMemberAuditEntryMembership = OrgRestoreMemberMembershipOrganizat """Metadata for an organization membership for org.restore_member actions""" type OrgRestoreMemberMembershipOrganizationAuditEntryData implements OrganizationAuditEntryData { - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI } """Metadata for a repository membership for org.restore_member actions""" type OrgRestoreMemberMembershipRepositoryAuditEntryData implements RepositoryAuditEntryData { - """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 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 { - """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 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 Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The user being unblocked by the organization.""" - blockedUser: User - """The username of the blocked user.""" - blockedUserName: String - """The HTTP path for the blocked user.""" - blockedUserResourcePath: URI - """The HTTP URL for the blocked user.""" - blockedUserUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The user being unblocked by the organization.""" + blockedUser: User + """The username of the blocked user.""" + blockedUserName: String + """The HTTP path for the blocked user.""" + blockedUserResourcePath: URI + """The HTTP URL for the blocked user.""" + blockedUserUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a org.update_default_repository_permission""" type OrgUpdateDefaultRepositoryPermissionAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The new base repository permission level for the organization.""" - permission: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission - """The former base repository permission level for the organization.""" - permissionWas: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The new base repository permission level for the organization.""" + permission: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission + """The former base repository permission level for the organization.""" + permissionWas: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The default permission a repository can have in an Organization.""" enum OrgUpdateDefaultRepositoryPermissionAuditEntryPermission { - """Can read and clone repositories.""" - READ - """Can read, clone and push to repositories.""" - WRITE - """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 + """Can read, clone, push, and add collaborators to repositories.""" + ADMIN + """No default permission value.""" + NONE } """Audit log entry for a org.update_member event.""" type OrgUpdateMemberAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The new member permission level for the organization.""" - permission: OrgUpdateMemberAuditEntryPermission - """The former member permission level for the organization.""" - permissionWas: OrgUpdateMemberAuditEntryPermission - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The new member permission level for the organization.""" + permission: OrgUpdateMemberAuditEntryPermission + """The former member permission level for the organization.""" + permissionWas: OrgUpdateMemberAuditEntryPermission + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The permissions available to members on an Organization.""" enum OrgUpdateMemberAuditEntryPermission { - """Can read and clone repositories.""" - READ - """Can read, clone, push, and add collaborators to repositories.""" - ADMIN + """Can read and clone repositories.""" + READ + """Can read, clone, push, and add collaborators to repositories.""" + ADMIN } """Audit log entry for a org.update_member_repository_creation_permission event.""" type OrgUpdateMemberRepositoryCreationPermissionAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """Can members create repositories in the organization.""" - canCreateRepositories: Boolean - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI - """The permission for visibility level of repositories for this organization.""" - visibility: OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """Can members create repositories in the organization.""" + canCreateRepositories: Boolean + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI + """The permission for visibility level of repositories for this organization.""" + visibility: OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility } """The permissions available for repository creation on an Organization.""" enum OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility { - """All organization members are restricted from creating any repositories.""" - ALL - """All organization members are restricted from creating public repositories.""" - PUBLIC - """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 internal repositories.""" - INTERNAL - """All organization members are restricted from creating public or internal repositories.""" - PUBLIC_INTERNAL - """All organization members are restricted from creating private or internal repositories.""" - PRIVATE_INTERNAL - """All organization members are restricted from creating public or private repositories.""" - PUBLIC_PRIVATE + """All organization members are restricted from creating any repositories.""" + ALL + """All organization members are restricted from creating public repositories.""" + PUBLIC + """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 internal repositories.""" + INTERNAL + """All organization members are restricted from creating public or internal repositories.""" + PUBLIC_INTERNAL + """All organization members are restricted from creating private or internal repositories.""" + PRIVATE_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 Node & AuditEntry & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """Can outside collaborators be invited to repositories in the organization.""" - canInviteOutsideCollaboratorsToRepositories: Boolean - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """Can outside collaborators be invited to repositories in the organization.""" + canInviteOutsideCollaboratorsToRepositories: Boolean + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Information for an uploaded package.""" type Package implements Node { - 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( - """Ordering of the returned packages.""" - orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PackageVersionConnection! + 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( + """Ordering of the returned packages.""" + orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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! + """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 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 { - 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 + 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! + """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 + """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 { - """The field in which to order package files by.""" - field: PackageFileOrderField - """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 + """The direction in which to order package files by the specified field.""" + direction: OrderDirection } """Properties by which package file connections can be ordered.""" enum PackageFileOrderField { - """Order package files by creation time""" - CREATED_AT + """Order package files by creation time""" + CREATED_AT } """Ways in which lists of packages can be ordered upon return.""" input PackageOrder { - """The field in which to order packages by.""" - field: PackageOrderField - """The direction in which to order packages by the specified field.""" - direction: OrderDirection + """The field in which to order packages by.""" + field: PackageOrderField + """The direction in which to order packages by the specified field.""" + direction: OrderDirection } """Properties by which package connections can be ordered.""" enum PackageOrderField { - """Order packages by creation time""" - CREATED_AT + """Order packages by creation time""" + CREATED_AT } """Represents an owner of a package.""" interface PackageOwner { - 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] - """Find packages in a repository by ID.""" - repositoryId: ID - """Filter registry package by type.""" - packageType: PackageType - """Ordering of the returned packages.""" - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - ): PackageConnection! + 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] + """Find packages in a repository by ID.""" + repositoryId: ID + """Filter registry package by type.""" + packageType: PackageType + """Ordering of the returned packages.""" + orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + ): PackageConnection! } """Represents a object that contains package activity statistics such as downloads.""" type PackageStatistics { - """Number of times the package was downloaded since it was created.""" - downloadsTotalCount: Int! + """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 { - id: ID! - """Identifies the tag name of the version.""" - name: String! - """Version that the tag is associated with.""" - version: PackageVersion + 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 { - """An npm package.""" - NPM - """A rubygems package.""" - RUBYGEMS - """A maven package.""" - MAVEN - """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 debian package.""" - DEBIAN - """A nuget package.""" - NUGET - """A python package.""" - PYPI + """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 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.") + """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.") + """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 debian package.""" + DEBIAN + """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 } """Information about a specific package version.""" type PackageVersion implements Node { - """List of files associated with this package version""" - files( - """Ordering of the returned package files.""" - orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PackageFileConnection! - 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! + """List of files associated with this package version""" + files( + """Ordering of the returned package files.""" + orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PackageFileConnection! + 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! + """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 + """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 { - """The field in which to order package versions by.""" - field: PackageVersionOrderField - """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 + """The direction in which to order package versions by the specified field.""" + direction: OrderDirection } """Properties by which package version connections can be ordered.""" enum PackageVersionOrderField { - """Order package versions by creation time""" - CREATED_AT + """Order package versions by creation time""" + CREATED_AT } """Represents a object that contains package version activity statistics such as downloads.""" type PackageVersionStatistics { - """Number of times the package was downloaded since it was created.""" - downloadsTotalCount: Int! + """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 + """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 the changes to an individual file in a diff.""" type Patch implements Node { - """The diff lines for this patch.""" - diffLines( - """Indicates whether diff lines should be syntax highlighted.""" - syntaxHighlightingEnabled: Boolean = true - """The list of line ranges for injected contexts added to the diff lines. The ranges can overlap and are not required to be sorted.""" - injectedContextLines: [DiffLineRange!] - ): [DiffLine] - id: ID! - """Whether or not the patch is binary""" - isBinary: Boolean! - """Whether or not the patch is a large diff""" - isLargeDiff: Boolean! - """Whether or not the patch is in a submodule""" - isSubmodule: Boolean! - """The number of lines added in this patch.""" - linesAdded: Int! - """The total lines added or removed in this patch.""" - linesChanged: Int! - """The number of lines removed in this patch.""" - linesDeleted: Int! - """The tree entry after the change.""" - newTreeEntry: TreeEntry - """The tree entry before the change.""" - oldTreeEntry: TreeEntry - """Identifies the status of the patch.""" - status: PatchStatus! - """The textual diff of this patch.""" - text: String + """The diff lines for this patch.""" + diffLines( + """Indicates whether diff lines should be syntax highlighted.""" + syntaxHighlightingEnabled: Boolean = true + """The list of line ranges for injected contexts added to the diff lines. The ranges can overlap and are not required to be sorted.""" + injectedContextLines: [DiffLineRange!] + ): [DiffLine] + id: ID! + """Whether or not the patch is binary""" + isBinary: Boolean! + """Whether or not the patch is a large diff""" + isLargeDiff: Boolean! + """Whether or not the patch is in a submodule""" + isSubmodule: Boolean! + """The number of lines added in this patch.""" + linesAdded: Int! + """The total lines added or removed in this patch.""" + linesChanged: Int! + """The number of lines removed in this patch.""" + linesDeleted: Int! + """The tree entry after the change.""" + newTreeEntry: TreeEntry + """The tree entry before the change.""" + oldTreeEntry: TreeEntry + """Identifies the status of the patch.""" + status: PatchStatus! + """The textual diff of this patch.""" + text: String } """The connection type for Patch.""" type PatchConnection { - """A list of edges.""" - edges: [PatchEdge] - """A list of nodes.""" - nodes: [Patch] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [PatchEdge] + """A list of nodes.""" + nodes: [Patch] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type PatchEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: Patch + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Patch } """The possible types of patch statuses.""" enum PatchStatus { - """The file was added. Git status 'A'.""" - ADDED - """The file was deleted. Git status 'D'.""" - DELETED - """The file was renamed. Git status 'R'.""" - RENAMED - """The file was copied. Git status 'C'.""" - COPIED - """The file's contents were changed. Git status 'M'.""" - MODIFIED - """The file's type was changed. Git status 'T'.""" - CHANGED + """The file was added. Git status 'A'.""" + ADDED + """The file was deleted. Git status 'D'.""" + DELETED + """The file was renamed. Git status 'R'.""" + RENAMED + """The file was copied. Git status 'C'.""" + COPIED + """The file's contents were changed. Git status 'M'.""" + MODIFIED + """The file's type was changed. Git status 'T'.""" + CHANGED } """Represents a pdf file.""" type PdfFileType implements RawBlobUrl { - """The URL to this file.""" - url: URI + """The URL to this file.""" + url: URI } """Types that can grant permissions on a repository to a user""" @@ -15492,28 +16580,28 @@ union PermissionGranter = Organization | Repository | Team """A level of permission and source for a user's access to a repository.""" type PermissionSource { - """The organization the repository belongs to.""" - organization: Organization! - """The level of access this source has granted to the user.""" - permission: DefaultRepositoryPermissionField! - """The source of this permission.""" - source: PermissionGranter! + """The organization the repository belongs to.""" + organization: Organization! + """The level of access this source has granted to the user.""" + permission: DefaultRepositoryPermissionField! + """The source of this permission.""" + source: PermissionGranter! } """Autogenerated input type of PinIssue""" input PinIssueInput { - """The ID of the issue to be pinned""" - issueId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the issue to be pinned""" + issueId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The issue that was pinned""" + issue: Issue } """Types that can be pinned to a profile page.""" @@ -15521,235 +16609,243 @@ union PinnableItem = 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! + """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 + """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 { - """A repository.""" - REPOSITORY - """A gist.""" - GIST - """An issue.""" - ISSUE - """A project.""" - PROJECT - """A pull request.""" - PULL_REQUEST - """A user.""" - USER - """An organization.""" - ORGANIZATION - """A team.""" - TEAM + """A repository.""" + REPOSITORY + """A gist.""" + GIST + """An issue.""" + ISSUE + """A project.""" + PROJECT + """A pull request.""" + PULL_REQUEST + """A user.""" + USER + """An organization.""" + ORGANIZATION + """A team.""" + TEAM } """A Pinned Discussion is a discussion pinned to a repository's index page.""" type PinnedDiscussion implements Node & RepositoryNode { - """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!]! - 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! + """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!]! + 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! + """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 + """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 { - """A gradient of red to orange""" - RED_ORANGE - """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 + """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 } """Preconfigured background patterns that may be used to style discussions pinned within a repository.""" enum PinnedDiscussionPattern { - """A solid dot pattern""" - DOT_FILL - """A plus sign pattern""" - PLUS - """A lightning bolt pattern""" - ZAP - """An upward-facing chevron pattern""" - CHEVRON_UP - """A hollow dot pattern""" - DOT - """A heart pattern""" - HEART_FILL + """A solid dot pattern""" + DOT_FILL + """A plus sign pattern""" + PLUS + """A lightning bolt pattern""" + ZAP + """An upward-facing chevron pattern""" + CHEVRON_UP + """A hollow dot pattern""" + DOT + """A heart pattern""" + HEART_FILL } """Represents a 'pinned' event on a given issue or pull request.""" type PinnedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Identifies the issue associated with the event.""" - issue: Issue! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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 { - """Identifies the primary key from the database.""" - databaseId: Int - 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! + """Identifies the primary key from the database.""" + databaseId: Int + """Identifies the primary key from the database as a BigInt.""" + fullDatabaseId: BigInt + 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! } """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: PinnedIssue } """Set of features which are supported based on the billing plan.""" enum PlanFeature { - """Enables automatic review requests and enforcement based on a CODEOWNERS file.""" - CODEOWNERS - """Enables insights tab for repositories.""" - INSIGHTS - """Enables basic features for creating custom, current state charts in project insights.""" - PROJECTSV2_CHARTS_BASIC - """Enables limited preview features for creating custom, historical charts in project insights.""" - PROJECTSV2_INSIGHTS_LIMITED - """Enables basic features for creating custom, historical charts in project insights.""" - PROJECTSV2_INSIGHTS_BASIC - """Enables Pages site generated from the repository.""" - PAGES - """Enables Pages site generated from the repository to be private.""" - PRIVATE_PAGES - """Enables protected branches.""" - PROTECTED_BRANCHES - """Enables protected tags.""" - PROTECTED_TAGS - """Enables the ability to export a list of users with access to a repository in an organization.""" - REPO_ACCESS_EXPORT - """Enables granular permissions beyond read, write, and admin.""" - FINE_GRAINED_PERMISSIONS - """Enables granular roles beyond read, write, and admin, with the use of fine grained permissions.""" - CUSTOM_ROLES - """Enables the creation of repositories.""" - REPOS - """Enables wikis tab for repositories.""" - WIKIS - """Enables draft pull requests.""" - DRAFT_PRS - """Enables displaying comment author's full name""" - DISPLAY_COMMENTER_FULL_NAME - """Enables the ability for organization owners to view the verified domain emails of organization members.""" - DISPLAY_VERIFIED_DOMAIN_EMAILS - """Enables the ability to restrict email notification delivery to verified domain emails in an organization.""" - RESTRICT_NOTIFICATION_DELIVERY - """Enables GraphQL API access to audit log entries.""" - AUDIT_LOG_API - """Enables users to authenticate with organization/enterprise managed SSH certificate authorities.""" - SSH_CERTIFICATES - """Enables defining an allowed list of IP addresses for access to resources owned by an enterprise or organization.""" - IP_ALLOWLIST - """Enables autolink references in the owner's repositories.""" - CUSTOM_KEY_LINKS - """Enables Scheduled and Realtime Reminders for organizations.""" - REMINDERS - """Enables teams to be requested for review on a pull request.""" - TEAM_REVIEW_REQUESTS - """Enables the ability to use Codespaces if the feature flag is enabled""" - ALLOW_CODESPACES - """Enables self service for organization level Insights""" - INSIGHTS_SELF_SERVICE - """Environment protection rules""" - ENVIRONMENT_PROTECTION_RULES - """Environment deployment branches and secrets""" - ENVIRONMENT_PROTECTION_SECRETS + """Enables automatic review requests and enforcement based on a CODEOWNERS file.""" + CODEOWNERS + """Enables insights tab for repositories.""" + INSIGHTS + """Enables basic features for creating custom, current state charts in project insights.""" + PROJECTSV2_CHARTS_BASIC + """Enables limited preview features for creating custom, historical charts in project insights.""" + PROJECTSV2_INSIGHTS_LIMITED + """Enables basic features for creating custom, historical charts in project insights.""" + PROJECTSV2_INSIGHTS_BASIC + """Enables Pages site generated from the repository.""" + PAGES + """Enables Pages site generated from the repository to be private.""" + PRIVATE_PAGES + """Enables protected branches.""" + PROTECTED_BRANCHES + """Enables protected tags.""" + PROTECTED_TAGS + """Enables the ability to export a list of users with access to a repository in an organization.""" + REPO_ACCESS_EXPORT + """Enables granular permissions beyond read, write, and admin.""" + FINE_GRAINED_PERMISSIONS + """Enables granular roles beyond read, write, and admin, with the use of fine grained permissions.""" + CUSTOM_ROLES + """Enables the creation of repositories.""" + REPOS + """Enables wikis tab for repositories.""" + WIKIS + """Enables draft pull requests.""" + DRAFT_PRS + """Enables displaying comment author's full name""" + DISPLAY_COMMENTER_FULL_NAME + """Enables the ability for organization owners to view the verified domain emails of organization members.""" + DISPLAY_VERIFIED_DOMAIN_EMAILS + """Enables the ability to restrict email notification delivery to verified domain emails in an organization.""" + RESTRICT_NOTIFICATION_DELIVERY + """Enables GraphQL API access to audit log entries.""" + AUDIT_LOG_API + """Enables users to authenticate with organization/enterprise managed SSH certificate authorities.""" + SSH_CERTIFICATES + """Enables defining an allowed list of IP addresses for access to resources owned by an enterprise or organization.""" + IP_ALLOWLIST + """Enables autolink references in the owner's repositories.""" + CUSTOM_KEY_LINKS + """Enables Scheduled and Realtime Reminders for organizations.""" + REMINDERS + """Enables teams to be requested for review on a pull request.""" + TEAM_REVIEW_REQUESTS + """Enables the ability to use Codespaces if the feature flag is enabled""" + ALLOW_CODESPACES + """Enables self service for organization level Insights""" + INSIGHTS_SELF_SERVICE + """Environment protection rules""" + ENVIRONMENT_PROTECTION_RULES + """Environment deployment branches and secrets""" + ENVIRONMENT_PROTECTION_SECRETS + """Enables merge queues.""" + MERGE_QUEUE + """Enterprise rulesets for repo security. Advanced features like org-level rules, commit metadata and rule insights.""" + ENTERPRISE_RULESETS } """Set of features limits which are supported based on the billing plan.""" enum PlanFeatureLimit { - """The number of collaborators allowed on a repository.""" - COLLABORATORS - """The number of owned repositories allowed.""" - REPOS - """The number in seconds a raw blob will be available.""" - RAW_BLOB_ACCESS_EXPIRES_IN_SECONDS - """The maximum size in bytes of an LFS blob.""" - MEDIA_BLOB_MAX_SIZE - """The maximum number of users allowed to be assigned to an issue or pull request.""" - ISSUE_PR_ASSIGNEES - """The maximum number of users allowed to be requested for review on a pull request.""" - MANUAL_REVIEW_REQUESTS + """The number of collaborators allowed on a repository.""" + COLLABORATORS + """The number of owned repositories allowed.""" + REPOS + """The number in seconds a raw blob will be available.""" + RAW_BLOB_ACCESS_EXPIRES_IN_SECONDS + """The maximum size in bytes of an LFS blob.""" + MEDIA_BLOB_MAX_SIZE + """The maximum number of users allowed to be assigned to an issue or pull request.""" + ISSUE_PR_ASSIGNEES + """The maximum number of users allowed to be requested for review on a pull request.""" + MANUAL_REVIEW_REQUESTS + """The maximum number of auto-add workflows allowed for a project.""" + PROJECTSV2_AUTO_ADD_WORKFLOWS } """An ISO-8601 encoded UTC date string with millisecond precision.""" @@ -15757,300 +16853,304 @@ scalar PreciseDateTime """Audit log entry for a private_repository_forking.disable event.""" type PrivateRepositoryForkingDisableAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a private_repository_forking.enable event.""" type PrivateRepositoryForkingEnableAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """A curatable list of repositories relating to a repository owner, which defaults to showing the most popular repositories they own.""" type ProfileItemShowcase { - """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! + """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 { - """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 - 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( - """Filter the types of pinnable items that are returned.""" - types: [PinnableItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """A list of repositories and gists this profile owner has pinned to their profile""" - pinnedItems( - """Filter the types of pinned items that are returned.""" - types: [PinnableItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """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 + """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 + 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( + """Filter the types of pinnable items that are returned.""" + types: [PinnableItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """A list of repositories and gists this profile owner has pinned to their profile""" + pinnedItems( + """Filter the types of pinned items that are returned.""" + types: [PinnableItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """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 Node & Closable & Updatable { - """The project's description body.""" - body: String - """The projects description body rendered to HTML.""" - bodyHTML: HTML! - """`true` 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! - """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 - id: ID! - """The project's name.""" - name: String! - """The project's number.""" - number: Int! - """The project's owner. Currently limited to repositories, organizations, and users.""" - owner: ProjectOwner! - """List of pending cards in this project""" - pendingCards( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 archived states to filter the cards by""" - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - ): ProjectCardConnection! - """Project progress details.""" - progress: ProjectProgress! - """The HTTP path for this project""" - resourcePath: URI! - """Whether the project is open or closed.""" - state: ProjectState! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! - """The HTTP URL for this project""" - url: URI! - """Check if the current viewer can update this object.""" - viewerCanUpdate: Boolean! + """The project's description body.""" + body: String + """The projects description body rendered to HTML.""" + bodyHTML: HTML! + """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! + """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 + id: ID! + """The project's name.""" + name: String! + """The project's number.""" + number: Int! + """The project's owner. Currently limited to repositories, organizations, and users.""" + owner: ProjectOwner! + """List of pending cards in this project""" + pendingCards( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 archived states to filter the cards by""" + archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] + ): ProjectCardConnection! + """Project progress details.""" + progress: ProjectProgress! + """The HTTP path for this project""" + resourcePath: URI! + """Whether the project is open or closed.""" + state: ProjectState! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The HTTP URL for this project""" + 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! + """Check if the current viewer can update this object.""" + viewerCanUpdate: Boolean! } """A card in a project.""" type ProjectCard implements Node { - """ - 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 - """The card content item""" - content: ProjectCardItem - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """The actor who created this card""" - creator: Actor - """Identifies the primary key from the database.""" - databaseId: Int - id: ID! - """Whether the card is archived""" - isArchived: Boolean! - """The card note""" - note: String - """The project that contains this card.""" - project: Project! - """The HTTP path for this card""" - resourcePath: URI! - """The state of ProjectCard""" - state: ProjectCardState - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! - """The HTTP URL for this card""" - url: URI! + """ + 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 + """The card content item""" + content: ProjectCardItem + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The actor who created this card""" + creator: Actor + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """Whether the card is archived""" + isArchived: Boolean! + """The card note""" + note: String + """The project that contains this card.""" + project: Project! + """The HTTP path for this card""" + resourcePath: URI! + """The state of ProjectCard""" + state: ProjectCardState + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The HTTP URL for this card""" + url: URI! } """The possible archived states of a project card.""" enum ProjectCardArchivedState { - """A project card that is archived""" - ARCHIVED - """A project card that is not archived""" - NOT_ARCHIVED + """A project card that is archived""" + ARCHIVED + """A project card that is not archived""" + NOT_ARCHIVED } """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectCard } """Types that can be inside Project Cards.""" @@ -16058,357 +17158,395 @@ union ProjectCardItem = Issue | PullRequest """Various content states of a ProjectCard""" enum ProjectCardState { - """The card has content only.""" - CONTENT_ONLY - """The card has a note only.""" - NOTE_ONLY - """The card is redacted.""" - REDACTED + """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 { - """List of cards in the column""" - cards( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 archived states to filter the cards by""" - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - ): ProjectCardConnection! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """Identifies the primary key from the database.""" - databaseId: Int - id: ID! - """The project column's name.""" - name: String! - """The project that contains this column.""" - project: Project! - """The semantic purpose of the column""" - purpose: ProjectColumnPurpose - """The HTTP path for this project column""" - resourcePath: URI! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! - """The HTTP URL for this project column""" - url: URI! + """List of cards in the column""" + cards( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 archived states to filter the cards by""" + archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] + ): ProjectCardConnection! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """The project column's name.""" + name: String! + """The project that contains this column.""" + project: Project! + """The semantic purpose of the column""" + purpose: ProjectColumnPurpose + """The HTTP path for this project column""" + resourcePath: URI! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The HTTP URL for this project column""" + url: URI! } """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! + """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 cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectColumn } """The semantic purpose of the column - todo, in progress, or done.""" enum ProjectColumnPurpose { - """The column contains cards still to be worked on""" - TODO - """The column contains cards which are currently being worked on""" - IN_PROGRESS - """The column contains cards which are complete""" - DONE + """The column contains cards still to be worked on""" + TODO + """The column contains cards which are currently being worked on""" + IN_PROGRESS + """The column contains cards which are complete""" + DONE } """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Project } """The type of a project item.""" enum ProjectItemType { - """Issue""" - ISSUE - """Pull Request""" - PULL_REQUEST - """Draft Issue""" - DRAFT_ISSUE - """Redacted Item""" - REDACTED + """Issue""" + ISSUE + """Pull Request""" + PULL_REQUEST + """Draft Issue""" + DRAFT_ISSUE + """Redacted Item""" + REDACTED } """New projects that manage issues, pull requests and drafts using tables and boards.""" type ProjectNext implements Node & Closable & Updatable { - """Returns true if the project is closed.""" - closed: Boolean! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was closed.""" - closedAt: DateTime - """Identifies the date and time when the object was created.""" - createdAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The actor who originally created the project.""" - creator: Actor @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the primary key from the database.""" - databaseId: Int @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The default view for the project""" - defaultView: ProjectView @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's description.""" - description: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """List of fields 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 - ): ProjectNextFieldConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - id: ID! - """List of items in the project""" - 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 - """Query to filter project items by""" - filter: String - ): ProjectNextItemConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's number.""" - number: Int! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's owner. Currently limited to organizations and users.""" - owner: ProjectNextOwner! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Returns true if the project is public.""" - public: Boolean! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """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 - ): RepositoryConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The HTTP path for this project""" - resourcePath: URI! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's short description.""" - shortDescription: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's name.""" - title: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The HTTP URL for this project""" - url: URI! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """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 - ): ProjectViewConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """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 + """The default view for the project""" + defaultView: ProjectView + """The project's description.""" + description: String + """List of fields and their constraints in the project""" + fieldConstraints( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextFieldConfigurationConnection! + """List of fields 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 + ): ProjectNextFieldConnection! + id: ID! + """List of items in the project""" + 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 + """Query to filter project items by""" + filter: String + ): ProjectNextItemConnection! + """The project's number.""" + number: Int! + """The project's owner. Currently limited to organizations and users.""" + owner: ProjectNextOwner! + """Returns true if the project is public.""" + public: Boolean! + """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 + ): RepositoryConnection! + """The HTTP path for this project""" + resourcePath: URI! + """The project's short description.""" + shortDescription: String + """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! + """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 + ): ProjectViewConnection! } """The connection type for ProjectNext.""" type ProjectNextConnection { - """A list of edges.""" - edges: [ProjectNextEdge] - """A list of nodes.""" - nodes: [ProjectNext] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [ProjectNextEdge] + """A list of nodes.""" + nodes: [ProjectNext] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type ProjectNextEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: ProjectNext + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectNext } """A field inside a project.""" type ProjectNextField implements ProjectNextFieldCommon & Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The field's type.""" - dataType: ProjectNextFieldType! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the primary key from the database.""" - databaseId: Int @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - id: ID! - """The project field's name.""" - name: String! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project that contains this field.""" - project: ProjectNext! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The field's settings.""" - settings: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The field's type.""" + dataType: ProjectNextFieldType! + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """The project field's name.""" + name: String! + """The project that contains this field.""" + project: ProjectNext! + """The field's settings.""" + settings: String + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! } """Common fields across different field types""" interface ProjectNextFieldCommon { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The field's type.""" - dataType: ProjectNextFieldType! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the primary key from the database.""" - databaseId: Int @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - id: ID! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project field's name.""" - name: String! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project that contains this field.""" - project: ProjectNext! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The field's settings.""" - settings: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The field's type.""" + dataType: ProjectNextFieldType! + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """The project field's name.""" + name: String! + """The project that contains this field.""" + project: ProjectNext! + """The field's settings.""" + settings: String + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! +} + +"""Configurations for project next fields.""" +union ProjectNextFieldConfiguration = ProjectNextField | ProjectNextIterationField | ProjectNextSingleSelectField + +"""The connection type for ProjectNextFieldConfiguration.""" +type ProjectNextFieldConfigurationConnection { + """A list of edges.""" + edges: [ProjectNextFieldConfigurationEdge] + """A list of nodes.""" + nodes: [ProjectNextFieldConfiguration] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! +} + +"""An edge in a connection.""" +type ProjectNextFieldConfigurationEdge { + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectNextFieldConfiguration } """The connection type for ProjectNextField.""" type ProjectNextFieldConnection { - """A list of edges.""" - edges: [ProjectNextFieldEdge] - """A list of nodes.""" - nodes: [ProjectNextField] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [ProjectNextFieldEdge] + """A list of nodes.""" + nodes: [ProjectNextField] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type ProjectNextFieldEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: ProjectNextField + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectNextField } """The type of a project next field.""" enum ProjectNextFieldType { - """Assignees""" - ASSIGNEES @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Linked Pull Requests""" - LINKED_PULL_REQUESTS @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Reviewers""" - REVIEWERS @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Labels""" - LABELS @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Milestone""" - MILESTONE @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Repository""" - REPOSITORY @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Title""" - TITLE @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Text""" - TEXT @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Single Select""" - SINGLE_SELECT @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Number""" - NUMBER @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Date""" - DATE @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Iteration""" - ITERATION @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Tracks""" - TRACKS @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Tracked by""" - TRACKED_BY @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """Assignees""" + ASSIGNEES + """Linked Pull Requests""" + LINKED_PULL_REQUESTS + """Reviewers""" + REVIEWERS + """Labels""" + LABELS + """Milestone""" + MILESTONE + """Repository""" + REPOSITORY + """Title""" + TITLE + """Text""" + TEXT + """Single Select""" + SINGLE_SELECT + """Number""" + NUMBER + """Date""" + DATE + """Iteration""" + ITERATION + """Tracks""" + TRACKS + """Tracked by""" + TRACKED_BY } """Represents a group of items within a ProjectView.""" type ProjectNextGroupedViewItems { - """The group that the view items belong to""" - group: ProjectNextItemFieldGroup - """The view that the grouped view items belongs to""" - view: ProjectView - """The view items""" - viewItems: [ProjectNextViewItem!] + """The group that the view items belong to""" + group: ProjectNextItemFieldGroup + """The view that the grouped view items belongs to""" + view: ProjectView + """The view items""" + viewItems: [ProjectNextViewItem!] } """An item within a new Project.""" type ProjectNextItem implements Node { - """The content of the referenced draft issue, issue, or pull request""" - content: ProjectNextItemContent @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was created.""" - createdAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The actor who created the item.""" - creator: Actor @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the primary key from the database.""" - databaseId: Int @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """List of field values""" - 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 - ): ProjectNextItemFieldValueConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - id: ID! - """Whether the item is archived.""" - isArchived: Boolean! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project that contains this item.""" - project: ProjectNext! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The title of the item""" - title: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The type of the item.""" - type: ProjectItemType! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """The content of the referenced draft issue, issue, or pull request""" + content: ProjectNextItemContent + """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 + """List of field values""" + 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 + ): ProjectNextItemFieldValueConnection! + id: ID! + """Whether the item is archived.""" + isArchived: Boolean! + """The project that contains this item.""" + project: ProjectNext! + """The title of the item""" + title: String + """The type of the item.""" + type: ProjectItemType! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! } """The connection type for ProjectNextItem.""" type ProjectNextItemConnection { - """A list of edges.""" - edges: [ProjectNextItemEdge] - """A list of nodes.""" - nodes: [ProjectNextItem] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [ProjectNextItemEdge] + """A list of nodes.""" + nodes: [ProjectNextItem] + """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.""" @@ -16416,359 +17554,490 @@ union ProjectNextItemContent = DraftIssue | Issue | PullRequest """An edge in a connection.""" type ProjectNextItemEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: ProjectNextItem + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectNextItem } """A group that an item belongs to, based on the view's group by field.""" type ProjectNextItemFieldGroup { - """The field that the item field group belongs to""" - field: ProjectNextField - """The title of the item field group""" - title: String - """The view that the item field group belongs to""" - view: ProjectView + """The field that the item field group belongs to""" + field: ProjectNextField + """The title of the item field group""" + title: String + """The view that the item field group belongs to""" + view: ProjectView } """An value of a field in an item of a new Project.""" type ProjectNextItemFieldValue implements Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The actor who created the item.""" - creator: Actor @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the primary key from the database.""" - databaseId: Int @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - id: ID! - """The project field that contains this value.""" - projectField: ProjectNextField! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project item that contains this value.""" - projectItem: ProjectNextItem! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The value of a field""" - value: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """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 + id: ID! + """The project field that contains this value.""" + projectField: ProjectNextField! + """The project field that contains this value and it's constraint.""" + projectFieldConstraint: ProjectNextFieldConfiguration! + """The project item that contains this value.""" + projectItem: ProjectNextItem! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The value of a field""" + value: String } """The connection type for ProjectNextItemFieldValue.""" type ProjectNextItemFieldValueConnection { - """A list of edges.""" - edges: [ProjectNextItemFieldValueEdge] - """A list of nodes.""" - nodes: [ProjectNextItemFieldValue] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [ProjectNextItemFieldValueEdge] + """A list of nodes.""" + nodes: [ProjectNextItemFieldValue] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type ProjectNextItemFieldValueEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: ProjectNextItemFieldValue + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectNextItemFieldValue +} + +"""An iteration field inside a project.""" +type ProjectNextIterationField implements ProjectNextFieldCommon & Node { + """Iteration configuration settings""" + configuration: ProjectNextIterationFieldConfiguration! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The field's type.""" + dataType: ProjectNextFieldType! + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """The project field's name.""" + name: String! + """The project that contains this field.""" + project: ProjectNext! + """The field's settings.""" + settings: String + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! +} + +"""Iteration field configuration for a project.""" +type ProjectNextIterationFieldConfiguration { + """The iteration's completed iterations""" + completedIterations: [ProjectNextIterationFieldIteration!]! + """The iteration's duration in days""" + duration: Int! + """The iteration's iterations""" + iterations: [ProjectNextIterationFieldIteration!]! + """The iteration's start day of the week""" + startDay: Int! +} + +"""Iteration field iteration settings for a project.""" +type ProjectNextIterationFieldIteration { + """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! } """Properties by which the return project can be ordered.""" enum ProjectNextOrderField { - """The project's title""" - TITLE @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's number""" - NUMBER @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's date and time of update""" - UPDATED_AT @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project's date and time of creation""" - CREATED_AT @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """The project's title""" + TITLE + """The project's number""" + NUMBER + """The project's date and time of update""" + UPDATED_AT + """The project's date and time of creation""" + CREATED_AT } """Represents an owner of a project (beta).""" interface ProjectNextOwner { - id: ID! - """Find a project by project (beta) number.""" - projectNext( - """The project (beta) number.""" - number: Int! - ): ProjectNext @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """A list of projects (beta) under the owner.""" - projectsNext( - """A project (beta) to search for under the the owner.""" - query: String - """How to order the returned projects (beta).""" - sortBy: ProjectNextOrderField = TITLE - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectNextConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + id: ID! + """Find a project by project (beta) number.""" + projectNext( + """The project (beta) number.""" + number: Int! + ): ProjectNext + """A list of projects (beta) under the owner.""" + projectsNext( + """A project (beta) to search for under the the owner.""" + query: String + """How to order the returned projects (beta).""" + sortBy: ProjectNextOrderField = TITLE + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! +} + +"""Recent projects (beta) for the owner.""" +interface ProjectNextRecent { + """Recent projects (beta) that this user has modified in the context of the owner.""" + recentProjectsNext( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! +} + +"""A single select field inside a project.""" +type ProjectNextSingleSelectField implements ProjectNextFieldCommon & Node { + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The field's type.""" + dataType: ProjectNextFieldType! + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """The project field's name.""" + name: String! + """Options for the single select field""" + options: [ProjectNextSingleSelectFieldOption!]! + """The project that contains this field.""" + project: ProjectNext! + """The field's settings.""" + settings: String + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! +} + +"""Single select field option for a configuration for a project.""" +type ProjectNextSingleSelectFieldOption { + """The option's ID.""" + id: String! + """The option's name.""" + name: String! + """The option's html name.""" + nameHTML: String! } """Represents a ProjectNextItem within the context of a view.""" type ProjectNextViewItem { - """The project item""" - item: ProjectNextItem - """The position of the item""" - position: Int + """The project item""" + item: ProjectNextItem + """The position of the item""" + position: Int } """Ways in which lists of projects can be ordered upon return.""" input ProjectOrder { - """The field in which to order projects by.""" - field: ProjectOrderField! - """The direction in which to order projects by the specified field.""" - direction: OrderDirection! + """The field in which to order projects by.""" + field: ProjectOrderField! + """The direction in which to order projects by the specified field.""" + direction: OrderDirection! } """Properties by which project connections can be ordered.""" enum ProjectOrderField { - """Order projects by creation time""" - CREATED_AT - """Order projects by update time""" - UPDATED_AT - """Order projects by name""" - NAME + """Order projects by creation time""" + CREATED_AT + """Order projects by update time""" + UPDATED_AT + """Order projects by name""" + NAME } """Represents an owner of a Project.""" interface ProjectOwner { - id: ID! - """Find project by number.""" - project( - """The project number to find.""" - number: Int! - ): Project - """A list of projects under the owner.""" - projects( - """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!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectConnection! - """The HTTP path listing owners projects""" - projectsResourcePath: URI! - """The HTTP URL listing owners projects""" - projectsUrl: URI! - """Can the current viewer create new projects on this owner.""" - viewerCanCreateProjects: Boolean! + id: ID! + """Find project by number.""" + project( + """The project number to find.""" + number: Int! + ): Project + """A list of projects under the owner.""" + projects( + """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!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectConnection! + """The HTTP path listing owners projects""" + projectsResourcePath: URI! + """The HTTP URL listing owners projects""" + projectsUrl: URI! + """Can the current viewer create new projects on this owner.""" + viewerCanCreateProjects: Boolean! } """Project progress stats.""" type ProjectProgress { - """The number of done cards.""" - doneCount: Int! - """The percentage of done cards.""" - donePercentage: Float! - """Whether progress tracking is enabled and cards with purpose exist for this project""" - enabled: Boolean! - """The number of in-progress cards.""" - inProgressCount: Int! - """The percentage of in-progress cards.""" - inProgressPercentage: Float! - """The number of to do cards.""" - todoCount: Int! - """The percentage of to do cards.""" - todoPercentage: Float! + """The number of done cards.""" + doneCount: Int! + """The percentage of done cards.""" + donePercentage: Float! + """Whether progress tracking is enabled and cards with purpose exist for this project""" + enabled: Boolean! + """The number of in-progress cards.""" + inProgressCount: Int! + """The percentage of in-progress cards.""" + inProgressPercentage: Float! + """The number of to do cards.""" + todoCount: Int! + """The percentage of to do cards.""" + todoPercentage: Float! } """State of the project; either 'open' or 'closed'""" enum ProjectState { - """The project is open.""" - OPEN - """The project is closed.""" - CLOSED + """The project is open.""" + OPEN + """The project is closed.""" + CLOSED } """GitHub-provided templates for Projects""" enum ProjectTemplate { - """Create a board with columns for To do, In progress and Done.""" - BASIC_KANBAN - """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 to triage and prioritize bugs with To do, priority, and Done columns.""" - BUG_TRIAGE + """Create a board with columns for To do, In progress and Done.""" + BASIC_KANBAN + """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 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 & Updatable & Node { - """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 - """The default view for the project""" - defaultView: ProjectV2View - """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! - id: ID! - """List of items in the project""" - 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 - """Ordering options for project v2 items returned from the connection""" - orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC} - ): 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 - """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! - """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""" + """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 + """The default view for the project""" + defaultView: ProjectV2View + """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! + id: ID! + """List of items in the project""" + 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 + """Ordering options for project v2 items returned from the connection""" + orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC} + ): ProjectV2ItemConnection! + """The project's number.""" number: Int! - ): ProjectV2View - """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! + """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 + """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! } """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! + """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 { + """Text""" + TEXT + """Single Select""" + SINGLE_SELECT + """Number""" + NUMBER + """Date""" + DATE } """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectV2 } """A field inside a project.""" type ProjectV2Field implements ProjectV2FieldCommon & Node { - """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 - id: ID! - """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! + """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 + id: ID! + """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 { - """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 - id: ID! - """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! + """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 + id: ID! + """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.""" @@ -16776,167 +18045,269 @@ union ProjectV2FieldConfiguration = ProjectV2Field | ProjectV2IterationField | P """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! + """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 + """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! + """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 + """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 { - """The field to order the project v2 fields by.""" - field: ProjectV2FieldOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order the project v2 fields by.""" + field: ProjectV2FieldOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which project v2 field connections can be ordered.""" enum ProjectV2FieldOrderField { - """Order project v2 fields by position""" - POSITION - """Order project v2 fields by creation time""" - CREATED_AT - """Order project v2 fields by name""" - NAME + """Order project v2 fields by position""" + POSITION + """Order project v2 fields by creation time""" + CREATED_AT + """Order project v2 fields by name""" + NAME } """The type of a project field.""" enum ProjectV2FieldType { - """Assignees""" - ASSIGNEES - """Linked Pull Requests""" - LINKED_PULL_REQUESTS - """Reviewers""" - REVIEWERS - """Labels""" - LABELS - """Milestone""" - MILESTONE - """Repository""" - REPOSITORY - """Title""" - TITLE - """Text""" - TEXT - """Single Select""" - SINGLE_SELECT - """Number""" - NUMBER - """Date""" - DATE - """Iteration""" - ITERATION - """Tracks""" - TRACKS - """Tracked by""" - TRACKED_BY + """Assignees""" + ASSIGNEES + """Linked Pull Requests""" + LINKED_PULL_REQUESTS + """Reviewers""" + REVIEWERS + """Labels""" + LABELS + """Milestone""" + MILESTONE + """Repository""" + REPOSITORY + """Title""" + TITLE + """Text""" + TEXT + """Single Select""" + SINGLE_SELECT + """Number""" + NUMBER + """Date""" + DATE + """Iteration""" + ITERATION + """Tracks""" + TRACKS + """Tracked by""" + TRACKED_BY } """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 { - """The text to set on the field.""" - text: String - """The number to set on the field.""" - number: Float - """The ISO 8601 date to set on the field.""" - date: Date - """The id of the single select option to set on the field.""" - singleSelectOptionId: String - """The id of the iteration to set on the field.""" - iterationId: String + """The text to set on the field.""" + text: String + """The number to set on the field.""" + number: Float + """The ISO 8601 date to set on the field.""" + date: Date + """The id of the single select option to set on the field.""" + singleSelectOptionId: String + """The id of the iteration to set on the field.""" + iterationId: String +} + +"""Ways in which to filter lists of projects.""" +input ProjectV2Filters { + """List project v2 filtered by the state given.""" + state: ProjectV2State +} + +"""Represents a group of items within a ProjectV2View.""" +type ProjectV2Group { + """The field that the item field group belongs to""" + field: ProjectV2FieldConfiguration + """Pageable items within a group.""" + 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 + ): ProjectV2ViewItemConnection! + """The title of the item field group""" + title: String + """The underlying value shared by all the items for the grouped field""" + value: ProjectV2GroupValue + """The view that the grouped view items belongs to""" + view: ProjectV2View! + """Unique identifier for the group within a view.""" + viewGroupId: String +} + +"""Value when a view is grouped by an assignees column""" +type ProjectV2GroupAssigneeValue { + """List of user logins shared by all the items for the grouped field""" + logins: [String!] +} + +"""The connection type for ProjectV2Group.""" +type ProjectV2GroupConnection { + """A list of edges.""" + edges: [ProjectV2GroupEdge] + """A list of nodes.""" + nodes: [ProjectV2Group] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! +} + +"""Value when a view is grouped by a date column""" +type ProjectV2GroupDateValue { + """The ISO 8601 date value shared by all the items for the grouped field""" + date: Date +} + +"""An edge in a connection.""" +type ProjectV2GroupEdge { + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectV2Group } """Represents a group of items within a ProjectV2View.""" type ProjectV2GroupedViewItems { - """The group that the view items belong to""" - group: ProjectV2ItemFieldGroup - """The view that the grouped view items belongs to""" - view: ProjectV2View! - """The view items""" - viewItems: [ProjectV2ViewItem!] + """The group that the view items belong to""" + group: ProjectV2ItemFieldGroup + """The view that the grouped view items belongs to""" + view: ProjectV2View! + """The view items""" + viewItems: [ProjectV2ViewItem!] } +"""Value when a view is grouped by an iteration column""" +type ProjectV2GroupIterationValue { + """The iteration ID shared by all the items for the grouped field""" + iterationId: String +} + +"""Value when a view is grouped by a milestone column""" +type ProjectV2GroupMilestoneValue { + """The title of the milestone shared by all the items for the grouped field""" + title: String +} + +"""Value when a view is grouped by a number column""" +type ProjectV2GroupNumberValue { + """The numerical value shared by all the items for the grouped field""" + number: Float +} + +"""Value when a view is grouped by a repository column""" +type ProjectV2GroupRepositoryValue { + """The name (with owner) of the repository shared by all the items for the grouped field""" + nameWithOwner: String +} + +"""Value when a view is grouped by a single select column""" +type ProjectV2GroupSingleSelectValue { + """The option ID shared by all the items for the grouped field""" + optionId: String +} + +"""Value when a view is grouped by a text column""" +type ProjectV2GroupTextValue { + """The text value shared by all the items for the grouped field""" + text: String +} + +"""Project group values""" +union ProjectV2GroupValue = ProjectV2GroupAssigneeValue | ProjectV2GroupDateValue | ProjectV2GroupIterationValue | ProjectV2GroupMilestoneValue | ProjectV2GroupNumberValue | ProjectV2GroupRepositoryValue | ProjectV2GroupSingleSelectValue | ProjectV2GroupTextValue + """An item within a Project.""" type ProjectV2Item implements Node { - """The content of the referenced draft issue, issue, or 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 - """A specific field value given a field name""" - fieldValueByName( - """The name of the field to return the field value of""" - name: String! - ): ProjectV2ItemFieldValue - """List of field values""" - 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! - 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 content of the referenced draft issue, issue, or 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 + """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! + 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 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! + """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.""" @@ -16944,213 +18315,217 @@ union ProjectV2ItemContent = 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 + """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 ProjectV2ItemFieldValueCommon & Node { - """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! - id: ID! - """The project item that contains this value.""" - item: ProjectV2Item! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! + """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! + id: ID! + """The project item that contains this value.""" + item: ProjectV2Item! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! } """A group that an item belongs to, based on the view's group by field.""" type ProjectV2ItemFieldGroup { - """The field that the item field group belongs to""" - field: ProjectV2Field - """The title of the item field group""" - title: String - """The view that the item field group belongs to""" - view: ProjectV2View + """The field that the item field group belongs to (Deprecated: use `ProjectV2ItemFieldGroup#groupByField` instead)""" + field: ProjectV2Field @deprecated(reason: "The `ProjectV2ItemFieldGroup#field` API is deprecated in favour of the more capable `ProjectV2ItemFieldGroup#groupByField` API. Check out the `ProjectV2ItemFieldGroup#groupByField` API as an example for the more capable alternative. Removal on 2023-07-01 UTC.") + """The field that the item field group belongs to""" + groupByField: ProjectV2FieldConfiguration + """The title of the item field group""" + title: String + """The underlying value shared by all the items for the grouped field""" + value: ProjectV2GroupValue + """The view that the item field group belongs to""" + view: ProjectV2View } """The value of an iteration field in a Project item.""" type ProjectV2ItemFieldIterationValue implements ProjectV2ItemFieldValueCommon & Node { - """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! - 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! + """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! + 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 { - """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 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 { - """The field that contains this value.""" - field: ProjectV2FieldConfiguration! - """Milestone value of a field""" - milestone: Milestone + """The field that contains this value.""" + field: ProjectV2FieldConfiguration! + """Milestone value of a field""" + milestone: Milestone } """The value of a number field in a Project item.""" type ProjectV2ItemFieldNumberValue implements ProjectV2ItemFieldValueCommon & Node { - """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! - 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! + """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! + 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 { - """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 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 { - """The field that contains this value.""" - field: ProjectV2FieldConfiguration! - """The repository for this field.""" - repository: Repository + """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 { - """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 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 ProjectV2ItemFieldValueCommon & Node { - """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! - 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! + """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! + 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 ProjectV2ItemFieldValueCommon & Node { - """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! - 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! + """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! + 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 { - """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 + """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""" @@ -17158,1658 +18533,1862 @@ union ProjectV2ItemFieldValue = ProjectV2ItemFieldDateValue | ProjectV2ItemField """Common fields across different project field value types""" interface ProjectV2ItemFieldValueCommon { - """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! - id: ID! - """The project item that contains this value.""" - item: ProjectV2Item! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! + """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! + 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! + """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 + """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 { - """The field to order the project v2 item field values by.""" - field: ProjectV2ItemFieldValueOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order the project v2 item field values by.""" + field: ProjectV2ItemFieldValueOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which project v2 item field value connections can be ordered.""" enum ProjectV2ItemFieldValueOrderField { - """Order project v2 item field values by the their position in the project""" - POSITION + """Order project v2 item field values by the their position in the project""" + POSITION } """Ordering options for project v2 item connections""" input ProjectV2ItemOrder { - """The field to order the project v2 items by.""" - field: ProjectV2ItemOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order the project v2 items by.""" + field: ProjectV2ItemOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which project v2 item connections can be ordered.""" enum ProjectV2ItemOrderField { - """Order project v2 items by the their position in the project""" - POSITION + """Order project v2 items by the their position in the project""" + POSITION } """The type of a project item.""" enum ProjectV2ItemType { - """Issue""" - ISSUE - """Pull Request""" - PULL_REQUEST - """Draft Issue""" - DRAFT_ISSUE - """Redacted Item""" - REDACTED + """Issue""" + ISSUE + """Pull Request""" + PULL_REQUEST + """Draft Issue""" + DRAFT_ISSUE + """Redacted Item""" + REDACTED } """An iteration field inside a project.""" type ProjectV2IterationField implements ProjectV2FieldCommon & Node { - """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 - id: ID! - """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 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 + id: ID! + """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 { - """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! + """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! } """Iteration field iteration settings for a project.""" type ProjectV2IterationFieldIteration { - """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! + """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! } """Ways in which lists of projects can be ordered upon return.""" input ProjectV2Order { - """The field in which to order projects by.""" - field: ProjectV2OrderField! - """The direction in which to order projects by the specified field.""" - direction: OrderDirection! + """The field in which to order projects by.""" + field: ProjectV2OrderField! + """The direction in which to order projects by the specified field.""" + direction: OrderDirection! } """Properties by which projects can be ordered.""" enum ProjectV2OrderField { - """The project's title""" - TITLE - """The project's number""" - NUMBER - """The project's date and time of update""" - UPDATED_AT - """The project's date and time of creation""" - CREATED_AT - """Best match of the query compared to the project's title""" - RELEVANCE + """The project's title""" + TITLE + """The project's number""" + NUMBER + """The project's date and time of update""" + UPDATED_AT + """The project's date and time of creation""" + CREATED_AT + """Best match of the query compared to the project's title""" + RELEVANCE } """Represents an owner of a project (beta).""" interface ProjectV2Owner { - id: ID! - """Find a project by number.""" - projectV2( - """The project number.""" - number: Int! - ): ProjectV2 - """A list of projects under the owner.""" - projectsV2( - """A project to search for under the the owner.""" - query: String - """How to order the returned projects.""" - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! + id: ID! + """Find a project by number.""" + projectV2( + """The project number.""" + number: Int! + ): ProjectV2 + """A list of projects under the owner.""" + projectsV2( + """A project to search for under the the owner.""" + query: String + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! } """Recent projects for the owner.""" interface ProjectV2Recent { - """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! + """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 single select field inside a project.""" type ProjectV2SingleSelectField implements ProjectV2FieldCommon & Node { - """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 - id: ID! - """The project field's name.""" - name: String! - """Options for the single select field""" - options: [ProjectV2SingleSelectFieldOption!]! - """The project that contains this field.""" - project: ProjectV2! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! + """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 + id: ID! + """The project field's name.""" + name: String! + """Options for the single select field""" + options: [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 { - """The option's ID.""" - id: String! - """The option's name.""" - name: String! - """The option's html name.""" - nameHTML: 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 { + """GRAY""" + GRAY + """BLUE""" + BLUE + """GREEN""" + GREEN + """YELLOW""" + YELLOW + """ORANGE""" + ORANGE + """RED""" + RED + """PINK""" + PINK + """PURPLE""" + PURPLE +} + +"""Represents a single select field option""" +input ProjectV2SingleSelectFieldOptionInput { + """The name of the option""" + name: String! + """The display color of the option""" + color: ProjectV2SingleSelectFieldOptionColor! + """The description text of the option""" + description: String! } """Represents a sort by field and direction.""" type ProjectV2SortBy { - """The direction of the sorting. Possible values are ASC and DESC.""" - direction: OrderDirection! - """The field by which items are sorted.""" - field: ProjectV2Field! + """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! + """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 + """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 { - """The direction of the sorting. Possible values are ASC and DESC.""" - direction: OrderDirection! - """The field by which items are sorted.""" - field: ProjectV2FieldConfiguration! + """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! + """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 + """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 { + """A project v2 that is still open""" + OPEN + """A project v2 that has been closed""" + CLOSED } """A view within a ProjectV2.""" type ProjectV2View implements Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """Identifies the primary key from the database.""" - databaseId: Int - """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 - """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 grouped view items.""" - groupedItems: [ProjectV2GroupedViewItems!]! - id: ID! - """The view's filtered items.""" - 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 - """Ordering options for project v2 items returned from the connection.""" - orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC} - ): ProjectV2ItemConnection! - """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.") + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """Identifies the primary key from the database.""" + databaseId: Int + """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 + """A single group based on the view's group by.""" + group( + """Underlying group ID to identify the group within a view.""" + viewGroupId: String = null + ): ProjectV2Group + """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 grouped view items.""" + groupedItems: [ProjectV2GroupedViewItems!]! + """Pageable groups of items.""" + groups( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectV2GroupConnection! + id: ID! + """The view's filtered items.""" + 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 + """Ordering options for project v2 items returned from the connection.""" + orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC} + ): ProjectV2ItemConnection! + """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.") } """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectV2View } """Represents a ProjectV2Item within the context of a view.""" type ProjectV2ViewItem { - """The project item""" - item: ProjectV2Item - """The position of the item""" - position: Int + """The project item""" + item: ProjectV2Item + """The position of the item""" + position: Int +} + +"""The connection type for ProjectV2ViewItem.""" +type ProjectV2ViewItemConnection { + """A list of edges.""" + edges: [ProjectV2ViewItemEdge] + """A list of nodes.""" + nodes: [ProjectV2ViewItem] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! +} + +"""An edge in a connection.""" +type ProjectV2ViewItemEdge { + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectV2ViewItem } """The layout of a project v2 view.""" enum ProjectV2ViewLayout { - """Board layout""" - BOARD_LAYOUT - """Table layout""" - TABLE_LAYOUT + """Board layout""" + BOARD_LAYOUT + """Table layout""" + TABLE_LAYOUT + """Roadmap layout""" + ROADMAP_LAYOUT } """Ordering options for project v2 view connections""" input ProjectV2ViewOrder { - """The field to order the project v2 views by.""" - field: ProjectV2ViewOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order the project v2 views by.""" + field: ProjectV2ViewOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which project v2 view connections can be ordered.""" enum ProjectV2ViewOrderField { - """Order project v2 views by position""" - POSITION - """Order project v2 views by creation time""" - CREATED_AT - """Order project v2 views by name""" - NAME + """Order project v2 views by position""" + POSITION + """Order project v2 views by creation time""" + CREATED_AT + """Order project v2 views by name""" + NAME +} + +"""A workflow inside a project.""" +type ProjectV2Workflow implements Node { + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """Identifies the primary key from the database.""" + databaseId: Int + """The workflows' enabled state.""" + enabled: Boolean! + id: ID! + """The workflows' name.""" + name: String! + """The workflows' number.""" + 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 { + """The field to order the project v2 workflows by.""" + field: ProjectV2WorkflowsOrderField! + """The ordering direction.""" + direction: OrderDirection! +} + +"""Properties by which project workflows can be ordered.""" +enum ProjectV2WorkflowsOrderField { + """The workflows' name""" + NAME + """The workflows' number""" + NUMBER + """The workflows' date and time of update""" + UPDATED_AT + """The workflows' date and time of creation""" + CREATED_AT } """A view within a Project.""" type ProjectView implements Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the primary key from the database.""" - databaseId: Int @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project view's filter.""" - filter: String @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The view's group-by field.""" - groupBy: [Int!] @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The grouped view items.""" - groupedItems: [ProjectNextGroupedViewItems!]! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - id: ID! - """The view's filtered items.""" - 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 - ): ProjectNextItemConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project view's layout.""" - layout: ProjectViewLayout! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project view's name.""" - name: String! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project view's number.""" - number: Int! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The project that contains this view.""" - project: ProjectNext! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The view's sort-by config.""" - sortBy: [SortBy!] @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The view's vertical-group-by field.""" - verticalGroupBy: [Int!] @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """The view's visible fields.""" - visibleFields: [Int!] @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """Identifies the primary key from the database.""" + databaseId: Int + """The project view's filter.""" + filter: String + """The view's group-by field.""" + groupBy: [Int!] + """The grouped view items.""" + groupedItems: [ProjectNextGroupedViewItems!]! + id: ID! + """The view's filtered items.""" + 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 + ): ProjectNextItemConnection! + """The project view's layout.""" + layout: ProjectViewLayout! + """The project view's name.""" + name: String! + """The project view's number.""" + number: Int! + """The project that contains this view.""" + project: ProjectNext! + """The view's sort-by config.""" + sortBy: [SortBy!] + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The view's vertical-group-by field.""" + verticalGroupBy: [Int!] + """The view's visible fields.""" + visibleFields: [Int!] } """The connection type for ProjectView.""" type ProjectViewConnection { - """A list of edges.""" - edges: [ProjectViewEdge] - """A list of nodes.""" - nodes: [ProjectView] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [ProjectViewEdge] + """A list of nodes.""" + nodes: [ProjectView] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type ProjectViewEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: ProjectView + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: ProjectView } """The layout of a project view.""" enum ProjectViewLayout { - """Board layout""" - BOARD_LAYOUT - """Table layout""" - TABLE_LAYOUT + """Board layout""" + BOARD_LAYOUT + """Table layout""" + TABLE_LAYOUT } """A user's public key.""" type PublicKey implements Node { - """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! - 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 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! + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: PublicKey } """A feed item representing the act of a release being published""" type PublishedReleaseFeedItem implements FeedItemDisplayable { - """The user who published the release""" - actor: User! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The release that was published""" - release: Release! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """The user who published the release""" + actor: User! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The release that was published""" + release: Release! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! +} + +"""Autogenerated input type of PublishSponsorsTier""" +input PublishSponsorsTierInput { + """The ID of the draft tier to publish.""" + tierId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 Node & Assignable & Closable & Comment & Updatable & UpdatableComment & Labelable & Lockable & Reactable & MentionSuggestable & OrgBlockable & RepositoryNode & Subscribable & UniformResourceLocatable & ProjectNextOwner & ProjectV2Owner { - """Number of workflow runs pending approval on the pull request""" - actionRequiredWorkflowRunCount: Int! - """Reason that the conversation was locked.""" - activeLockReason: LockReason - """The number of additions in this pull request.""" - additions: Int! - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): HTML! - """The body rendered to text.""" - bodyText: String! - """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 were may be closed by this pull request""" - closingIssuesReferences( - """Return only manually linked Issues""" - userLinkedOnly: Boolean = false - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 issues returned from the connection""" - orderBy: IssueOrder - ): IssueConnection - """A list of comments associated with the pull request.""" - comments( - """Ordering options for issue comments returned from the connection.""" - orderBy: IssueCommentOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 - """The number of deletions in this pull request.""" - deletions: Int! - """Identifies a diff over two commits within this pull request.""" - diff( - """How long to allow for loading the diff.""" - timeout: Int - """A commit sha to specify the beginning for a diff.""" - startOid: String - """A commit sha to specify the ending for a diff.""" - endOid: String - ): Diff - """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 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! - 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! - """Is this pull request read by the viewer""" - isReadByViewer: Boolean - """A list of labels associated with the object.""" - labels( - """Ordering options for labels returned from the connection.""" - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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! - """A list of mentionable items that can be mentioned in the context of this object.""" - mentionableItems( - """Filters users, teams with query on mentionable items""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): MentionableItemConnection - """The commit that was created when this pull request was merged.""" - mergeCommit: Commit - """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 - """Returns the elements in the list that come before the 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 archived states to filter the cards by""" - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - ): ProjectCardConnection! - """List of project items associated with this pull request.""" - projectItems( - """Include archived items.""" - includeArchived: 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 - ): ProjectV2ItemConnection! - """Find a project by project (beta) number.""" - projectNext( - """The project (beta) number.""" - number: Int! - ): ProjectNext @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """List of project (beta) items associated with this pull request.""" - projectNextItems( - """Include archived items.""" - includeArchived: 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 - ): ProjectNextItemConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Find a project by number.""" - projectV2( - """The project number.""" + """Number of workflow runs pending approval on the pull request""" + actionRequiredWorkflowRunCount: Int! + """Reason that the conversation was locked.""" + activeLockReason: LockReason + """The number of additions in this pull request.""" + additions: Int! + """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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): HTML! + """The body rendered to text.""" + bodyText: String! + """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 were may be closed by this pull request""" + closingIssuesReferences( + """Return only manually linked Issues""" + userLinkedOnly: Boolean = false + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 issues returned from the connection""" + orderBy: IssueOrder + ): IssueConnection + """A list of comments associated with the pull request.""" + comments( + """Ordering options for issue comments returned from the connection.""" + orderBy: IssueCommentOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 + """The number of deletions in this pull request.""" + deletions: Int! + """Identifies a diff over two commits within this pull request.""" + diff( + """How long to allow for loading the diff.""" + timeout: Int + """A commit sha to specify the beginning for a diff.""" + startOid: String + """A commit sha to specify the ending for a diff.""" + endOid: String + ): Diff + """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 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! + 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! + """Is this pull request read by the viewer""" + isReadByViewer: Boolean + """A list of labels associated with the object.""" + labels( + """Ordering options for labels returned from the connection.""" + orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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! + """A list of mentionable items that can be mentioned in the context of this object.""" + mentionableItems( + """Filters users, teams with query on mentionable items""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): MentionableItemConnection + """The commit that was created when this pull request was merged.""" + mergeCommit: Commit + """The merge queue entry of the pull request in the base branch's merge queue""" + mergeQueueEntry: MergeQueueEntry + """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! - ): ProjectV2 - """A list of projects (beta) under the owner.""" - projectsNext( - """A project (beta) to search for under the the owner.""" - query: String - """How to order the returned projects (beta).""" - sortBy: ProjectNextOrderField = TITLE - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectNextConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """A list of projects under the owner.""" - projectsV2( - """A project to search for under the the owner.""" - query: String - """How to order the returned projects.""" - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """Allows specifying the order in which reactions are returned.""" - orderBy: ReactionOrder - ): ReactionConnection! - """The repository associated with this node.""" - repository: Repository! - """A list of required status checks expected for this commit.""" - requiredStatusChecks( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): RequiredStatusCheckConnection! - """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 - """Returns the elements in the list that come before the 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!] - """Filter by author of the review.""" - author: String - ): PullRequestReviewConnection - """Identifies the state of the pull request.""" - state: PullRequestState! - """A list of suggested users to assign to this object""" - suggestedAssignees( - """If provided, searches users by login or profile name""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 reviewer suggestions based on commit history and past review comments.""" - suggestedReviewers: [SuggestedReviewer]! - """Number of tasks in the pull request's task list""" - taskListItemCount( - """Limit the count to tasks in the specified statuses.""" - statuses: [TaskListItemStatus] - ): Int! - """A list of events, comments, commits, etc. associated with the pull request.""" - timeline( - """Allows filtering timeline events by a `since` timestamp.""" - since: DateTime - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PullRequestTimelineConnection! @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.") - """Get a timeline item from a url""" - timelineItem( - """The url to decode.""" - url: String - ): PullRequestTimelineItems - """A list of events, comments, commits, etc. associated with the pull request.""" - timelineItems( - """Filter timeline items by a `since` timestamp.""" - since: DateTime - """Skips the first _n_ elements in the list.""" - skip: Int - """ID of element to focus on.""" - focus: ID - """Filter timeline items by type.""" - itemTypes: [PullRequestTimelineItemsItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: 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! - """Channel value for subscribing to live updates.""" - updatesChannel( - """The name of the channel to use.""" - name: PullRequestPubSubTopic = UPDATED - ): String - """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! - """Check if the current viewer can block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: 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 whether the viewer can bypass branch protections and merge the pull request immediately""" - viewerCanMergeAsAdmin: Boolean! - """Can user react to this subject""" - viewerCanReact: Boolean! - """Can the viewer reopen this pull request""" - viewerCanReopen: Boolean! - """Check if the viewer is able to change their subscription status for the repository.""" - viewerCanSubscribe: Boolean! - """Check if the current viewer can unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: 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 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 + """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 + """Returns the elements in the list that come before the 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 archived states to filter the cards by""" + archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] + ): ProjectCardConnection! + """List of project items associated with this pull request.""" + projectItems( + """Include archived items.""" + includeArchived: 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 + ): ProjectV2ItemConnection! + """Find a project by project (beta) number.""" + projectNext( + """The project (beta) number.""" + number: Int! + ): ProjectNext + """List of project (beta) items associated with this pull request.""" + projectNextItems( + """Include archived items.""" + includeArchived: 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 + ): ProjectNextItemConnection! + """Find a project by number.""" + projectV2( + """The project number.""" + number: Int! + ): ProjectV2 + """A list of projects (beta) under the owner.""" + projectsNext( + """A project (beta) to search for under the the owner.""" + query: String + """How to order the returned projects (beta).""" + sortBy: ProjectNextOrderField = TITLE + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! + """A list of projects under the owner.""" + projectsV2( + """A project to search for under the the owner.""" + query: String + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """Allows specifying the order in which reactions are returned.""" + orderBy: ReactionOrder + ): ReactionConnection! + """The repository associated with this node.""" + repository: Repository! + """A list of required status checks expected for this commit.""" + requiredStatusChecks( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): RequiredStatusCheckConnection! + """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 + """Returns the elements in the list that come before the 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!] + """Filter by author of the review.""" + author: String + ): PullRequestReviewConnection + """Identifies the state of the pull request.""" + state: PullRequestState! + """A list of suggested users to assign to this object""" + suggestedAssignees( + """If provided, searches users by login or profile name""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 reviewer suggestions based on commit history and past review comments.""" + suggestedReviewers: [SuggestedReviewer]! + """Number of tasks in the pull request's task list""" + taskListItemCount( + """Limit the count to tasks in the specified statuses.""" + statuses: [TaskListItemStatus] + ): Int! + """A list of events, comments, commits, etc. associated with the pull request.""" + timeline( + """Allows filtering timeline events by a `since` timestamp.""" + since: DateTime + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PullRequestTimelineConnection! @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.") + """Get a timeline item from a url""" + timelineItem( + """The url to decode.""" + url: String + ): PullRequestTimelineItems + """A list of events, comments, commits, etc. associated with the pull request.""" + timelineItems( + """Filter timeline items by a `since` timestamp.""" + since: DateTime + """Skips the first _n_ elements in the list.""" + skip: Int + """ID of element to focus on.""" + focus: ID + """Filter timeline items by type.""" + itemTypes: [PullRequestTimelineItemsItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: 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! + """Channel value for subscribing to live updates.""" + updatesChannel( + """The name of the channel to use.""" + name: PullRequestPubSubTopic = UPDATED + ): String + """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! + """Check if the current viewer can block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: 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 unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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 } """A file changed in a pull request.""" type PullRequestChangedFile { - """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 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! + """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 + """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 { - """The Git commit object""" - commit: Commit! - 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! + """The Git commit object""" + commit: Commit! + 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 RepositoryNode & Node { - """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! - 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 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! + 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! + """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 + """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! + """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 { - """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! + """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! } """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 + """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 { - """Add all commits from the head branch to the base branch with a merge commit.""" - MERGE - """Combine all commits from the head branch into a single commit in the base branch.""" - SQUASH - """Add all commits from the head branch onto the base branch individually.""" - REBASE + """Add all commits from the head branch to the base branch with a merge commit.""" + MERGE + """Combine all commits from the head branch into a single commit in the base branch.""" + SQUASH + """Add all commits from the head branch onto the base branch individually.""" + REBASE } """Ways in which lists of issues can be ordered upon return.""" input PullRequestOrder { - """The field in which to order pull requests by.""" - field: PullRequestOrderField! - """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! + """The direction in which to order pull requests by the specified field.""" + direction: OrderDirection! } """Properties by which pull_requests connections can be ordered.""" enum PullRequestOrderField { - """Order pull_requests by creation time""" - CREATED_AT - """Order pull_requests by update time""" - UPDATED_AT + """Order pull_requests by creation time""" + CREATED_AT + """Order pull_requests by update time""" + UPDATED_AT +} + +"""Parameters to be used for the pull_request rule""" +type PullRequestParameters { + """New, reviewable commits pushed will dismiss previous pull request review approvals.""" + dismissStaleReviewsOnPush: Boolean! + """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! +} + +"""Parameters to be used for the pull_request rule""" +input PullRequestParametersInput { + """New, reviewable commits pushed will dismiss previous pull request review approvals.""" + dismissStaleReviewsOnPush: Boolean! + """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! } """The possible PubSub channels for a pull request.""" enum PullRequestPubSubTopic { - """The channel ID for observing pull request updates.""" - UPDATED - """The channel ID for observing head ref updates.""" - HEAD_REF - """The channel ID for updating items on the pull request timeline.""" - TIMELINE - """The channel ID for observing pull request state updates.""" - STATE - """The channel ID for observing pull request deployed updates.""" - DEPLOYED - """The channel ID for observing pull request review state updates.""" - REVIEW_STATE - """The channel ID for observing pull request mergeability with HEAD or base branch.""" - MERGEABILITY - """The channel ID for observing pull request workflow run updates.""" - WORKFLOWS - """The channel ID for observing pull request merge queue entry updates.""" - MERGE_QUEUE + """The channel ID for observing pull request updates.""" + UPDATED + """The channel ID for observing head ref updates.""" + HEAD_REF + """The channel ID for updating items on the pull request timeline.""" + TIMELINE + """The channel ID for observing pull request state updates.""" + STATE + """The channel ID for observing pull request deployed updates.""" + DEPLOYED + """The channel ID for observing pull request review state updates.""" + REVIEW_STATE + """The channel ID for observing pull request mergeability with HEAD or base branch.""" + MERGEABILITY + """The channel ID for observing pull request workflow run updates.""" + WORKFLOWS + """The channel ID for observing pull request merge queue entry updates.""" + MERGE_QUEUE + """The channel ID for observing pull request user presence updates.""" + PRESENCE } """A review object for a given pull request.""" type PullRequestReview implements Node & Comment & Deletable & Updatable & UpdatableComment & Reactable & OrgBlockable & RepositoryNode { - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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 - """The actor who edited the comment.""" - editor: Actor - 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 - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """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 - """A list of review comment threads for this pull request review.""" - threads( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 - ): PullRequestReviewThreadConnection - """A union of review threads and comments that are replies to other review threads.""" - threadsAndReplies( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 - """ID of element to focus on.""" - focus: ID - ): PullRequestReviewItemConnection - """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 block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """Check if the current viewer can delete this object.""" - viewerCanDelete: Boolean! - """Can user react to this subject""" - viewerCanReact: Boolean! - """Check if the current viewer can unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: 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 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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + """The actor who edited the comment.""" + editor: Actor + 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 + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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 + """A list of review comment threads for this pull request review.""" + threads( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 + ): PullRequestReviewThreadConnection + """A union of review threads and comments that are replies to other review threads.""" + threadsAndReplies( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 + """ID of element to focus on.""" + focus: ID + ): PullRequestReviewItemConnection + """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 block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """Check if the current viewer can delete this object.""" + viewerCanDelete: Boolean! + """Can user react to this subject""" + viewerCanReact: Boolean! + """Check if the current viewer can unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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 Node & OrgBlockable & Comment & Deletable & Minimizable & Updatable & UpdatableComment & Reactable & RepositoryNode { - """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( - """Whether or not to include the HTML for code blocks""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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 - """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 - 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` and `spam`. 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 original line index in the diff to which the comment applies.""" - originalPosition: 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 - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """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! - """Identifies the state of the comment.""" - state: PullRequestReviewCommentState! - """The thread this comment was posted in.""" - thread: PullRequestReviewThread - """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 block the author of this content from the owning organization.""" - viewerCanBlockFromOrg: Boolean! - """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 unblock the author of this content from the owning organization.""" - viewerCanUnblockFromOrg: 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 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( + """Whether or not to include the HTML for code blocks""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + """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 + 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` and `spam`. 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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! + """The thread this comment was posted in.""" + thread: PullRequestReviewThread + """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 block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """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 unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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! + """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 + """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 { - """A comment that is part of a pending review""" - PENDING - """A comment that is part of a submitted review""" - SUBMITTED + """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! + """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 { - """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 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 { - """Changes have been requested on the pull request.""" - CHANGES_REQUESTED - """The pull request has received an approving review.""" - APPROVED - """A review is required before the pull request can be merged.""" - REVIEW_REQUIRED + """Changes have been requested on the pull request.""" + CHANGES_REQUESTED + """The pull request has received an approving review.""" + APPROVED + """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 + """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 { - """Submit general feedback without explicit approval.""" - COMMENT - """Submit feedback and approve merging these changes.""" - APPROVE - """Submit feedback that must be addressed before merging.""" - REQUEST_CHANGES - """Dismiss review so it now longer effects merging.""" - DISMISS + """Submit general feedback without explicit approval.""" + COMMENT + """Submit feedback and approve merging these changes.""" + APPROVE + """Submit feedback that must be addressed before merging.""" + REQUEST_CHANGES + """Dismiss review so it now longer effects merging.""" + DISMISS } """An object contained in a pull request review.""" @@ -18817,225 +20396,235 @@ union PullRequestReviewItem = PullRequestReviewComment | PullRequestReviewThread """Review threads and replies for a pull request review.""" type PullRequestReviewItemConnection { - """A list of edges.""" - edges: [PullRequestReviewItemEdge] - """A list of nodes.""" - nodes: [PullRequestReviewItem] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [PullRequestReviewItemEdge] + """A list of nodes.""" + nodes: [PullRequestReviewItem] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type PullRequestReviewItemEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: PullRequestReviewItem + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: PullRequestReviewItem } """The possible states of a pull request review.""" enum PullRequestReviewState { - """A review that has not yet been submitted.""" - PENDING - """An informational review.""" - COMMENTED - """A review allowing the pull request to merge.""" - APPROVED - """A review blocking the pull request from merging.""" - CHANGES_REQUESTED - """A review that has been dismissed.""" - DISMISSED + """A review that has not yet been submitted.""" + PENDING + """An informational review.""" + COMMENTED + """A review allowing the pull request to merge.""" + APPROVED + """A review blocking the pull request from merging.""" + CHANGES_REQUESTED + """A review that has been dismissed.""" + DISMISSED } """A threaded list of comments for a given pull request.""" type PullRequestReviewThread implements Node { - """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 diff lines where this thread was created on.""" - diffLines( - """Indicates whether diff lines should be syntax highlighted.""" - syntaxHighlightingEnabled: Boolean = true - """Number of context lines to return.""" - maxContextLines: Int = 3 - """Skip loading of diff lines if thread is collapsed.""" - skipIfCollapsed: Boolean = false - ): [DiffLine] - """The side of the diff on which this thread was placed.""" - diffSide: DiffSide! - """The type of line the thread refers to (multi-line only)""" - endLineType: String - 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 type of line the thread starts on (multi-line only)""" - startLineType: String - """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! + """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 diff lines where this thread was created on.""" + diffLines( + """Indicates whether diff lines should be syntax highlighted.""" + syntaxHighlightingEnabled: Boolean = true + """Number of context lines to return.""" + maxContextLines: Int = 3 + """Skip loading of diff lines if thread is collapsed.""" + skipIfCollapsed: Boolean = false + ): [DiffLine] + """The side of the diff on which this thread was placed.""" + diffSide: DiffSide! + """The type of line the thread refers to (multi-line only)""" + endLineType: String + 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 type of line the thread starts on (multi-line only)""" + startLineType: String + """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: PullRequestReviewThread +} + +"""The possible subject types of a pull request review comment.""" +enum PullRequestReviewThreadSubjectType { + """A comment that has been made against the line of a pull request""" + LINE + """A comment that has been made against the file of a pull request""" + FILE } """Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits.""" type PullRequestRevisionMarker { - """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! + """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! } """The possible states of a pull request.""" enum PullRequestState { - """A pull request that is still open.""" - OPEN - """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 pull request that has been closed without being merged.""" + CLOSED + """A pull request that has been closed by being merged.""" + MERGED } """A repository pull request template.""" type PullRequestTemplate { - """The body of the template""" - body: String - """The filename of the template""" - filename: String - """The repository the template belongs to""" - repository: Repository! + """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 { - """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! - 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 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 - """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! + """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! + 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 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 + """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 PullRequestThread.""" type PullRequestThreadConnection { - """A list of edges.""" - edges: [PullRequestThreadEdge] - """A list of nodes.""" - nodes: [PullRequestThread] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [PullRequestThreadEdge] + """A list of nodes.""" + nodes: [PullRequestThread] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type PullRequestThreadEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: PullRequestThread + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: PullRequestThread } """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! + """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""" @@ -19043,195 +20632,195 @@ union PullRequestTimelineItem = AssignedEvent | BaseRefDeletedEvent | BaseRefFor """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 + """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 = AddedToProjectEvent | AssignedEvent | AutoMergeDisabledEvent | AutoMergeEnabledEvent | AutoRebaseEnabledEvent | AutoSquashEnabledEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | DisconnectedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MergedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | PullRequestCommit | PullRequestCommitCommentThread | PullRequestReview | PullRequestReviewThread | PullRequestRevisionMarker | ReadyForReviewEvent | ReferencedEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent +union PullRequestTimelineItems = AddedToMergeQueueEvent | AddedToProjectEvent | AssignedEvent | AutoMergeDisabledEvent | AutoMergeEnabledEvent | AutoRebaseEnabledEvent | AutoSquashEnabledEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | DisconnectedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MergedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | PullRequestCommit | PullRequestCommitCommentThread | PullRequestReview | PullRequestReviewThread | PullRequestRevisionMarker | ReadyForReviewEvent | ReferencedEvent | RemovedFromMergeQueueEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent """The connection type for PullRequestTimelineItems.""" type PullRequestTimelineItemsConnection { - """Identifies the count of items after the focused item (`focus`).""" - afterFocusCount: Int! - """Identifies the count of items before the focused item (`focus`).""" - beforeFocusCount: Int! - """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! + """Identifies the count of items after the focused item (`focus`).""" + afterFocusCount: Int! + """Identifies the count of items before the focused item (`focus`).""" + beforeFocusCount: Int! + """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 + """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 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 '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_force_pushed' event on a given pull request.""" - BASE_REF_FORCE_PUSHED_EVENT - """Represents a 'base_ref_deleted' event on a given pull request.""" - BASE_REF_DELETED_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 '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 'merged' event on a given pull request.""" - MERGED_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 'ready_for_review' event on a given pull request.""" - READY_FOR_REVIEW_EVENT - """Represents a 'convert_to_draft' event on a given pull request.""" - CONVERT_TO_DRAFT_EVENT - """Represents an 'added_to_merge_queue' event on a given pull request.""" - ADDED_TO_MERGE_QUEUE_EVENT - """Represents a 'removed_from_merge_queue' event on a given pull request.""" - REMOVED_FROM_MERGE_QUEUE_EVENT - """Represents a comment on an Issue.""" - ISSUE_COMMENT - """Represents a mention made by one issue or pull request to another.""" - CROSS_REFERENCED_EVENT - """Represents a 'added_to_project' event on a given issue or pull request.""" - ADDED_TO_PROJECT_EVENT - """Represents an 'assigned' event on any assignable object.""" - ASSIGNED_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_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 '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 '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 'pinned' event on a given issue or pull request.""" - PINNED_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 '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 '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 a 'user_blocked' event on a given user.""" - USER_BLOCKED_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 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 '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_force_pushed' event on a given pull request.""" + BASE_REF_FORCE_PUSHED_EVENT + """Represents a 'base_ref_deleted' event on a given pull request.""" + BASE_REF_DELETED_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 '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 'merged' event on a given pull request.""" + MERGED_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 'ready_for_review' event on a given pull request.""" + READY_FOR_REVIEW_EVENT + """Represents a 'convert_to_draft' event on a given pull request.""" + CONVERT_TO_DRAFT_EVENT + """Represents an 'added_to_merge_queue' event on a given pull request.""" + ADDED_TO_MERGE_QUEUE_EVENT + """Represents a 'removed_from_merge_queue' event on a given pull request.""" + REMOVED_FROM_MERGE_QUEUE_EVENT + """Represents a comment on an Issue.""" + ISSUE_COMMENT + """Represents a mention made by one issue or pull request to another.""" + CROSS_REFERENCED_EVENT + """Represents a 'added_to_project' event on a given issue or pull request.""" + ADDED_TO_PROJECT_EVENT + """Represents an 'assigned' event on any assignable object.""" + ASSIGNED_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_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 '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 '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 'pinned' event on a given issue or pull request.""" + PINNED_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 '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 '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 a 'user_blocked' event on a given user.""" + USER_BLOCKED_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 } """The possible target states when updating a pull request.""" enum PullRequestUpdateState { - """A pull request that is still open.""" - OPEN - """A pull request that has been closed without being merged.""" - CLOSED + """A pull request that is still open.""" + OPEN + """A pull request that has been closed without being merged.""" + CLOSED } """A Git push.""" type Push implements Node { - 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! + 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 { - """The actor that can push.""" - actor: PushAllowanceActor - """Identifies the branch protection rule associated with the allowed user, team, or app.""" - branchProtectionRule: BranchProtectionRule - id: ID! + """The actor that can push.""" + actor: PushAllowanceActor + """Identifies the branch protection rule associated with the allowed user, team, or app.""" + branchProtectionRule: BranchProtectionRule + id: ID! } """Types that can be an actor.""" @@ -19239,497 +20828,497 @@ union PushAllowanceActor = 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: PushAllowance } """A push notification service.""" enum PushNotificationService { - """Google Firebase Cloud Messaging""" - FCM - """Apple Push Notification Service""" - APNS + """Google Firebase Cloud Messaging""" + FCM + """Apple Push Notification Service""" + APNS } """The query root of GitHub's GraphQL interface.""" type Query { - """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] - """A discussion category from the given repository""" - discussionCategory( - """Repository owner""" - owner: String! - """Repository name""" - repo: String! - """The slug of the discussion""" - slug: String! - ): DiscussionCategory - """Look up an enterprise by URL slug.""" - enterprise( - """The enterprise URL slug.""" - slug: String! - """The enterprise invitation token.""" - invitationToken: String - ): Enterprise - """Look up a pending enterprise administrator invitation by invitee, enterprise and role.""" - enterpriseAdministratorInvitation( - """The login of the user invited to join the business.""" - userLogin: String! - """The slug of the enterprise the user was invited to join.""" - enterpriseSlug: String! - """The role for the business member invitation.""" - role: EnterpriseAdministratorRole! - ): EnterpriseAdministratorInvitation - """Look up a pending enterprise administrator invitation by invitation token.""" - enterpriseAdministratorInvitationByToken( - """The invitation token sent with the invitation email.""" - invitationToken: String! - ): EnterpriseAdministratorInvitation - """The support contact for this enterprise""" - enterpriseSupportContact: SupportContact - """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]! - """A user-curated list of repositories with the given slug and belonging to the given user""" - list( - """Owner login""" - login: String! - """The slug of the list""" - slug: String! - ): UserList - """Get alphabetically sorted list of Marketplace categories""" - marketplaceCategories( - """Return only the specified categories.""" - includeCategories: [String!] - """Exclude categories with no listings.""" - excludeEmpty: Boolean - """Returns top level categories only, excluding any subcategories.""" - excludeSubcategories: Boolean - ): [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( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Select only listings with the given category.""" - categorySlug: 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 listings that can be administered by the specified user.""" - adminId: ID - """Select listings for products owned by the specified organization.""" - organizationId: ID - """ - Select listings visible to the viewer even if they are not approved. If omitted or - false, only approved listings will be returned. - """ - allStates: Boolean - """Select the listings with these slugs, if they are visible to the viewer.""" - slugs: [String] - """Select only listings where the primary category matches the given category slug.""" - primaryCategoryOnly: Boolean = false - """Select only listings that offer a free trial.""" - withFreeTrialsOnly: Boolean = false - ): MarketplaceListingConnection! - """Return information about the GitHub instance""" - meta: GitHubMetadata! - """Returns all capabilities for the mobile clients""" - mobileCapabilities: [String] - """A WebSocket URL for connecting to receive updates.""" - mobileUpdatesUrl: URI - """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 - """A list of programming languages""" - programmingLanguages( - """Display the user's suggested programming languages at the top of the list.""" - suggested: Boolean = false - """Name of a programming language to find.""" - name: String - ): [Language]! - """The client's rate limit information.""" - rateLimit( - """If true, calculate the cost for the query without evaluating it""" - dryRun: Boolean = false - ): RateLimit - """Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object""" - relay: Query! - """Lookup a given repository by the owner and repository name.""" - repository( - """The login field of a user or organization""" - owner: String! - """The name of the repository""" - name: String! - """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" - followRenames: Boolean = true - ): 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.""" - query: String! - """The types of search items to search within.""" - type: SearchType! - ): SearchResultItemConnection! - """GitHub Security Advisories""" - securityAdvisories( - """Ordering options for the returned topics.""" - orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC} - """Filter advisories by identifier, e.g. GHSA or CVE.""" - identifier: SecurityAdvisoryIdentifierFilter - """Filter advisories to those published since a time in the past.""" - publishedSince: DateTime - """Filter advisories to those updated since a time in the past.""" - updatedSince: DateTime - """A list of classifications to filter advisories by.""" - classifications: [SecurityAdvisoryClassification!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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( - """Ordering options for the returned topics.""" - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} - """An ecosystem to filter vulnerabilities by.""" - ecosystem: SecurityAdvisoryEcosystem - """A package name to filter vulnerabilities by.""" - package: String - """A list of severities to filter vulnerabilities by.""" - severities: [SecurityAdvisorySeverity!] - """A list of advisory classifications to filter vulnerabilities by.""" - classifications: [SecurityAdvisoryClassification!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): SecurityVulnerabilityConnection! - """A list of spoken languages""" - spokenLanguages( - """Name of a spoken language to find.""" - name: String - ): [SpokenLanguage]! - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Ordering options for users and organizations returned from the connection.""" - orderBy: SponsorableOrder = {field: LOGIN, direction: ASC} - """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 - """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 - """ - 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 - ): SponsorableItemConnection! - """Look up a topic by name.""" - topic( - """The topic's name.""" - name: String! - ): Topic - """A list of trending developers""" - trendingDevelopers: [User] - """A list of trending repositories""" - trendingRepositories( - """The programming language to filter repositories by.""" - language: String = null - """Limit repositories returned to those that were trending in this time period.""" - period: TrendingPeriod = DAILY - """Filter repositories by spoken language using a two-character language code such as 'en' for English.""" - spokenLanguageCode: String = null - """List repositories with the mobile sort order.""" - mobileSortOrder: Boolean = false - ): [Repository] - """Lookup a user by login.""" - user( - """The user's login.""" - login: String! - ): User - """The currently authenticated user.""" - viewer: User! - """Returns true if the user has trade restrictions""" - viewerHasTradeRestrictions: Boolean! - """Channel value for subscribing to live updates.""" - viewerUpdatesChannel( - """The name of the channel to use.""" - name: UserPubSubTopic! - ): String + """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] + """A discussion category from the given repository""" + discussionCategory( + """Repository owner""" + owner: String! + """Repository name""" + repo: String! + """The slug of the discussion""" + slug: String! + ): DiscussionCategory + """Look up an enterprise by URL slug.""" + enterprise( + """The enterprise URL slug.""" + slug: String! + """The enterprise invitation token.""" + invitationToken: String + ): Enterprise + """Look up a pending enterprise administrator invitation by invitee, enterprise and role.""" + enterpriseAdministratorInvitation( + """The login of the user invited to join the business.""" + userLogin: String! + """The slug of the enterprise the user was invited to join.""" + enterpriseSlug: String! + """The role for the business member invitation.""" + role: EnterpriseAdministratorRole! + ): EnterpriseAdministratorInvitation + """Look up a pending enterprise administrator invitation by invitation token.""" + enterpriseAdministratorInvitationByToken( + """The invitation token sent with the invitation email.""" + invitationToken: String! + ): EnterpriseAdministratorInvitation + """The support contact for this enterprise""" + enterpriseSupportContact: SupportContact + """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]! + """A user-curated list of repositories with the given slug and belonging to the given user""" + list( + """Owner login""" + login: String! + """The slug of the list""" + slug: String! + ): UserList + """Get alphabetically sorted list of Marketplace categories""" + marketplaceCategories( + """Return only the specified categories.""" + includeCategories: [String!] + """Exclude categories with no listings.""" + excludeEmpty: Boolean + """Returns top level categories only, excluding any subcategories.""" + excludeSubcategories: Boolean + ): [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( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Select only listings with the given category.""" + categorySlug: 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 listings that can be administered by the specified user.""" + adminId: ID + """Select listings for products owned by the specified organization.""" + organizationId: ID + """ + Select listings visible to the viewer even if they are not approved. If omitted or + false, only approved listings will be returned. + """ + allStates: Boolean + """Select the listings with these slugs, if they are visible to the viewer.""" + slugs: [String] + """Select only listings where the primary category matches the given category slug.""" + primaryCategoryOnly: Boolean = false + """Select only listings that offer a free trial.""" + withFreeTrialsOnly: Boolean = false + ): MarketplaceListingConnection! + """Return information about the GitHub instance""" + meta: GitHubMetadata! + """Returns all capabilities for the mobile clients""" + mobileCapabilities: [String] + """A WebSocket URL for connecting to receive updates.""" + mobileUpdatesUrl: URI + """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 + """A list of programming languages""" + programmingLanguages( + """Display the user's suggested programming languages at the top of the list.""" + suggested: Boolean = false + """Name of a programming language to find.""" + name: String + ): [Language]! + """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( + """The login field of a user or organization""" + owner: String! + """The name of the repository""" + name: String! + """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" + followRenames: Boolean = true + ): 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.""" + query: String! + """The types of search items to search within.""" + type: SearchType! + ): SearchResultItemConnection! + """GitHub Security Advisories""" + securityAdvisories( + """Ordering options for the returned topics.""" + orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC} + """Filter advisories by identifier, e.g. GHSA or CVE.""" + identifier: SecurityAdvisoryIdentifierFilter + """Filter advisories to those published since a time in the past.""" + publishedSince: DateTime + """Filter advisories to those updated since a time in the past.""" + updatedSince: DateTime + """A list of classifications to filter advisories by.""" + classifications: [SecurityAdvisoryClassification!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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( + """Ordering options for the returned topics.""" + orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} + """An ecosystem to filter vulnerabilities by.""" + ecosystem: SecurityAdvisoryEcosystem + """A package name to filter vulnerabilities by.""" + package: String + """A list of severities to filter vulnerabilities by.""" + severities: [SecurityAdvisorySeverity!] + """A list of advisory classifications to filter vulnerabilities by.""" + classifications: [SecurityAdvisoryClassification!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): SecurityVulnerabilityConnection! + """A list of spoken languages""" + spokenLanguages( + """Name of a spoken language to find.""" + name: String + ): [SpokenLanguage]! + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Ordering options for users and organizations returned from the connection.""" + orderBy: SponsorableOrder = {field: LOGIN, direction: ASC} + """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 + """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 + """ + 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 + ): SponsorableItemConnection! + """Look up a topic by name.""" + topic( + """The topic's name.""" + name: String! + ): Topic + """A list of trending developers""" + trendingDevelopers: [User] + """A list of trending repositories""" + trendingRepositories( + """The programming language to filter repositories by.""" + language: String = null + """Limit repositories returned to those that were trending in this time period.""" + period: TrendingPeriod = DAILY + """Filter repositories by spoken language using a two-character language code such as 'en' for English.""" + spokenLanguageCode: String = null + """List repositories with the mobile sort order.""" + mobileSortOrder: Boolean = false + ): [Repository] + """Lookup a user by login.""" + user( + """The user's login.""" + login: String! + ): User + """The currently authenticated user.""" + viewer: User! + """Returns true if the user has trade restrictions""" + viewerHasTradeRestrictions: Boolean! + """Channel value for subscribing to live updates.""" + viewerUpdatesChannel( + """The name of the channel to use.""" + name: UserPubSubTopic! + ): String } """Represents the client's rate limit.""" type RateLimit { - """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! + """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 the raw blob url for a tree entry.""" interface RawBlobUrl { - """The URL to this file.""" - url: URI + """The URL to this file.""" + url: URI } """Represents a subject that can be reacted on.""" interface Reactable { - """Identifies the primary key from the database.""" - databaseId: Int - 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """Allows specifying the order in which reactions are returned.""" - orderBy: ReactionOrder - ): ReactionConnection! - """Can user react to this subject""" - viewerCanReact: Boolean! + """Identifies the primary key from the database.""" + databaseId: Int + 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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! + """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! + """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 { - """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 - id: ID! - """The reactable piece of content""" - reactable: Reactable! - """Identifies the user who created this reaction.""" - user: User + """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 + 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! + """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 { - """Represents the `:+1:` emoji.""" - THUMBS_UP - """Represents the `:-1:` emoji.""" - THUMBS_DOWN - """Represents the `:laugh:` emoji.""" - LAUGH - """Represents the `:hooray:` emoji.""" - HOORAY - """Represents the `:confused:` emoji.""" - CONFUSED - """Represents the `:heart:` emoji.""" - HEART - """Represents the `:rocket:` emoji.""" - ROCKET - """Represents the `:eyes:` emoji.""" - EYES + """Represents the `:+1:` emoji.""" + THUMBS_UP + """Represents the `:-1:` emoji.""" + THUMBS_DOWN + """Represents the `:laugh:` emoji.""" + LAUGH + """Represents the `:hooray:` emoji.""" + HOORAY + """Represents the `:confused:` emoji.""" + CONFUSED + """Represents the `:heart:` emoji.""" + HEART + """Represents the `:rocket:` emoji.""" + ROCKET + """Represents the `:eyes:` emoji.""" + EYES } """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 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 { - """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! + """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 { - """The field in which to order reactions by.""" - field: ReactionOrderField! - """The direction in which to order reactions by the specified field.""" - direction: OrderDirection! + """The field in which to order reactions by.""" + field: ReactionOrderField! + """The direction in which to order reactions by the specified field.""" + direction: OrderDirection! } """A list of fields that reactions can be ordered by.""" enum ReactionOrderField { - """Allows ordering a list of reactions by when they were created.""" - CREATED_AT + """Allows ordering a list of reactions by when they were created.""" + CREATED_AT } """Types that can be assigned to reactions.""" @@ -19737,3239 +21326,3428 @@ union Reactor = 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! + """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! + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - 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! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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! } """A record that a user has recently interacted with.""" type RecentInteraction { - """Id of the comment if the interaction is on a comment.""" - commentId: Int - """User who left a comment if the interaction is as comment.""" - commenter: User - """The record with which the user interacted.""" - interactable: IssueOrPullRequest! - """A description of how the user interacted with the record.""" - interaction: InteractionType! - """When the interaction occurred.""" - occurredAt: DateTime! + """Id of the comment if the interaction is on a comment.""" + commentId: Int + """User who left a comment if the interaction is as comment.""" + commenter: User + """The record with which the user interacted.""" + interactable: IssueOrPullRequest! + """A description of how the user interacted with the record.""" + interaction: InteractionType! + """When the interaction occurred.""" + occurredAt: DateTime! } """Represents a Git reference.""" type Ref implements Node { - """A list of pull requests with this ref as the head ref.""" - associatedPullRequests( - """A list of states to filter the pull requests by.""" - states: [PullRequestState!] - """A list of label names to filter the pull requests by.""" - labels: [String!] - """The head ref name to filter the pull requests by.""" - headRefName: String - """The base ref name to filter the pull requests by.""" - baseRefName: String - """Ordering options for pull requests returned from the connection.""" - orderBy: IssueOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 - 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! - """The object the ref points to. Returns null when object does not exist.""" - target: GitObject - """Channel value for subscribing to live updates.""" - updatesChannel: String - """Indicates whether the current user is able to commit to a given branch based on permissions and branch protection rules.""" - viewerCanCommitToBranch: Boolean! + """A list of pull requests with this ref as the head ref.""" + associatedPullRequests( + """A list of states to filter the pull requests by.""" + states: [PullRequestState!] + """A list of label names to filter the pull requests by.""" + labels: [String!] + """The head ref name to filter the pull requests by.""" + headRefName: String + """The base ref name to filter the pull requests by.""" + baseRefName: String + """Ordering options for pull requests returned from the connection.""" + orderBy: IssueOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 + 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! + """The object the ref points to. Returns null when object does not exist.""" + target: GitObject + """Channel value for subscribing to live updates.""" + updatesChannel: String + """Indicates whether the current user is able to commit to a given branch based on permissions and branch protection rules.""" + viewerCanCommitToBranch: Boolean! } """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Ref } """Represents a 'referenced' event on a given `ReferencedSubject`.""" type ReferencedEvent implements Node { - """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! - 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! + """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! + 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 = Issue | PullRequest +"""Parameters to be used for the ref_name condition""" +type RefNameConditionTarget { + """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 { + """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 { - """The field in which to order refs by.""" - field: RefOrderField! - """The direction in which to order refs by the specified field.""" - direction: OrderDirection! + """The field in which to order refs by.""" + field: RefOrderField! + """The direction in which to order refs by the specified field.""" + direction: OrderDirection! } """Properties by which ref connections can be ordered.""" enum RefOrderField { - """Order refs by underlying commit date if the ref prefix is refs/tags/""" - TAG_COMMIT_DATE - """Order refs by their alphanumeric name""" - ALPHABETICAL + """Order refs by underlying commit date if the ref prefix is refs/tags/""" + TAG_COMMIT_DATE + """Order refs by their alphanumeric name""" + ALPHABETICAL } """A ref update rules for a viewer.""" type RefUpdateRule { - """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 recommended to update matching branches.""" - recommendedApprovingReviewCount: Int - """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! + """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 recommended to update matching branches.""" + recommendedApprovingReviewCount: Int + """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! } """Autogenerated input type of RegenerateEnterpriseIdentityProviderRecoveryCodes""" input RegenerateEnterpriseIdentityProviderRecoveryCodesInput { - """The ID of the enterprise on which to set an identity provider.""" - enterpriseId: ID! - """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! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the verifiable domain to regenerate the verification token of.""" - id: ID! - """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! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The node ID of the workflow run containing the pending deployments.""" - workflowRunId: ID! - """The ids of environments to reject deployments""" - environmentIds: [ID!]! - """Optional comment for rejecting deployments""" - comment: String = "" - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The node ID of the workflow run containing the pending deployments.""" + workflowRunId: ID! + """The ids of environments to reject deployments""" + environmentIds: [ID!]! + """Optional comment for rejecting deployments""" + comment: String = "" + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RejectDeployments""" type RejectDeploymentsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The affected deployments.""" - deployments: [Deployment!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The affected deployments.""" + deployments: [Deployment!] } """Autogenerated input type of RejectMobileAuthDeviceRequest""" input RejectMobileAuthDeviceRequestInput { - """The ID associated with the mobile device authentication request.""" - requestId: Int! - """The base64 encoded signature of the request.""" - signature: String - """The signature version.""" - signatureVersion: DeviceAuthSignatureVersion - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID associated with the mobile device authentication request.""" + requestId: Int! + """The base64 encoded signature of the request.""" + signature: String + """The signature version.""" + signatureVersion: DeviceAuthSignatureVersion + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RejectMobileAuthDeviceRequest""" type RejectMobileAuthDeviceRequestPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """A release contains the content for a release.""" type Release implements Node & UniformResourceLocatable & Reactable { - """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 linked discussion for this release""" - discussion: Discussion - id: ID! - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """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 list of names to filter the assets by.""" + """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 linked discussion for this release""" + discussion: Discussion + id: ID! + """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 - ): 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! + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """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 list of names 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 { - """The asset's content-type""" - contentType: String! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """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! - 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 asset's content-type""" + contentType: String! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """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! + 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! + """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 + """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! + """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 + """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 { - """The field in which to order releases by.""" - field: ReleaseOrderField! - """The direction in which to order releases by the specified field.""" - direction: OrderDirection! + """The field in which to order releases by.""" + field: ReleaseOrderField! + """The direction in which to order releases by the specified field.""" + direction: OrderDirection! } """Properties by which release connections can be ordered.""" enum ReleaseOrderField { - """Order releases by creation time""" - CREATED_AT - """Order releases alphabetically by name""" - NAME + """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! - """The id of users to remove as assignees.""" - assigneeIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the assignable object to remove assignees from.""" + assignableId: ID! + """The id of users to remove as assignees.""" + assigneeIds: [ID!]! + """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 + """The item that was unassigned.""" + assignable: Assignable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of RemoveDashboardSearchShortcut""" input RemoveDashboardSearchShortcutInput { - """The ID of the shortcut to remove.""" - shortcutId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the shortcut to remove.""" + shortcutId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RemoveDashboardSearchShortcut""" type RemoveDashboardSearchShortcutPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The removed shortcut's dashboard.""" - dashboard: UserDashboard - """The shortcut that was removed.""" - shortcut: SearchShortcut + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The removed shortcut's dashboard.""" + dashboard: UserDashboard + """The shortcut that was removed.""" + shortcut: SearchShortcut +} + +"""Represents a 'removed_from_merge_queue' event on a given pull request.""" +type RemovedFromMergeQueueEvent implements Node { + """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 + 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 { - """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 - id: ID! + """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 + id: ID! } """Autogenerated input type of RemoveEnterpriseAdmin""" input RemoveEnterpriseAdminInput { - """The Enterprise ID from which to remove the administrator.""" - enterpriseId: ID! - """The login of the user to remove as an administrator.""" - login: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Enterprise ID from which to remove the administrator.""" + enterpriseId: ID! + """The login of the user to remove as an administrator.""" + login: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The ID of the enterprise from which to remove the identity provider.""" - enterpriseId: ID! - """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! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { + """The ID of the enterprise from which the user should be removed.""" + enterpriseId: ID! + """The ID of the user to remove from the enterprise.""" + userId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The ID of the enterprise from which the organization should be removed.""" - enterpriseId: ID! - """The ID of the organization to remove from the enterprise.""" - organizationId: ID! - """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! + """The ID of the organization to remove from the enterprise.""" + organizationId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the Enterprise which the admin belongs to.""" - enterpriseId: ID! - """The login of a member who will lose the support entitlement.""" - login: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Enterprise which the admin belongs to.""" + enterpriseId: ID! + """The login of a member who will lose the support entitlement.""" + login: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The id of the Labelable to remove labels from.""" - labelableId: ID! - """The ids of labels to remove.""" - labelIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the Labelable to remove labels from.""" + labelableId: ID! + """The ids of labels to remove.""" + labelIds: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the outside collaborator to remove.""" - userId: ID! - """The ID of the organization to remove the outside collaborator from.""" - organizationId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the outside collaborator to remove.""" + userId: ID! + """The ID of the organization to remove the outside collaborator from.""" + organizationId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 RemoveReaction""" input RemoveReactionInput { - """The Node ID of the subject to modify.""" - subjectId: ID! - """The name of the emoji reaction to remove.""" - content: ReactionContent! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the subject to modify.""" + subjectId: ID! + """The name of the emoji reaction to remove.""" + content: ReactionContent! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RemoveReaction""" type RemoveReactionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The reaction object.""" - reaction: Reaction - """The reactable subject.""" - subject: Reactable + """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 RemoveStar""" input RemoveStarInput { - """The Starrable ID to unstar.""" - starrableId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Starrable ID to unstar.""" + starrableId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RemoveStar""" type RemoveStarPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The starrable.""" - starrable: Starrable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The starrable.""" + starrable: Starrable +} + +"""Autogenerated input type of RemoveTeamDashboardSearchShortcut""" +input RemoveTeamDashboardSearchShortcutInput { + """The ID of the shortcut to remove.""" + shortcutId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""Autogenerated return type of RemoveTeamDashboardSearchShortcut""" +type RemoveTeamDashboardSearchShortcutPayload { + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The removed shortcut's team dashboard.""" + dashboard: TeamDashboard + """The shortcut that was removed.""" + shortcut: TeamSearchShortcut } """Autogenerated input type of RemoveUpvote""" input RemoveUpvoteInput { - """The Node ID of the discussion or comment to remove upvote.""" - subjectId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the discussion or comment to remove upvote.""" + subjectId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RemoveUpvote""" type RemoveUpvotePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The votable subject.""" - subject: Votable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The votable subject.""" + subject: Votable } """Represents a 'renamed' event on a given issue or pull request""" type RenamedTitleEvent implements Node { - """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! - id: ID! - """Identifies the previous title of the issue or pull request.""" - previousTitle: String! - """Subject that was renamed.""" - subject: RenamedTitleSubject! + """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! + 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 = Issue | PullRequest +"""Autogenerated input type of ReopenDiscussion""" +input ReopenDiscussionInput { + """ID of the discussion to be reopened.""" + discussionId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 +} + """Represents a 'reopened' event on any `Closable`.""" type ReopenedEvent implements Node { - """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! - id: ID! - """The reason the issue state was changed to open.""" - stateReason: IssueStateReason + """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! + id: ID! + """The reason the issue state was changed to open.""" + stateReason: IssueStateReason } """Autogenerated input type of ReopenIssue""" input ReopenIssueInput { - """ID of the issue to be opened.""" - issueId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the issue to be opened.""" + issueId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """ID of the pull request to be reopened.""" - pullRequestId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the pull request to be reopened.""" + pullRequestId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The pull request that was reopened.""" + pullRequest: PullRequest +} + +"""Autogenerated input type of ReplaceAssigneesForAssignable""" +input ReplaceAssigneesForAssignableInput { + """The id of the assignable object to replace the assignees for.""" + assignableId: ID! + """The ids of the users to replace the existing assignees.""" + assigneeIds: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""Autogenerated return type of ReplaceAssigneesForAssignable""" +type ReplaceAssigneesForAssignablePayload { + """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 Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI - """The visibility of the repository""" - visibility: RepoAccessAuditEntryVisibility + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI + """The visibility of the repository""" + visibility: RepoAccessAuditEntryVisibility } """The privacy of a repository""" enum RepoAccessAuditEntryVisibility { - """The repository is visible only to users in the same business.""" - INTERNAL - """The repository is visible only to those with explicit access.""" - PRIVATE - """The repository is visible to everyone.""" - PUBLIC + """The repository is visible only to users in the same business.""" + 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 Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI - """The visibility of the repository""" - visibility: RepoAddMemberAuditEntryVisibility + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI + """The visibility of the repository""" + visibility: RepoAddMemberAuditEntryVisibility } """The privacy of a repository""" enum RepoAddMemberAuditEntryVisibility { - """The repository is visible only to users in the same business.""" - INTERNAL - """The repository is visible only to those with explicit access.""" - PRIVATE - """The repository is visible to everyone.""" - PUBLIC + """The repository is visible only to users in the same business.""" + 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 Node & AuditEntry & RepositoryAuditEntryData & OrganizationAuditEntryData & TopicAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.archived event.""" type RepoArchivedAuditEntry implements Node & AuditEntry & RepositoryAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI - """The visibility of the repository""" - visibility: RepoArchivedAuditEntryVisibility + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI + """The visibility of the repository""" + visibility: RepoArchivedAuditEntryVisibility } """The privacy of a repository""" enum RepoArchivedAuditEntryVisibility { - """The repository is visible only to users in the same business.""" - INTERNAL - """The repository is visible only to those with explicit access.""" - PRIVATE - """The repository is visible to everyone.""" - PUBLIC + """The repository is visible only to users in the same business.""" + 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 Node & AuditEntry & RepositoryAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """Whether the change was to enable (true) or disable (false) the merge type""" - isEnabled: Boolean - """The merge method affected by the change""" - mergeType: RepoChangeMergeSettingAuditEntryMergeType - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """Whether the change was to enable (true) or disable (false) the merge type""" + isEnabled: Boolean + """The merge method affected by the change""" + mergeType: RepoChangeMergeSettingAuditEntryMergeType + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The merge options available for pull requests to this repository.""" enum RepoChangeMergeSettingAuditEntryMergeType { - """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 + """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 Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.disable_collaborators_only event.""" type RepoConfigDisableCollaboratorsOnlyAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.disable_contributors_only event.""" type RepoConfigDisableContributorsOnlyAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.disable_sockpuppet_disallowed event.""" type RepoConfigDisableSockpuppetDisallowedAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.enable_anonymous_git_access event.""" type RepoConfigEnableAnonymousGitAccessAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.enable_collaborators_only event.""" type RepoConfigEnableCollaboratorsOnlyAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.enable_contributors_only event.""" type RepoConfigEnableContributorsOnlyAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.enable_sockpuppet_disallowed event.""" type RepoConfigEnableSockpuppetDisallowedAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.lock_anonymous_git_access event.""" type RepoConfigLockAnonymousGitAccessAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.config.unlock_anonymous_git_access event.""" type RepoConfigUnlockAnonymousGitAccessAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repo.create event.""" type RepoCreateAuditEntry implements Node & AuditEntry & RepositoryAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The name of the parent repository for this forked repository.""" - forkParentName: String - """The name of the root repository for this network.""" - forkSourceName: String - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI - """The visibility of the repository""" - visibility: RepoCreateAuditEntryVisibility + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The name of the parent repository for this forked repository.""" + forkParentName: String + """The name of the root repository for this network.""" + forkSourceName: String + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI + """The visibility of the repository""" + visibility: RepoCreateAuditEntryVisibility } """The privacy of a repository""" enum RepoCreateAuditEntryVisibility { - """The repository is visible only to users in the same business.""" - INTERNAL - """The repository is visible only to those with explicit access.""" - PRIVATE - """The repository is visible to everyone.""" - PUBLIC + """The repository is visible only to users in the same business.""" + 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 Node & AuditEntry & RepositoryAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI - """The visibility of the repository""" - visibility: RepoDestroyAuditEntryVisibility + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI + """The visibility of the repository""" + visibility: RepoDestroyAuditEntryVisibility } """The privacy of a repository""" enum RepoDestroyAuditEntryVisibility { - """The repository is visible only to users in the same business.""" - INTERNAL - """The repository is visible only to those with explicit access.""" - PRIVATE - """The repository is visible to everyone.""" - PUBLIC + """The repository is visible only to users in the same business.""" + 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 Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI - """The visibility of the repository""" - visibility: RepoRemoveMemberAuditEntryVisibility + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI + """The visibility of the repository""" + visibility: RepoRemoveMemberAuditEntryVisibility } """The privacy of a repository""" enum RepoRemoveMemberAuditEntryVisibility { - """The repository is visible only to users in the same business.""" - INTERNAL - """The repository is visible only to those with explicit access.""" - PRIVATE - """The repository is visible to everyone.""" - PUBLIC + """The repository is visible only to users in the same business.""" + 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 Node & AuditEntry & RepositoryAuditEntryData & OrganizationAuditEntryData & TopicAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """The reasons a piece of content can be reported or minimized.""" enum ReportedContentClassifiers { - """A spammy piece of content""" - SPAM - """An abusive or harassing piece of content""" - ABUSE - """An irrelevant piece of content""" - OFF_TOPIC - """An outdated piece of content""" - OUTDATED - """A duplicated piece of content""" - DUPLICATE - """The content has been resolved""" - RESOLVED + """A spammy piece of content""" + SPAM + """An abusive or harassing piece of content""" + ABUSE + """An irrelevant piece of content""" + OFF_TOPIC + """An outdated piece of content""" + OUTDATED + """A duplicated piece of content""" + DUPLICATE + """The content has been resolved""" + RESOLVED } """A repository contains the content for a project.""" -type Repository implements Node & ProjectV2Recent & ProjectOwner & PackageOwner & Subscribable & Starrable & UniformResourceLocatable & RepositoryInfo { - """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! - """A list of users that can be assigned to issues in this repository.""" - assignableUsers( - """Filters users with query on user name and login""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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 - """Filters users with query on user name and login""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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!] - """A list of Users who have contributed to this repository from git. Will return an empty list if not computable.""" - contributors( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): RepositoryContributorConnection! - """The number of contributors to this repository""" - contributorsCount: Int! - """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 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( - """Environments to list deployments for""" - environments: [String!] - """Ordering options for deployments returned from the connection.""" - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Filter by categories that are assignable by the viewer.""" - filterByAssignable: Boolean = false - ): 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 - """Returns the elements in the list that come before the 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 include discussions that belong to the category with this ID.""" - categoryId: ID = null - """Ordering options for discussions returned from the connection.""" - orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC} - ): DiscussionConnection! - """Count of the Discussions within this repository.""" - discussionsCount: Int! - """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 - ): 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( - """If non-null, filters repositories according to privacy""" - privacy: RepositoryPrivacy - """Ordering options for repositories returned from the connection""" - orderBy: RepositoryOrder - """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] - """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 whether they have been locked""" - isLocked: Boolean - """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" - language: String - """An optional type to use to filter the repositories.""" - type: RepositoryType - """An optional filter to search the repositories.""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): RepositoryConnection! - """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 wiki feature enabled.""" - hasWikiEnabled: Boolean! - """The repository's URL.""" - homepageUrl: URI - id: ID! - """The interaction ability settings for this repository.""" - interactionAbility: RepositoryInteractionAbility - """Indicates if the repository is unmaintained.""" - isArchived: Boolean! - """Returns true if blank issue creation is allowed""" - isBlankIssuesEnabled: Boolean! - """Returns whether or not this repository disabled.""" - isDisabled: Boolean! - """Are discussions available on this repository?""" - isDiscussionsEnabled: 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! - """Is this repository used for organization level discussion?""" - isOrganizationDiscussionRepository: 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! - """Is this repository added to the viewers favorites.""" - isViewersFavorite: Boolean! - """Returns a single issue from the current repository by number.""" - issue( - """The number for the issue to be returned.""" - number: Int! - ): Issue - """Returns a list of issue form links associated to the repository""" - issueFormLinks: [RepositoryContactLink!] - """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!] - """A list of issues that have been opened in the repository.""" - issues( - """Ordering options for issues returned from the connection.""" - orderBy: IssueOrder - """A list of label names to filter the pull requests by.""" - labels: [String!] - """A list of states to filter the issues by.""" - states: [IssueState!] - """Filtering options for issues returned from the connection.""" - filterBy: IssueFilters - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """Returns a single label by name""" - label( - """Label name""" +type Repository implements Node & ProjectNextRecent & ProjectV2Recent & ProjectOwner & PackageOwner & Subscribable & Starrable & UniformResourceLocatable & RepositoryInfo { + """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( + """Filters users with query on user name and login""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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 + """The login of one specific collaborator.""" + login: String + """Filters users with query on user name and login""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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!] + """A list of Users who have contributed to this repository from git. Will return an empty list if not computable.""" + contributors( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): RepositoryContributorConnection! + """The number of contributors to this repository""" + contributorsCount: Int! + """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 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( + """Environments to list deployments for""" + environments: [String!] + """Ordering options for deployments returned from the connection.""" + orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Filter by categories that are assignable by the viewer.""" + filterByAssignable: Boolean = false + ): 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 + """Returns the elements in the list that come before the 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 include discussions that belong to the category with this ID.""" + categoryId: ID = null + """A list of states to filter the discussions by.""" + states: [DiscussionState!] = [] + """Ordering options for discussions returned from the connection.""" + orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC} + ): DiscussionConnection! + """Count of the Discussions within this repository.""" + discussionsCount: Int! + """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 + ): 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( + """If non-null, filters repositories according to privacy""" + privacy: RepositoryPrivacy + """Ordering options for repositories returned from the connection""" + orderBy: RepositoryOrder + """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] + """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 whether they have been locked""" + isLocked: Boolean + """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" + language: String + """An optional type to use to filter the repositories.""" + type: RepositoryType + """An optional filter to search the repositories.""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): RepositoryConnection! + """The funding links for this repository""" + fundingLinks: [FundingLink!]! + """Indicates if the closable discussions feature is enabled for this repository""" + hasClosableDiscussionsEnabled: Boolean! + """Indicates if the repository has the Discussions feature enabled.""" + hasDiscussionsEnabled: Boolean! + """Indicates if the repository has issues feature enabled.""" + hasIssuesEnabled: Boolean! + """Indicates if the marking nested comments as answers feature is enabled for this repository""" + hasNestedDiscussionAnswersEnabled: Boolean! + """Indicates if the repository has the Projects feature enabled.""" + hasProjectsEnabled: 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 + id: ID! + """The interaction ability settings for this repository.""" + interactionAbility: RepositoryInteractionAbility + """Indicates if the repository is unmaintained.""" + isArchived: Boolean! + """Returns true if blank issue creation is allowed""" + isBlankIssuesEnabled: Boolean! + """Returns whether or not this repository disabled.""" + isDisabled: Boolean! + """Are discussions available on this repository?""" + isDiscussionsEnabled: 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! + """Is this repository used for organization level discussion?""" + isOrganizationDiscussionRepository: 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! + """Is this repository added to the viewers favorites.""" + isViewersFavorite: Boolean! + """Returns a single issue from the current repository by number.""" + issue( + """The number for the issue to be returned.""" + number: Int! + ): Issue + """Returns a list of issue form links associated to the repository""" + issueFormLinks: [RepositoryContactLink!] + """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!] + """A list of issues that have been opened in the repository.""" + issues( + """Ordering options for issues returned from the connection.""" + orderBy: IssueOrder + """A list of label names to filter the pull requests by.""" + labels: [String!] + """A list of states to filter the issues by.""" + states: [IssueState!] + """Filtering options for issues returned from the connection.""" + filterBy: IssueFilters + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """Returns a single label by name""" + label( + """Label name""" + name: String! + ): Label + """A list of labels associated with the repository.""" + labels( + """Ordering options for labels returned from the connection.""" + orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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 + """Contents of the license file in the repository""" + licenseContents: String + """The license associated with the repository""" + licenseInfo: License + """A list of user-lists to which this repository belongs""" + 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 + """Ordering options for the returned lists""" + orderBy: UserListOrder = {field: LAST_ADDED_AT, direction: DESC} + """Only show lists owned by the current viewer, overrides ownerId""" + onlyOwnedByViewer: Boolean = false + """Only show lists that belong to this user ID, ignored if onlyOwnedByViewer is true""" + ownerId: ID = null + ): UserListConnection! + """The reason the repository has been locked.""" + lockReason: RepositoryLockReason + """A list of Users that can be mentioned in the context of the repository.""" + mentionableUsers( + """Filters users with query on user name and login""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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 + """Filter by the state of the milestones.""" + states: [MilestoneState!] + """Ordering options for milestones.""" + orderBy: MilestoneOrder + """Filters milestones with a query on the title""" + query: String + ): MilestoneConnection + """The repository's original mirror URL.""" + mirrorUrl: URI + """The name of the repository.""" name: String! - ): Label - """A list of labels associated with the repository.""" - labels( - """Ordering options for labels returned from the connection.""" - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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 - """Contents of the license file in the repository""" - licenseContents: String - """The license associated with the repository""" - licenseInfo: License - """A list of user-lists to which this repository belongs""" - 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 - """Ordering options for the returned lists""" - orderBy: UserListOrder = {field: LAST_ADDED_AT, direction: DESC} - """Only show lists owned by the current viewer, overrides ownerId""" - onlyOwnedByViewer: Boolean = false - """Only show lists that belong to this user ID, ignored if onlyOwnedByViewer is true""" - ownerId: ID = null - ): UserListConnection! - """The reason the repository has been locked.""" - lockReason: RepositoryLockReason - """A list of Users that can be mentioned in the context of the repository.""" - mentionableUsers( - """Filters users with query on user name and login""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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! - """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 - """Filter by the state of the milestones.""" - states: [MilestoneState!] - """Ordering options for milestones.""" - orderBy: MilestoneOrder - """Filters milestones with a query on the title""" - query: String - ): 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( - """The Git object ID""" - oid: GitObjectID - """A Git revision expression suitable for rev-parse""" - expression: String - ): 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] - """Find packages in a repository by ID.""" - repositoryId: ID - """Filter registry package by type.""" - packageType: PackageType - """Ordering of the returned packages.""" - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - ): 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 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 the limit for the repository's billing plan.""" - planLimit( - """The limit for the plan feature""" - feature: PlanFeatureLimit! - ): Int! - """Returns whether or not a repository's plan supports a feature.""" - planSupports( - """The plan feature to check""" - feature: PlanFeature! - ): Boolean! - """The primary language of the repository's code.""" - primaryLanguage: Language - """Find project by number.""" - project( - """The project number to find.""" - number: Int! - ): Project - """Finds and returns the Project (beta) according to the provided Project (beta) number.""" - projectNext( - """The ProjectNext number.""" - number: Int! - ): ProjectNext @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-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( - """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!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectConnection! - """List of projects (beta) linked to this repository.""" - projectsNext( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 project (beta) to search for linked to the repo.""" - query: String - """How to order the returned project (beta) objects.""" - sortBy: ProjectNextOrderField = TITLE - ): ProjectNextConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-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 - """A project to search for linked to the repo.""" - query: String - """How to order the returned projects.""" - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} - ): 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 - """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( - """A list of states to filter the pull requests by.""" - states: [PullRequestState!] - """A list of label names to filter the pull requests by.""" - labels: [String!] - """The head ref name to filter the pull requests by.""" - headRefName: String - """The base ref name to filter the pull requests by.""" - baseRefName: String - """Ordering options for pull requests returned from the connection.""" - orderBy: IssueOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PullRequestConnection! - """Identifies when the repository was last pushed to.""" - pushedAt: DateTime - """The repository readme.""" - readme( - """The ref name used to return the associated readme.""" - refName: String - ): RepositoryReadme - """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( - """Filters refs with query on name""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 ref name prefix like `refs/heads/`, `refs/tags/`, etc.""" - refPrefix: String! - """DEPRECATED: use orderBy. The ordering direction.""" - direction: OrderDirection - """Ordering options for refs returned from the connection.""" - orderBy: RefOrder - ): 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 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! - """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 this repository has continuous integration setup and should upsell ci.""" - shouldUpsellCi: Boolean! - """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! - """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! - """How many stars the repository has gained in the specified time period.""" - starsSince( - """The time period in which to query for new stars.""" - period: TrendingPeriod = DAILY - ): Int! - """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! - """Temporary authentication token for cloning this repository.""" - tempCloneToken: String - """The repository from which this repository was generated, if any.""" - templateRepository: Repository - """Users who have made the most commits to this repository. Commit counts are not computed directly from git, results vary from the contributors field.""" - topContributors( - """How many contributors to return.""" - limit: Int = 5 - """Whether or not to skip bots.""" - skipBots: Boolean = false - """Whether or not to skip the viewer.""" - skipViewer: Boolean = false - ): [User!]! - """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 current user has been blocked by the repository owner.""" - viewerBlockedByOwner: Boolean! - """Indicates whether the viewer has admin permissions on this repository.""" - viewerCanAdminister: Boolean! - """Can the current viewer create new projects on this owner.""" - viewerCanCreateProjects: Boolean! - """Indicates whether the current user has push permissions on this repository.""" - viewerCanPush: 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 last commit email for the viewer.""" - viewerDefaultCommitEmail: String - """The last used merge method by the viewer or the default for the repository.""" - viewerDefaultMergeMethod: PullRequestMergeMethod! - """Has the viewer blocked any contributors in this repository?""" - viewerHasBlockedContributors: Boolean! - """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 - """If custom subscription this is the types of subscriptions subscribed""" - viewerSubscriptionTypes: [CustomSubscriptionType!] - """Indicates the repository's visibility level.""" - visibility: RepositoryVisibility! - """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 - """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!] - """Filter by the scope of the alert's dependency""" - dependencyScopes: [RepositoryVulnerabilityAlertDependencyScope!] - ): 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! - """List of workflows associated with this repository.""" - 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 workflows returned from the connection.""" - orderBy: WorkflowOrder = {field: CREATED_AT, direction: DESC} - ): WorkflowConnection! + """The repository's name with owner.""" + nameWithOwner: String! + """A Git object in the repository""" + object( + """The Git object ID""" + oid: GitObjectID + """A Git revision expression suitable for rev-parse""" + expression: String + ): 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] + """Find packages in a repository by ID.""" + repositoryId: ID + """Filter registry package by type.""" + packageType: PackageType + """Ordering of the returned packages.""" + orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + ): 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 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 the limit for the repository's billing plan.""" + planLimit( + """The limit for the plan feature""" + feature: PlanFeatureLimit! + ): Int! + """Returns whether or not a repository's plan supports a feature.""" + planSupports( + """The plan feature to check""" + feature: PlanFeature! + ): Boolean! + """The primary language of the repository's code.""" + primaryLanguage: Language + """Find project by number.""" + project( + """The project number to find.""" + number: Int! + ): Project + """Finds and returns the Project (beta) according to the provided Project (beta) number.""" + projectNext( + """The ProjectNext number.""" + number: Int! + ): ProjectNext + """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( + """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!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectConnection! + """List of projects (beta) linked to this repository.""" + projectsNext( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 project (beta) to search for linked to the repo.""" + query: String + """How to order the returned project (beta) objects.""" + sortBy: ProjectNextOrderField = TITLE + ): ProjectNextConnection! + """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 + """A project to search for linked to the repo.""" + query: String + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + ): 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 + """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( + """A list of states to filter the pull requests by.""" + states: [PullRequestState!] + """A list of label names to filter the pull requests by.""" + labels: [String!] + """The head ref name to filter the pull requests by.""" + headRefName: String + """The base ref name to filter the pull requests by.""" + baseRefName: String + """Ordering options for pull requests returned from the connection.""" + orderBy: IssueOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PullRequestConnection! + """Identifies the date and time when the repository was last pushed to.""" + pushedAt: DateTime + """The repository readme.""" + readme( + """The ref name used to return the associated readme.""" + refName: String + ): RepositoryReadme + """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! + """Recent projects (beta) that this user has modified in the context of the owner.""" + recentProjectsNext( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! + """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( + """Filters refs with query on name""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 ref name prefix like `refs/heads/`, `refs/tags/`, etc.""" + refPrefix: String! + """DEPRECATED: use orderBy. The ordering direction.""" + direction: OrderDirection + """Ordering options for refs returned from the connection.""" + orderBy: RefOrder + ): 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 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! + """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 + """Returns the last _n_ elements from the list.""" + last: Int + """Return rulesets configured at higher levels that apply to this repository""" + includeParents: Boolean = false + ): 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 this repository has continuous integration setup and should upsell ci.""" + shouldUpsellCi: Boolean! + """Indicates if Actions can be shown for this repository""" + showActions: Boolean! + """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! + """How many stars the repository has gained in the specified time period.""" + starsSince( + """The time period in which to query for new stars.""" + period: TrendingPeriod = DAILY + ): Int! + """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! + """Temporary authentication token for cloning this repository.""" + tempCloneToken: String + """The repository from which this repository was generated, if any.""" + templateRepository: Repository + """Users who have made the most commits to this repository. Commit counts are not computed directly from git, results vary from the contributors field.""" + topContributors( + """How many contributors to return.""" + limit: Int = 5 + """Whether or not to skip bots.""" + skipBots: Boolean = false + """Whether or not to skip the viewer.""" + skipViewer: Boolean = false + ): [User!]! + """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 current user has been blocked by the repository owner.""" + viewerBlockedByOwner: Boolean! + """Indicates whether the viewer has admin permissions on this repository.""" + viewerCanAdminister: Boolean! + """Can the current viewer create new projects on this owner.""" + viewerCanCreateProjects: Boolean! + """Indicates whether the current user has push permissions on this repository.""" + viewerCanPush: 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 last commit email for the viewer.""" + viewerDefaultCommitEmail: String + """The last used merge method by the viewer or the default for the repository.""" + viewerDefaultMergeMethod: PullRequestMergeMethod! + """Has the viewer blocked any contributors in this repository?""" + viewerHasBlockedContributors: Boolean! + """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 + """If custom subscription this is the types of subscriptions subscribed""" + viewerSubscriptionTypes: [CustomSubscriptionType!] + """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 + """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!] + """Filter by the scope of the alert's dependency""" + dependencyScopes: [RepositoryVulnerabilityAlertDependencyScope!] + ): 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! + """List of workflows associated with this repository.""" + 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 workflows returned from the connection.""" + orderBy: WorkflowOrder = {field: CREATED_AT, direction: DESC} + ): WorkflowConnection! } """A maintainer advisory for dependents of a repository""" type RepositoryAdvisory implements Node & Comment & Reactable & UniformResourceLocatable & Updatable & UpdatableComment { - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): HTML! - """The body rendered to text.""" - bodyText: String! - """The advisory discussion comments""" - 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 - ): RepositoryAdvisoryCommentConnection! - """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 plaintext description of the advisory""" - description: String! - """The actor who edited the comment.""" - editor: Actor - """The GitHub Security Advisory ID""" - ghsaId: String! - 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 - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """Allows specifying the order in which reactions are returned.""" - orderBy: ReactionOrder - ): ReactionConnection! - """The path for this advisory""" - resourcePath: URI! - """The plaintext title of the advisory""" - title: String! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! - """The URL for this advisory""" - 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 - """Can user react to this subject""" - viewerCanReact: 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 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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): HTML! + """The body rendered to text.""" + bodyText: String! + """The advisory discussion comments""" + 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 + ): RepositoryAdvisoryCommentConnection! + """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 plaintext description of the advisory""" + description: String! + """The actor who edited the comment.""" + editor: Actor + """The GitHub Security Advisory ID""" + ghsaId: String! + 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 + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """Allows specifying the order in which reactions are returned.""" + orderBy: ReactionOrder + ): ReactionConnection! + """The path for this advisory""" + resourcePath: URI! + """The plaintext title of the advisory""" + title: String! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The URL for this advisory""" + 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 + """Can user react to this subject""" + viewerCanReact: 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 comment on a repository security advisory""" -type RepositoryAdvisoryComment implements Node & Comment & Deletable & Reactable & RepositoryNode & UniformResourceLocatable & Updatable & UpdatableComment { - """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( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): 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 - 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 - """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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """Allows specifying the order in which reactions are returned.""" - orderBy: ReactionOrder - ): ReactionConnection! - """The repository associated with this node.""" - repository: Repository! - """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 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 user react to this subject""" - viewerCanReact: 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! +type RepositoryAdvisoryComment implements Node & Comment & Deletable & Reactable & RepositoryNode & UniformResourceLocatable & Updatable & UpdatableComment & OrgBlockable { + """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( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): 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 + 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 + """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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """Allows specifying the order in which reactions are returned.""" + orderBy: ReactionOrder + ): ReactionConnection! + """The repository associated with this node.""" + repository: Repository! + """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 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 block the author of this content from the owning organization.""" + viewerCanBlockFromOrg: Boolean! + """Check if the current viewer can delete this object.""" + viewerCanDelete: Boolean! + """Can user react to this subject""" + viewerCanReact: Boolean! + """Check if the current viewer can unblock the author of this content from the owning organization.""" + viewerCanUnblockFromOrg: 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 RepositoryAdvisoryComment.""" type RepositoryAdvisoryCommentConnection { - """A list of edges.""" - edges: [RepositoryAdvisoryCommentEdge] - """A list of nodes.""" - nodes: [RepositoryAdvisoryComment] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [RepositoryAdvisoryCommentEdge] + """A list of nodes.""" + nodes: [RepositoryAdvisoryComment] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type RepositoryAdvisoryCommentEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: RepositoryAdvisoryComment + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: RepositoryAdvisoryComment } """The affiliation of a user to a repository""" enum RepositoryAffiliation { - """Repositories that are owned by the authenticated user.""" - OWNER - """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 + """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 } """Metadata for an audit entry with action repo.*""" interface RepositoryAuditEntryData { - """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 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 { - """Any problems that were encountered while parsing the `CODEOWNERS` file.""" - errors: [RepositoryCodeownersError!]! + """Any problems that were encountered while parsing the `CODEOWNERS` file.""" + errors: [RepositoryCodeownersError!]! } """An error in a `CODEOWNERS` file.""" type RepositoryCodeownersError { - """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 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! + """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 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.""" - totalDiskUsage: Int! + """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.""" + totalDiskUsage: Int! } """A repository contact link.""" type RepositoryContactLink { - """The contact link purpose.""" - about: String! - """The contact link name.""" - name: String! - """The contact link URL.""" - url: URI! + """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 { - """Created a commit""" - COMMIT - """Created an issue""" - ISSUE - """Created a pull request""" - PULL_REQUEST - """Created the repository""" - REPOSITORY - """Reviewed a pull request""" - PULL_REQUEST_REVIEW + """Created a commit""" + COMMIT + """Created an issue""" + ISSUE + """Created a pull request""" + PULL_REQUEST + """Created the repository""" + REPOSITORY + """Reviewed a pull request""" + PULL_REQUEST_REVIEW } """The connection type for User.""" type RepositoryContributorConnection { - """A list of edges.""" - edges: [RepositoryContributorEdge] - """A list of nodes.""" - nodes: [User] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of contributors to this repository.""" - totalCount: Int! + """A list of edges.""" + edges: [RepositoryContributorEdge] + """A list of nodes.""" + nodes: [User] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of contributors to this repository.""" + totalCount: Int! } """A user who has contributed to a repository.""" type RepositoryContributorEdge { - """The number of contributions the user has made in the repository.""" - contributionsCount: Int! - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: User + """The number of contributions the user has made in the repository.""" + contributionsCount: Int! + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: User } """A wrapper on Repository used for Dependabot Alerts notifications.""" type RepositoryDependabotAlertsThread implements RepositoryNode & Node { - id: ID! - """The URL pointing to the repository's dependabot alerts page""" - notificationsPermalink: URI - """The repository associated with this node.""" - repository: Repository! + id: ID! + """The URL pointing to the repository's dependabot alerts page""" + notificationsPermalink: URI + """The repository associated with this node.""" + repository: Repository! } """Represents an author of discussions in repositories.""" interface RepositoryDiscussionAuthor { - """Discussions this user has started.""" - repositoryDiscussions( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 - """Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.""" - answered: Boolean = null - ): DiscussionConnection! + """Discussions this user has started.""" + repositoryDiscussions( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 + """Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.""" + answered: Boolean = null + """A list of states to filter the discussions by.""" + states: [DiscussionState!] = [] + ): DiscussionConnection! } """Represents an author of discussion comments in repositories.""" interface RepositoryDiscussionCommentAuthor { - """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 in a specific repository.""" - repositoryId: ID - """Filter discussion comments to only those that were marked as the answer""" - onlyAnswers: Boolean = false - ): DiscussionCommentConnection! + """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 in a specific repository.""" + repositoryId: ID + """Filter discussion comments to only those that were marked as the answer""" + onlyAnswers: Boolean = false + ): 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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Repository } """A subset of repository info.""" interface RepositoryInfo { - """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 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! - """Contents of the license file in the repository""" - licenseContents: String - """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! - """Identifies 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! + """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 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! + """Contents of the license file in the repository""" + licenseContents: String + """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! + """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 { - """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! + """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 { - """Users that have recently created their account will be unable to interact with the repository.""" - EXISTING_USERS - """Users that have not previously committed to a repository’s default branch will be unable to interact with the repository.""" - CONTRIBUTORS_ONLY - """Users that are not collaborators will not be able to interact with the repository.""" - COLLABORATORS_ONLY - """No interaction limits are enabled.""" - NO_LIMIT + """Users that have recently created their account will be unable to interact with the repository.""" + EXISTING_USERS + """Users that have not previously committed to a repository’s default branch will be unable to interact with the repository.""" + CONTRIBUTORS_ONLY + """Users that are not collaborators will not be able to interact with the repository.""" + COLLABORATORS_ONLY + """No interaction limits are enabled.""" + NO_LIMIT } """The length for a repository interaction limit to be enabled for.""" enum RepositoryInteractionLimitExpiry { - """The interaction limit will expire after 1 day.""" - ONE_DAY - """The interaction limit will expire after 3 days.""" - THREE_DAYS - """The interaction limit will expire after 1 week.""" - ONE_WEEK - """The interaction limit will expire after 1 month.""" - ONE_MONTH - """The interaction limit will expire after 6 months.""" - SIX_MONTHS + """The interaction limit will expire after 1 day.""" + ONE_DAY + """The interaction limit will expire after 3 days.""" + THREE_DAYS + """The interaction limit will expire after 1 week.""" + ONE_WEEK + """The interaction limit will expire after 1 month.""" + ONE_MONTH + """The interaction limit will expire after 6 months.""" + SIX_MONTHS } """Indicates where an interaction limit is configured.""" enum RepositoryInteractionLimitOrigin { - """A limit that is configured at the repository level.""" - REPOSITORY - """A limit that is configured at the organization level.""" - ORGANIZATION - """A limit that is configured at the user-wide level.""" - USER + """A limit that is configured at the repository level.""" + REPOSITORY + """A limit that is configured at the organization level.""" + ORGANIZATION + """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 { - """The email address that received the invitation.""" - email: String - 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 + """The email address that received the invitation.""" + email: String + 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! + """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 + """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 { - """The field to order repository invitations by.""" - field: RepositoryInvitationOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order repository invitations by.""" + field: RepositoryInvitationOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which repository invitation connections can be ordered.""" enum RepositoryInvitationOrderField { - """Order repository invitations by creation time""" - CREATED_AT + """Order repository invitations by creation time""" + CREATED_AT } """The possible reasons a given repository could be in a locked state.""" enum RepositoryLockReason { - """The repository is locked due to a move.""" - MOVING - """The repository is locked due to a billing related reason.""" - BILLING - """The repository is locked due to a rename.""" - RENAME - """The repository is locked due to a migration.""" - MIGRATING -} - -"""An Octoshift repository migration.""" + """The repository is locked due to a move.""" + MOVING + """The repository is locked due to a billing related reason.""" + BILLING + """The repository is locked due to a rename.""" + RENAME + """The repository is locked due to a migration.""" + MIGRATING + """The repository is locked due to a trade controls related reason.""" + TRADE_RESTRICTION +} + +"""A GitHub Enterprise Importer (GEI) repository migration.""" type RepositoryMigration implements Node & Migration { - """The Octoshift 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 - id: ID! - """The URL for the migration log (expires 1 day after migration completes).""" - migrationLogUrl: URI - """The Octoshift migration source.""" - migrationSource: MigrationSource! - """The target repository name.""" - repositoryName: String! - """The Octoshift migration source URL.""" - sourceUrl: URI! - """The Octoshift migration state.""" - state: MigrationState! + """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 + 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 connection type for RepositoryMigration.""" 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! + """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 + """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 { - """The field to order repository migrations by.""" - field: RepositoryMigrationOrderField! - """The ordering direction.""" - direction: RepositoryMigrationOrderDirection! + """The field to order repository migrations by.""" + field: RepositoryMigrationOrderField! + """The ordering direction.""" + direction: RepositoryMigrationOrderDirection! } """Possible directions in which to order a list of repository migrations when provided an `orderBy` argument.""" enum RepositoryMigrationOrderDirection { - """Specifies an ascending order for a given `orderBy` argument.""" - ASC - """Specifies a descending order for a given `orderBy` argument.""" - DESC + """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 { - """Order mannequins why when they were created.""" - CREATED_AT + """Order mannequins why when they were created.""" + CREATED_AT +} + +"""Parameters to be used for the repository_name condition""" +type RepositoryNameConditionTarget { + """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 { + """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 } """A repository owner and name string as seperate fields.""" input RepositoryNameWithOwner { - """The login field of a user or organization.""" - owner: String! - """The name of the repository.""" - name: String! + """The login field of a user or organization.""" + owner: String! + """The name of the repository.""" + name: String! } """Represents a object that belongs to a repository.""" interface RepositoryNode { - """The repository associated with this node.""" - repository: Repository! + """The repository associated with this node.""" + repository: Repository! } """Ordering options for repository connections""" input RepositoryOrder { - """The field to order repositories by.""" - field: RepositoryOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order repositories by.""" + field: RepositoryOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which repository connections can be ordered.""" enum RepositoryOrderField { - """Order repositories by creation time""" - CREATED_AT - """Order repositories by update time""" - UPDATED_AT - """Order repositories by push time""" - PUSHED_AT - """Order repositories by name""" - NAME - """Order repositories by number of stargazers""" - STARGAZERS + """Order repositories by creation time""" + CREATED_AT + """Order repositories by update time""" + UPDATED_AT + """Order repositories by push time""" + PUSHED_AT + """Order repositories by name""" + NAME + """Order repositories by number of stargazers""" + STARGAZERS } """Represents an owner of a Repository.""" interface RepositoryOwner { - """A URL pointing to the owner's public avatar.""" - avatarUrl( - """The size of the resulting square image.""" - size: Int - ): URI! - id: ID! - """The username used to login.""" - login: String! - """A list of repositories that the user owns.""" - repositories( - """If non-null, filters repositories according to privacy""" - privacy: RepositoryPrivacy - """Ordering options for repositories returned from the connection""" - orderBy: RepositoryOrder - """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] - """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 whether they have been locked""" - isLocked: Boolean - """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" - language: String - """An optional type to use to filter the repositories.""" - type: RepositoryType - """An optional filter to search the repositories.""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 repositories according to whether they are forks of another repository""" - isFork: Boolean - ): RepositoryConnection! - """Find Repository.""" - repository( - """Name of Repository to find.""" - name: String! - """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" - followRenames: Boolean = true - ): Repository - """The HTTP URL for the owner.""" - resourcePath: URI! - """The HTTP URL for the owner.""" - url: URI! + """A URL pointing to the owner's public avatar.""" + avatarUrl( + """The size of the resulting square image.""" + size: Int + ): URI! + id: ID! + """The username used to login.""" + login: String! + """A list of repositories that the user owns.""" + repositories( + """If non-null, filters repositories according to privacy""" + privacy: RepositoryPrivacy + """Ordering options for repositories returned from the connection""" + orderBy: RepositoryOrder + """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] + """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 whether they have been locked""" + isLocked: Boolean + """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" + language: String + """An optional type to use to filter the repositories.""" + type: RepositoryType + """An optional filter to search the repositories.""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 repositories according to whether they are forks of another repository""" + isFork: Boolean + ): RepositoryConnection! + """Find Repository.""" + repository( + """Name of Repository to find.""" + name: String! + """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" + followRenames: Boolean = true + ): 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 { - """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, clone, and push to this repository. Can also manage issues and pull requests""" - WRITE - """Can read and clone this repository. Can also manage issues and pull requests""" - TRIAGE - """Can read and clone this repository. Can also open and comment on issues and pull requests""" - READ + """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, clone, and push to this repository. Can also manage issues and pull requests""" + WRITE + """Can read and clone this repository. Can also manage issues and pull requests""" + TRIAGE + """Can read and clone this repository. Can also open and comment on issues and pull requests""" + READ } """The privacy of a repository""" enum RepositoryPrivacy { - """Public""" - PUBLIC - """Private""" - PRIVATE + """Public""" + PUBLIC + """Private""" + PRIVATE } """A readme in a repository.""" type RepositoryReadme { - """The html content of the readme.""" - contentHTML( - """Whether or not to append the root path to local paths""" - relativePaths: Boolean = false - ): HTML - """The raw content of the readme.""" - contentRaw: String - """The TreeEntry file type object""" - fileType: File - """The full path of the file.""" - path: String - """The Repository the readme belongs to""" - repository: Repository! + """The html content of the readme.""" + contentHTML( + """Whether or not to append the root path to local paths""" + relativePaths: Boolean = false + ): HTML + """The raw content of the readme.""" + contentRaw: String + """The TreeEntry file type object""" + fileType: File + """The full path of the file.""" + path: String + """The Repository the readme belongs to""" + repository: Repository! } """ @@ -22977,323 +24755,514 @@ A recommendation for a repository that GitHub thinks will be interesting for a particular user. """ type RepositoryRecommendation { - """The recommendation ML model version""" - algorithmVersion: String - """The date and time at which this recommendation was generated.""" - generatedAt: DateTime - """The reason this repository was recommended.""" - reason: RepositoryRecommendationReason! - """The recommended repository.""" - repository: Repository! - """ - A value between [0, 1] that indicates the relevancy of the repository to the user for whom - it was recommended. - """ - score: Float! + """The recommendation ML model version""" + algorithmVersion: String + """The date and time at which this recommendation was generated.""" + generatedAt: DateTime + """The reason this repository was recommended.""" + reason: RepositoryRecommendationReason! + """The recommended repository.""" + repository: Repository! + """ + A value between [0, 1] that indicates the relevancy of the repository to the user for whom + it was recommended. + """ + score: Float! +} + +"""The connection type for RepositoryRecommendation.""" +type RepositoryRecommendationConnection { + """A list of edges.""" + edges: [RepositoryRecommendationEdge] + """A list of nodes.""" + nodes: [RepositoryRecommendation] + """Information to aid in pagination.""" + pageInfo: PageInfo! +} + +"""An edge in a connection.""" +type RepositoryRecommendationEdge { + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: RepositoryRecommendation +} + +"""A feed item representing the act of a repository being recommended""" +type RepositoryRecommendationFeedItem implements FeedItemDisplayable { + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why the repository was recommended""" + reason: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The repository that is recommended""" + repository: Repository! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! +} + +"""The reason a particular repository was recommended to a user.""" +enum RepositoryRecommendationReason { + """The repository is currently trending on GitHub.""" + TRENDING + """The repository is part of a topic that the user is interested in.""" + TOPICS + """The repository is like other repositories the user has starred.""" + STARRED + """Someone the user follows starred the repository.""" + FOLLOWED + """The repository is popular on GitHub.""" + POPULAR + """The repository is similar to other repositories the user has viewed.""" + VIEWED + """The repository is similar to repositories the user has contributed to.""" + CONTRIBUTED + """The repository was recommended for some other reason.""" + OTHER +} + +"""A repository rule.""" +type RepositoryRule implements Node { + id: ID! + """The parameters for this rule.""" + parameters: RuleParameters + """The type of rule.""" + type: RepositoryRuleType! +} + +"""Set of conditions that determine if a ruleset will evaluate""" +type RepositoryRuleConditions { + """Configuration for the ref_name condition""" + refName: RefNameConditionTarget + """Configuration for the repository_name condition""" + repositoryName: RepositoryNameConditionTarget +} + +"""Specifies the conditions required for a ruleset to evaluate""" +input RepositoryRuleConditionsInput { + """Configuration for the ref_name condition""" + refName: RefNameConditionTargetInput + """Configuration for the repository_name condition""" + repositoryName: RepositoryNameConditionTargetInput +} + +"""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! } -"""The connection type for RepositoryRecommendation.""" -type RepositoryRecommendationConnection { - """A list of edges.""" - edges: [RepositoryRecommendationEdge] - """A list of nodes.""" - nodes: [RepositoryRecommendation] - """Information to aid in pagination.""" - pageInfo: PageInfo! +"""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 { + """Optional ID of this rule when updating""" + id: ID + """The type of rule to create.""" + type: RepositoryRuleType! + """The parameters for the rule.""" + parameters: RuleParametersInput +} + +"""A repository ruleset.""" +type RepositoryRuleset implements Node { + """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 bypass mode of this ruleset""" + bypassMode: RuleBypassMode! + """The set of conditions that must evaluate to true for this ruleset to apply""" + conditions: RepositoryRuleConditions! + """Identifies the primary key from the database.""" + databaseId: Int + """The enforcement level of this ruleset""" + enforcement: RuleEnforcement! + 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 +} + +"""A team or app that has the ability to bypass a rules defined on a ruleset""" +type RepositoryRulesetBypassActor implements Node { + """The actor that can bypass rules.""" + actor: BypassActor + id: ID! + """Identifies the ruleset associated with the allowed actor""" + repositoryRuleset: RepositoryRuleset +} + +"""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 RepositoryRecommendationEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: RepositoryRecommendation +type RepositoryRulesetBypassActorEdge { + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: RepositoryRulesetBypassActor } -"""A feed item representing the act of a repository being recommended""" -type RepositoryRecommendationFeedItem implements FeedItemDisplayable { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why the repository was recommended""" - reason: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The repository that is recommended""" - repository: Repository! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! +"""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! } -"""The reason a particular repository was recommended to a user.""" -enum RepositoryRecommendationReason { - """The repository is currently trending on GitHub.""" - TRENDING - """The repository is part of a topic that the user is interested in.""" - TOPICS - """The repository is like other repositories the user has starred.""" - STARRED - """Someone the user follows starred the repository.""" - FOLLOWED - """The repository is popular on GitHub.""" - POPULAR - """The repository is similar to other repositories the user has viewed.""" - VIEWED - """The repository is similar to repositories the user has contributed to.""" - CONTRIBUTED - """The repository was recommended for some other reason.""" - OTHER +"""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 { + """Branch""" + BRANCH + """Tag""" + TAG +} + +"""The rule types supported in rulesets""" +enum RepositoryRuleType { + """Creation""" + CREATION + """Update""" + UPDATE + """Deletion""" + DELETION + """Required linear history""" + REQUIRED_LINEAR_HISTORY + """Required deployments""" + REQUIRED_DEPLOYMENTS + """Required signatures""" + REQUIRED_SIGNATURES + """Pull request""" + PULL_REQUEST + """Required status checks""" + REQUIRED_STATUS_CHECKS + """Non fast forward""" + NON_FAST_FORWARD + """Commit message pattern""" + COMMIT_MESSAGE_PATTERN + """Commit author email pattern""" + COMMIT_AUTHOR_EMAIL_PATTERN + """Committer email pattern""" + COMMITTER_EMAIL_PATTERN + """Branch name pattern""" + BRANCH_NAME_PATTERN + """Tag name pattern""" + TAG_NAME_PATTERN } """A repository-topic connects a repository to a topic.""" type RepositoryTopic implements Node & UniformResourceLocatable { - id: ID! - """The HTTP path for this repository-topic.""" - resourcePath: URI! - """The topic.""" - topic: Topic! - """The HTTP URL for this repository-topic.""" - url: URI! + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: RepositoryTopic } """The different types of repositories that exist.""" enum RepositoryType { - """Repositories that are visible to everyone.""" - PUBLIC - """Repositories that are restricted to only certain users.""" - PRIVATE - """Repositories that are neither forks nor mirrors.""" - SOURCE - """Repositories that are have been forked from other repositories.""" - FORK - """Repositories that are copied onto GitHub from other sites.""" - MIRROR - """Repositories that can be used to generate new repositories with the same directory structure, branches, and files.""" - TEMPLATE - """Repositories that are no longer actively maintained.""" - ARCHIVED + """Repositories that are visible to everyone.""" + PUBLIC + """Repositories that are restricted to only certain users.""" + PRIVATE + """Repositories that are neither forks nor mirrors.""" + SOURCE + """Repositories that are have been forked from other repositories.""" + FORK + """Repositories that are copied onto GitHub from other sites.""" + MIRROR + """Repositories that can be used to generate new repositories with the same directory structure, branches, and files.""" + TEMPLATE + """Repositories that are no longer actively maintained.""" + ARCHIVED + """Repositories owned by a user or organization who can be sponsored on GitHub Sponsors.""" + SPONSORABLE } """The repository's visibility level.""" enum RepositoryVisibility { - """The repository is visible only to those with explicit access.""" - PRIVATE - """The repository is visible to everyone.""" - PUBLIC - """The repository is visible only to users in the same business.""" - INTERNAL + """The repository is visible only to those with explicit access.""" + PRIVATE + """The repository is visible to everyone.""" + PUBLIC + """The repository is visible only to users in the same business.""" + INTERNAL } """Audit log entry for a repository_visibility_change.disable event.""" type RepositoryVisibilityChangeDisableAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a repository_visibility_change.enable event.""" type RepositoryVisibilityChangeEnableAuditEntry implements Node & AuditEntry & EnterpriseAuditEntryData & OrganizationAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - """The HTTP path for this enterprise.""" - enterpriseResourcePath: URI - """The slug of the enterprise.""" - enterpriseSlug: String - """The HTTP URL for this enterprise.""" - enterpriseUrl: URI - id: ID! - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The user affected by the action""" - user: User - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + """The HTTP path for this enterprise.""" + enterpriseResourcePath: URI + """The slug of the enterprise.""" + enterpriseSlug: String + """The HTTP URL for this enterprise.""" + enterpriseUrl: URI + id: ID! + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The user affected by the action""" + user: User + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """A Dependabot alert for a repository with a dependency affected by a security vulnerability.""" type RepositoryVulnerabilityAlert implements Node & RepositoryNode { - """When was the alert created?""" - createdAt: DateTime! - """The associated Dependabot update""" - dependabotUpdate: DependabotUpdate - """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 - """The reason the alert was marked as fixed.""" - fixReason: String @deprecated(reason: "The `fixReason` field is being removed. You can still use `fixedAt` and `dismissReason`. Removal on 2022-10-01 UTC.") - """When was the alert fixed?""" - fixedAt: DateTime - id: ID! - """Identifies the alert number.""" - number: Int! - """The permalink for this alert.""" - permalink: URI! - """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 + """When was the alert auto-dismissed?""" + autoDismissedAt: DateTime + """When was the alert created?""" + createdAt: DateTime! + """The associated Dependabot update""" + dependabotUpdate: DependabotUpdate + """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 + id: ID! + """Identifies the alert number.""" + number: Int! + """The permalink for this alert.""" + permalink: URI! + """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! + """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 scopes of an alert's dependency.""" enum RepositoryVulnerabilityAlertDependencyScope { - """A dependency that is leveraged during application runtime""" - RUNTIME - """A dependency that is only used in development""" - DEVELOPMENT + """A dependency that is leveraged during application runtime""" + RUNTIME + """A dependency that is only used in development""" + DEVELOPMENT } """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 + """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 { - """An alert that is still open.""" - OPEN - """An alert that has been resolved by a code change.""" - FIXED - """An alert that has been manually closed by a user.""" - DISMISSED + """An alert that is still open.""" + OPEN + """An alert that has been resolved by a code change.""" + FIXED + """An alert that has been manually closed by a user.""" + DISMISSED + """An alert that has been automatically closed by Dependabot.""" + AUTO_DISMISSED } """The possible states that can be requested when creating a check run.""" enum RequestableCheckStatusState { - """The check suite or run has been queued.""" - QUEUED - """The check suite or run is in progress.""" - IN_PROGRESS - """The check suite or run has been completed.""" - COMPLETED - """The check suite or run is in waiting state.""" - WAITING - """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 progress.""" + IN_PROGRESS + """The check suite or run has been completed.""" + COMPLETED + """The check suite or run is in waiting state.""" + WAITING + """The check suite or run is in pending state.""" + PENDING } """Types that can be requested reviewers.""" @@ -23301,207 +25270,275 @@ union RequestedReviewer = 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: RequestedReviewer } """Autogenerated input type of RequestReviews""" input RequestReviewsInput { - """The Node ID of the pull request to modify.""" - pullRequestId: ID! - """The Node IDs of the user to request.""" - userIds: [ID!] - """The Node IDs of the team to request.""" - teamIds: [ID!] - """Add users to the set rather than replace.""" - union: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request to modify.""" + pullRequestId: ID! + """The Node IDs of the user to request.""" + userIds: [ID!] + """The Node IDs of the team to request.""" + teamIds: [ID!] + """Add users to the set rather than replace.""" + union: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 } """Represents a type that can be required by a pull request for merging.""" interface RequirableByPullRequest { - """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! + """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! +} + +"""Parameters to be used for the required_deployments rule""" +type RequiredDeploymentsParameters { + """The environments that must be successfully deployed to before branches can be merged.""" + requiredDeploymentEnvironments: [String!]! +} + +"""Parameters to be used for the required_deployments rule""" +input RequiredDeploymentsParametersInput { + """The environments that must be successfully deployed to before branches can be merged.""" + requiredDeploymentEnvironments: [String!]! } """Represents an individual required status check for a protected branch.""" type RequiredStatusCheck implements Node { - """The name of this status.""" - context: String! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """The description for this status.""" - description: String - id: ID! - """The state of this status.""" - state: StatusState! + """The name of this status.""" + context: String! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The description for this status.""" + description: String + id: ID! + """The state of this status.""" + state: StatusState! } """The connection type for RequiredStatusCheck.""" type RequiredStatusCheckConnection { - """A list of edges.""" - edges: [RequiredStatusCheckEdge] - """A list of nodes.""" - nodes: [RequiredStatusCheck] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [RequiredStatusCheckEdge] + """A list of nodes.""" + nodes: [RequiredStatusCheck] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """Represents a required status check for a protected branch, but not any specific run of that check.""" type RequiredStatusCheckDescription { - """The App that must provide this status in order for it to be accepted.""" - app: App - """The name of this status.""" - context: String! + """The App that must provide this status in order for it to be accepted.""" + app: App + """The name of this status.""" + context: String! } """An edge in a connection.""" type RequiredStatusCheckEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: RequiredStatusCheck + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: RequiredStatusCheck } """Specifies the attributes for a new or updated required status check.""" input RequiredStatusCheckInput { - """Status check context that must pass for commits to be accepted to the matching branch.""" - context: String! - """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! + """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 +} + +"""Parameters to be used for the required_status_checks rule""" +type RequiredStatusChecksParameters { + """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! +} + +"""Parameters to be used for the required_status_checks rule""" +input RequiredStatusChecksParametersInput { + """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 repository.""" - repositoryId: ID! - """The Node ID of the check suite.""" - checkSuiteId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the repository.""" + repositoryId: ID! + """The Node ID of the check suite.""" + checkSuiteId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RerequestCheckSuite""" type RerequestCheckSuitePayload { - """The requested check suite.""" - checkSuite: CheckSuite - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The requested check suite.""" + checkSuite: CheckSuite + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of RerunCheckRunMobile""" input RerunCheckRunMobileInput { - """The Node ID of the check run associated with the check suite to rerun""" - checkRunId: ID! - """Enable debug logging""" - enableDebugLogging: Boolean = false - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the check run associated with the check suite to rerun""" + checkRunId: ID! + """Enable debug logging""" + enableDebugLogging: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RerunCheckRunMobile""" type RerunCheckRunMobilePayload { - """The restarted check suite""" - checkSuite: CheckSuite - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The restarted check suite""" + checkSuite: CheckSuite + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of RerunCheckSuiteMobile""" input RerunCheckSuiteMobileInput { - """The Node ID of the check suite to rerun""" - checkSuiteId: ID! - """Enable debug logging""" - enableDebugLogging: Boolean = false - """Only rerun failed check runs""" - onlyFailedCheckRuns: Boolean = false - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the check suite to rerun""" + checkSuiteId: ID! + """Enable debug logging""" + enableDebugLogging: Boolean = false + """Only rerun failed check runs""" + onlyFailedCheckRuns: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of RerunCheckSuiteMobile""" type RerunCheckSuiteMobilePayload { - """The check suite that was re-run""" - checkSuite: CheckSuite - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The check suite that was re-run""" + checkSuite: CheckSuite + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of ResolveReviewThread""" input ResolveReviewThreadInput { - """The ID of the thread to resolve""" - threadId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the thread to resolve""" + threadId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of ResolveReviewThread""" type ResolveReviewThreadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The thread to resolve.""" - thread: PullRequestReviewThread + """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 { - """ - 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! + """ + 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 { + """The ID of the published tier to retire.""" + tierId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 ID of the pull request to revert.""" + pullRequestId: ID! + """The title of the revert pull request.""" + title: String + """The description of the revert pull request.""" + body: String + """Indicates whether the revert pull request should be a draft.""" + draft: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 { - """The actor that can dismiss.""" - actor: ReviewDismissalAllowanceActor - """Identifies the branch protection rule associated with the allowed user, team, or app.""" - branchProtectionRule: BranchProtectionRule - id: ID! + """The actor that can dismiss.""" + actor: ReviewDismissalAllowanceActor + """Identifies the branch protection rule associated with the allowed user, team, or app.""" + branchProtectionRule: BranchProtectionRule + id: ID! } """Types that can be an actor.""" @@ -23509,110 +25546,110 @@ union ReviewDismissalAllowanceActor = 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! + """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 + """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 { - """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 - 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! + """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 + 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 { - """Whether this request was created for a code owner""" - asCodeOwner: Boolean! - """Identifies the primary key from the database.""" - databaseId: Int - id: ID! - """Identifies the pull request associated with this review request.""" - pullRequest: PullRequest! - """The user who triggered this request for review.""" - requestedBy: User - """The reviewer that is requested.""" - requestedReviewer: RequestedReviewer + """Whether this request was created for a code owner""" + asCodeOwner: Boolean! + """Identifies the primary key from the database.""" + databaseId: Int + id: ID! + """Identifies the pull request associated with this review request.""" + pullRequest: PullRequest! + """The user who triggered this request for review.""" + requestedBy: User + """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! + """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! } """Represents an 'review_requested' event on a given pull request.""" type ReviewRequestedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! - """Identifies the reviewer whose review was requested.""" - requestedReviewer: RequestedReviewer + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest! + """Identifies the reviewer whose review was requested.""" + requestedReviewer: RequestedReviewer } """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 + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """PullRequest referenced by event.""" - pullRequest: PullRequest! - """Identifies the reviewer whose review request was removed.""" - requestedReviewer: RequestedReviewer + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """PullRequest referenced by event.""" + pullRequest: PullRequest! + """Identifies the reviewer whose review request was removed.""" + requestedReviewer: RequestedReviewer } """ @@ -23620,142 +25657,190 @@ A hovercard context with a message describing the current code review state of t request. """ type ReviewStatusHovercardContext implements HovercardContext { - """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 + """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 { - """The ID of the enterprise to which all organizations managed by it will be granted the migrator role.""" - enterpriseId: ID! - """The login of the user to revoke the migrator role""" - login: String! - """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! + """The login of the user to revoke the migrator role""" + login: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 ID of the organization that the user/team belongs to.""" - organizationId: ID! - """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! + """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 } """Autogenerated return type of RevokeMigratorRole""" type RevokeMigratorRolePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean + """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 { - """A user with full administrative access to the organization.""" - OWNER - """A user who is a direct member of the organization.""" - DIRECT_MEMBER - """A user who is unaffiliated with the organization.""" - UNAFFILIATED -} + """A user with full administrative access to the organization.""" + OWNER + """A user who is a direct member of the organization.""" + DIRECT_MEMBER + """A user who is unaffiliated with the organization.""" + UNAFFILIATED +} + +"""The bypass mode for a rule or ruleset.""" +enum RuleBypassMode { + """Bypassing is disabled""" + NONE + """Those with bypass permission at the repository level can bypass""" + REPOSITORY + """Those with bypass permission at the organization level can bypass""" + ORGANIZATION +} + +"""The level of enforcement for a rule or ruleset.""" +enum RuleEnforcement { + """Do not evaluate or enforce rules""" + DISABLED + """Rules will be enforced""" + ACTIVE + """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 | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters | PullRequestParameters | RequiredDeploymentsParameters | RequiredStatusChecksParameters | TagNamePatternParameters | UpdateParameters + +"""Specifies the parameters for a `RepositoryRule` object. Only one of the fields should be specified.""" +input RuleParametersInput { + """Parameters used for the `update` rule type""" + update: UpdateParametersInput + """Parameters used for the `required_deployments` rule type""" + requiredDeployments: RequiredDeploymentsParametersInput + """Parameters used for the `pull_request` rule type""" + pullRequest: PullRequestParametersInput + """Parameters used for the `required_status_checks` rule type""" + requiredStatusChecks: RequiredStatusChecksParametersInput + """Parameters used for the `commit_message_pattern` rule type""" + commitMessagePattern: CommitMessagePatternParametersInput + """Parameters used for the `commit_author_email_pattern` rule type""" + commitAuthorEmailPattern: CommitAuthorEmailPatternParametersInput + """Parameters used for the `committer_email_pattern` rule type""" + committerEmailPattern: CommitterEmailPatternParametersInput + """Parameters used for the `branch_name_pattern` rule type""" + branchNamePattern: BranchNamePatternParametersInput + """Parameters used for the `tag_name_pattern` rule type""" + tagNamePattern: TagNamePatternParametersInput +} + +"""Types which can have `RepositoryRule` objects.""" +union RuleSource = Organization | Repository """The possible digest algorithms used to sign SAML requests for an identity provider.""" enum SamlDigestAlgorithm { - """SHA1""" - SHA1 - """SHA256""" - SHA256 - """SHA384""" - SHA384 - """SHA512""" - SHA512 + """SHA1""" + SHA1 + """SHA256""" + SHA256 + """SHA384""" + SHA384 + """SHA512""" + SHA512 } """The possible signature algorithms used to sign SAML requests for a Identity Provider.""" enum SamlSignatureAlgorithm { - """RSA-SHA1""" - RSA_SHA1 - """RSA-SHA256""" - RSA_SHA256 - """RSA-SHA384""" - RSA_SHA384 - """RSA-SHA512""" - RSA_SHA512 + """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 { - """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 - id: ID! - """The title of the saved reply.""" - title: String! - """The user that saved this reply.""" - user: Actor + """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 + 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! + """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 + """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 { - """The field to order saved replies by.""" - field: SavedReplyOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order saved replies by.""" + field: SavedReplyOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which saved reply connections can be ordered.""" enum SavedReplyOrderField { - """Order saved reply by when they were updated.""" - UPDATED_AT + """Order saved reply by when they were updated.""" + UPDATED_AT } """The results of a search.""" @@ -23763,285 +25848,291 @@ union SearchResultItem = App | Discussion | Issue | MarketplaceListing | Organiz """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! - """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! + """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! + """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] + """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] } """A shortcut for a search with specified filters""" -type SearchShortcut implements Node { - """The color of the shortcut.""" - color: SearchShortcutColor! - """The description of the shortcut.""" - description: String! - """The icon of the shortcut.""" - icon: SearchShortcutIcon! - id: ID! - """The name of the shortcut.""" - name: String! - """The filter string of the shortcut.""" - query: String! - """A parsed set of terms from the query string of this shortcut.""" - queryTerms: [SearchShortcutQueryTermsItem!]! - """The repository scoping the shortcut.""" - scopingRepository: Repository - """The type of the shortcut.""" - searchType: SearchShortcutType! +type SearchShortcut implements Node & Shortcutable { + """The color of the shortcut.""" + color: SearchShortcutColor! + """The description of the shortcut.""" + description: String! + """The icon of the shortcut.""" + icon: SearchShortcutIcon! + id: ID! + """The name of the shortcut.""" + name: String! + """The filter string of the shortcut.""" + query: String! + """A parsed set of terms from the query string of this shortcut.""" + queryTerms: [SearchShortcutQueryTermsItem!]! + """The repository scoping the shortcut.""" + scopingRepository: Repository + """The type of the shortcut.""" + searchType: SearchShortcutType! } """Search shortcut attributes.""" input SearchShortcutAttributes { - """The name of the shortcut.""" - name: String! - """The search query for the shortcut.""" - query: String = "" - """The description for the shortcut.""" - description: String = "" - """The search type for the shortcut.""" - searchType: SearchShortcutType! - """The icon for the shortcut.""" - icon: SearchShortcutIcon! - """The color for the shortcut.""" - color: SearchShortcutColor! - """The repository acting as a scope for filtering shortcut query terms.""" - scopingRepository: RepositoryNameWithOwner + """The name of the shortcut.""" + name: String! + """The search query for the shortcut.""" + query: String = "" + """The description for the shortcut.""" + description: String = "" + """The search type for the shortcut.""" + searchType: SearchShortcutType! + """The icon for the shortcut.""" + icon: SearchShortcutIcon! + """The color for the shortcut.""" + color: SearchShortcutColor! + """The repository acting as a scope for filtering shortcut query terms.""" + scopingRepository: RepositoryNameWithOwner } """A color for a search shortcut""" enum SearchShortcutColor { - """Gray search shortcut color""" - GRAY - """Blue search shortcut color""" - BLUE - """Green search shortcut color""" - GREEN - """Orange search shortcut color""" - ORANGE - """Red search shortcut color""" - RED - """Pink search shortcut color""" - PINK - """Purple search shortcut color""" - PURPLE + """Gray search shortcut color""" + GRAY + """Blue search shortcut color""" + BLUE + """Green search shortcut color""" + GREEN + """Orange search shortcut color""" + ORANGE + """Red search shortcut color""" + RED + """Pink search shortcut color""" + PINK + """Purple search shortcut color""" + PURPLE } """The connection type for SearchShortcut.""" type SearchShortcutConnection { - """A list of edges.""" - edges: [SearchShortcutEdge] - """A list of nodes.""" - nodes: [SearchShortcut] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [SearchShortcutEdge] + """A list of nodes.""" + nodes: [SearchShortcut] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type SearchShortcutEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: SearchShortcut + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: SearchShortcut } """The icon for a search shortcut""" enum SearchShortcutIcon { - """Zap search shortcut icon""" - ZAP - """Issue opened search shortcut icon""" - ISSUE_OPENED - """Git pull request search shortcut icon""" - GIT_PULL_REQUEST - """Comment discussion search shortcut icon""" - COMMENT_DISCUSSION - """Organization search shortcut icon""" - ORGANIZATION - """People search shortcut icon""" - PEOPLE - """Briefcase search shortcut icon""" - BRIEFCASE - """File diff search shortcut icon""" - FILE_DIFF - """Code review search shortcut icon""" - CODE_REVIEW - """Codescan search shortcut icon""" - CODESCAN - """Terminal search shortcut icon""" - TERMINAL - """Tools search shortcut icon""" - TOOLS - """Beaker search shortcut icon""" - BEAKER - """Alert search shortcut icon""" - ALERT - """Eye search shortcut icon""" - EYE - """Telescope search shortcut icon""" - TELESCOPE - """Bookmark search shortcut icon""" - BOOKMARK - """Calendar search shortcut icon""" - CALENDAR - """Meter search shortcut icon""" - METER - """Moon search shortcut icon""" - MOON - """Sun search shortcut icon""" - SUN - """Flame search shortcut icon""" - FLAME - """Bug search shortcut icon""" - BUG - """North star search shortcut icon""" - NORTH_STAR - """Rocket search shortcut icon""" - ROCKET - """Squirrel search shortcut icon""" - SQUIRREL - """Hubot search shortcut icon""" - HUBOT - """Dependabot search shortcut icon""" - DEPENDABOT + """Zap search shortcut icon""" + ZAP + """Issue opened search shortcut icon""" + ISSUE_OPENED + """Git pull request search shortcut icon""" + GIT_PULL_REQUEST + """Comment discussion search shortcut icon""" + COMMENT_DISCUSSION + """Organization search shortcut icon""" + ORGANIZATION + """People search shortcut icon""" + PEOPLE + """Briefcase search shortcut icon""" + BRIEFCASE + """File diff search shortcut icon""" + FILE_DIFF + """Code review search shortcut icon""" + CODE_REVIEW + """Codescan search shortcut icon""" + CODESCAN + """Terminal search shortcut icon""" + TERMINAL + """Tools search shortcut icon""" + TOOLS + """Beaker search shortcut icon""" + BEAKER + """Alert search shortcut icon""" + ALERT + """Eye search shortcut icon""" + EYE + """Telescope search shortcut icon""" + TELESCOPE + """Bookmark search shortcut icon""" + BOOKMARK + """Calendar search shortcut icon""" + CALENDAR + """Meter search shortcut icon""" + METER + """Moon search shortcut icon""" + MOON + """Sun search shortcut icon""" + SUN + """Flame search shortcut icon""" + FLAME + """Bug search shortcut icon""" + BUG + """North star search shortcut icon""" + NORTH_STAR + """Rocket search shortcut icon""" + ROCKET + """Squirrel search shortcut icon""" + SQUIRREL + """Hubot search shortcut icon""" + HUBOT + """Dependabot search shortcut icon""" + DEPENDABOT + """Clock search shortcut icon""" + CLOCK + """Smiley search shortcut icon""" + SMILEY + """Mention search shortcut icon""" + MENTION } """A search shortcut query term""" interface SearchShortcutQueryBasicTerm { - """The text of a term of a search shortcut query""" - term: String! + """The text of a term of a search shortcut query""" + term: String! } """Known discussion catregory term and value extracted from a search shortcut query string""" type SearchShortcutQueryCategoryTerm implements SearchShortcutQueryBasicTerm & SearchShortcutQueryParsedTerm { - """The discussion category that the term refers to.""" - discussionCategory: DiscussionCategory - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The text of a term of a search shortcut query""" - term: String! - """The value of the query term""" - value: String! + """The discussion category that the term refers to.""" + discussionCategory: DiscussionCategory + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The text of a term of a search shortcut query""" + term: String! + """The value of the query term""" + value: String! } """Known label term and value extracted from a search shortcut query string""" type SearchShortcutQueryLabelTerm implements SearchShortcutQueryBasicTerm & SearchShortcutQueryParsedTerm { - """The label referenced in this term""" - label: Label - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The text of a term of a search shortcut query""" - term: String! - """The value of the query term""" - value: String! + """The label referenced in this term""" + label: Label + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The text of a term of a search shortcut query""" + term: String! + """The value of the query term""" + value: String! } """Known login term and value extracted from a search shortcut query string""" type SearchShortcutQueryLoginRefTerm implements SearchShortcutQueryBasicTerm & SearchShortcutQueryParsedTerm { - """ - "The user, bot, or organization that the term refers to." - """ - loginRef: SearchShortcutQueryTermsLoginReference - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The text of a term of a search shortcut query""" - term: String! - """The value of the query term""" - value: String! + """ + "The user, bot, or organization that the term refers to." + """ + loginRef: SearchShortcutQueryTermsLoginReference + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The text of a term of a search shortcut query""" + term: String! + """The value of the query term""" + value: String! } """Known milestone term and value extracted from a search shortcut query string""" type SearchShortcutQueryMilestoneTerm implements SearchShortcutQueryBasicTerm & SearchShortcutQueryParsedTerm { - """The milestone referenced in this term""" - milestone: Milestone - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The text of a term of a search shortcut query""" - term: String! - """The value of the query term""" - value: String! + """The milestone referenced in this term""" + milestone: Milestone + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The text of a term of a search shortcut query""" + term: String! + """The value of the query term""" + value: String! } """A known search shortcut query term""" interface SearchShortcutQueryParsedTerm { - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The value of the query term""" - value: String! + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The value of the query term""" + value: String! } """Known project term and value extracted from a search shortcut query string""" type SearchShortcutQueryProjectTerm implements SearchShortcutQueryBasicTerm & SearchShortcutQueryParsedTerm { - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The project referenced in this term""" - project: Project - """The text of a term of a search shortcut query""" - term: String! - """The value of the query term""" - value: String! + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The project referenced in this term""" + project: Project + """The text of a term of a search shortcut query""" + term: String! + """The value of the query term""" + value: String! } """Known repository term and value extracted from a search shortcut query string""" type SearchShortcutQueryRepoTerm implements SearchShortcutQueryBasicTerm & SearchShortcutQueryParsedTerm { - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The repository referenced in this term""" - repository: Repository - """The text of a term of a search shortcut query""" - term: String! - """The value of the query term""" - value: String! + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The repository referenced in this term""" + repository: Repository + """The text of a term of a search shortcut query""" + term: String! + """The value of the query term""" + value: String! } """Known term and value extracted from a search shortcut query string""" type SearchShortcutQueryTerm implements SearchShortcutQueryBasicTerm & SearchShortcutQueryParsedTerm { - """The name of the query term""" - name: String! - """Whether the query term is negative""" - negative: Boolean! - """The text of a term of a search shortcut query""" - term: String! - """The value of the query term""" - value: String! + """The name of the query term""" + name: String! + """Whether the query term is negative""" + negative: Boolean! + """The text of a term of a search shortcut query""" + term: String! + """The value of the query term""" + value: String! } """A search shortcut query term entry.""" @@ -24052,573 +26143,676 @@ union SearchShortcutQueryTermsLoginReference = Bot | Mannequin | Organization | """Freeform text value extracted from a search shortcut query string""" type SearchShortcutQueryText implements SearchShortcutQueryBasicTerm { - """The text of a term of a search shortcut query""" - term: String! + """The text of a term of a search shortcut query""" + term: String! } """The type of search for a search shortcut""" enum SearchShortcutType { - """Issues search shortcut type""" - ISSUES - """Pull requests search shortcut type""" - PULL_REQUESTS - """Discussions search shortcut type""" - DISCUSSIONS + """Issues search shortcut type""" + ISSUES + """Pull requests search shortcut type""" + PULL_REQUESTS + """Discussions search shortcut type""" + DISCUSSIONS } """Represents the individual results of a search.""" enum SearchType { - """Returns results matching issues in repositories.""" - ISSUE - """Returns results matching repositories.""" - REPOSITORY - """Returns results matching users and organizations on GitHub.""" - USER - """Returns matching discussions in repositories.""" - DISCUSSION + """Returns results matching issues in repositories.""" + ISSUE + """Returns results matching repositories.""" + REPOSITORY + """Returns results matching users and organizations on GitHub.""" + USER + """Returns matching discussions in repositories.""" + DISCUSSION } """A GitHub Security Advisory""" type SecurityAdvisory implements Node { - """The classification of the advisory""" - classification: SecurityAdvisoryClassification! - """The CVSS associated with this advisory""" - cvss: CVSS! - """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 GitHub Security Advisory ID""" - ghsaId: String! - id: ID! - """A list of identifiers for this advisory""" - identifiers: [SecurityAdvisoryIdentifier!]! - """The permalink for the advisory's dependabot alerts page""" - notificationsPermalink: URI - """The organization that originated the advisory""" - origin: String! - """The permalink for the advisory""" - permalink: URI - """When the advisory was published""" - publishedAt: DateTime! - """A list of references for this advisory""" - references: [SecurityAdvisoryReference!]! - """The severity of the advisory""" - severity: SecurityAdvisorySeverity! - """A short plaintext summary of the advisory""" - summary: String! - """When the advisory was last updated""" - updatedAt: DateTime! - """Vulnerabilities associated with this Advisory""" - vulnerabilities( - """Ordering options for the returned topics.""" - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} - """An ecosystem to filter vulnerabilities by.""" - ecosystem: SecurityAdvisoryEcosystem - """A package name to filter vulnerabilities by.""" - package: String - """A list of severities to filter vulnerabilities by.""" - severities: [SecurityAdvisorySeverity!] - """A list of advisory classifications to filter vulnerabilities by.""" - classifications: [SecurityAdvisoryClassification!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): SecurityVulnerabilityConnection! - """When the advisory was withdrawn, if it has been withdrawn""" - withdrawnAt: DateTime + """The classification of the advisory""" + classification: SecurityAdvisoryClassification! + """The CVSS associated with this advisory""" + cvss: CVSS! + """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 GitHub Security Advisory ID""" + ghsaId: String! + id: ID! + """A list of identifiers for this advisory""" + identifiers: [SecurityAdvisoryIdentifier!]! + """The permalink for the advisory's dependabot alerts page""" + notificationsPermalink: URI + """The organization that originated the advisory""" + origin: String! + """The permalink for the advisory""" + permalink: URI + """When the advisory was published""" + publishedAt: DateTime! + """A list of references for this advisory""" + references: [SecurityAdvisoryReference!]! + """The severity of the advisory""" + severity: SecurityAdvisorySeverity! + """A short plaintext summary of the advisory""" + summary: String! + """When the advisory was last updated""" + updatedAt: DateTime! + """Vulnerabilities associated with this Advisory""" + vulnerabilities( + """Ordering options for the returned topics.""" + orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} + """An ecosystem to filter vulnerabilities by.""" + ecosystem: SecurityAdvisoryEcosystem + """A package name to filter vulnerabilities by.""" + package: String + """A list of severities to filter vulnerabilities by.""" + severities: [SecurityAdvisorySeverity!] + """A list of advisory classifications to filter vulnerabilities by.""" + classifications: [SecurityAdvisoryClassification!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): SecurityVulnerabilityConnection! + """When the advisory was withdrawn, if it has been withdrawn""" + withdrawnAt: DateTime } """Classification of the advisory.""" enum SecurityAdvisoryClassification { - """Classification of general advisories.""" - GENERAL - """Classification of malware advisories.""" - MALWARE + """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! + """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 { - """PHP packages hosted at packagist.org""" - COMPOSER - """Erlang/Elixir packages hosted at hex.pm""" - ERLANG - """GitHub Actions""" - ACTIONS - """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 + """PHP packages hosted at packagist.org""" + COMPOSER + """Erlang/Elixir packages hosted at hex.pm""" + ERLANG + """GitHub Actions""" + ACTIONS + """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 } """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 cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: SecurityAdvisory } """A GitHub Security Advisory Identifier""" type SecurityAdvisoryIdentifier { - """The identifier type, e.g. GHSA, CVE""" - type: String! - """The identifier""" - value: String! + """The identifier type, e.g. GHSA, CVE""" + type: String! + """The identifier""" + value: String! } """An advisory identifier to filter results on.""" input SecurityAdvisoryIdentifierFilter { - """The identifier type.""" - type: SecurityAdvisoryIdentifierType! - """The identifier string. Supports exact or partial matching.""" - value: String! + """The identifier type.""" + type: SecurityAdvisoryIdentifierType! + """The identifier string. Supports exact or partial matching.""" + value: String! } """Identifier formats available for advisories.""" enum SecurityAdvisoryIdentifierType { - """Common Vulnerabilities and Exposures Identifier.""" - CVE - """GitHub Security Advisory ID.""" - GHSA + """Common Vulnerabilities and Exposures Identifier.""" + CVE + """GitHub Security Advisory ID.""" + GHSA } """Ordering options for security advisory connections""" input SecurityAdvisoryOrder { - """The field to order security advisories by.""" - field: SecurityAdvisoryOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order security advisories by.""" + field: SecurityAdvisoryOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which security advisory connections can be ordered.""" enum SecurityAdvisoryOrderField { - """Order advisories by publication time""" - PUBLISHED_AT - """Order advisories by update time""" - UPDATED_AT + """Order advisories by publication time""" + PUBLISHED_AT + """Order advisories by update time""" + UPDATED_AT } """An individual package""" type SecurityAdvisoryPackage { - """The ecosystem the package belongs to, e.g. RUBYGEMS, NPM""" - ecosystem: SecurityAdvisoryEcosystem! - """The package name""" - name: String! + """The ecosystem the package belongs to, e.g. RUBYGEMS, NPM""" + ecosystem: SecurityAdvisoryEcosystem! + """The package name""" + name: String! } """An individual package version""" type SecurityAdvisoryPackageVersion { - """The package name or version""" - identifier: String! + """The package name or version""" + identifier: String! } """A GitHub Security Advisory Reference""" type SecurityAdvisoryReference { - """A publicly accessible reference""" - url: URI! + """A publicly accessible reference""" + url: URI! } """Severity of the vulnerability.""" enum SecurityAdvisorySeverity { - """Low.""" - LOW - """Moderate.""" - MODERATE - """High.""" - HIGH - """Critical.""" - CRITICAL + """Low.""" + LOW + """Moderate.""" + MODERATE + """High.""" + HIGH + """Critical.""" + CRITICAL } """An individual vulnerability within an Advisory""" type SecurityVulnerability { - """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 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! + """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 + """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 { - """The field to order security vulnerabilities by.""" - field: SecurityVulnerabilityOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order security vulnerabilities by.""" + field: SecurityVulnerabilityOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which security vulnerability connections can be ordered.""" enum SecurityVulnerabilityOrderField { - """Order vulnerability by update time""" - UPDATED_AT + """Order vulnerability by update time""" + UPDATED_AT } """Autogenerated input type of SetDashboardFeedFilters""" input SetDashboardFeedFiltersInput { - """Filter groups that are enabled""" - filterGroups: [DashboardFeedFilterGroup!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Filter groups that are enabled""" + filterGroups: [DashboardFeedFilterGroup!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of SetDashboardFeedFilters""" type SetDashboardFeedFiltersPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The filter settings for this feed""" - filters: [FeedFilter!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The filter settings for this feed""" + filters: [FeedFilter!] } """Autogenerated input type of SetDashboardSearchShortcuts""" input SetDashboardSearchShortcutsInput { - """A list of shortcut inputs to replace existing shortcuts with.""" - shortcuts: [SearchShortcutAttributes!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A list of shortcut inputs to replace existing shortcuts with.""" + shortcuts: [SearchShortcutAttributes!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of SetDashboardSearchShortcuts""" type SetDashboardSearchShortcutsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The dashboard owning the shortcuts""" - dashboard: UserDashboard - """The new shortcuts.""" - shortcuts: [SearchShortcut!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The dashboard owning the shortcuts""" + dashboard: UserDashboard + """The new shortcuts.""" + shortcuts: [SearchShortcut!] } """Autogenerated input type of SetEnterpriseIdentityProvider""" input SetEnterpriseIdentityProviderInput { - """The ID of the enterprise on which to set an identity provider.""" - enterpriseId: ID! - """The URL endpoint for the identity provider's SAML SSO.""" - ssoUrl: URI! - """The Issuer Entity ID for the SAML identity provider""" - issuer: String - """The x509 certificate used by the identity provider to sign assertions and responses.""" - idpCertificate: String! - """The signature algorithm used to sign SAML requests for the identity provider.""" - signatureMethod: SamlSignatureAlgorithm! - """The digest algorithm used to sign SAML requests for the identity provider.""" - digestMethod: SamlDigestAlgorithm! - """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! + """The URL endpoint for the identity provider's SAML SSO.""" + ssoUrl: URI! + """The Issuer Entity ID for the SAML identity provider""" + issuer: String + """The x509 certificate used by the identity provider to sign assertions and responses.""" + idpCertificate: String! + """The signature algorithm used to sign SAML requests for the identity provider.""" + signatureMethod: SamlSignatureAlgorithm! + """The digest algorithm used to sign SAML requests for the identity provider.""" + digestMethod: SamlDigestAlgorithm! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The identity provider for the enterprise.""" + identityProvider: EnterpriseIdentityProvider } """Autogenerated input type of SetLabelsForLabelable""" input SetLabelsForLabelableInput { - """The id of the labelable object to set the labels for.""" - labelableId: ID! - """An array of Node IDs of labels for this issue.""" - labelIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The id of the labelable object to set the labels for.""" + labelableId: ID! + """An array of Node IDs of labels for this issue.""" + labelIds: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of SetLabelsForLabelable""" type SetLabelsForLabelablePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The item that was labeled.""" - labelableRecord: Labelable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The item that was labeled.""" + labelableRecord: Labelable } """Autogenerated input type of SetOrganizationInteractionLimit""" input SetOrganizationInteractionLimitInput { - """The ID of the organization to set a limit for.""" - organizationId: ID! - """The limit to set.""" - limit: RepositoryInteractionLimit! - """When this limit should expire.""" - expiry: RepositoryInteractionLimitExpiry - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the organization to set a limit for.""" + organizationId: ID! + """The limit to set.""" + limit: RepositoryInteractionLimit! + """When this limit should expire.""" + expiry: RepositoryInteractionLimitExpiry + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 SetRepositoryInteractionLimit""" input SetRepositoryInteractionLimitInput { - """The ID of the repository to set a limit for.""" - repositoryId: ID! - """The limit to set.""" - limit: RepositoryInteractionLimit! - """When this limit should expire.""" - expiry: RepositoryInteractionLimitExpiry - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the repository to set a limit for.""" + repositoryId: ID! + """The limit to set.""" + limit: RepositoryInteractionLimit! + """When this limit should expire.""" + expiry: RepositoryInteractionLimitExpiry + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the user to set a limit for.""" - userId: ID! - """The limit to set.""" - limit: RepositoryInteractionLimit! - """When this limit should expire.""" - expiry: RepositoryInteractionLimitExpiry - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the user to set a limit for.""" + userId: ID! + """The limit to set.""" + limit: RepositoryInteractionLimit! + """When this limit should expire.""" + expiry: RepositoryInteractionLimitExpiry + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The user that the interaction limit was set for.""" + user: User +} + +"""Represents an object which implements all the properties for a shortcut. Typically a search shortcut or a team search shortcut.""" +interface Shortcutable { + """The color of the shortcut.""" + color: SearchShortcutColor! + """The description of the shortcut.""" + description: String! + """The icon of the shortcut.""" + icon: SearchShortcutIcon! + """The id of the shortcut""" + id: ID! + """The name of the shortcut.""" + name: String! + """The filter string of the shortcut.""" + query: String! + """A parsed set of terms from the query string of this shortcut.""" + queryTerms: [SearchShortcutQueryTermsItem!]! + """The repository scoping the shortcut.""" + scopingRepository: Repository + """The type of the shortcut.""" + searchType: SearchShortcutType! } """Represents an S/MIME signature on a Commit or Tag.""" type SmimeSignature implements GitSignature { - """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! - """True if the signature was made with GitHub's signing key.""" - wasSignedByGitHub: Boolean! + """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! + """True if the signature was made with GitHub's signing key.""" + wasSignedByGitHub: Boolean! +} + +"""Social media profile associated with a user.""" +type SocialAccount { + """Name of the social media account as it appears on the profile.""" + displayName: String! + """URL of the appropriate icon to use for this social media account. May be null if an octicon is used instead.""" + iconUrl: URI + """Name of the octicon to use for this social media account. May be null if an iconURL is used instead.""" + octicon: 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 { + """Catch-all for social media providers that do not yet have specific handling.""" + GENERIC + """Social media and networking website.""" + FACEBOOK + """Fork of Mastodon with a greater focus on local posting.""" + HOMETOWN + """Social media website with a focus on photo and video sharing.""" + INSTAGRAM + """Professional networking website.""" + LINKEDIN + """Open-source federated microblogging service.""" + MASTODON + """Social news aggregation and discussion website.""" + REDDIT + """Live-streaming service.""" + TWITCH + """Microblogging website.""" + TWITTER + """Online video platform.""" + YOUTUBE } """Represents a sort by field and direction.""" type SortBy { - """The direction of the sorting. Possible values are ASC and DESC.""" - direction: OrderDirection! - """The id of the field by which the column is sorted.""" - field: Int! + """The direction of the sorting. Possible values are ASC and DESC.""" + direction: OrderDirection! + """The id of the field by which the column is sorted.""" + field: Int! } """Represents a spoken language.""" type SpokenLanguage { - """A two-character code representing the current spoken language, e.g., "es".""" - code: String! - """The name of the current spoken language, e.g., "Spanish".""" - name: String! + """A two-character code representing the current spoken language, e.g., "es".""" + code: String! + """The name of the current spoken language, e.g., "Spanish".""" + name: String! } """Entities that can sponsor others via GitHub Sponsors""" union Sponsor = Organization | User -"""Entities that can be sponsored through GitHub Sponsors""" +"""Entities that can sponsor or be sponsored through GitHub Sponsors.""" interface Sponsorable { - """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! - """Check if 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! - """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 - """If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see.""" - tierId: ID - """Ordering options for sponsors returned from the connection.""" - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} - ): SponsorConnection! - """Events involving this sponsorable, such as new sponsorships.""" - sponsorsActivities( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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 - """Ordering options for activity returned from the connection.""" - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} - """Filter activities to only the specified actions.""" - actions: [SponsorsActivityAction!] = [] - ): 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. Only returns a sponsorship if it is active.""" - sponsorshipForViewerAsSponsor: Sponsorship - """The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. Only returns a sponsorship if it is active.""" - sponsorshipForViewerAsSponsorable: 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! - """This object's sponsorships as the maintainer.""" - sponsorshipsAsMaintainer( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Whether or not to include private sponsorships in the result set""" - includePrivate: Boolean = false - """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! - """This object's sponsorships as the sponsor.""" - sponsorshipsAsSponsor( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.""" - orderBy: SponsorshipOrder - ): SponsorshipConnection! - """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! + """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! + """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 + """If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see.""" + tierId: ID + """Ordering options for sponsors returned from the connection.""" + orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + ): SponsorConnection! + """Events involving this sponsorable, such as new sponsorships.""" + sponsorsActivities( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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 + """Ordering options for activity returned from the connection.""" + orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} + """Filter activities to only the specified actions.""" + actions: [SponsorsActivityAction!] = [] + """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 + ): 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( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Whether or not to include private sponsorships in the result set""" + includePrivate: Boolean = false + """Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.""" + orderBy: SponsorshipOrder + """Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received.""" + activeOnly: Boolean = true + ): SponsorshipConnection! + """The sponsorships where this user or organization is the funder.""" + sponsorshipsAsSponsor( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.""" + orderBy: SponsorshipOrder + """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!] + """Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made.""" + activeOnly: Boolean = true + ): 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 that occurred before this time.""" + until: DateTime + """Filter payments to those made to the users or organizations with the specified usernames.""" + sponsorableLogins: [String!] = [] + ): 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""" @@ -24626,676 +26820,1267 @@ union SponsorableItem = 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! + """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 + """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 { - """The field to order sponsorable entities by.""" - field: SponsorableOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order sponsorable entities by.""" + field: SponsorableOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which sponsorable connections can be ordered.""" enum SponsorableOrderField { - """Order sponsorable entities by login (username).""" - LOGIN + """Order sponsorable entities by login (username).""" + LOGIN } """The connection type for Sponsor.""" 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Sponsor } """A feed item representing the act of an entity being sponsored""" type SponsoredUserFeedItem implements FeedItemDisplayable { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The actor who performed the sponsor action""" - sponsor: Sponsor! - """The subject that was sponsored""" - sponsorable: SponsorableItem! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The actor who performed the sponsor action""" + sponsor: Sponsor! + """The subject that was sponsored""" + sponsorable: SponsorableItem! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! } """Ordering options for connections to get sponsor entities for GitHub Sponsors.""" input SponsorOrder { - """The field to order sponsor entities by.""" - field: SponsorOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order sponsor entities by.""" + field: SponsorOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which sponsor connections can be ordered.""" enum SponsorOrderField { - """Order sponsorable entities by login (username).""" - LOGIN - """Order sponsors by their relevance to the viewer.""" - RELEVANCE + """Order sponsorable entities by login (username).""" + LOGIN + """Order sponsors by their relevance to the viewer.""" + RELEVANCE } """An event related to sponsorship activity.""" type SponsorsActivity implements Node { - """What action this activity indicates took place.""" - action: SponsorsActivityAction! - id: ID! - """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 + """What action this activity indicates took place.""" + action: SponsorsActivityAction! + id: ID! + """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 { - """The activity was starting a sponsorship.""" - NEW_SPONSORSHIP - """The activity was cancelling a sponsorship.""" - CANCELLED_SPONSORSHIP - """The activity was changing the sponsorship tier, either directly by the sponsor or by a scheduled/pending change.""" - TIER_CHANGE - """The activity was funds being refunded to the sponsor or GitHub.""" - REFUND - """The activity was scheduling a downgrade or cancellation.""" - PENDING_CHANGE - """The activity was disabling matching for a previously matched sponsorship.""" - SPONSOR_MATCH_DISABLED + """The activity was starting a sponsorship.""" + NEW_SPONSORSHIP + """The activity was cancelling a sponsorship.""" + CANCELLED_SPONSORSHIP + """The activity was changing the sponsorship tier, either directly by the sponsor or by a scheduled/pending change.""" + TIER_CHANGE + """The activity was funds being refunded to the sponsor or GitHub.""" + REFUND + """The activity was scheduling a downgrade or cancellation.""" + PENDING_CHANGE + """The activity was disabling matching for a previously matched sponsorship.""" + SPONSOR_MATCH_DISABLED } """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! + """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 + """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 { - """The field to order activity by.""" - field: SponsorsActivityOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order activity by.""" + field: SponsorsActivityOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which GitHub Sponsors activity connections can be ordered.""" enum SponsorsActivityOrderField { - """Order activities by when they happened.""" - TIMESTAMP + """Order activities by when they happened.""" + TIMESTAMP } """The possible time periods for which Sponsors activities can be requested.""" enum SponsorsActivityPeriod { - """The previous calendar day.""" - DAY - """The previous seven days.""" - WEEK - """The previous thirty days.""" - MONTH - """Don't restrict the activity to any date range, include all activity.""" - ALL + """The previous calendar day.""" + DAY + """The previous seven days.""" + WEEK + """The previous thirty days.""" + MONTH + """Don't restrict the activity to any date range, include all activity.""" + ALL +} + +"""Represents countries or regions for billing and residence for a GitHub Sponsors profile.""" +enum SponsorsCountryOrRegionCode { + """Afghanistan""" + AF + """Åland""" + AX + """Albania""" + AL + """Algeria""" + DZ + """American Samoa""" + AS + """Andorra""" + AD + """Angola""" + AO + """Anguilla""" + AI + """Antarctica""" + AQ + """Antigua and Barbuda""" + AG + """Argentina""" + AR + """Armenia""" + AM + """Aruba""" + AW + """Australia""" + AU + """Austria""" + AT + """Azerbaijan""" + AZ + """Bahamas""" + BS + """Bahrain""" + BH + """Bangladesh""" + BD + """Barbados""" + BB + """Belarus""" + BY + """Belgium""" + BE + """Belize""" + BZ + """Benin""" + BJ + """Bermuda""" + BM + """Bhutan""" + BT + """Bolivia""" + BO + """Bonaire, Sint Eustatius and Saba""" + BQ + """Bosnia and Herzegovina""" + BA + """Botswana""" + BW + """Bouvet Island""" + BV + """Brazil""" + BR + """British Indian Ocean Territory""" + IO + """Brunei Darussalam""" + BN + """Bulgaria""" + BG + """Burkina Faso""" + BF + """Burundi""" + BI + """Cambodia""" + KH + """Cameroon""" + CM + """Canada""" + CA + """Cape Verde""" + CV + """Cayman Islands""" + KY + """Central African Republic""" + CF + """Chad""" + TD + """Chile""" + CL + """China""" + CN + """Christmas Island""" + CX + """Cocos (Keeling) Islands""" + CC + """Colombia""" + CO + """Comoros""" + KM + """Congo (Brazzaville)""" + CG + """Congo (Kinshasa)""" + CD + """Cook Islands""" + CK + """Costa Rica""" + CR + """Côte d'Ivoire""" + CI + """Croatia""" + HR + """Curaçao""" + CW + """Cyprus""" + CY + """Czech Republic""" + CZ + """Denmark""" + DK + """Djibouti""" + DJ + """Dominica""" + DM + """Dominican Republic""" + DO + """Ecuador""" + EC + """Egypt""" + EG + """El Salvador""" + SV + """Equatorial Guinea""" + GQ + """Eritrea""" + ER + """Estonia""" + EE + """Ethiopia""" + ET + """Falkland Islands""" + FK + """Faroe Islands""" + FO + """Fiji""" + FJ + """Finland""" + FI + """France""" + FR + """French Guiana""" + GF + """French Polynesia""" + PF + """French Southern Lands""" + TF + """Gabon""" + GA + """Gambia""" + GM + """Georgia""" + GE + """Germany""" + DE + """Ghana""" + GH + """Gibraltar""" + GI + """Greece""" + GR + """Greenland""" + GL + """Grenada""" + GD + """Guadeloupe""" + GP + """Guam""" + GU + """Guatemala""" + GT + """Guernsey""" + GG + """Guinea""" + GN + """Guinea-Bissau""" + GW + """Guyana""" + GY + """Haiti""" + HT + """Heard and McDonald Islands""" + HM + """Honduras""" + HN + """Hong Kong""" + HK + """Hungary""" + HU + """Iceland""" + IS + """India""" + IN + """Indonesia""" + ID + """Iran""" + IR + """Iraq""" + IQ + """Ireland""" + IE + """Isle of Man""" + IM + """Israel""" + IL + """Italy""" + IT + """Jamaica""" + JM + """Japan""" + JP + """Jersey""" + JE + """Jordan""" + JO + """Kazakhstan""" + KZ + """Kenya""" + KE + """Kiribati""" + KI + """Korea, South""" + KR + """Kuwait""" + KW + """Kyrgyzstan""" + KG + """Laos""" + LA + """Latvia""" + LV + """Lebanon""" + LB + """Lesotho""" + LS + """Liberia""" + LR + """Libya""" + LY + """Liechtenstein""" + LI + """Lithuania""" + LT + """Luxembourg""" + LU + """Macau""" + MO + """Macedonia""" + MK + """Madagascar""" + MG + """Malawi""" + MW + """Malaysia""" + MY + """Maldives""" + MV + """Mali""" + ML + """Malta""" + MT + """Marshall Islands""" + MH + """Martinique""" + MQ + """Mauritania""" + MR + """Mauritius""" + MU + """Mayotte""" + YT + """Mexico""" + MX + """Micronesia""" + FM + """Moldova""" + MD + """Monaco""" + MC + """Mongolia""" + MN + """Montenegro""" + ME + """Montserrat""" + MS + """Morocco""" + MA + """Mozambique""" + MZ + """Myanmar""" + MM + """Namibia""" + NA + """Nauru""" + NR + """Nepal""" + NP + """Netherlands""" + NL + """New Caledonia""" + NC + """New Zealand""" + NZ + """Nicaragua""" + NI + """Niger""" + NE + """Nigeria""" + NG + """Niue""" + NU + """Norfolk Island""" + NF + """Northern Mariana Islands""" + MP + """Norway""" + NO + """Oman""" + OM + """Pakistan""" + PK + """Palau""" + PW + """Palestine""" + PS + """Panama""" + PA + """Papua New Guinea""" + PG + """Paraguay""" + PY + """Peru""" + PE + """Philippines""" + PH + """Pitcairn""" + PN + """Poland""" + PL + """Portugal""" + PT + """Puerto Rico""" + PR + """Qatar""" + QA + """Reunion""" + RE + """Romania""" + RO + """Russian Federation""" + RU + """Rwanda""" + RW + """Saint Barthélemy""" + BL + """Saint Helena""" + SH + """Saint Kitts and Nevis""" + KN + """Saint Lucia""" + LC + """Saint Martin (French part)""" + MF + """Saint Pierre and Miquelon""" + PM + """Saint Vincent and the Grenadines""" + VC + """Samoa""" + WS + """San Marino""" + SM + """Sao Tome and Principe""" + ST + """Saudi Arabia""" + SA + """Senegal""" + SN + """Serbia""" + RS + """Seychelles""" + SC + """Sierra Leone""" + SL + """Singapore""" + SG + """Sint Maarten (Dutch part)""" + SX + """Slovakia""" + SK + """Slovenia""" + SI + """Solomon Islands""" + SB + """Somalia""" + SO + """South Africa""" + ZA + """South Georgia and South Sandwich Islands""" + GS + """South Sudan""" + SS + """Spain""" + ES + """Sri Lanka""" + LK + """Sudan""" + SD + """Suriname""" + SR + """Svalbard and Jan Mayen Islands""" + SJ + """Swaziland""" + SZ + """Sweden""" + SE + """Switzerland""" + CH + """Taiwan""" + TW + """Tajikistan""" + TJ + """Tanzania""" + TZ + """Thailand""" + TH + """Timor-Leste""" + TL + """Togo""" + TG + """Tokelau""" + TK + """Tonga""" + TO + """Trinidad and Tobago""" + TT + """Tunisia""" + TN + """Turkey""" + TR + """Turkmenistan""" + TM + """Turks and Caicos Islands""" + TC + """Tuvalu""" + TV + """Uganda""" + UG + """Ukraine""" + UA + """United Arab Emirates""" + AE + """United Kingdom""" + GB + """United States Minor Outlying Islands""" + UM + """United States of America""" + US + """Uruguay""" + UY + """Uzbekistan""" + UZ + """Vanuatu""" + VU + """Vatican City""" + VA + """Venezuela""" + VE + """Vietnam""" + VN + """Virgin Islands, British""" + VG + """Virgin Islands, U.S.""" + VI + """Wallis and Futuna Islands""" + WF + """Western Sahara""" + EH + """Yemen""" + YE + """Zambia""" + ZM + """Zimbabwe""" + ZW } """A goal associated with a GitHub Sponsors listing, representing a target the sponsored maintainer would like to attain.""" type SponsorsGoal { - """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! + """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 { - """The goal is about reaching a certain number of sponsors.""" - TOTAL_SPONSORS_COUNT - """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 + """The goal is about getting a certain amount in USD from sponsorships each month.""" + MONTHLY_SPONSORSHIP_AMOUNT } """A sponsorship relationship between a sponsor and a maintainer""" type Sponsorship implements Node { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Whether this sponsorship represents a one-time payment versus a recurring sponsorship.""" - isOneTimePayment: Boolean! - """Check if 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 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 + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + 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 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 } """The connection type for Sponsorship.""" 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! + """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 + """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 { - """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! - 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 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! + 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! + """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 + """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 { - """The field to order sponsorship newsletters by.""" - field: SponsorshipNewsletterOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order sponsorship newsletters by.""" + field: SponsorshipNewsletterOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which sponsorship update connections can be ordered.""" enum SponsorshipNewsletterOrderField { - """Order sponsorship newsletters by when they were created.""" - CREATED_AT + """Order sponsorship newsletters by when they were created.""" + CREATED_AT } """Ordering options for sponsorship connections.""" input SponsorshipOrder { - """The field to order sponsorship by.""" - field: SponsorshipOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order sponsorship by.""" + field: SponsorshipOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which sponsorship connections can be ordered.""" enum SponsorshipOrderField { - """Order sponsorship by creation time.""" - CREATED_AT + """Order sponsorship by creation time.""" + CREATED_AT } """The privacy of a sponsorship""" enum SponsorshipPrivacy { - """Public""" - PUBLIC - """Private""" - PRIVATE + """Public""" + PUBLIC + """Private""" + PRIVATE } """A GitHub Sponsors listing.""" type SponsorsListing implements Node { - """The current goal the maintainer is trying to reach with GitHub Sponsors, if any.""" - activeGoal: SponsorsGoal - """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 full description of the listing.""" - fullDescription: String! - """The full description of the listing rendered to HTML.""" - fullDescriptionHTML: HTML! - 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 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 published tiers for this GitHub Sponsors listing.""" - 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 - """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! + """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! + 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 + """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} + """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 + ): SponsorsTierConnection + """The HTTP URL for this Sponsors listing.""" + url: URI! +} + +"""A record that can be featured on a GitHub Sponsors profile.""" +union SponsorsListingFeatureableItem = Repository | User + +"""A record that is promoted on a GitHub Sponsors profile.""" +type SponsorsListingFeaturedItem implements Node { + """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! + 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 { + """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 { - """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! - 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.""" + 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! + 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 { - """The sponsorships associated with 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 - """Returns the last _n_ elements from the list.""" - last: Int - """Whether or not to include private sponsorships in the result set""" - includePrivate: Boolean = false - """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! + """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 + """Returns the last _n_ elements from the list.""" + last: Int + """Whether or not to return private sponsorships using this tier. Defaults to only returning public sponsorships on this tier.""" + includePrivate: Boolean = false + """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! + """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 + """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 { - """The field to order tiers by.""" - field: SponsorsTierOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order tiers by.""" + field: SponsorsTierOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which Sponsors tiers connections can be ordered.""" enum SponsorsTierOrderField { - """Order tiers by creation time.""" - CREATED_AT - """Order tiers by their monthly price in cents""" - MONTHLY_PRICE_IN_CENTS + """Order tiers by creation time.""" + CREATED_AT + """Order tiers by their monthly price in cents""" + MONTHLY_PRICE_IN_CENTS } """The possible default commit messages for squash merges.""" enum SquashMergeCommitMessage { - """Default to the pull request's body.""" - PR_BODY - """Default to the branch's commit messages.""" - COMMIT_MESSAGES - """Default to a blank commit message.""" - BLANK + """Default to the pull request's body.""" + PR_BODY + """Default to the branch's commit messages.""" + COMMIT_MESSAGES + """Default to a blank commit message.""" + BLANK } """The possible default commit titles for squash merges.""" enum SquashMergeCommitTitle { - """Default to the pull request's title.""" - PR_TITLE - """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 + """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 } """Represents an SSH signature on a Commit or Tag.""" type SshSignature implements GitSignature { - """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! - """True if the signature was made with GitHub's signing key.""" - wasSignedByGitHub: Boolean! + """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! + """True if the signature was made with GitHub's signing key.""" + wasSignedByGitHub: Boolean! } """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! + """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! + """A cursor for use in pagination.""" + cursor: String! + node: User! + """Identifies when the item was starred.""" + starredAt: DateTime! } """Ways in which star connections can be ordered.""" input StarOrder { - """The field in which to order nodes by.""" - field: StarOrderField! - """The direction in which to order nodes.""" - direction: OrderDirection! + """The field in which to order nodes by.""" + field: StarOrderField! + """The direction in which to order nodes.""" + direction: OrderDirection! } """Properties by which star connections can be ordered.""" enum StarOrderField { - """Allows ordering a list of stars by when they were created.""" - STARRED_AT + """Allows ordering a list of stars by when they were created.""" + STARRED_AT } """Things that can be starred.""" interface Starrable { - 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! + 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! + """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! + """A cursor for use in pagination.""" + cursor: String! + node: Repository! + """Identifies when the item was starred.""" + starredAt: DateTime! } """A feed item representing the act of a repository being starred""" type StarredRepositoryFeedItem implements FeedItemDisplayable { - """The user who starred the repository""" - actor: User! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """A single sentence description of this event.""" - description: String! - """Whether or not this item is dismissable""" - dismissable: Boolean! - """A unique identifier for this item""" - identifier: String! - """The reason why this item is being displayed.""" - reasonMessage: String - """The relationship between this item and the related items.""" - relatedBy: FeedItemRelatedBy - """Related items to this item.""" - relatedItems: [FeedItem!]! - """The repository that was starred""" - repository: Repository! - """Whether or not the subject of this item is the viewer""" - subjectIsViewer: Boolean! + """The user who starred the repository""" + actor: User! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """A single sentence description of this event.""" + description: String! + """Whether or not this item is dismissable""" + dismissable: Boolean! + """A unique identifier for this item""" + identifier: String! + """The reason why this item is being displayed.""" + reasonMessage: String + """The relationship between this item and the related items.""" + relatedBy: FeedItemRelatedBy + """Related items to this item.""" + relatedItems: [FeedItem!]! + """The repository that was starred""" + repository: Repository! + """Whether or not the subject of this item is the viewer""" + subjectIsViewer: Boolean! +} + +"""Autogenerated input type of StartOrganizationMigration""" +input StartOrganizationMigrationInput { + """The URL of the organization to migrate.""" + sourceOrgUrl: URI! + """The name of the target organization.""" + targetOrgName: String! + """The ID of the enterprise the target organization belongs to.""" + targetEnterpriseId: ID! + """The migration source access token.""" + sourceAccessToken: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 ID of the Octoshift migration source.""" - sourceId: ID! - """The ID of the organization that will own the imported repository.""" - ownerId: ID! - """The Octoshift migration source repository URL.""" - sourceRepositoryUrl: URI! - """The name of the imported repository.""" - repositoryName: String! - """Whether to continue the migration on error""" - continueOnError: Boolean - """The signed URL to access the user-uploaded git archive""" - gitArchiveUrl: String - """The signed URL to access the user-uploaded metadata archive""" - metadataArchiveUrl: String - """The Octoshift migration source access token.""" - accessToken: String! - """The GitHub personal access token of the user importing to the target repository.""" - githubPat: String - """Whether to skip migrating releases for the repository.""" - skipReleases: Boolean - """The visibility of the imported repository.""" - targetRepoVisibility: String - """Whether to lock the source repository.""" - lockSource: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the migration source.""" + sourceId: ID! + """The ID of the organization that will own the imported repository.""" + ownerId: ID! + """The URL of the source repository.""" + sourceRepositoryUrl: URI + """The name of the imported repository.""" + repositoryName: String! + """Whether to continue the migration on error. Defaults to `false`.""" + continueOnError: Boolean + """The signed URL to access the user-uploaded git archive.""" + gitArchiveUrl: String + """The signed URL to access the user-uploaded metadata archive.""" + metadataArchiveUrl: String + """The migration source access token.""" + accessToken: String + """The GitHub personal access token of the user importing to the target repository.""" + githubPat: String + """Whether to skip migrating releases for the repository.""" + skipReleases: Boolean + """The visibility of the imported repository.""" + targetRepoVisibility: String + """Whether to lock the source repository.""" + lockSource: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of StartRepositoryMigration""" type StartRepositoryMigrationPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The new Octoshift repository migration.""" - repositoryMigration: RepositoryMigration + """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 { - """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!]! - id: ID! - """The combined commit status.""" - state: StatusState! + """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!]! + id: ID! + """The combined commit status.""" + state: StatusState! +} + +"""Required status check""" +type StatusCheckConfiguration { + """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 { + """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 { - """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! - id: ID! - """The combined status for the commit.""" - state: StatusState! + """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! + id: ID! + """The combined status for the commit.""" + state: StatusState! } """Types that can be inside a StatusCheckRollup context.""" @@ -25303,1674 +28088,1772 @@ union StatusCheckRollupContext = 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! + """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 + """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 RequirableByPullRequest & Node { - """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 - 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 + """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 + 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 } """Represents a count of the state of a status context.""" type StatusContextStateCount { - """The number of statuses with this state.""" - count: Int! - """The state of a status context.""" - state: StatusState! + """The number of statuses with this state.""" + count: Int! + """The state of a status context.""" + state: StatusState! } """The possible commit status states.""" enum StatusState { - """Status is expected.""" - EXPECTED - """Status is errored.""" - ERROR - """Status is failing.""" - FAILURE - """Status is pending.""" - PENDING - """Status is successful.""" - SUCCESS + """Status is expected.""" + EXPECTED + """Status is errored.""" + ERROR + """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 { + """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! } """Autogenerated input type of SubmitPullRequestReview""" input SubmitPullRequestReviewInput { - """The Pull Request ID to submit any pending reviews.""" - pullRequestId: ID - """The Pull Request Review ID to submit.""" - pullRequestReviewId: ID - """The event to send to the Pull Request Review.""" - event: PullRequestReviewEvent! - """The text field to set on the Pull Request Review.""" - body: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Pull Request ID to submit any pending reviews.""" + pullRequestId: ID + """The Pull Request Review ID to submit.""" + pullRequestReviewId: ID + """The event to send to the Pull Request Review.""" + event: PullRequestReviewEvent! + """The text field to set on the Pull Request Review.""" + body: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 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 { - """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 path in the superproject that this submodule is located in""" - path: String! - """The commit revision of the subproject repository being tracked by the submodule""" - subprojectCommitOid: GitObjectID + """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! + """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 + """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 { - 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 + 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 } """Represents a 'subscribed' event on a given `Subscribable`.""" type SubscribedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Object referenced by event.""" - subscribable: Subscribable! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Object referenced by event.""" + subscribable: Subscribable! } """The possible states of a subscription.""" enum SubscriptionState { - """The User is only notified when participating or @mentioned.""" - UNSUBSCRIBED - """The User is notified of new releases, or when participating or @mentioned. Only valid for Repositories.""" - RELEASES_ONLY - """The User is notified of all conversations.""" - SUBSCRIBED - """The User is never notified.""" - IGNORED - """The User is notified of a custom subset of notifications.""" - CUSTOM + """The User is only notified when participating or @mentioned.""" + UNSUBSCRIBED + """The User is notified of new releases, or when participating or @mentioned. Only valid for Repositories.""" + RELEASES_ONLY + """The User is notified of all conversations.""" + SUBSCRIBED + """The User is never notified.""" + IGNORED + """The User is notified of a custom subset of notifications.""" + CUSTOM } """A suggestion to review a pull request based on a user's commit history and review comments.""" type SuggestedReviewer { - """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! + """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 support contact.""" type SupportContact { - """The URL or email for the support contact""" - link: String! - """The type for the support contact link""" - linkType: SupportLinkType! + """The URL or email for the support contact""" + link: String! + """The type for the support contact link""" + linkType: SupportLinkType! } """The possible support link types.""" enum SupportLinkType { - """A email support link""" - EMAIL - """A url support link""" - URL + """A email support link""" + EMAIL + """A url support link""" + URL } """Represents a Git tag.""" type Tag implements Node & GitObject { - """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! - 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! + """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! + 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 { + """How this rule will appear to users.""" + 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 { + """How this rule will appear to users.""" + 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! } """The possible task list item statuses, according to its checkbox.""" enum TaskListItemStatus { - """Task list item's checkbox is checked""" - COMPLETE - """Task list item's checkbox is unchecked""" - INCOMPLETE + """Task list item's checkbox is checked""" + COMPLETE + """Task list item's checkbox is unchecked""" + INCOMPLETE } """A team of users in an organization.""" type Team implements Node & Subscribable & MemberStatusable { - """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( - """Order for connection""" - orderBy: TeamOrder - """User logins to filter by""" - userLogins: [String!] - """Whether to list immediate child teams or all descendant child teams.""" - immediateOnly: 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 - ): TeamConnection! - """The slug corresponding to the organization and team.""" - combinedSlug: String! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """Dashboard for this team.""" - dashboard: TeamDashboard - """Identifies the primary key from the database.""" - databaseId: Int - """The description of the team.""" - description: String - """Find a team discussion by its number.""" - discussion( - """The sequence number of the discussion to find.""" - number: Int! - ): TeamDiscussion - """A list of team discussions.""" - discussions( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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, filters discussions according to whether or not they are pinned.""" - isPinned: Boolean - """Order for connection""" - orderBy: TeamDiscussionOrder - ): TeamDiscussionConnection! - """The HTTP path for team discussions""" - discussionsResourcePath: URI! - """The HTTP URL for team discussions""" - discussionsUrl: URI! - """The HTTP path for editing this team""" - editTeamResourcePath: URI! - """The HTTP URL for editing this team""" - editTeamUrl: URI! - 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 - """The search string to look for.""" - query: String - """Filter by membership type""" - membership: TeamMembershipType = ALL - """Filter by team member role""" - role: TeamMemberRole - """Order for the connection.""" - orderBy: TeamMemberOrder - ): 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 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """How to order the returned projects.""" - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} - ): 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 - """The search string to look for. Repositories will be returned where the name contains your search string.""" - query: String - """Order for the connection.""" - orderBy: TeamRepositoryOrder - ): 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! - """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 repository.""" - viewerCanSubscribe: Boolean! - """Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.""" - viewerSubscription: SubscriptionState + """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( + """Order for connection""" + orderBy: TeamOrder + """User logins to filter by""" + userLogins: [String!] + """Whether to list immediate child teams or all descendant child teams.""" + immediateOnly: 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 + ): TeamConnection! + """The slug corresponding to the organization and team.""" + combinedSlug: String! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """Dashboard for this team.""" + dashboard: TeamDashboard + """Identifies the primary key from the database.""" + databaseId: Int + """The description of the team.""" + description: String + """Find a team discussion by its number.""" + discussion( + """The sequence number of the discussion to find.""" + number: Int! + ): TeamDiscussion + """A list of team discussions.""" + discussions( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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, filters discussions according to whether or not they are pinned.""" + isPinned: Boolean + """Order for connection""" + orderBy: TeamDiscussionOrder + ): TeamDiscussionConnection! + """The HTTP path for team discussions""" + discussionsResourcePath: URI! + """The HTTP URL for team discussions""" + discussionsUrl: URI! + """The HTTP path for editing this team""" + editTeamResourcePath: URI! + """The HTTP URL for editing this team""" + editTeamUrl: URI! + 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 + """The search string to look for.""" + query: String + """Filter by membership type""" + membership: TeamMembershipType = ALL + """Filter by team member role""" + role: TeamMemberRole + """Order for the connection.""" + orderBy: TeamMemberOrder + ): 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + """Filtering options for projects returned from this connection""" + filterBy: ProjectV2Filters = {} + """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 + """The search string to look for. Repositories will be returned where the name contains your search string.""" + query: String + """Order for the connection.""" + orderBy: TeamRepositoryOrder + ): 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! + """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 repository.""" + viewerCanSubscribe: Boolean! + """Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.""" + viewerSubscription: SubscriptionState } """Audit log entry for a team.add_member event.""" type TeamAddMemberAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & TeamAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """Whether the team was mapped to an LDAP Group.""" - isLdapMapped: Boolean - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: 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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """Whether the team was mapped to an LDAP Group.""" + isLdapMapped: Boolean + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: 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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a team.add_repository event.""" type TeamAddRepositoryAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData & TeamAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """Whether the team was mapped to an LDAP Group.""" - isLdapMapped: Boolean - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """Whether the team was mapped to an LDAP Group.""" + isLdapMapped: Boolean + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Metadata for an audit entry with action team.*""" interface TeamAuditEntryData { - """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 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 Node & AuditEntry & OrganizationAuditEntryData & TeamAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """Whether the team was mapped to an LDAP Group.""" - isLdapMapped: Boolean - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """The new parent team.""" - parentTeam: Team - """The name of the new parent team""" - parentTeamName: String - """The name of the former parent team""" - parentTeamNameWas: String - """The HTTP path for the parent team""" - parentTeamResourcePath: URI - """The HTTP URL for the parent team""" - parentTeamUrl: URI - """The former parent team.""" - parentTeamWas: Team - """The HTTP path for the previous parent team""" - parentTeamWasResourcePath: URI - """The HTTP URL for the previous parent team""" - parentTeamWasUrl: 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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """Whether the team was mapped to an LDAP Group.""" + isLdapMapped: Boolean + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """The new parent team.""" + parentTeam: Team + """The name of the new parent team""" + parentTeamName: String + """The name of the former parent team""" + parentTeamNameWas: String + """The HTTP path for the parent team""" + parentTeamResourcePath: URI + """The HTTP URL for the parent team""" + parentTeamUrl: URI + """The former parent team.""" + parentTeamWas: Team + """The HTTP path for the previous parent team""" + parentTeamWasResourcePath: URI + """The HTTP URL for the previous parent team""" + parentTeamWasUrl: 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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """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! + """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! } """A team's dashboard.""" type TeamDashboard implements Node { - id: ID! - """The saved searched shortcuts for this team dashboard""" - shortcuts( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 types of team search shortcuts to return. If not provided, all shortcuts are returned.""" - searchTypes: [SearchShortcutType!] - ): TeamSearchShortcutConnection! - """The team this dashboard belongs to.""" - team: Team! + id: ID! + """The saved searched shortcuts for this team dashboard""" + shortcuts( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 types of team search shortcuts to return. If not provided, all shortcuts are returned.""" + searchTypes: [SearchShortcutType!] + ): TeamSearchShortcutConnection! + """The team this dashboard belongs to.""" + team: Team! } """A team discussion.""" type TeamDiscussion implements Node & Comment & Deletable & Reactable & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { - """The actor who authored the comment.""" - author: Actor - """Author's association with the discussion's team.""" - authorAssociation: CommentAuthorAssociation! - """The body as Markdown.""" - body: String! - """The body rendered to HTML.""" - bodyHTML( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): HTML! - """The body rendered to text.""" - bodyText: String! - """Identifies the discussion body hash.""" - bodyVersion: String! - """A list of comments on this 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 - """Order for connection""" - orderBy: TeamDiscussionCommentOrder - """When provided, filters the connection such that results begin with the comment with this number.""" - fromComment: Int - ): TeamDiscussionCommentConnection! - """The HTTP path for discussion comments""" - commentsResourcePath: URI! - """The HTTP URL for discussion comments""" - commentsUrl: URI! - """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 - id: ID! - """Check if this comment was edited and includes an edit with the creation data""" - includesCreatedEdit: Boolean! - """Whether or not the discussion is pinned.""" - isPinned: Boolean! - """Whether or not the discussion is only visible to team members and org admins.""" - isPrivate: Boolean! - """The moment the editor made the last edit""" - lastEditedAt: DateTime - """Identifies the discussion within its team.""" - number: 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """Allows specifying the order in which reactions are returned.""" - orderBy: ReactionOrder - ): ReactionConnection! - """The HTTP path for this discussion""" - resourcePath: URI! - """The team that defines the context of this discussion.""" - team: Team! - """The title of the discussion""" - title: String! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! - """The HTTP 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 - """Check if the current viewer can delete this object.""" - viewerCanDelete: Boolean! - """Whether or not the current viewer can pin this discussion.""" - viewerCanPin: Boolean! - """Can user react to this subject""" - viewerCanReact: 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! - """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 + """The actor who authored the comment.""" + author: Actor + """Author's association with the discussion's team.""" + authorAssociation: CommentAuthorAssociation! + """The body as Markdown.""" + body: String! + """The body rendered to HTML.""" + bodyHTML( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): HTML! + """The body rendered to text.""" + bodyText: String! + """Identifies the discussion body hash.""" + bodyVersion: String! + """A list of comments on this 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 + """Order for connection""" + orderBy: TeamDiscussionCommentOrder + """When provided, filters the connection such that results begin with the comment with this number.""" + fromComment: Int + ): TeamDiscussionCommentConnection! + """The HTTP path for discussion comments""" + commentsResourcePath: URI! + """The HTTP URL for discussion comments""" + commentsUrl: URI! + """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 + id: ID! + """Check if this comment was edited and includes an edit with the creation data""" + includesCreatedEdit: Boolean! + """Whether or not the discussion is pinned.""" + isPinned: Boolean! + """Whether or not the discussion is only visible to team members and org admins.""" + isPrivate: Boolean! + """The moment the editor made the last edit""" + lastEditedAt: DateTime + """Identifies the discussion within its team.""" + number: 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """Allows specifying the order in which reactions are returned.""" + orderBy: ReactionOrder + ): ReactionConnection! + """The HTTP path for this discussion""" + resourcePath: URI! + """The team that defines the context of this discussion.""" + team: Team! + """The title of the discussion""" + title: String! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The HTTP 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 + """Check if the current viewer can delete this object.""" + viewerCanDelete: Boolean! + """Whether or not the current viewer can pin this discussion.""" + viewerCanPin: Boolean! + """Can user react to this subject""" + viewerCanReact: 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! + """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 } """A comment on a team discussion.""" type TeamDiscussionComment implements Node & Comment & Deletable & Reactable & UniformResourceLocatable & Updatable & UpdatableComment { - """The actor who authored the comment.""" - author: Actor - """Author's association with the comment's team.""" - authorAssociation: CommentAuthorAssociation! - """The body as Markdown.""" - body: String! - """The body rendered to HTML.""" - bodyHTML( - """Whether or not to include the HTML for code blobs""" - hideCodeBlobs: Boolean = false - """Whether or not to include the HTML for suggested changes""" - renderSuggestedChangesAsText: Boolean = false - """Whether or not to include a suggested changes ID in the HTML""" - includeSuggestedChangesId: Boolean = false - """Whether or not to turn video tags into links in the HTML""" - scrubVideo: Boolean - """Whether or not to turn references into status icon and title in the HTML""" - unfurlReferences: Boolean = false - ): HTML! - """The body rendered to text.""" - bodyText: String! - """The current version of the body content.""" - bodyVersion: 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 discussion this comment is about.""" - discussion: TeamDiscussion! - """The actor who edited the comment.""" - editor: Actor - 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 the comment number.""" - number: 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 - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Allows filtering Reactions by emoji.""" - content: ReactionContent - """Allows specifying the order in which reactions are returned.""" - orderBy: ReactionOrder - ): ReactionConnection! - """The HTTP path for this comment""" - resourcePath: URI! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! - """The HTTP URL for this 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 user react to this subject""" - viewerCanReact: 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 actor who authored the comment.""" + author: Actor + """Author's association with the comment's team.""" + authorAssociation: CommentAuthorAssociation! + """The body as Markdown.""" + body: String! + """The body rendered to HTML.""" + bodyHTML( + """Whether or not to include the HTML for code blobs""" + hideCodeBlobs: Boolean = false + """Whether or not to include the HTML for suggested changes""" + renderSuggestedChangesAsText: Boolean = false + """Whether or not to include a suggested changes ID in the HTML""" + includeSuggestedChangesId: Boolean = false + """Whether or not to turn video tags into links in the HTML""" + scrubVideo: Boolean + """Whether or not to turn references into status icon and title in the HTML""" + unfurlReferences: Boolean = false + ): HTML! + """The body rendered to text.""" + bodyText: String! + """The current version of the body content.""" + bodyVersion: 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 discussion this comment is about.""" + discussion: TeamDiscussion! + """The actor who edited the comment.""" + editor: Actor + 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 the comment number.""" + number: 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 + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Allows filtering Reactions by emoji.""" + content: ReactionContent + """Allows specifying the order in which reactions are returned.""" + orderBy: ReactionOrder + ): ReactionConnection! + """The HTTP path for this comment""" + resourcePath: URI! + """Identifies the date and time when the object was last updated.""" + updatedAt: DateTime! + """The HTTP URL for this 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 user react to this subject""" + viewerCanReact: 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 TeamDiscussionComment.""" type TeamDiscussionCommentConnection { - """A list of edges.""" - edges: [TeamDiscussionCommentEdge] - """A list of nodes.""" - nodes: [TeamDiscussionComment] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [TeamDiscussionCommentEdge] + """A list of nodes.""" + nodes: [TeamDiscussionComment] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type TeamDiscussionCommentEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: TeamDiscussionComment + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: TeamDiscussionComment } """Ways in which team discussion comment connections can be ordered.""" input TeamDiscussionCommentOrder { - """The field by which to order nodes.""" - field: TeamDiscussionCommentOrderField! - """The direction in which to order nodes.""" - direction: OrderDirection! + """The field by which to order nodes.""" + field: TeamDiscussionCommentOrderField! + """The direction in which to order nodes.""" + direction: OrderDirection! } """Properties by which team discussion comment connections can be ordered.""" enum TeamDiscussionCommentOrderField { - """Allows sequential ordering of team discussion comments (which is equivalent to chronological ordering).""" - NUMBER + """Allows sequential ordering of team discussion comments (which is equivalent to chronological ordering).""" + NUMBER } """The connection type for TeamDiscussion.""" type TeamDiscussionConnection { - """A list of edges.""" - edges: [TeamDiscussionEdge] - """A list of nodes.""" - nodes: [TeamDiscussion] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [TeamDiscussionEdge] + """A list of nodes.""" + nodes: [TeamDiscussion] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type TeamDiscussionEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: TeamDiscussion + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: TeamDiscussion } """Ways in which team discussion connections can be ordered.""" input TeamDiscussionOrder { - """The field by which to order nodes.""" - field: TeamDiscussionOrderField! - """The direction in which to order nodes.""" - direction: OrderDirection! + """The field by which to order nodes.""" + field: TeamDiscussionOrderField! + """The direction in which to order nodes.""" + direction: OrderDirection! } """Properties by which team discussion connections can be ordered.""" enum TeamDiscussionOrderField { - """Allows chronological ordering of team discussions.""" - CREATED_AT + """Allows chronological ordering of team discussions.""" + CREATED_AT } """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 + """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! + """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! + """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 { - """The field to order team members by.""" - field: TeamMemberOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order team members by.""" + field: TeamMemberOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which team member connections can be ordered.""" enum TeamMemberOrderField { - """Order team members by login""" - LOGIN - """Order team members by creation time""" - CREATED_AT + """Order team members by login""" + LOGIN + """Order team members by creation time""" + CREATED_AT } """The possible team member roles; either 'maintainer' or 'member'.""" enum TeamMemberRole { - """A team maintainer has permission to add and remove team members.""" - MAINTAINER - """A team member has no administrative permissions on the team.""" - MEMBER + """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 { - """Includes only immediate members of the team.""" - IMMEDIATE - """Includes only child team members for the team.""" - CHILD_TEAM - """Includes immediate and child team members for the team.""" - ALL + """Includes only immediate members of the team.""" + IMMEDIATE + """Includes only child team members for the team.""" + CHILD_TEAM + """Includes immediate and child team members for the team.""" + ALL +} + +"""The possible team notification values.""" +enum TeamNotificationSetting { + """Everyone will receive notifications when the team is @mentioned.""" + NOTIFICATIONS_ENABLED + """No one will receive notifications.""" + NOTIFICATIONS_DISABLED } """Ways in which team connections can be ordered.""" input TeamOrder { - """The field in which to order nodes by.""" - field: TeamOrderField! - """The direction in which to order nodes.""" - direction: OrderDirection! + """The field in which to order nodes by.""" + field: TeamOrderField! + """The direction in which to order nodes.""" + direction: OrderDirection! } """Properties by which team connections can be ordered.""" enum TeamOrderField { - """Allows ordering a list of teams by name.""" - NAME + """Allows ordering a list of teams by name.""" + NAME } """The possible team privacy values.""" enum TeamPrivacy { - """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 + """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 Node & AuditEntry & OrganizationAuditEntryData & TeamAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """Whether the team was mapped to an LDAP Group.""" - isLdapMapped: Boolean - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: 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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """Whether the team was mapped to an LDAP Group.""" + isLdapMapped: Boolean + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: 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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """Audit log entry for a team.remove_repository event.""" type TeamRemoveRepositoryAuditEntry implements Node & AuditEntry & OrganizationAuditEntryData & RepositoryAuditEntryData & TeamAuditEntryData { - """The action name""" - action: String! - """The user who initiated the action""" - actor: AuditEntryActor - """The IP address of the actor""" - actorIp: String - """A readable representation of the actor's location""" - actorLocation: ActorLocation - """The username of the user who initiated the action""" - actorLogin: String - """The HTTP path for the actor.""" - actorResourcePath: URI - """The HTTP URL for the actor.""" - actorUrl: URI - """The time the action was initiated""" - createdAt: PreciseDateTime! - id: ID! - """Whether the team was mapped to an LDAP Group.""" - isLdapMapped: Boolean - """The corresponding operation type for the action""" - operationType: OperationType - """The Organization associated with the Audit Entry.""" - organization: Organization - """The name of the Organization.""" - organizationName: String - """The HTTP path for the organization""" - organizationResourcePath: URI - """The HTTP URL for the organization""" - organizationUrl: URI - """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 - """For actions involving two users, the actor is the initiator and the user is the affected user.""" - userLogin: String - """The HTTP path for the user.""" - userResourcePath: URI - """The HTTP URL for the user.""" - userUrl: URI + """The action name""" + action: String! + """The user who initiated the action""" + actor: AuditEntryActor + """The IP address of the actor""" + actorIp: String + """A readable representation of the actor's location""" + actorLocation: ActorLocation + """The username of the user who initiated the action""" + actorLogin: String + """The HTTP path for the actor.""" + actorResourcePath: URI + """The HTTP URL for the actor.""" + actorUrl: URI + """The time the action was initiated""" + createdAt: PreciseDateTime! + id: ID! + """Whether the team was mapped to an LDAP Group.""" + isLdapMapped: Boolean + """The corresponding operation type for the action""" + operationType: OperationType + """The Organization associated with the Audit Entry.""" + organization: Organization + """The name of the Organization.""" + organizationName: String + """The HTTP path for the organization""" + organizationResourcePath: URI + """The HTTP URL for the organization""" + organizationUrl: URI + """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 + """For actions involving two users, the actor is the initiator and the user is the affected user.""" + userLogin: String + """The HTTP path for the user.""" + userResourcePath: URI + """The HTTP URL for the user.""" + userUrl: URI } """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! + """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! + """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 { - """The field to order repositories by.""" - field: TeamRepositoryOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order repositories by.""" + field: TeamRepositoryOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which team repository connections can be ordered.""" enum TeamRepositoryOrderField { - """Order repositories by creation time""" - CREATED_AT - """Order repositories by update time""" - UPDATED_AT - """Order repositories by push time""" - PUSHED_AT - """Order repositories by name""" - NAME - """Order repositories by permission""" - PERMISSION - """Order repositories by number of stargazers""" - STARGAZERS + """Order repositories by creation time""" + CREATED_AT + """Order repositories by update time""" + UPDATED_AT + """Order repositories by push time""" + PUSHED_AT + """Order repositories by name""" + NAME + """Order repositories by permission""" + PERMISSION + """Order repositories by number of stargazers""" + STARGAZERS } """The role of a user on a team.""" enum TeamRole { - """User has admin rights on the team.""" - ADMIN - """User is a member of the team.""" - MEMBER + """User has admin rights on the team.""" + ADMIN + """User is a member of the team.""" + MEMBER } """A shortcut for a search with specified filters""" -type TeamSearchShortcut implements Node { - """The color of the shortcut.""" - color: SearchShortcutColor! - """The description of the shortcut.""" - description: String! - """The icon of the shortcut.""" - icon: SearchShortcutIcon! - id: ID! - """The name of the shortcut.""" - name: String! - """The filter string of the shortcut.""" - query: String! - """A parsed set of terms from the query string of this shortcut.""" - queryTerms: [SearchShortcutQueryTermsItem!]! - """The repository scoping the shortcut.""" - scopingRepository: Repository - """The type of the shortcut.""" - searchType: SearchShortcutType! +type TeamSearchShortcut implements Node & Shortcutable { + """The color of the shortcut.""" + color: SearchShortcutColor! + """The description of the shortcut.""" + description: String! + """The icon of the shortcut.""" + icon: SearchShortcutIcon! + id: ID! + """The name of the shortcut.""" + name: String! + """The filter string of the shortcut.""" + query: String! + """A parsed set of terms from the query string of this shortcut.""" + queryTerms: [SearchShortcutQueryTermsItem!]! + """The repository scoping the shortcut.""" + scopingRepository: Repository + """The type of the shortcut.""" + searchType: SearchShortcutType! } """The connection type for TeamSearchShortcut.""" type TeamSearchShortcutConnection { - """A list of edges.""" - edges: [TeamSearchShortcutEdge] - """A list of nodes.""" - nodes: [TeamSearchShortcut] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [TeamSearchShortcutEdge] + """A list of nodes.""" + nodes: [TeamSearchShortcut] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type TeamSearchShortcutEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: TeamSearchShortcut + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: TeamSearchShortcut } """Entities that return contents of a text tree entry.""" interface TextFile { - """The raw content of the markdown.""" - contentRaw: String - """The lines for this file.""" - fileLines: [FileLine] + """The raw content of the markdown.""" + contentRaw: String + """The lines for this file.""" + fileLines: [FileLine] } """Represents a text file.""" type TextFileType implements TextFile { - """Syntax highlighted html for the tree entry""" - contentHTML: HTML - """The raw content of the markdown.""" - contentRaw: String - """The lines for this file.""" - fileLines: [FileLine] + """Syntax highlighted html for the tree entry""" + contentHTML: HTML + """The raw content of the markdown.""" + contentRaw: String + """The lines for this file.""" + fileLines: [FileLine] } """A text match within a search result.""" type TextMatch { - """The specific text fragment within the property matched on.""" - fragment: String! - """Highlights within the matched fragment.""" - highlights: [TextMatchHighlight!]! - """The property matched on.""" - property: String! + """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 { - """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 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! } """A topic aggregates entities that are related to a subject.""" type Topic implements Node & Starrable { - """Returns a description of this topic.""" - description: String - """The description of the topic rendered to HTML.""" - descriptionHTML: HTML! - """ - Returns the properly capitalized display name of this topic if one is known, otherwise - returns the topic's name. - """ - displayName: String! - """A link to a website about this topic.""" - externalUrl: URI - """A link to a GitHub repository or organization for this topic.""" - githubUrl: URI - id: ID! - """Whether this topic has additional curated content, such as a short description.""" - isCurated: Boolean! - """Whether this topic is featured on GitHub.""" - isFeatured: Boolean! - """Returns the URL for an image representing this topic.""" - logoUrl: URI - """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( - """If non-null, filters repositories according to privacy""" - privacy: RepositoryPrivacy - """Ordering options for repositories returned from the connection""" - orderBy: RepositoryOrder - """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] - """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 whether they have been locked""" - isLocked: Boolean - """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" - language: String - """An optional type to use to filter the repositories.""" - type: RepositoryType - """An optional filter to search the repositories.""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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, only repositories whose owner can be sponsored via GitHub Sponsors will be returned.""" - sponsorableOnly: Boolean = false - ): RepositoryConnection! - """The HTTP path for this topic.""" - resourcePath: URI! - """Returns a short description of this topic.""" - shortDescription: String - """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! - """The HTTP URL for this topic.""" - url: URI! - """Returns a boolean indicating whether the viewing user has starred this starrable.""" - viewerHasStarred: Boolean! - """A link to a Wikipedia page about this topic.""" - wikipediaUrl: URI + """Returns a description of this topic.""" + description: String + """The description of the topic rendered to HTML.""" + descriptionHTML: HTML! + """ + Returns the properly capitalized display name of this topic if one is known, otherwise + returns the topic's name. + """ + displayName: String! + """A link to a website about this topic.""" + externalUrl: URI + """A link to a GitHub repository or organization for this topic.""" + githubUrl: URI + id: ID! + """Whether this topic has additional curated content, such as a short description.""" + isCurated: Boolean! + """Whether this topic is featured on GitHub.""" + isFeatured: Boolean! + """Returns the URL for an image representing this topic.""" + logoUrl: URI + """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( + """If non-null, filters repositories according to privacy""" + privacy: RepositoryPrivacy + """Ordering options for repositories returned from the connection""" + orderBy: RepositoryOrder + """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] + """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 whether they have been locked""" + isLocked: Boolean + """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" + language: String + """An optional type to use to filter the repositories.""" + type: RepositoryType + """An optional filter to search the repositories.""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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, only repositories whose owner can be sponsored via GitHub Sponsors will be returned.""" + sponsorableOnly: Boolean = false + ): RepositoryConnection! + """The HTTP path for this topic.""" + resourcePath: URI! + """Returns a short description of this topic.""" + shortDescription: String + """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! + """The HTTP URL for this topic.""" + url: URI! + """Returns a boolean indicating whether the viewing user has starred this starrable.""" + viewerHasStarred: Boolean! + """A link to a Wikipedia page about this topic.""" + wikipediaUrl: URI } """Metadata for an audit entry with a topic.""" interface TopicAuditEntryData { - """The name of the topic added to the repository""" - topic: Topic - """The name of the topic added to the repository""" - topicName: String + """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 { - """The suggested topic is not relevant to the repository.""" - NOT_RELEVANT - """The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1).""" - TOO_SPECIFIC - """The viewer does not like the suggested topic.""" - PERSONAL_PREFERENCE - """The suggested topic is too general for the repository.""" - TOO_GENERAL + """The suggested topic is not relevant to the repository.""" + NOT_RELEVANT + """The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1).""" + TOO_SPECIFIC + """The viewer does not like the suggested topic.""" + PERSONAL_PREFERENCE + """The suggested topic is too general for the repository.""" + TOO_GENERAL } """The possible states of a tracked issue.""" enum TrackedIssueStates { - """The tracked issue is open""" - OPEN - """The tracked issue is closed""" - CLOSED + """The tracked issue is open""" + OPEN + """The tracked issue is closed""" + CLOSED +} + +"""Autogenerated input type of TransferEnterpriseOrganization""" +input TransferEnterpriseOrganizationInput { + """The ID of the organization to transfer.""" + organizationId: ID! + """The ID of the enterprise where the organization should be transferred.""" + destinationEnterpriseId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The Node ID of the issue to be transferred""" - issueId: ID! - """The Node ID of the repository the issue should be transferred to""" - repositoryId: ID! - """Whether to create labels if they don't exist in the target repository (matched by name)""" - createLabelsIfMissing: Boolean = false - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the issue to be transferred""" + issueId: ID! + """The Node ID of the repository the issue should be transferred to""" + repositoryId: ID! + """Whether to create labels if they don't exist in the target repository (matched by name)""" + createLabelsIfMissing: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """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 - id: ID! - """Identifies the issue associated with the event.""" - issue: Issue! + """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 + id: ID! + """Identifies the issue associated with the event.""" + issue: Issue! } """Represents a Git tree.""" type Tree implements Node & GitObject { - """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!] - id: ID! - """The Git object ID""" - oid: GitObjectID! - """The Repository the Git object belongs to""" - repository: Repository! + """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!] + id: ID! + """The Git object ID""" + oid: GitObjectID! + """The Repository the Git object belongs to""" + repository: Repository! } """Represents a Git tree entry.""" type TreeEntry { - """Syntax highlighted html for the tree entry""" - contentHTML: HTML - """The extension of the file""" - extension: String - """The lines for this file.""" - fileLines: [FileLine] - """The TreeEntry file type object""" - fileType: File - """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 object.""" - object: GitObject - """Entry file Git object ID.""" - oid: GitObjectID! - """The full path of the file.""" - path: String - """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! + """Syntax highlighted html for the tree entry""" + contentHTML: HTML + """The extension of the file""" + extension: String + """The lines for this file.""" + fileLines: [FileLine] + """The TreeEntry file type object""" + fileType: File + """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! } """Represents a time period during which repositories were trending.""" enum TrendingPeriod { - """A time period covering the last day.""" - DAILY - """A time period covering the last week.""" - WEEKLY - """A time period covering the last month.""" - MONTHLY + """A time period covering the last day.""" + DAILY + """A time period covering the last week.""" + WEEKLY + """A time period covering the last month.""" + MONTHLY } """Autogenerated input type of UnarchiveProjectV2Item""" input UnarchiveProjectV2ItemInput { - """The ID of the Project to archive the item from.""" - projectId: ID! - """The ID of the ProjectV2Item to unarchive.""" - itemId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to archive the item from.""" + projectId: ID! + """The ID of the ProjectV2Item to unarchive.""" + itemId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The item unarchived from the project.""" + item: ProjectV2Item } """Autogenerated input type of UnarchiveRepository""" input UnarchiveRepositoryInput { - """The ID of the repository to unarchive.""" - repositoryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the repository to unarchive.""" + repositoryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """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! - 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.") + """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! + 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 UnblockUserFromOrganization""" input UnblockUserFromOrganizationInput { - """The ID of the organization to unblock from""" - organizationId: ID! - """The ID of the user to unblock from the organization""" - unblockedUserId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the organization to unblock from""" + organizationId: ID! + """The ID of the user to unblock from the organization""" + unblockedUserId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UnblockUserFromOrganization""" type UnblockUserFromOrganizationPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The user who is being unblocked from the organization""" - unblockedUser: User - """The user who is acting for the organization""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The user who is being unblocked from the organization""" + unblockedUser: User + """The user who is acting for the organization""" + viewer: User } """Autogenerated input type of UnblockUser""" input UnblockUserInput { - """Global relay ID of the account to unblock""" - userId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Global relay ID of the account to unblock""" + userId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UnblockUser""" type UnblockUserPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The user who is being unblocked""" - unblockedUser: User - """The user who is doing the unblocking""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The user who is being unblocked""" + unblockedUser: User + """The user who is doing the unblocking""" + viewer: User } """Autogenerated input type of UndoUserDisinterest""" input UndoUserDisinterestInput { - """Identifier of the disinterested event""" - identifier: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Identifier of the disinterested event""" + identifier: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UndoUserDisinterest""" type UndoUserDisinterestPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of UnfollowOrganization""" input UnfollowOrganizationInput { - """ID of the organization to unfollow.""" - organizationId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the organization to unfollow.""" + organizationId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """ID of the user to unfollow.""" - userId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the user to unfollow.""" + userId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The HTML path to this resource.""" - resourcePath: URI! - """The URL to this resource.""" - url: URI! + """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 { - """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! - """True if the signature was made with GitHub's signing key.""" - wasSignedByGitHub: Boolean! + """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! + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Identifies the label associated with the 'unlabeled' event.""" - label: Label! - """Identifies the `Labelable` associated with the event.""" - labelable: Labelable! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """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 { - """The ID of the project to unlink from the repository.""" - projectId: ID! - """The ID of the repository to unlink from the project.""" - repositoryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the project to unlink from the repository.""" + projectId: ID! + """The ID of the repository to unlink from the project.""" + repositoryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { + """The ID of the project to unlink from the team.""" + projectId: ID! + """The ID of the team to unlink from the project.""" + teamId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The ID of the Project linked to the Repository.""" - projectId: ID! - """The ID of the Repository linked to the Project.""" - repositoryId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project linked to the Repository.""" + projectId: ID! + """The ID of the Repository linked to the Project.""" + repositoryId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The linked Project.""" + project: Project + """The linked Repository.""" + repository: Repository } """Represents an 'unlocked' event on a given issue or pull request.""" type UnlockedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Object that was unlocked.""" - lockable: Lockable! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Object that was unlocked.""" + lockable: Lockable! } """Types that may be associated with an unlocking event of an AchievementTier.""" @@ -26978,2738 +29861,2804 @@ union UnlockingModel = AchievementRepositoryList | CommitComment | Discussion | """Autogenerated input type of UnlockLockable""" input UnlockLockableInput { - """ID of the item to be unlocked.""" - lockableId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """ID of the item to be unlocked.""" + lockableId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 } """Autogenerated input type of UnmarkDiscussionCommentAsAnswer""" input UnmarkDiscussionCommentAsAnswerInput { - """The Node ID of the discussion comment to unmark as an answer.""" - id: ID! - """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! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The discussion that includes the comment.""" + discussion: Discussion } """Represents an 'unmarked_as_duplicate' event on a given issue or pull request.""" type UnmarkedAsDuplicateEvent implements Node { - """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 - id: ID! - """Canonical and duplicate belong to different repositories.""" - isCrossRepository: Boolean! + """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 + id: ID! + """Canonical and duplicate belong to different repositories.""" + isCrossRepository: Boolean! } """Autogenerated input type of UnmarkFileAsViewed""" input UnmarkFileAsViewedInput { - """The Node ID of the pull request.""" - pullRequestId: ID! - """The path of the file to mark as unviewed""" - path: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request.""" + pullRequestId: ID! + """The path of the file to mark as unviewed""" + path: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UnmarkFileAsViewed""" type UnmarkFileAsViewedPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated pull request.""" - pullRequest: PullRequest + """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 marked as a duplicate.""" - duplicateId: ID! - """ID of the issue or pull request currently considered canonical/authoritative/original.""" - canonicalId: ID! - """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! + """ID of the issue or pull request currently considered canonical/authoritative/original.""" + canonicalId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 UnminimizeComment""" input UnminimizeCommentInput { - """The Node ID of the subject to modify.""" - subjectId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the subject to modify.""" + subjectId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The comment that was unminimized.""" + unminimizedComment: Minimizable } """Autogenerated input type of UnpinIssue""" input UnpinIssueInput { - """The ID of the issue to be unpinned""" - issueId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the issue to be unpinned""" + issueId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UnpinIssue""" type UnpinIssuePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The issue that was unpinned""" - issue: Issue + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The issue that was unpinned""" + issue: Issue } """Represents an 'unpinned' event on a given issue or pull request.""" type UnpinnedEvent implements Node { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Identifies the issue associated with the event.""" - issue: Issue! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Identifies the issue associated with the event.""" + issue: Issue! } """Autogenerated input type of UnresolveReviewThread""" input UnresolveReviewThreadInput { - """The ID of the thread to unresolve""" - threadId: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the thread to unresolve""" + threadId: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UnresolveReviewThread""" type UnresolveReviewThreadPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The thread to resolve.""" - thread: PullRequestReviewThread + """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 { - """Identifies the actor who performed the event.""" - actor: Actor - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - id: ID! - """Object referenced by event.""" - subscribable: Subscribable! + """Identifies the actor who performed the event.""" + actor: Actor + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + id: ID! + """Object referenced by event.""" + subscribable: Subscribable! } """Entities that can be updated.""" interface Updatable { - """Check if the current viewer can update this object.""" - viewerCanUpdate: Boolean! + """Check if the current viewer can update this object.""" + viewerCanUpdate: Boolean! } """Comments that can be updated.""" interface UpdatableComment { - """Reasons why the current viewer can not update this comment.""" - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! + """Reasons why the current viewer can not update this comment.""" + viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! } """Autogenerated input type of UpdateBranchProtectionRule""" input UpdateBranchProtectionRuleInput { - """The global relay id of the branch protection rule to be updated.""" - branchProtectionRuleId: ID! - """The glob-like pattern used to determine matching branches.""" - pattern: String - """Are approving reviews required to update matching branches.""" - requiresApprovingReviews: Boolean - """Number of approving reviews required to update matching branches.""" - requiredApprovingReviewCount: Int - """Are commits required to be signed.""" - requiresCommitSignatures: Boolean - """Are merge commits prohibited from being pushed to this branch.""" - requiresLinearHistory: Boolean - """Is branch creation a protected operation.""" - blocksCreations: Boolean - """Are force pushes allowed on this branch.""" - allowsForcePushes: Boolean - """Can this branch be deleted.""" - allowsDeletions: Boolean - """Can admins overwrite branch protection.""" - isAdminEnforced: Boolean - """Are status checks required to update matching branches.""" - requiresStatusChecks: Boolean - """Are branches required to be up to date before merging.""" - requiresStrictStatusChecks: Boolean - """Are reviews from code owners required to update matching branches.""" - requiresCodeOwnerReviews: Boolean - """Will new commits pushed to matching branches dismiss pull request review approvals.""" - dismissesStaleReviews: 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!] - """A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches.""" - bypassPullRequestActorIds: [ID!] - """A list of User, Team, or App IDs allowed to bypass force push targeting matching branches.""" - bypassForcePushActorIds: [ID!] - """Is pushing to matching branches restricted.""" - restrictsPushes: Boolean - """A list of User, Team, or App IDs allowed to push to matching branches.""" - pushActorIds: [ID!] - """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 conversations required to be resolved before merging.""" - requiresConversationResolution: Boolean - """Whether the most recent push must be approved by someone other than the person who pushed it""" - requireLastPushApproval: 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 - """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 - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The global relay id of the branch protection rule to be updated.""" + branchProtectionRuleId: ID! + """The glob-like pattern used to determine matching branches.""" + pattern: String + """Are approving reviews required to update matching branches.""" + requiresApprovingReviews: Boolean + """Number of approving reviews required to update matching branches.""" + requiredApprovingReviewCount: Int + """Are commits required to be signed.""" + requiresCommitSignatures: Boolean + """Are merge commits prohibited from being pushed to this branch.""" + requiresLinearHistory: Boolean + """Is branch creation a protected operation.""" + blocksCreations: Boolean + """Are force pushes allowed on this branch.""" + allowsForcePushes: Boolean + """Can this branch be deleted.""" + allowsDeletions: Boolean + """Can admins overwrite branch protection.""" + isAdminEnforced: Boolean + """Are status checks required to update matching branches.""" + requiresStatusChecks: Boolean + """Are branches required to be up to date before merging.""" + requiresStrictStatusChecks: Boolean + """Are reviews from code owners required to update matching branches.""" + requiresCodeOwnerReviews: Boolean + """Will new commits pushed to matching branches dismiss pull request review approvals.""" + dismissesStaleReviews: 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!] + """A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches.""" + bypassPullRequestActorIds: [ID!] + """A list of User, Team, or App IDs allowed to bypass force push targeting matching branches.""" + bypassForcePushActorIds: [ID!] + """Is pushing to matching branches restricted.""" + restrictsPushes: Boolean + """A list of User, Team, or App IDs allowed to push to matching branches.""" + pushActorIds: [ID!] + """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 successful deployments required before merging.""" + requiresDeployments: Boolean + """The list of required deployment environments""" + requiredDeploymentEnvironments: [String!] + """Are conversations required to be resolved before merging.""" + requiresConversationResolution: Boolean + """Whether the most recent push must be approved by someone other than the person who pushed it""" + requireLastPushApproval: 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 + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateBranchProtectionRule""" type UpdateBranchProtectionRulePayload { - """The newly created BranchProtectionRule.""" - branchProtectionRule: BranchProtectionRule - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The newly created BranchProtectionRule.""" + branchProtectionRule: BranchProtectionRule + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of UpdateCheckRun""" input UpdateCheckRunInput { - """The node ID of the repository.""" - repositoryId: ID! - """The node of the check.""" - checkRunId: ID! - """The name of the check.""" - name: String - """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 current status.""" - status: RequestableCheckStatusState - """The time that the check run began.""" - startedAt: DateTime - """The final conclusion of the check.""" - conclusion: CheckConclusionState - """The time that the check run finished.""" - completedAt: DateTime - """Descriptive details about the run.""" - output: CheckRunOutput - """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 node ID of the repository.""" + repositoryId: ID! + """The node of the check.""" + checkRunId: ID! + """The name of the check.""" + name: String + """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 current status.""" + status: RequestableCheckStatusState + """The time that the check run began.""" + startedAt: DateTime + """The final conclusion of the check.""" + conclusion: CheckConclusionState + """The time that the check run finished.""" + completedAt: DateTime + """Descriptive details about the run.""" + output: CheckRunOutput + """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 } """Autogenerated return type of UpdateCheckRun""" type UpdateCheckRunPayload { - """The updated check run.""" - checkRun: CheckRun - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """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 Node ID of the repository.""" - repositoryId: ID! - """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! + """The check suite preferences to modify.""" + autoTriggerPreferences: [CheckSuiteAutoTriggerPreference!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateCheckSuitePreferences""" type UpdateCheckSuitePreferencesPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated repository.""" - repository: Repository + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated repository.""" + repository: Repository } """Autogenerated input type of UpdateDashboardSearchShortcut""" input UpdateDashboardSearchShortcutInput { - """The ID of the shortcut to update.""" - shortcutId: ID! - """The name of the shortcut.""" - name: String - """The description of the shortcut.""" - description: String - """The search query for the shortcut.""" - query: String - """The search type for the shortcut.""" - searchType: SearchShortcutType - """The icon for the shortcut.""" - icon: SearchShortcutIcon - """The color for the shortcut.""" - color: SearchShortcutColor - """The repository acting as a scope for filtering shortcut query terms.""" - scopingRepository: RepositoryNameWithOwner - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the shortcut to update.""" + shortcutId: ID! + """The name of the shortcut.""" + name: String + """The description of the shortcut.""" + description: String + """The search query for the shortcut.""" + query: String + """The search type for the shortcut.""" + searchType: SearchShortcutType + """The icon for the shortcut.""" + icon: SearchShortcutIcon + """The color for the shortcut.""" + color: SearchShortcutColor + """The repository acting as a scope for filtering shortcut query terms.""" + scopingRepository: RepositoryNameWithOwner + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateDashboardSearchShortcut""" type UpdateDashboardSearchShortcutPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The dashboard owning the shortcut.""" - dashboard: UserDashboard - """The updated search shortcut.""" - shortcut: SearchShortcut + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The dashboard owning the shortcut.""" + dashboard: UserDashboard + """The updated search shortcut.""" + shortcut: SearchShortcut } """Autogenerated input type of UpdateDashboardSelectedTeams""" input UpdateDashboardSelectedTeamsInput { - """The IDs of the teams to select.""" - teamIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The IDs of the teams to select.""" + teamIds: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateDashboardSelectedTeams""" type UpdateDashboardSelectedTeamsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The dashboard owned by the viewer""" - dashboard: UserDashboard - """The new selected team edges.""" - dashboardTeamEdges: [TeamEdge!] - """The ids of the teams that were removed from the selected teams.""" - removedTeamIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The dashboard owned by the viewer""" + dashboard: UserDashboard + """The new selected team edges.""" + dashboardTeamEdges: [TeamEdge!] + """The ids of the teams that were removed from the selected teams.""" + removedTeamIds: [ID!] } """Autogenerated input type of UpdateDiscussionComment""" input UpdateDiscussionCommentInput { - """The Node ID of the discussion comment to update.""" - commentId: ID! - """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! + """The new contents of the comment body.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateDiscussionComment""" type UpdateDiscussionCommentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The modified discussion comment.""" - comment: DiscussionComment + """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 Node ID of the discussion to update.""" - discussionId: ID! - """The new discussion title.""" - title: String - """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 - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the discussion to update.""" + discussionId: ID! + """The new discussion title.""" + title: String + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateDiscussion""" type UpdateDiscussionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The modified discussion.""" - discussion: Discussion + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The modified discussion.""" + discussion: Discussion } """Autogenerated input type of UpdateEnterpriseAdministratorRole""" input UpdateEnterpriseAdministratorRoleInput { - """The ID of the Enterprise which the admin belongs to.""" - enterpriseId: ID! - """The login of a administrator whose role is being changed.""" - login: String! - """The new role for the Enterprise administrator.""" - role: EnterpriseAdministratorRole! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Enterprise which the admin belongs to.""" + enterpriseId: ID! + """The login of a administrator whose role is being changed.""" + login: String! + """The new role for the Enterprise administrator.""" + role: EnterpriseAdministratorRole! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the allow private repository forking setting.""" - enterpriseId: ID! - """The value for the allow private repository forking setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """The value for the allow private repository forking policy on the enterprise.""" - policyValue: EnterpriseAllowPrivateRepositoryForkingPolicyValue - """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! + """The value for the allow private repository forking setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """The value for the allow private repository forking policy on the enterprise.""" + policyValue: EnterpriseAllowPrivateRepositoryForkingPolicyValue + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the base repository permission setting.""" - enterpriseId: ID! - """The value for the base repository permission setting on the enterprise.""" - settingValue: EnterpriseDefaultRepositoryPermissionSettingValue! - """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! + """The value for the base repository permission setting on the enterprise.""" + settingValue: EnterpriseDefaultRepositoryPermissionSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting""" input UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput { - """The ID of the enterprise on which to set the members can change repository visibility setting.""" - enterpriseId: ID! - """The value for the members can change repository visibility setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the members can change repository visibility setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the members can create repositories setting.""" - enterpriseId: ID! - """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 - """When false, allow member organizations to set their own repository creation member privileges.""" - membersCanCreateRepositoriesPolicyEnabled: Boolean - """Allow members to create public repositories. Defaults to current value.""" - membersCanCreatePublicRepositories: Boolean - """Allow members to create private repositories. Defaults to current value.""" - membersCanCreatePrivateRepositories: Boolean - """Allow members to create internal repositories. Defaults to current value.""" - membersCanCreateInternalRepositories: Boolean - """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! + """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 + """When false, allow member organizations to set their own repository creation member privileges.""" + membersCanCreateRepositoriesPolicyEnabled: Boolean + """Allow members to create public repositories. Defaults to current value.""" + membersCanCreatePublicRepositories: Boolean + """Allow members to create private repositories. Defaults to current value.""" + membersCanCreatePrivateRepositories: Boolean + """Allow members to create internal repositories. Defaults to current value.""" + membersCanCreateInternalRepositories: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the members can delete issues setting.""" - enterpriseId: ID! - """The value for the members can delete issues setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the members can delete issues setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the members can delete repositories setting.""" - enterpriseId: ID! - """The value for the members can delete repositories setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the members can delete repositories setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the members can invite collaborators setting.""" - enterpriseId: ID! - """The value for the members can invite collaborators setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the members can invite collaborators setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the members can make purchases setting.""" - enterpriseId: ID! - """The value for the members can make purchases setting on the enterprise.""" - settingValue: EnterpriseMembersCanMakePurchasesSettingValue! - """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! + """The value for the members can make purchases setting on the enterprise.""" + settingValue: EnterpriseMembersCanMakePurchasesSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the members can update protected branches setting.""" - enterpriseId: ID! - """The value for the members can update protected branches setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the members can update protected branches setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the members can view dependency insights setting.""" - enterpriseId: ID! - """The value for the members can view dependency insights setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the members can view dependency insights setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the enterprise on which to set the organization projects setting.""" - enterpriseId: ID! - """The value for the organization projects setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the organization projects setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the Enterprise which the owner belongs to.""" - enterpriseId: ID! - """The ID of the organization for membership change.""" - organizationId: ID! - """The role to assume in the organization.""" - organizationRole: RoleInOrganization! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Enterprise which the owner belongs to.""" + enterpriseId: ID! + """The ID of the organization for membership change.""" + organizationId: ID! + """The role to assume in the organization.""" + organizationRole: RoleInOrganization! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Enterprise ID to update.""" - enterpriseId: ID! - """The name of the enterprise.""" - name: String - """The description of the enterprise.""" - description: String - """The URL of the enterprise's website.""" - websiteUrl: String - """The location of the enterprise.""" - location: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Enterprise ID to update.""" + enterpriseId: ID! + """The name of the enterprise.""" + name: String + """The description of the enterprise.""" + description: String + """The URL of the enterprise's website.""" + websiteUrl: String + """The location of the enterprise.""" + location: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateEnterpriseProfile""" type UpdateEnterpriseProfilePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated enterprise.""" - enterprise: Enterprise + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated enterprise.""" + enterprise: Enterprise } """Autogenerated input type of UpdateEnterpriseRepositoryProjectsSetting""" input UpdateEnterpriseRepositoryProjectsSettingInput { - """The ID of the enterprise on which to set the repository projects setting.""" - enterpriseId: ID! - """The value for the repository projects setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """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! + """The value for the repository projects setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 UpdateEnterpriseTeamDiscussionsSetting""" input UpdateEnterpriseTeamDiscussionsSettingInput { - """The ID of the enterprise on which to set the team discussions setting.""" - enterpriseId: ID! - """The value for the team discussions setting on the enterprise.""" - settingValue: EnterpriseEnabledDisabledSettingValue! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the enterprise on which to set the team discussions setting.""" + enterpriseId: ID! + """The value for the team discussions setting on the enterprise.""" + settingValue: EnterpriseEnabledDisabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateEnterpriseTeamDiscussionsSetting""" type UpdateEnterpriseTeamDiscussionsSettingPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The enterprise with the updated team discussions setting.""" - enterprise: Enterprise - """A message confirming the result of updating the team discussions setting.""" - message: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The enterprise with the updated team discussions setting.""" + enterprise: Enterprise + """A message confirming the result of updating the team discussions setting.""" + message: String } """Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting""" input UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput { - """The ID of the enterprise on which to set the two factor authentication required setting.""" - enterpriseId: ID! - """The value for the two factor authentication required setting on the enterprise.""" - settingValue: EnterpriseEnabledSettingValue! - """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! + """The value for the two factor authentication required setting on the enterprise.""" + settingValue: EnterpriseEnabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The node ID of the environment.""" - environmentId: ID! - """The wait timer in minutes.""" - waitTimer: Int - """The ids of users or teams that can approve deployments to this environment""" - reviewers: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The node ID of the environment.""" + environmentId: ID! + """The wait timer in minutes.""" + waitTimer: Int + """The ids of users or teams that can approve deployments to this environment""" + reviewers: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateEnvironment""" type UpdateEnvironmentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated environment.""" - environment: Environment + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated environment.""" + environment: Environment } """Autogenerated input type of UpdateIpAllowListEnabledSetting""" input UpdateIpAllowListEnabledSettingInput { - """The ID of the owner on which to set the IP allow list enabled setting.""" - ownerId: ID! - """The value for the IP allow list enabled setting.""" - settingValue: IpAllowListEnabledSettingValue! - """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! + """The value for the IP allow list enabled setting.""" + settingValue: IpAllowListEnabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the IP allow list entry to update.""" - ipAllowListEntryId: ID! - """An IP address or range of addresses in CIDR notation.""" - allowListValue: String! - """An optional name for the IP allow list entry.""" - name: String - """Whether the IP allow list entry is active when an IP allow list is enabled.""" - isActive: Boolean! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the IP allow list entry to update.""" + ipAllowListEntryId: ID! + """An IP address or range of addresses in CIDR notation.""" + allowListValue: String! + """An optional name for the IP allow list entry.""" + name: String + """Whether the IP allow list entry is active when an IP allow list is enabled.""" + isActive: Boolean! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The ID of the owner.""" - ownerId: ID! - """The value for the IP allow list configuration for installed GitHub Apps setting.""" - settingValue: IpAllowListForInstalledAppsEnabledSettingValue! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the owner.""" + ownerId: ID! + """The value for the IP allow list configuration for installed GitHub Apps setting.""" + settingValue: IpAllowListForInstalledAppsEnabledSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 ID of the IssueComment to modify.""" - id: ID! - """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! + """The updated text of the comment.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateIssueComment""" type UpdateIssueCommentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated comment.""" - issueComment: IssueComment + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated comment.""" + issueComment: IssueComment } """Autogenerated input type of UpdateIssue""" input UpdateIssueInput { - """The ID of the Issue to modify.""" - id: ID! - """The title for the issue.""" - title: String - """The body for the issue description.""" - body: String - """An array of Node IDs of users for this issue.""" - assigneeIds: [ID!] - """The Node ID of the milestone for this issue.""" - milestoneId: ID - """An array of Node IDs of labels for this issue.""" - labelIds: [ID!] - """The desired issue state.""" - state: IssueState - """An array of Node IDs for projects associated with this issue.""" - projectIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Issue to modify.""" + id: ID! + """The title for the issue.""" + title: String + """The body for the issue description.""" + body: String + """An array of Node IDs of users for this issue.""" + assigneeIds: [ID!] + """The Node ID of the milestone for this issue.""" + milestoneId: ID + """An array of Node IDs of labels for this issue.""" + labelIds: [ID!] + """The desired issue state.""" + state: IssueState + """An array of Node IDs for projects associated with this issue.""" + projectIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 UpdateMobilePushNotificationSchedules""" input UpdateMobilePushNotificationSchedulesInput { - """The days of the week for the schedule.""" - days: [DayOfWeek!]! - """The schedule start time (0:00..23:59)""" - startTime: MobilePushScheduleTime! - """The end start time (0:00..23:59)""" - endTime: MobilePushScheduleTime! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The days of the week for the schedule.""" + days: [DayOfWeek!]! + """The schedule start time (0:00..23:59)""" + startTime: MobilePushScheduleTime! + """The end start time (0:00..23:59)""" + endTime: MobilePushScheduleTime! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateMobilePushNotificationSchedules""" type UpdateMobilePushNotificationSchedulesPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated mobile push notification schedules.""" - mobilePushNotificationSchedules: [MobilePushNotificationSchedule!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated mobile push notification schedules.""" + mobilePushNotificationSchedules: [MobilePushNotificationSchedule!] } """Autogenerated input type of UpdateMobilePushNotificationSettings""" input UpdateMobilePushNotificationSettingsInput { - """If the user would like to receive direct mentions.""" - getDirectMentions: Boolean - """If the user would like to receive assignments.""" - getAssignments: Boolean - """If the user would like to receive review requests.""" - getReviewRequests: Boolean - """If the user would like to receive deployment requests.""" - getDeploymentRequests: Boolean - """If the user would like to receive pull request reviews.""" - getPullRequestReviews: Boolean - """If the user currently has a push notification schedule enabled/disabled (e.g., working hours).""" - scheduledNotifications: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """If the user would like to receive direct mentions.""" + getDirectMentions: Boolean + """If the user would like to receive assignments.""" + getAssignments: Boolean + """If the user would like to receive review requests.""" + getReviewRequests: Boolean + """If the user would like to receive deployment requests.""" + getDeploymentRequests: Boolean + """If the user would like to receive pull request reviews.""" + getPullRequestReviews: Boolean + """If the user currently has a push notification schedule enabled/disabled (e.g., working hours).""" + scheduledNotifications: Boolean + """If the user would like to receive CI activity.""" + getCiActivity: Boolean + """If the user would like to receive CI activity only for failed workflows.""" + getCiFailedOnly: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateMobilePushNotificationSettings""" type UpdateMobilePushNotificationSettingsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The user whose push settings will be updated.""" - user: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The user whose push settings will be updated.""" + user: User } """Autogenerated input type of UpdateNotificationRestrictionSetting""" input UpdateNotificationRestrictionSettingInput { - """The ID of the owner on which to set the restrict notifications setting.""" - ownerId: ID! - """The value for the restrict notifications setting.""" - settingValue: NotificationRestrictionSettingValue! - """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! + """The value for the restrict notifications setting.""" + settingValue: NotificationRestrictionSettingValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 UpdateNotificationSettings""" input UpdateNotificationSettingsInput { - """Does the viewer get web notifications for threads in which they are participating?""" - getsParticipatingWeb: Boolean - """Does the viewer get web notifications for threads which they are watching or to which they are subscribed?""" - getsWatchingWeb: Boolean - """Does the viewer get web notifications for vulnerability alerts?""" - getsVulnerabilityAlertsWeb: Boolean - """Does the viewer get mobile push notifications for comments in which they are directly mentioned?""" - getsDirectMentionMobilePush: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Does the viewer get web notifications for threads in which they are participating?""" + getsParticipatingWeb: Boolean + """Does the viewer get web notifications for threads which they are watching or to which they are subscribed?""" + getsWatchingWeb: Boolean + """Does the viewer get web notifications for vulnerability alerts?""" + getsVulnerabilityAlertsWeb: Boolean + """Does the viewer get mobile push notifications for comments in which they are directly mentioned?""" + getsDirectMentionMobilePush: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateNotificationSettings""" type UpdateNotificationSettingsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """Did the operation succeed?""" - success: Boolean - """The user whose settings were updated.""" - viewer: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """Did the operation succeed?""" + success: Boolean + """The user whose settings were updated.""" + viewer: User } """Autogenerated input type of UpdateOrganizationAllowPrivateRepositoryForkingSetting""" input UpdateOrganizationAllowPrivateRepositoryForkingSettingInput { - """The ID of the organization on which to set the allow private repository forking setting.""" - organizationId: ID! - """Enable forking of private repositories in the organization?""" - forkingEnabled: Boolean! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the organization on which to set the allow private repository forking setting.""" + organizationId: ID! + """Enable forking of private repositories in the organization?""" + forkingEnabled: Boolean! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The ID of the organization on which to set the web commit signoff setting.""" - organizationId: ID! - """Enable signoff on web-based commits for repositories in the organization?""" - webCommitSignoffRequired: Boolean! - """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! + """Enable signoff on web-based commits for repositories in the organization?""" + webCommitSignoffRequired: Boolean! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 +} + +"""Parameters to be used for the update rule""" +type UpdateParameters { + """Branch can pull changes from its upstream repository""" + updateAllowsFetchAndMerge: Boolean! +} + +"""Parameters to be used for the update rule""" +input UpdateParametersInput { + """Branch can pull changes from its upstream repository""" + updateAllowsFetchAndMerge: Boolean! } """Autogenerated input type of UpdateProjectCard""" input UpdateProjectCardInput { - """The ProjectCard ID to update.""" - projectCardId: ID! - """Whether or not the ProjectCard should be archived""" - isArchived: Boolean - """The note of ProjectCard.""" - note: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ProjectCard ID to update.""" + projectCardId: ID! + """Whether or not the ProjectCard should be archived""" + isArchived: Boolean + """The note of ProjectCard.""" + note: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateProjectCard""" type UpdateProjectCardPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated ProjectCard.""" - projectCard: ProjectCard + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated ProjectCard.""" + projectCard: ProjectCard } """Autogenerated input type of UpdateProjectColumn""" input UpdateProjectColumnInput { - """The ProjectColumn ID to update.""" - projectColumnId: ID! - """The name of project column.""" - name: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ProjectColumn ID to update.""" + projectColumnId: ID! + """The name of project column.""" + name: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateProjectColumn""" type UpdateProjectColumnPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated project column.""" - projectColumn: ProjectColumn + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated project column.""" + projectColumn: ProjectColumn } """Autogenerated input type of UpdateProjectDraftIssue""" input UpdateProjectDraftIssueInput { - """The ID of the draft issue to update.""" - draftIssueId: ID! - """The title of the draft issue.""" - title: String - """The body of the draft issue.""" - body: String - """The IDs of the assignees of the draft issue.""" - assigneeIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the draft issue to update.""" + draftIssueId: ID! + """The title of the draft issue.""" + title: String + """The body of the draft issue.""" + body: String + """The IDs of the assignees of the draft issue.""" + assigneeIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateProjectDraftIssue""" type UpdateProjectDraftIssuePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The draft issue updated in the project.""" - draftIssue: DraftIssue + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The draft issue updated in the project.""" + draftIssue: DraftIssue } """Autogenerated input type of UpdateProject""" input UpdateProjectInput { - """The Project ID to update.""" - projectId: ID! - """The name of project.""" - name: String - """The description of project.""" - body: String - """Whether the project is open or closed.""" - state: ProjectState - """Whether the project is public or not.""" - public: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Project ID to update.""" + projectId: ID! + """The name of project.""" + name: String + """The description of project.""" + body: String + """Whether the project is open or closed.""" + state: ProjectState + """Whether the project is public or not.""" + public: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of UpdateProjectNext""" input UpdateProjectNextInput { - """ - The ID of the Project to update. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - projectId: ID - """ - Set the title of the project. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `title` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - title: String - """ - Set the readme description of the project. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `description` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - description: String - """ - Set the short description of the project. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `shortDescription` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - shortDescription: String - """ - Set the project to closed or open. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `closed` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - closed: Boolean - """ - Set the project to public or private. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `public` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - public: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to update. This field is required.""" + projectId: ID + """Set the title of the project.""" + title: String + """Set the readme description of the project.""" + description: String + """Set the short description of the project.""" + shortDescription: String + """Set the project to closed or open.""" + closed: Boolean + """Set the project to public or private.""" + public: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of UpdateProjectNextItemField""" input UpdateProjectNextItemFieldInput { - """The ID of the Project. This field is required.""" - projectId: ID - """ - The id of the item to be updated. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `itemId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - itemId: ID - """ - The id of the field to be updated. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `fieldId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - fieldId: ID - """ - The value which will be set on the field. This field is required. - - **Upcoming Change on 2023-01-01 UTC** - **Description:** `value` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - """ - value: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project. This field is required.""" + projectId: ID + """The id of the item to be updated. This field is required.""" + itemId: ID + """The id of the field to be updated.""" + fieldId: ID + """[Deprecated] Use `fieldConstraintId` instead. The id of the field to be updated. Only supports custom fields and status for now.""" + fieldWithSettingId: ID + """The id of the field to be updated. Only supports custom fields and status for now.""" + fieldConstraintId: ID + """The value which will be set on the field. This field is required.""" + value: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateProjectNextItemField""" type UpdateProjectNextItemFieldPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated item.""" - projectNextItem: ProjectNextItem @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated item.""" + projectNextItem: ProjectNextItem } """Autogenerated return type of UpdateProjectNext""" type UpdateProjectNextPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated Project.""" - projectNext: ProjectNext @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated Project.""" + projectNext: ProjectNext } """Autogenerated return type of UpdateProject""" type UpdateProjectPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated project.""" - project: Project + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated project.""" + project: Project } """Autogenerated input type of UpdateProjectV2DraftIssue""" input UpdateProjectV2DraftIssueInput { - """The ID of the draft issue to update.""" - draftIssueId: ID! - """The title of the draft issue.""" - title: String - """The body of the draft issue.""" - body: String - """The IDs of the assignees of the draft issue.""" - assigneeIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the draft issue to update.""" + draftIssueId: ID! + """The title of the draft issue.""" + title: String + """The body of the draft issue.""" + body: String + """The IDs of the assignees of the draft issue.""" + assigneeIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The draft issue updated in the project.""" + draftIssue: DraftIssue } """Autogenerated input type of UpdateProjectV2""" input UpdateProjectV2Input { - """The ID of the Project to update.""" - projectId: ID! - """Set the title of the project.""" - title: String - """Set the short description of the project.""" - shortDescription: String - """Set the readme description of the project.""" - readme: String - """Set the project to closed or open.""" - closed: Boolean - """Set the project to public or private.""" - public: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project to update.""" + projectId: ID! + """Set the title of the project.""" + title: String + """Set the short description of the project.""" + shortDescription: String + """Set the readme description of the project.""" + readme: String + """Set the project to closed or open.""" + closed: Boolean + """Set the project to public or private.""" + public: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated input type of UpdateProjectV2ItemFieldValue""" input UpdateProjectV2ItemFieldValueInput { - """The ID of the Project.""" - projectId: ID! - """The ID of the item to be updated.""" - itemId: ID! - """The ID of the field to be updated.""" - fieldId: ID! - """The value which will be set on the field.""" - value: ProjectV2FieldValue! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project.""" + projectId: ID! + """The ID of the item to be updated.""" + itemId: ID! + """The ID of the field to be updated.""" + fieldId: ID! + """The value which will be set on the field.""" + value: ProjectV2FieldValue! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateProjectV2ItemFieldValue""" type UpdateProjectV2ItemFieldValuePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated item.""" - projectV2Item: ProjectV2Item + """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 Project.""" - projectId: ID! - """The ID of the item to be moved.""" - itemId: ID! - """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 - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the Project.""" + projectId: ID! + """The ID of the item to be moved.""" + itemId: ID! + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated Project.""" + projectV2: ProjectV2 } """Autogenerated input type of UpdatePullRequestBranch""" input UpdatePullRequestBranchInput { - """The Node ID of the pull request.""" - pullRequestId: ID! - """The head ref oid for the upstream branch.""" - expectedHeadOid: GitObjectID - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request.""" + pullRequestId: ID! + """The head ref oid for the upstream branch.""" + expectedHeadOid: GitObjectID + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdatePullRequestBranch""" type UpdatePullRequestBranchPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated pull request.""" - pullRequest: PullRequest + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated pull request.""" + pullRequest: PullRequest } """Autogenerated input type of UpdatePullRequest""" input UpdatePullRequestInput { - """The Node ID of the pull request.""" - pullRequestId: ID! - """ - The name of the branch you want your changes pulled into. This should be an existing branch - on the current repository. - """ - baseRefName: String - """The title of the pull request.""" - title: String - """The contents of the pull request.""" - body: String - """The target state of the pull request.""" - state: PullRequestUpdateState - """Indicates whether maintainers can modify the pull request.""" - maintainerCanModify: Boolean - """An array of Node IDs of users for this pull request.""" - assigneeIds: [ID!] - """The Node ID of the milestone for this pull request.""" - milestoneId: ID - """An array of Node IDs of labels for this pull request.""" - labelIds: [ID!] - """An array of Node IDs for projects associated with this pull request.""" - projectIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the pull request.""" + pullRequestId: ID! + """ + The name of the branch you want your changes pulled into. This should be an existing branch + on the current repository. + """ + baseRefName: String + """The title of the pull request.""" + title: String + """The contents of the pull request.""" + body: String + """The target state of the pull request.""" + state: PullRequestUpdateState + """Indicates whether maintainers can modify the pull request.""" + maintainerCanModify: Boolean + """An array of Node IDs of users for this pull request.""" + assigneeIds: [ID!] + """The Node ID of the milestone for this pull request.""" + milestoneId: ID + """An array of Node IDs of labels for this pull request.""" + labelIds: [ID!] + """An array of Node IDs for projects associated with this pull request.""" + projectIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 Node ID of the comment to modify.""" - pullRequestReviewCommentId: ID! - """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! + """The text of the comment.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdatePullRequestReviewComment""" type UpdatePullRequestReviewCommentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated comment.""" - pullRequestReviewComment: PullRequestReviewComment + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated comment.""" + pullRequestReviewComment: PullRequestReviewComment } """Autogenerated input type of UpdatePullRequestReview""" input UpdatePullRequestReviewInput { - """The Node ID of the pull request review to modify.""" - pullRequestReviewId: ID! - """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! + """The contents of the pull request review body.""" + body: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """The Node ID of the Ref to be updated.""" - refId: ID! - """The GitObjectID that the Ref shall be updated to target.""" - oid: GitObjectID! - """Permit updates of branch Refs that are not fast-forwards?""" - force: Boolean = false - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the Ref to be updated.""" + refId: ID! + """The GitObjectID that the Ref shall be updated to target.""" + oid: GitObjectID! + """Permit updates of branch Refs that are not fast-forwards?""" + force: Boolean = false + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateRef""" type UpdateRefPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated Ref.""" - ref: Ref + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated Ref.""" + ref: Ref } """Autogenerated input type of UpdateRepository""" input UpdateRepositoryInput { - """The ID of the repository to update.""" - repositoryId: ID! - """The new name of the repository.""" - name: String - """A new description for the repository. Pass an empty string to erase the existing description.""" - description: String - """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 - """The URL for a web page about this repository. Pass an empty string to erase the existing URL.""" - homepageUrl: URI - """Indicates if the repository should have the wiki feature enabled.""" - hasWikiEnabled: 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 discussions feature enabled.""" - hasDiscussionsEnabled: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the repository to update.""" + repositoryId: ID! + """The new name of the repository.""" + name: String + """A new description for the repository. Pass an empty string to erase the existing description.""" + description: String + """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 + """The URL for a web page about this repository. Pass an empty string to erase the existing URL.""" + homepageUrl: URI + """Indicates if the repository should have the wiki feature enabled.""" + hasWikiEnabled: 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 discussions feature enabled.""" + hasDiscussionsEnabled: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateRepository""" type UpdateRepositoryPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated repository.""" - repository: Repository + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated repository.""" + repository: Repository +} + +"""Autogenerated input type of UpdateRepositoryRuleset""" +input UpdateRepositoryRulesetInput { + """The global relay id of the repository ruleset to be updated.""" + repositoryRulesetId: ID! + """The name of the ruleset.""" + name: String + """The target of the ruleset.""" + target: RepositoryRulesetTarget + """The list of rules for this ruleset""" + rules: [RepositoryRuleInput!] + """The list of conditions for this ruleset""" + conditions: RepositoryRuleConditionsInput + """The enforcement level for this ruleset""" + enforcement: RuleEnforcement + """The bypass mode for this ruleset""" + bypassMode: RuleBypassMode + """A list of Team or App IDs allowed to bypass rules in this ruleset.""" + bypassActorIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String +} + +"""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 { - """The ID of the repository to update.""" - repositoryId: ID! - """Indicates if the repository should require signoff on web-based commits.""" - webCommitSignoffRequired: Boolean! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the repository to update.""" + repositoryId: ID! + """Indicates if the repository should require signoff on web-based commits.""" + webCommitSignoffRequired: Boolean! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 + """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 { - """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 - """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 - """The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.""" - sponsorableLogin: String - """Whether the sponsor should receive email updates from the sponsorable.""" - receiveEmails: Boolean = true - """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 - """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 + """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 + """The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.""" + sponsorableLogin: String + """Whether the sponsor should receive email updates from the sponsorable.""" + receiveEmails: Boolean = true + """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 + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The Node ID of the subscribable object to modify.""" - subscribableId: ID! - """The new state of the subscription.""" - state: SubscriptionState! - """If the state of the subscription is custom pass in the type to subscribe to.""" - types: [CustomSubscriptionType!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the subscribable object to modify.""" + subscribableId: ID! + """The new state of the subscription.""" + state: SubscriptionState! + """If the state of the subscription is custom pass in the type to subscribe to.""" + types: [CustomSubscriptionType!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateSubscription""" type UpdateSubscriptionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The input subscribable entity.""" - subscribable: Subscribable + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The input subscribable entity.""" + subscribable: Subscribable } """Autogenerated input type of UpdateTeamDashboardSearchShortcut""" input UpdateTeamDashboardSearchShortcutInput { - """The ID of the shortcut to update.""" - shortcutId: ID! - """The name of the shortcut.""" - name: String - """The description of the shortcut.""" - description: String - """The search query for the shortcut.""" - query: String - """The search type for the shortcut.""" - searchType: SearchShortcutType - """The icon for the shortcut.""" - icon: SearchShortcutIcon - """The color for the shortcut.""" - color: SearchShortcutColor - """The repository acting as a scope for filtering shortcut query terms.""" - scopingRepository: RepositoryNameWithOwner - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the shortcut to update.""" + shortcutId: ID! + """The name of the shortcut.""" + name: String + """The description of the shortcut.""" + description: String + """The search query for the shortcut.""" + query: String + """The search type for the shortcut.""" + searchType: SearchShortcutType + """The icon for the shortcut.""" + icon: SearchShortcutIcon + """The color for the shortcut.""" + color: SearchShortcutColor + """The repository acting as a scope for filtering shortcut query terms.""" + scopingRepository: RepositoryNameWithOwner + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateTeamDashboardSearchShortcut""" type UpdateTeamDashboardSearchShortcutPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The dashboard owning the shortcut.""" - dashboard: TeamDashboard - """The updated search shortcut.""" - shortcut: TeamSearchShortcut + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The dashboard owning the shortcut.""" + dashboard: TeamDashboard + """The updated search shortcut.""" + shortcut: TeamSearchShortcut } """Autogenerated input type of UpdateTeamDiscussionComment""" input UpdateTeamDiscussionCommentInput { - """The ID of the comment to modify.""" - id: ID! - """The updated text of the comment.""" - body: String! - """The current version of the body content.""" - bodyVersion: String - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the comment to modify.""" + id: ID! + """The updated text of the comment.""" + body: String! + """The current version of the body content.""" + bodyVersion: String + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateTeamDiscussionComment""" type UpdateTeamDiscussionCommentPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated comment.""" - teamDiscussionComment: TeamDiscussionComment + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated comment.""" + teamDiscussionComment: TeamDiscussionComment } """Autogenerated input type of UpdateTeamDiscussion""" input UpdateTeamDiscussionInput { - """The Node ID of the discussion to modify.""" - id: ID! - """The updated title of the discussion.""" - title: String - """The updated text of the discussion.""" - body: String - """The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.""" - bodyVersion: String - """If provided, sets the pinned state of the updated discussion.""" - pinned: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the discussion to modify.""" + id: ID! + """The updated title of the discussion.""" + title: String + """The updated text of the discussion.""" + body: String + """The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.""" + bodyVersion: String + """If provided, sets the pinned state of the updated discussion.""" + pinned: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateTeamDiscussion""" type UpdateTeamDiscussionPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated discussion.""" - teamDiscussion: TeamDiscussion + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated discussion.""" + teamDiscussion: TeamDiscussion } """Autogenerated input type of UpdateTeamsRepository""" input UpdateTeamsRepositoryInput { - """Repository ID being granted access to.""" - repositoryId: ID! - """A list of teams being granted access. Limit: 10""" - teamIds: [ID!]! - """Permission that should be granted to the teams.""" - permission: RepositoryPermission! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """Repository ID being granted access to.""" + repositoryId: ID! + """A list of teams being granted access. Limit: 10""" + teamIds: [ID!]! + """Permission that should be granted to the teams.""" + permission: RepositoryPermission! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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!] + """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 { - """The Node ID of the repository.""" - repositoryId: ID! - """An array of topic names.""" - topicNames: [String!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The Node ID of the repository.""" + repositoryId: ID! + """An array of topic names.""" + topicNames: [String!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 UpdateUserDashboardNavLinks""" input UpdateUserDashboardNavLinksInput { - """A set of UserDashboardNavLinkIdentifier enums in the sorted order.""" - sortedLinks: [UserDashboardNavLinkIdentifier!]! - """An optional list of UserDashboardNavLinkIdentifier enums to mark as hidden.""" - hiddenLinks: [UserDashboardNavLinkIdentifier!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """A set of UserDashboardNavLinkIdentifier enums in the sorted order.""" + sortedLinks: [UserDashboardNavLinkIdentifier!]! + """An optional list of UserDashboardNavLinkIdentifier enums to mark as hidden.""" + hiddenLinks: [UserDashboardNavLinkIdentifier!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateUserDashboardNavLinks""" type UpdateUserDashboardNavLinksPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The saved links dashboard""" - dashboard: UserDashboard - """The saved links.""" - navLinks: [UserDashboardNavLink!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The saved links dashboard""" + dashboard: UserDashboard + """The saved links.""" + navLinks: [UserDashboardNavLink!] } """Autogenerated input type of UpdateUserDashboardPins""" input UpdateUserDashboardPinsInput { - """IDs of the items you want to pin to your dashboard.""" - itemIds: [ID!]! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """IDs of the items you want to pin to your dashboard.""" + itemIds: [ID!]! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateUserDashboardPins""" type UpdateUserDashboardPinsPayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The owner of the dashboard that was updated.""" - user: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The owner of the dashboard that was updated.""" + user: User } """Autogenerated input type of UpdateUserList""" input UpdateUserListInput { - """The ID of the list to update.""" - listId: ID! - """The name of the list""" - name: String - """A description of the list""" - description: String - """Whether or not the list is private""" - isPrivate: Boolean - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the list to update.""" + listId: ID! + """The name of the list""" + name: String + """A description of the list""" + description: String + """Whether or not the list is private""" + isPrivate: Boolean + """A unique identifier for the client performing the mutation.""" + clientMutationId: 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 + """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 { - """The item to add to the list""" - itemId: ID! - """The lists to which this item should belong""" - listIds: [ID!]! - """The suggested lists to create and add this item to""" - suggestedListIds: [ID!] - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The item to add to the list""" + itemId: ID! + """The lists to which this item should belong""" + listIds: [ID!]! + """The suggested lists to create and add this item to""" + suggestedListIds: [ID!] + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 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 } """Autogenerated input type of UpdateUserMobileTimeZone""" input UpdateUserMobileTimeZoneInput { - """The user's time zone name""" - timeZone: String! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The user's time zone name""" + timeZone: String! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """Autogenerated return type of UpdateUserMobileTimeZone""" type UpdateUserMobileTimeZonePayload { - """A unique identifier for the client performing the mutation.""" - clientMutationId: String - """The updated user.""" - user: User + """A unique identifier for the client performing the mutation.""" + clientMutationId: String + """The updated user.""" + user: User } """An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.""" scalar URI """A user is an individual's account on GitHub that owns repositories and can make new content.""" -type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectNextOwner & ProjectV2Owner & ProjectV2Recent & RepositoryDiscussionAuthor & RepositoryDiscussionCommentAuthor & RepositoryOwner & UniformResourceLocatable & ProfileOwner & Sponsorable { - """Return a specific achievement that this user has unlocked.""" - achievement( - """The slug of the achievement to return.""" - slug: String! - """Include your own achievements that you have hidden.""" - includeHidden: Boolean = false - ): Achievement - """Collection of Achievements this user has unlocked, most recently unlocked first.""" - achievements( - """Include your own achievements that you have hidden.""" - includeHidden: Boolean = false - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): AchievementConnection! - """The activity feed for this user""" - activityFeed: Feed - """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! - """Whether this user can create lists.""" - canCreateLists: Boolean! - """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 user's profile configuration repository""" - configurationRepository: Repository - """The collection of contributions this user has made to different repositories.""" - contributionsCollection( - """The ID of the organization used to filter contributions.""" - organizationID: ID - """Only contributions made at this time or later will be counted. If omitted, defaults to a year ago.""" - from: DateTime - """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! - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """Dashboard for this user.""" - dashboard: UserDashboard - """A list of items this user has pinned to their dashboard.""" - dashboardPinnedItems( - """Filter the types of pinned items that are returned.""" - types: [PinnableItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): DashboardPinnableItemConnection! - """Identifies the primary key from the database.""" - databaseId: Int - """The user's publicly visible profile email.""" - email: String! - """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( - """Filters Gists according to privacy.""" - privacy: GistPrivacy - """Ordering options for gists returned from the connection""" - orderBy: GistOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): GistConnection! - """If this user is a GitHub Star, the URL to this user's GitHub Stars profile.""" - githubStarsProfileUrl: URI - """Indicates if a user's plan subscription is an apple iap subscription""" - hasAppleIapSubscription: Boolean! - """Whether this user has created lists.""" - hasCreatedLists: Boolean! - """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! - 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 viewer_is_following""" - 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 the user has an active pro plan.""" - isProPlan: Boolean - """Whether or not this user is a site administrator.""" - isSiteAdmin: Boolean! - """Check if 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( - """Ordering options for issue comments returned from the connection.""" - orderBy: IssueCommentOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): IssueCommentConnection! - """A list of issues associated with this user.""" - issues( - """Ordering options for issues returned from the connection.""" - orderBy: IssueOrder - """A list of label names to filter the pull requests by.""" - labels: [String!] - """A list of states to filter the issues by.""" - states: [IssueState!] - """Filtering options for issues returned from the connection.""" - filterBy: IssueFilters - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """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! - """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 - """Ordering options for the returned lists""" - orderBy: UserListOrder = {field: LAST_ADDED_AT, direction: DESC} - ): UserListConnection! - """The user's public profile location.""" - location: String - """The username used to login.""" - login: String! - """The status of mobile auth keys and requests associated with this user.""" - mobileAuthStatus: MobileAuthStatus - """A list of mobile push notification schedules associated with this user.""" - mobilePushNotificationSchedules( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): MobilePushNotificationScheduleConnection! - """A list of mobile push notification settings associated with this user.""" - mobilePushNotificationSettings: MobilePushNotificationSettings - """The user's mobile time zone.""" - mobileTimeZone: String! - """The estimated monthly GitHub Sponsors income for this user/organization in cents (USD).""" - monthlyEstimatedSponsorsIncomeInCents: Int! - """The user's public profile name.""" - name: String - """ - A list of notification filters for the viewer. Returns an empty list for any user - other than the current viewer. - """ - notificationFilters( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): NotificationFilterConnection! - """ - A list of notification lists the viewer has received a notification for. Returns an empty list for a user other than - the current viewer. - """ - notificationListsWithThreadCount( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 lists which have at least one notification thread with a status in this list""" - statuses: [NotificationStatus!] - """Only return lists where the list type is in the list""" - listTypes: [NotificationThreadSubscriptionListType!] - ): NotificationListWithThreadCountConnection! - """The viewer's notification settings""" - notificationSettings: NotificationSettings - """ - A list of notification threads for the viewer. Returns an empty list for a user other than - the current viewer. - - Combining both filterBy and query arguments will result in an error. - Please favor using the query argument. - """ - notificationThreads( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Filtering options for notifications. Will soon be deprecated.""" - filterBy: NotificationThreadFilters - """The search string to look for. If no is:read, is:unread, or is:done qualifiers are included in the query, results will include read and unread notification threads by default.""" - query: String - ): NotificationThreadConnection! - """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.""" +type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectNextOwner & ProjectV2Owner & ProjectNextRecent & ProjectV2Recent & RepositoryDiscussionAuthor & RepositoryDiscussionCommentAuthor & RepositoryOwner & UniformResourceLocatable & ProfileOwner & Sponsorable { + """Return a specific achievement that this user has unlocked.""" + achievement( + """The slug of the achievement to return.""" + slug: String! + """Include your own achievements that you have hidden.""" + includeHidden: Boolean = false + ): Achievement + """Collection of Achievements this user has unlocked, most recently unlocked first.""" + achievements( + """Include your own achievements that you have hidden.""" + includeHidden: Boolean = false + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): AchievementConnection! + """The activity feed for this user""" + activityFeed: Feed + """List of all the projects accessible to this user""" + allProjectsV2( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Query to search for projects""" + query: String + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + ): ProjectV2Connection! + """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! + """Whether this user can create lists.""" + canCreateLists: Boolean! + """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 user's profile configuration repository""" + configurationRepository: Repository + """The collection of contributions this user has made to different repositories.""" + contributionsCollection( + """The ID of the organization used to filter contributions.""" + organizationID: ID + """Only contributions made at this time or later will be counted. If omitted, defaults to a year ago.""" + from: DateTime + """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! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """Dashboard for this user.""" + dashboard: UserDashboard + """A list of items this user has pinned to their dashboard.""" + dashboardPinnedItems( + """Filter the types of pinned items that are returned.""" + types: [PinnableItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): DashboardPinnableItemConnection! + """Identifies the primary key from the database.""" + databaseId: Int + """The user's publicly visible profile email.""" + email: String! + """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( + """Filters Gists according to privacy.""" + privacy: GistPrivacy + """Ordering options for gists returned from the connection""" + orderBy: GistOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): GistConnection! + """If this user is a GitHub Star, the URL to this user's GitHub Stars profile.""" + githubStarsProfileUrl: URI + """Indicates if a user's plan subscription is an apple iap subscription""" + hasAppleIapSubscription: Boolean! + """Whether this user has created lists.""" + hasCreatedLists: Boolean! + """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! + 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 the user has an active pro plan.""" + isProPlan: 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( + """Ordering options for issue comments returned from the connection.""" + orderBy: IssueCommentOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): IssueCommentConnection! + """A list of issues associated with this user.""" + issues( + """Ordering options for issues returned from the connection.""" + orderBy: IssueOrder + """A list of label names to filter the pull requests by.""" + labels: [String!] + """A list of states to filter the issues by.""" + states: [IssueState!] + """Filtering options for issues returned from the connection.""" + filterBy: IssueFilters + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """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! + """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 + """Ordering options for the returned lists""" + orderBy: UserListOrder = {field: LAST_ADDED_AT, direction: DESC} + ): UserListConnection! + """The user's public profile location.""" + location: String + """The username used to login.""" 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 - ): 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] - """Find packages in a repository by ID.""" - repositoryId: ID - """Filter registry package by type.""" - packageType: PackageType - """Ordering of the returned packages.""" - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - ): PackageConnection! - """A list of repositories and gists this profile owner can pin to their profile.""" - pinnableItems( - """Filter the types of pinnable items that are returned.""" - types: [PinnableItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """A list of repositories and gists this profile owner has pinned to their profile""" - pinnedItems( - """Filter the types of pinned items that are returned.""" - types: [PinnableItemType!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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! - """Returns how many more items this profile owner can pin to their profile.""" - pinnedItemsRemaining: Int! - """The user's primary email""" - primaryEmail: String - """Whether user's profile is currently private""" - privateProfile: Boolean! - """The user's profile readme.""" - profileReadme: RepositoryReadme - """Find project by number.""" - project( - """The project number to find.""" - number: Int! - ): Project - """Find a project by project (beta) number.""" - projectNext( - """The project (beta) number.""" - number: Int! - ): ProjectNext @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-01 UTC.") - """Find a project by number.""" - projectV2( - """The project number.""" - number: Int! - ): ProjectV2 - """A list of projects under the owner.""" - projects( - """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!] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectConnection! - """A list of projects (beta) under the owner.""" - projectsNext( - """A project (beta) to search for under the the owner.""" - query: String - """How to order the returned projects (beta).""" - sortBy: ProjectNextOrderField = TITLE - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): ProjectNextConnection! @deprecated(reason: "The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2023-01-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( - """A project to search for under the the owner.""" - query: String - """How to order the returned projects.""" - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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( - """A list of states to filter the pull requests by.""" - states: [PullRequestState!] - """A list of label names to filter the pull requests by.""" - labels: [String!] - """The head ref name to filter the pull requests by.""" - headRefName: String - """The base ref name to filter the pull requests by.""" - baseRefName: String - """Ordering options for pull requests returned from the connection.""" - orderBy: IssueOrder - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): PullRequestConnection! - """Objects the user has recently interacted with.""" - recentInteractions( - """How many recent interactions to return.""" - limit: Int = 10 + """The status of mobile auth keys and requests associated with this user.""" + mobileAuthStatus: MobileAuthStatus + """A list of mobile push notification schedules associated with this user.""" + mobilePushNotificationSchedules( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): MobilePushNotificationScheduleConnection! + """A list of mobile push notification settings associated with this user.""" + mobilePushNotificationSettings: MobilePushNotificationSettings + """The user's mobile time zone.""" + mobileTimeZone: String! + """The estimated monthly GitHub Sponsors income for this user/organization in cents (USD).""" + monthlyEstimatedSponsorsIncomeInCents: Int! + """The user's public profile name.""" + name: String """ - Cutoff time in the past. Only records with an interaction since then will be considered. - Defaults to one week ago. + A list of notification filters for the viewer. Returns an empty list for any user + other than the current viewer. """ - since: DateTime - """Optional ID of an organization to use to filter the activity returned.""" - organizationID: ID - ): [RecentInteraction!]! - """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( - """If non-null, filters repositories according to privacy""" - privacy: RepositoryPrivacy - """Ordering options for repositories returned from the connection""" - orderBy: RepositoryOrder - """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] - """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 whether they have been locked""" - isLocked: Boolean - """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" - language: String - """An optional type to use to filter the repositories.""" - type: RepositoryType - """An optional filter to search the repositories.""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 repositories according to whether they are forks of another repository""" - isFork: Boolean - ): RepositoryConnection! - """A list of repositories that the user recently contributed to.""" - repositoriesContributedTo( - """If non-null, filters repositories according to privacy""" - privacy: RepositoryPrivacy - """Ordering options for repositories returned from the connection""" - orderBy: RepositoryOrder - """If non-null, filters repositories according to whether they have been locked""" - isLocked: Boolean - """If true, include user repositories""" - includeUserRepositories: Boolean - """If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]""" - contributionTypes: [RepositoryContributionType] - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): RepositoryConnection! - """Find Repository.""" - repository( - """Name of Repository to find.""" - name: String! - """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" - followRenames: Boolean = true - ): 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 in a specific repository.""" - repositoryId: ID - """Filter discussion comments to only those that were marked as the answer""" - onlyAnswers: Boolean = false - ): DiscussionCommentConnection! - """Discussions this user has started.""" - repositoryDiscussions( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 - """Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.""" - answered: Boolean = null - ): DiscussionConnection! - """ - Returns recommendations for repositories that GitHub thinks the current viewer would find - interesting. - """ - repositoryRecommendations( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Display recommended repositories by mobile sort order""" - mobileSortOrder: Boolean = false - ): RepositoryRecommendationConnection! - """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 - """Whether or not the pro badge should be displayed on profile and hovercard.""" - showProPlanBadgeOnProfile: Boolean! - """Whether or not a user's profile readme is currently visible""" - showProfileReadme: Boolean! - """Whether or not the staff badge should be displayed on profile and hovercard.""" - showStaffBadgeOnProfile: Boolean! - """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 - """If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see.""" - tierId: ID - """Ordering options for sponsors returned from the connection.""" - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} - ): SponsorConnection! - """Events involving this sponsorable, such as new sponsorships.""" - sponsorsActivities( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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 - """Ordering options for activity returned from the connection.""" - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} - """Filter activities to only the specified actions.""" - actions: [SponsorsActivityAction!] = [] - ): 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. Only returns a sponsorship if it is active.""" - sponsorshipForViewerAsSponsor: Sponsorship - """The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. Only returns a sponsorship if it is active.""" - sponsorshipForViewerAsSponsorable: 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! - """This object's sponsorships as the maintainer.""" - sponsorshipsAsMaintainer( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - """Whether or not to include private sponsorships in the result set""" - includePrivate: Boolean = false - """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! - """This object's sponsorships as the sponsor.""" - sponsorshipsAsSponsor( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 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 - """Filters starred repositories to only return repositories owned by the viewer.""" - ownedByViewer: Boolean - """Order for connection""" - orderBy: StarOrder - ): 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 - """An optional type to use to filter the repositories""" - type: RepositoryType - ): RepositoryConnection! - """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! - """Could the viewer block the current user?""" - viewerCanBlock: 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! - """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! - """Could the viewer unblock the current user?""" - viewerCanUnblock: Boolean! - """Whether or not this user is followed by the viewer. Inverse of is_following_viewer.""" - viewerIsFollowing: Boolean! - """True if the viewer is sponsoring this user/organization.""" - viewerIsSponsoring: Boolean! - """A list of repositories the given user is watching.""" - watching( - """If non-null, filters repositories according to privacy""" - privacy: RepositoryPrivacy - """Ordering options for repositories returned from the connection""" - orderBy: RepositoryOrder - """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] - """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 whether they have been locked""" - isLocked: Boolean - """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" - language: String - """An optional type to use to filter the repositories.""" - type: RepositoryType - """An optional filter to search the repositories.""" - query: String - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the specified cursor.""" - before: String - """Returns the first _n_ elements from the list.""" - first: Int - """Returns the last _n_ elements from the list.""" - last: Int - ): RepositoryConnection! - """A URL pointing to the user's public website/blog.""" - websiteUrl: URI + notificationFilters( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): NotificationFilterConnection! + """ + A list of notification lists the viewer has received a notification for. Returns an empty list for a user other than + the current viewer. + """ + notificationListsWithThreadCount( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 lists which have at least one notification thread with a status in this list""" + statuses: [NotificationStatus!] + """Only return lists where the list type is in the list""" + listTypes: [NotificationThreadSubscriptionListType!] + ): NotificationListWithThreadCountConnection! + """The viewer's notification settings""" + notificationSettings: NotificationSettings + """ + A list of notification threads for the viewer. Returns an empty list for a user other than + the current viewer. + + Combining both filterBy and query arguments will result in an error. + Please favor using the query argument. + """ + notificationThreads( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Filtering options for notifications. Will soon be deprecated.""" + filterBy: NotificationThreadFilters + """The search string to look for. If no is:read, is:unread, or is:done qualifiers are included in the query, results will include read and unread notification threads by default.""" + query: String + ): NotificationThreadConnection! + """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( + """Ordering options for the User's organizations.""" + orderBy: OrganizationOrder = null + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """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] + """Find packages in a repository by ID.""" + repositoryId: ID + """Filter registry package by type.""" + packageType: PackageType + """Ordering of the returned packages.""" + orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + ): PackageConnection! + """A list of repositories and gists this profile owner can pin to their profile.""" + pinnableItems( + """Filter the types of pinnable items that are returned.""" + types: [PinnableItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """A list of repositories and gists this profile owner has pinned to their profile""" + pinnedItems( + """Filter the types of pinned items that are returned.""" + types: [PinnableItemType!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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! + """Returns how many more items this profile owner can pin to their profile.""" + pinnedItemsRemaining: Int! + """The user's primary email""" + primaryEmail: String + """Whether user's profile is currently private""" + privateProfile: Boolean! + """The user's profile readme.""" + profileReadme: RepositoryReadme + """Find project by number.""" + project( + """The project number to find.""" + number: Int! + ): Project + """Find a project by project (beta) number.""" + projectNext( + """The project (beta) number.""" + number: Int! + ): ProjectNext + """Find a project by number.""" + projectV2( + """The project number.""" + number: Int! + ): ProjectV2 + """A list of projects under the owner.""" + projects( + """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!] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectConnection! + """A list of projects (beta) under the owner.""" + projectsNext( + """A project (beta) to search for under the the owner.""" + query: String + """How to order the returned projects (beta).""" + sortBy: ProjectNextOrderField = TITLE + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! + """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( + """A project to search for under the the owner.""" + query: String + """How to order the returned projects.""" + orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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( + """A list of states to filter the pull requests by.""" + states: [PullRequestState!] + """A list of label names to filter the pull requests by.""" + labels: [String!] + """The head ref name to filter the pull requests by.""" + headRefName: String + """The base ref name to filter the pull requests by.""" + baseRefName: String + """Ordering options for pull requests returned from the connection.""" + orderBy: IssueOrder + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): PullRequestConnection! + """Objects the user has recently interacted with.""" + recentInteractions( + """How many recent interactions to return.""" + limit: Int = 10 + """ + Cutoff time in the past. Only records with an interaction since then will be considered. + Defaults to one week ago. + """ + since: DateTime + """Optional ID of an organization to use to filter the activity returned.""" + organizationID: ID + ): [RecentInteraction!]! + """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! + """Recent projects (beta) that this user has modified in the context of the owner.""" + recentProjectsNext( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): ProjectNextConnection! + """A list of repositories that the user owns.""" + repositories( + """If non-null, filters repositories according to privacy""" + privacy: RepositoryPrivacy + """Ordering options for repositories returned from the connection""" + orderBy: RepositoryOrder + """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] + """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 whether they have been locked""" + isLocked: Boolean + """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" + language: String + """An optional type to use to filter the repositories.""" + type: RepositoryType + """An optional filter to search the repositories.""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 repositories according to whether they are forks of another repository""" + isFork: Boolean + ): RepositoryConnection! + """A list of repositories that the user recently contributed to.""" + repositoriesContributedTo( + """If non-null, filters repositories according to privacy""" + privacy: RepositoryPrivacy + """Ordering options for repositories returned from the connection""" + orderBy: RepositoryOrder + """If non-null, filters repositories according to whether they have been locked""" + isLocked: Boolean + """If true, include user repositories""" + includeUserRepositories: Boolean + """If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]""" + contributionTypes: [RepositoryContributionType] + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): RepositoryConnection! + """Find Repository.""" + repository( + """Name of Repository to find.""" + name: String! + """Follow repository renames. If disabled, a repository referenced by its old name will return an error.""" + followRenames: Boolean = true + ): 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 in a specific repository.""" + repositoryId: ID + """Filter discussion comments to only those that were marked as the answer""" + onlyAnswers: Boolean = false + ): DiscussionCommentConnection! + """Discussions this user has started.""" + repositoryDiscussions( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 + """Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.""" + answered: Boolean = null + """A list of states to filter the discussions by.""" + states: [DiscussionState!] = [] + ): DiscussionConnection! + """ + Returns recommendations for repositories that GitHub thinks the current viewer would find + interesting. + """ + repositoryRecommendations( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Display recommended repositories by mobile sort order""" + mobileSortOrder: Boolean = false + ): RepositoryRecommendationConnection! + """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 + """Whether or not the pro badge should be displayed on profile and hovercard.""" + showProPlanBadgeOnProfile: Boolean! + """Whether or not a user's profile readme is currently visible""" + showProfileReadme: Boolean! + """Whether or not the staff badge should be displayed on profile and hovercard.""" + showStaffBadgeOnProfile: Boolean! + """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 + """If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see.""" + tierId: ID + """Ordering options for sponsors returned from the connection.""" + orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + ): SponsorConnection! + """Events involving this sponsorable, such as new sponsorships.""" + sponsorsActivities( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 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 + """Ordering options for activity returned from the connection.""" + orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} + """Filter activities to only the specified actions.""" + actions: [SponsorsActivityAction!] = [] + """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 + ): 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( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + """Whether or not to include private sponsorships in the result set""" + includePrivate: Boolean = false + """Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.""" + orderBy: SponsorshipOrder + """Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received.""" + activeOnly: Boolean = true + ): SponsorshipConnection! + """The sponsorships where this user or organization is the funder.""" + sponsorshipsAsSponsor( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.""" + orderBy: SponsorshipOrder + """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!] + """Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made.""" + activeOnly: Boolean = true + ): 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 + """Filters starred repositories to only return repositories owned by the viewer.""" + ownedByViewer: Boolean + """Order for connection""" + orderBy: StarOrder + ): 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 + """An optional type to use to filter the repositories""" + type: RepositoryType + ): 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 that occurred before this time.""" + until: DateTime + """Filter payments to those made to the users or organizations with the specified usernames.""" + sponsorableLogins: [String!] = [] + ): 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! + """Could the viewer block the current user?""" + viewerCanBlock: 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! + """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! + """Could the viewer unblock the current user?""" + viewerCanUnblock: Boolean! + """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( + """If non-null, filters repositories according to privacy""" + privacy: RepositoryPrivacy + """Ordering options for repositories returned from the connection""" + orderBy: RepositoryOrder + """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] + """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 whether they have been locked""" + isLocked: Boolean + """An optional, case-insensitive programming language to use to filter the repositories (e.g. 'Ruby')""" + language: String + """An optional type to use to filter the repositories.""" + type: RepositoryType + """An optional filter to search the repositories.""" + query: String + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): 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 { - """The user was blocked for 1 day""" - ONE_DAY - """The user was blocked for 3 days""" - THREE_DAYS - """The user was blocked for 7 days""" - ONE_WEEK - """The user was blocked for 30 days""" - ONE_MONTH - """The user was blocked permanently""" - PERMANENT + """The user was blocked for 1 day""" + ONE_DAY + """The user was blocked for 3 days""" + THREE_DAYS + """The user was blocked for 7 days""" + ONE_WEEK + """The user was blocked for 30 days""" + ONE_MONTH + """The user was blocked permanently""" + PERMANENT } """Represents a 'user_blocked' event on a given user.""" type UserBlockedEvent implements Node { - """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! - id: ID! - """The user who was blocked.""" - subject: User + """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! + id: ID! + """The user who was blocked.""" + subject: User } """The connection type for User.""" 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! + """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 { - """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 - id: ID! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! + """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 + 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: UserContentEdit } """A user's dashboard.""" type UserDashboard implements Node { - """The home feed for this dashboard""" - feed: Feed! - id: ID! - """The mobile navigation links for this dashboard""" - navLinks: [UserDashboardNavLink!]! - """The teams the user has selected to see on their dashboard.""" - selectedTeams( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 selected teams.""" - orderBy: TeamOrder = {field: NAME, direction: ASC} - ): TeamConnection! - """The saved searched shortcuts for this dashboard""" - shortcuts( - """Returns the elements in the list that come after the specified cursor.""" - after: String - """Returns the elements in the list that come before the 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 types of search shortcuts to return. If not provided, all shortcuts are returned.""" - searchTypes: [SearchShortcutType!] - ): SearchShortcutConnection! - """The user this dashboard belongs to.""" - user: User! + """The home feed for this dashboard""" + feed: Feed! + id: ID! + """The mobile navigation links for this dashboard""" + navLinks: [UserDashboardNavLink!]! + """The teams the user has selected to see on their dashboard.""" + selectedTeams( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 selected teams.""" + orderBy: TeamOrder = {field: NAME, direction: ASC} + ): TeamConnection! + """The saved searched shortcuts for this dashboard""" + shortcuts( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the 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 types of search shortcuts to return. If not provided, all shortcuts are returned.""" + searchTypes: [SearchShortcutType!] + ): SearchShortcutConnection! + """The user this dashboard belongs to.""" + user: User! } """A user dashboard top level navigation link.""" type UserDashboardNavLink { - """Whether this link is hidden or not on the dashboard""" - hidden: Boolean! - """Link identifier value""" - identifier: UserDashboardNavLinkIdentifier! + """Whether this link is hidden or not on the dashboard""" + hidden: Boolean! + """Link identifier value""" + identifier: UserDashboardNavLinkIdentifier! } """An identifier value for a dashboard navigation link.""" enum UserDashboardNavLinkIdentifier { - """'issues' Link identifier value""" - ISSUES - """'pull_requests' Link identifier value""" - PULL_REQUESTS - """'discussions' Link identifier value""" - DISCUSSIONS - """'repositories' Link identifier value""" - REPOSITORIES - """'organizations' Link identifier value""" - ORGANIZATIONS - """'starred' Link identifier value""" - STARRED + """'issues' Link identifier value""" + ISSUES + """'pull_requests' Link identifier value""" + PULL_REQUESTS + """'discussions' Link identifier value""" + DISCUSSIONS + """'repositories' Link identifier value""" + REPOSITORIES + """'organizations' Link identifier value""" + ORGANIZATIONS + """'starred' Link identifier value""" + STARRED } """Represents a user.""" type UserEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: User + """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 { - """Boolean to identify primary emails""" - primary: Boolean - """Type of email""" - type: String - """Email id""" - value: String! + """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 { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """The description of this list""" - description: String - 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! + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """The description of this list""" + description: String + 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! + """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 + """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.""" @@ -29717,182 +32666,182 @@ union UserListItems = 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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: UserListItems } """Ordering options for user list connections.""" input UserListOrder { - """The field to order user lists by.""" - field: UserListOrderField! - """The direction in which to order user lists by the specified field""" - direction: OrderDirection! + """The field to order user lists by.""" + field: UserListOrderField! + """The direction in which to order user lists by the specified field""" + direction: OrderDirection! } """Properties by which user list connections can be ordered.""" enum UserListOrderField { - """Order user lists by name.""" - NAME - """Order user lists by creation time.""" - CREATED_AT - """Order user lists by the last time an item was added.""" - LAST_ADDED_AT + """Order user lists by name.""" + NAME + """Order user lists by creation time.""" + CREATED_AT + """Order user lists by the last time an item was added.""" + LAST_ADDED_AT } """Represents a suggested user list.""" type UserListSuggestion { - """The ID of the suggested user list""" - id: ID - """The name of the suggested user list""" - name: String + """The ID of the suggested user list""" + id: ID + """The name of the suggested user list""" + name: String } """The possible PubSub channels for a user.""" enum UserPubSubTopic { - """The channel ID for observing user notifications changed updates.""" - NOTIFICATIONS_CHANGED - """The channel ID for observing user marked as read updates.""" - MARKED_READ + """The channel ID for observing user notifications changed updates.""" + NOTIFICATIONS_CHANGED + """The channel ID for observing user marked as read updates.""" + MARKED_READ } """The user's description of what they're currently doing.""" type UserStatus implements Node { - """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 - 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! + """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 + 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! + """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 + """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 { - """The field to order user statuses by.""" - field: UserStatusOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order user statuses by.""" + field: UserStatusOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which user status connections can be ordered.""" enum UserStatusOrderField { - """Order user statuses by when they were updated.""" - UPDATED_AT + """Order user statuses by when they were updated.""" + UPDATED_AT } """A domain that can be verified or approved for an organization or an enterprise.""" type VerifiableDomain implements Node { - """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! - 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 + """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! + 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! + """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 + """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 { - """The field to order verifiable domains by.""" - field: VerifiableDomainOrderField! - """The ordering direction.""" - direction: OrderDirection! + """The field to order verifiable domains by.""" + field: VerifiableDomainOrderField! + """The ordering direction.""" + direction: OrderDirection! } """Properties by which verifiable domain connections can be ordered.""" enum VerifiableDomainOrderField { - """Order verifiable domains by the domain name.""" - DOMAIN - """Order verifiable domains by their creation date.""" - CREATED_AT + """Order verifiable domains by the domain name.""" + DOMAIN + """Order verifiable domains by their creation date.""" + CREATED_AT } """Types that can own a verifiable domain.""" @@ -29900,188 +32849,286 @@ union VerifiableDomainOwner = Enterprise | Organization """Autogenerated input type of VerifyVerifiableDomain""" input VerifyVerifiableDomainInput { - """The ID of the verifiable domain to verify.""" - id: ID! - """A unique identifier for the client performing the mutation.""" - clientMutationId: String + """The ID of the verifiable domain to verify.""" + id: ID! + """A unique identifier for the client performing the mutation.""" + clientMutationId: String } """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 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 { - """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 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 { - """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! + """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 { - """Identifies the date and time when the object was created.""" - createdAt: DateTime! - """Identifies the primary key from the database.""" - databaseId: Int - id: ID! - """The name of the workflow.""" - name: String! - """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! - """Identifies the date and time when the object was last updated.""" - updatedAt: DateTime! +type Workflow implements Node & UniformResourceLocatable { + """Identifies the date and time when the object was created.""" + createdAt: DateTime! + """Identifies the primary key from the database.""" + databaseId: Int + 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! } """The connection type for Workflow.""" type WorkflowConnection { - """A list of edges.""" - edges: [WorkflowEdge] - """A list of nodes.""" - nodes: [Workflow] - """Information to aid in pagination.""" - pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" - totalCount: Int! + """A list of edges.""" + edges: [WorkflowEdge] + """A list of nodes.""" + nodes: [Workflow] + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Identifies the total count of items in the connection.""" + totalCount: Int! } """An edge in a connection.""" type WorkflowEdge { - """A cursor for use in pagination.""" - cursor: String! - """The item at the end of the edge.""" - node: Workflow + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: Workflow } """Ways in which lists of workflows can be ordered upon return.""" input WorkflowOrder { - """The field by which to order workflows.""" - field: WorkflowOrderField! - """The direction in which to order workflows by the specified field.""" - direction: OrderDirection! + """The field by which to order workflows.""" + field: WorkflowOrderField! + """The direction in which to order workflows by the specified field.""" + direction: OrderDirection! } """Properties by which workflow connections can be ordered.""" enum WorkflowOrderField { - """Order workflows by name.""" - NAME - """Order workflows by creation time.""" - CREATED_AT - """Order workflows by most recent modification time.""" - UPDATED_AT + """Order workflows by name.""" + NAME + """Order workflows by creation time.""" + CREATED_AT + """Order workflows by most recent modification time.""" + UPDATED_AT } """A workflow run.""" -type WorkflowRun implements Node { - """The attempt number of this workflow run""" - attemptNumber: Int - """The amount of time tracked on this workflow run in seconds. Null if unavailable.""" - billableDurationInSeconds: Int - """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! - """If the workflow run has multiple attempts""" - hasMultipleAttempts: Boolean! - 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! - """A number that uniquely identifies this workflow run in its parent workflow.""" - runNumber: Int! - """The title of the workflow run""" - title: String - """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! +type WorkflowRun implements Node & UniformResourceLocatable { + """The attempt number of this workflow run""" + attemptNumber: Int + """The amount of time tracked on this workflow run in seconds. Null if unavailable.""" + billableDurationInSeconds: Int + """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 event that triggered the workflow run""" + event: String! + """The event that triggered the workflow run.""" + eventType: WorkflowRunEvent! + """If the workflow run has multiple attempts""" + hasMultipleAttempts: Boolean! + 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! + """A number that uniquely identifies this workflow run in its parent workflow.""" + runNumber: Int! + """The title of the workflow run""" + title: String + """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! + """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 + """A cursor for use in pagination.""" + cursor: String! + """The item at the end of the edge.""" + node: WorkflowRun +} + +"""List of all possible events that can trigger a workflow run""" +enum WorkflowRunEvent { + """Triggered when branch protection rules in the workflow repository are changed.""" + BRANCH_PROTECTION_RULE + """Triggered when activity related to a check run occurs.""" + CHECK_RUN + """Triggered when check suite activity occurs.""" + CHECK_SUITE + """Triggered when someone creates a Git reference (Git branch or tag) in the workflow's repository.""" + CREATE + """Triggered when someone deletes a Git reference (Git branch or tag) in the workflow's repository.""" + DELETE + """Triggered when a third party provides a deployment status.""" + DEPLOYMENT_STATUS + """Triggered when someone creates a deployment in the workflow's repository.""" + DEPLOYMENT + """Triggered when a comment on a discussion in the workflow's repository is created or modified.""" + DISCUSSION_COMMENT + """Triggered when a discussion in the workflow's repository is created or modified.""" + DISCUSSION + """Triggered by an internal integration with another first-party feature.""" + DYNAMIC + """Triggered when someone forks a repository.""" + FORK + """Triggered when someone creates or updates a Wiki page.""" + GOLLUM + """Triggered when an issue or pull request comment is created, edited, or deleted.""" + ISSUE_COMMENT + """Triggered when an issue in the workflow's repository is created or modified""" + ISSUES + """Triggered when a label in your workflow's repository is created or modified.""" + LABEL + """Triggered when a pull request is added to a merge queue, which adds the pull request to a merge group.""" + MERGE_GROUP + """Triggered when a milestone in the workflow's repository is created or modified.""" + MILESTONE + """Triggered when someone pushes to a branch that is the publishing source for GitHub Pages, if GitHub Pages is enabled for the repository.""" + PAGE_BUILD + """Triggered when a card on a project board is created or modified.""" + PROJECT_CARD + """Triggered when a column on a project board is created or modified.""" + PROJECT_COLUMN + """Triggered when a project board is created or modified.""" + PROJECT + """Triggered when your workflow's repository changes from private to public.""" + PUBLIC + """Triggered when a pull request review comment is modified.""" + PULL_REQUEST_REVIEW_COMMENT + """Triggered when a pull request review is submitted, edited, or dismissed.""" + PULL_REQUEST_REVIEW + """Triggered when activity on a pull request in the workflow's repository occurs.""" + PULL_REQUEST_TARGET + """Triggered when activity on a pull request in the workflow's repository occurs.""" + PULL_REQUEST + """Triggered when you push a commit or tag.""" + PUSH + """Triggered when activity related to GitHub Packages occurs in your repository.""" + REGISTRY_PACKAGE + """Triggered when release activity in your repository occurs.""" + RELEASE + """You can use the GitHub API to trigger a webhook event called repository_dispatch when you want to trigger a workflow for activity that happens outside of GitHub.""" + REPOSITORY_DISPATCH + """The schedule event allows you to trigger a workflow at a scheduled time.""" + SCHEDULE + """Triggered when the status of a Git commit changes.""" + STATUS + """Triggered when the workflow's repository is starred.""" + WATCH + """Triggered manually by a user.""" + WORKFLOW_DISPATCH + """Triggered when a workflow run is requested or completed.""" + WORKFLOW_RUN } """Ways in which lists of workflow runs can be ordered upon return.""" input WorkflowRunOrder { - """The field by which to order workflows.""" - field: WorkflowRunOrderField! - """The direction in which to order workflow runs by the specified field.""" - direction: OrderDirection! + """The field by which to order workflows.""" + field: WorkflowRunOrderField! + """The direction in which to order workflow runs by the specified field.""" + direction: OrderDirection! } """Properties by which workflow run connections can be ordered.""" enum WorkflowRunOrderField { - """Order workflow runs by most recently created""" - CREATED_AT + """Order workflow runs by most recently created""" + CREATED_AT +} + +"""The possible states for a workflow.""" +enum WorkflowState { + """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 } """A valid x509 certificate string""" -scalar X509Certificate +scalar X509Certificate \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/di/modules/ManagerModule.kt b/app/src/main/java/com/materiiapps/gloom/di/modules/ManagerModule.kt index 548a326..5e8ced9 100644 --- a/app/src/main/java/com/materiiapps/gloom/di/modules/ManagerModule.kt +++ b/app/src/main/java/com/materiiapps/gloom/di/modules/ManagerModule.kt @@ -1,6 +1,8 @@ package com.materiiapps.gloom.di.modules import com.materiiapps.gloom.domain.manager.AuthManager +import com.materiiapps.gloom.domain.manager.DialogManager +import com.materiiapps.gloom.domain.manager.DownloadManager import com.materiiapps.gloom.domain.manager.PreferenceManager import org.koin.core.module.dsl.singleOf import org.koin.dsl.module @@ -8,7 +10,8 @@ import org.koin.dsl.module fun managerModule() = module { singleOf(::PreferenceManager) - singleOf(::AuthManager) + singleOf(::DownloadManager) + singleOf(::DialogManager) } \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/di/modules/ViewModelModule.kt b/app/src/main/java/com/materiiapps/gloom/di/modules/ViewModelModule.kt index b3539dd..f3c7af1 100644 --- a/app/src/main/java/com/materiiapps/gloom/di/modules/ViewModelModule.kt +++ b/app/src/main/java/com/materiiapps/gloom/di/modules/ViewModelModule.kt @@ -1,6 +1,7 @@ package com.materiiapps.gloom.di.modules import com.materiiapps.gloom.ui.viewmodels.auth.LandingViewModel +import com.materiiapps.gloom.ui.viewmodels.explorer.DirectoryListingViewModel import com.materiiapps.gloom.ui.viewmodels.home.HomeViewModel import com.materiiapps.gloom.ui.viewmodels.list.OrgListViewModel import com.materiiapps.gloom.ui.viewmodels.list.RepositoryListViewModel @@ -9,6 +10,13 @@ import com.materiiapps.gloom.ui.viewmodels.list.StarredReposListViewModel import com.materiiapps.gloom.ui.viewmodels.profile.FollowersViewModel import com.materiiapps.gloom.ui.viewmodels.profile.FollowingViewModel import com.materiiapps.gloom.ui.viewmodels.profile.ProfileViewModel +import com.materiiapps.gloom.ui.viewmodels.release.ReleaseViewModel +import com.materiiapps.gloom.ui.viewmodels.repo.RepoViewModel +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoCodeViewModel +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoDetailsViewModel +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoIssuesViewModel +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoPullRequestsViewModel +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoReleasesViewModel import com.materiiapps.gloom.ui.viewmodels.settings.AppearanceSettingsViewModel import com.materiiapps.gloom.ui.viewmodels.settings.SettingsViewModel import org.koin.core.module.dsl.factoryOf @@ -28,4 +36,14 @@ fun viewModelModule() = module { factoryOf(::AppearanceSettingsViewModel) factoryOf(::HomeViewModel) + factoryOf(::RepoViewModel) + factoryOf(::RepoDetailsViewModel) + factoryOf(::RepoCodeViewModel) + factoryOf(::DirectoryListingViewModel) + factoryOf(::RepoIssuesViewModel) + factoryOf(::RepoPullRequestsViewModel) + factoryOf(::RepoReleasesViewModel) + + factoryOf(::ReleaseViewModel) + } \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/domain/manager/DialogManager.kt b/app/src/main/java/com/materiiapps/gloom/domain/manager/DialogManager.kt new file mode 100644 index 0000000..cecc1a6 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/domain/manager/DialogManager.kt @@ -0,0 +1,18 @@ +package com.materiiapps.gloom.domain.manager + +import android.content.Context +import com.materiiapps.gloom.domain.manager.base.BasePreferenceManager + +class DialogManager(context: Context): BasePreferenceManager(context.getSharedPreferences("dialogs", Context.MODE_PRIVATE)) { + + var downloadAsset by enumPreference("release_asset_download", DialogState.UNKNOWN) + + var installApk by enumPreference("install_apk", DialogState.UNKNOWN) + +} + +enum class DialogState { + UNKNOWN, + CONFIRMED, + DENIED +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/domain/manager/DownloadManager.kt b/app/src/main/java/com/materiiapps/gloom/domain/manager/DownloadManager.kt new file mode 100644 index 0000000..c854a84 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/domain/manager/DownloadManager.kt @@ -0,0 +1,110 @@ +package com.materiiapps.gloom.domain.manager + +import android.annotation.SuppressLint +import android.content.BroadcastReceiver +import android.app.DownloadManager as AndroidDownloadManager +import android.content.Context +import android.content.Intent +import android.content.IntentFilter +import android.os.Environment +import android.os.Handler +import android.os.Looper +import androidx.core.content.getSystemService +import androidx.core.net.toUri +import com.materiiapps.gloom.utils.showToast +import io.ktor.http.HttpHeaders +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.launch +import java.io.File +import kotlin.coroutines.resume +import kotlin.coroutines.resumeWithException +import kotlin.coroutines.suspendCoroutine + +class DownloadManager( + private val context: Context, + private val authManager: AuthManager +) { + private val downloadManager = context.getSystemService()!! + private val downloadScope = CoroutineScope(Dispatchers.IO) + private val gloomDownloadFolder = File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DOWNLOADS).resolve("Gloom") + + fun download(url: String, block: (File) -> Unit = {}) { + val name = url.toUri().lastPathSegment!! + downloadScope.launch { + download(url, File(gloomDownloadFolder, name)).also { + Handler(Looper.getMainLooper()).post { + if(it.exists()) { + context.showToast("Download complete: $name") + block(it) + } + } + } + } + } + + @SuppressLint("UnspecifiedRegisterReceiverFlag") + suspend fun download(url: String, out: File): File { + out.parentFile?.mkdirs() + + return suspendCoroutine { continuation -> + val receiver = object : BroadcastReceiver() { + var dlId = 0L + + @SuppressLint("Range") + override fun onReceive(context: Context, intent: Intent) { + val id = intent.getLongExtra(AndroidDownloadManager.EXTRA_DOWNLOAD_ID, -1) + + if(dlId != id) return + + val (status, reason) = AndroidDownloadManager.Query().run { + setFilterById(dlId) + + val cursor = downloadManager.query(this) + .apply { moveToFirst() } + + if (cursor.count == 0) { + -1 to -1 + } else { + val status = cursor.run { getInt(getColumnIndex(AndroidDownloadManager.COLUMN_STATUS)) } + val reason = cursor.run { getInt(getColumnIndex(AndroidDownloadManager.COLUMN_REASON)) } + + status to reason + } + } + + when(status) { + -1 -> { + context.unregisterReceiver(this) + continuation.resumeWithException(Error("Download canceled")) + } + + AndroidDownloadManager.STATUS_SUCCESSFUL -> { + context.unregisterReceiver(this) + continuation.resume(out) + } + + AndroidDownloadManager.STATUS_FAILED -> { + context.unregisterReceiver(this) + continuation.resumeWithException( + Error("Failed to download $url") + ) + } + + else -> {} + } + } + } + + context.registerReceiver(receiver, IntentFilter(AndroidDownloadManager.ACTION_DOWNLOAD_COMPLETE)) + + receiver.dlId = AndroidDownloadManager.Request(url.toUri()).run { + setTitle("Gloom: Downloading ${out.name}") + setNotificationVisibility(AndroidDownloadManager.Request.VISIBILITY_VISIBLE) + setDestinationUri(out.toUri()) + addRequestHeader(HttpHeaders.Authorization, authManager.authToken) + downloadManager.enqueue(this) + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/domain/repository/GraphQLRepository.kt b/app/src/main/java/com/materiiapps/gloom/domain/repository/GraphQLRepository.kt index b5aa057..cecb4be 100644 --- a/app/src/main/java/com/materiiapps/gloom/domain/repository/GraphQLRepository.kt +++ b/app/src/main/java/com/materiiapps/gloom/domain/repository/GraphQLRepository.kt @@ -1,6 +1,9 @@ package com.materiiapps.gloom.domain.repository import com.materiiapps.gloom.domain.models.ModelUser +import com.materiiapps.gloom.gql.type.IssueState +import com.materiiapps.gloom.gql.type.PullRequestState +import com.materiiapps.gloom.gql.type.ReactionContent import com.materiiapps.gloom.rest.service.GraphQLService import com.materiiapps.gloom.rest.utils.transform @@ -75,4 +78,53 @@ class GraphQLRepository( } suspend fun identify() = service.identify().transform { it.viewer } + + suspend fun getRepoOverview(owner: String, name: String) = + service.getRepoName(owner, name).transform { it.repository?.repoOverview } + + suspend fun getRepoDetails(owner: String, name: String) = + service.getRepoDetails(owner, name).transform { it.repository?.repoDetails } + + suspend fun getRepoFiles(owner: String, name: String, branchAndPath: String) = + service.getRepoFiles(owner, name, branchAndPath).transform { + it.repository?.gitObject?.treeFragment?.entries?.map { entry -> entry.fileEntryFragment } + ?: emptyList() + } + + suspend fun getDefaultBranch(owner: String, name: String) = + service.getDefaultBranch(owner, name).transform { + it.repository?.defaultBranchRef?.name + } + + suspend fun getRepoIssues( + owner: String, + name: String, + after: String? = null, + states: List = listOf(IssueState.OPEN, IssueState.CLOSED) + ) = service.getRepoIssues(owner, name, after, states) + + suspend fun getRepoPullRequests( + owner: String, + name: String, + after: String? = null, + states: List = listOf(PullRequestState.OPEN) + ) = service.getRepoPullRequests(owner, name, after, states) + + suspend fun getRepoReleases( + owner: String, + name: String, + after: String? = null + ) = service.getRepoReleases(owner, name, after) + + suspend fun getReleaseDetails( + owner: String, + name: String, + tag: String, + after: String? = null + ) = service.getReleaseDetails(owner, name, tag, after) + + suspend fun react(id: String, reaction: ReactionContent) = service.react(id, reaction) + + suspend fun unreact(id: String, reaction: ReactionContent) = service.unreact(id, reaction) + } \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/rest/service/GraphQLService.kt b/app/src/main/java/com/materiiapps/gloom/rest/service/GraphQLService.kt index 786be5e..0ed830c 100644 --- a/app/src/main/java/com/materiiapps/gloom/rest/service/GraphQLService.kt +++ b/app/src/main/java/com/materiiapps/gloom/rest/service/GraphQLService.kt @@ -4,6 +4,8 @@ import com.apollographql.apollo3.ApolloCall import com.apollographql.apollo3.ApolloClient import com.apollographql.apollo3.api.Operation import com.apollographql.apollo3.api.Optional +import com.materiiapps.gloom.domain.manager.AuthManager +import com.materiiapps.gloom.gql.DefaultBranchQuery import com.materiiapps.gloom.gql.FeedQuery import com.materiiapps.gloom.gql.FollowUserMutation import com.materiiapps.gloom.gql.FollowersQuery @@ -11,15 +13,27 @@ import com.materiiapps.gloom.gql.FollowingQuery import com.materiiapps.gloom.gql.IdentifyQuery import com.materiiapps.gloom.gql.JoinedOrgsQuery import com.materiiapps.gloom.gql.ProfileQuery +import com.materiiapps.gloom.gql.ReactMutation +import com.materiiapps.gloom.gql.ReleaseDetailsQuery +import com.materiiapps.gloom.gql.RepoDetailsQuery +import com.materiiapps.gloom.gql.RepoFilesQuery +import com.materiiapps.gloom.gql.RepoIssuesQuery import com.materiiapps.gloom.gql.RepoListQuery +import com.materiiapps.gloom.gql.RepoNameQuery +import com.materiiapps.gloom.gql.RepoPullRequestsQuery +import com.materiiapps.gloom.gql.RepoReleasesQuery import com.materiiapps.gloom.gql.SponsoringQuery import com.materiiapps.gloom.gql.StarRepoMutation import com.materiiapps.gloom.gql.StarredReposQuery import com.materiiapps.gloom.gql.UnfollowUserMutation +import com.materiiapps.gloom.gql.UnreactMutation import com.materiiapps.gloom.gql.UnstarRepoMutation import com.materiiapps.gloom.gql.UserProfileQuery -import com.materiiapps.gloom.domain.manager.AuthManager +import com.materiiapps.gloom.gql.type.IssueState +import com.materiiapps.gloom.gql.type.PullRequestState +import com.materiiapps.gloom.gql.type.ReactionContent import com.materiiapps.gloom.rest.utils.response +import com.materiiapps.gloom.rest.utils.toOptional import io.ktor.http.HttpHeaders import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext @@ -180,4 +194,83 @@ class GraphQLService( .response() } + suspend fun getRepoName(owner: String, name: String) = withContext(Dispatchers.IO) { + client.query(RepoNameQuery(owner, name)) + .addToken() + .response() + } + + suspend fun getRepoDetails(owner: String, name: String) = withContext(Dispatchers.IO) { + client.query(RepoDetailsQuery(owner, name)) + .addToken() + .response() + } + + suspend fun getRepoFiles(owner: String, name: String, branchAndPath: String) = withContext(Dispatchers.IO) { + client.query(RepoFilesQuery(owner, name, branchAndPath)) + .addToken() + .response() + } + + suspend fun getDefaultBranch(owner: String, name: String) = withContext(Dispatchers.IO) { + client.query(DefaultBranchQuery(owner, name)) + .addToken() + .response() + } + + suspend fun getRepoIssues( + owner: String, + name: String, + after: String? = null, + states: List = listOf(IssueState.OPEN, IssueState.CLOSED) + ) = withContext(Dispatchers.IO) { + client.query(RepoIssuesQuery(owner, name, after.toOptional(), states)) + .addToken() + .response() + } + + suspend fun getRepoPullRequests( + owner: String, + name: String, + after: String? = null, + states: List = listOf(PullRequestState.OPEN) + ) = withContext(Dispatchers.IO) { + client.query(RepoPullRequestsQuery(owner, name, after.toOptional(), states)) + .addToken() + .response() + } + + suspend fun getRepoReleases( + owner: String, + name: String, + after: String? = null + ) = withContext(Dispatchers.IO) { + client.query(RepoReleasesQuery(owner, name, after.toOptional())) + .addToken() + .response() + } + + suspend fun getReleaseDetails( + owner: String, + name: String, + tag: String, + after: String? = null + ) = withContext(Dispatchers.IO) { + client.query(ReleaseDetailsQuery(owner, name, tag, after.toOptional())) + .addToken() + .response() + } + + suspend fun react(id: String, reaction: ReactionContent) = withContext(Dispatchers.IO) { + client.mutation(ReactMutation(id, reaction)) + .addToken() + .response() + } + + suspend fun unreact(id: String, reaction: ReactionContent) = withContext(Dispatchers.IO) { + client.mutation(UnreactMutation(id, reaction)) + .addToken() + .response() + } + } \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/rest/utils/GraphQLUtils.kt b/app/src/main/java/com/materiiapps/gloom/rest/utils/GraphQLUtils.kt index 8f35f8a..ab52130 100644 --- a/app/src/main/java/com/materiiapps/gloom/rest/utils/GraphQLUtils.kt +++ b/app/src/main/java/com/materiiapps/gloom/rest/utils/GraphQLUtils.kt @@ -2,6 +2,7 @@ package com.materiiapps.gloom.rest.utils import com.apollographql.apollo3.ApolloCall import com.apollographql.apollo3.api.Operation +import com.apollographql.apollo3.api.Optional suspend fun ApolloCall.response(): GraphQLResponse { return try { @@ -9,7 +10,7 @@ suspend fun ApolloCall.response(): GraphQLResponse { if (!response.hasErrors()) GraphQLResponse.Success(response.dataAssertNoErrors, emptyList()) - else if(response.hasErrors() && response.data != null) + else if (response.hasErrors() && response.data != null) GraphQLResponse.Success(response.data!!, response.errors ?: emptyList()) else GraphQLResponse.Error(response.errors ?: emptyList()) @@ -17,4 +18,6 @@ suspend fun ApolloCall.response(): GraphQLResponse { } catch (e: Throwable) { GraphQLResponse.Failure(ApiFailure(e, null)) } -} \ No newline at end of file +} + +fun T?.toOptional(): Optional = Optional.presentIfNotNull(this) \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/service/InstallService.kt b/app/src/main/java/com/materiiapps/gloom/service/InstallService.kt new file mode 100644 index 0000000..45c9c76 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/service/InstallService.kt @@ -0,0 +1,44 @@ +package com.materiiapps.gloom.service + +import android.app.Service +import android.content.Intent +import android.content.pm.PackageInstaller +import android.os.IBinder +import com.materiiapps.gloom.R +import com.materiiapps.gloom.utils.showToast + +class InstallService: Service() { + + private val messages = mapOf( + PackageInstaller.STATUS_FAILURE to R.string.install_fail_generic, + PackageInstaller.STATUS_FAILURE_BLOCKED to R.string.install_fail_blocked, + PackageInstaller.STATUS_FAILURE_INVALID to R.string.install_fail_invalid, + PackageInstaller.STATUS_FAILURE_CONFLICT to R.string.install_fail_conflict, + PackageInstaller.STATUS_FAILURE_STORAGE to R.string.install_fail_storage, + PackageInstaller.STATUS_FAILURE_INCOMPATIBLE to R.string.install_fail_incompatible, + 8 /* STATUS_FAILURE_TIMEOUT (Added in Android 14) */ to R.string.install_fail_incompatible, + ) + + override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int { + when(val statusCode = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, -999)) { + PackageInstaller.STATUS_PENDING_USER_ACTION -> { + val confirmationIntent = intent.getParcelableExtra(Intent.EXTRA_INTENT)!! + .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + + startActivity(confirmationIntent) + } + + PackageInstaller.STATUS_SUCCESS -> showToast(getString(R.string.install_success)) + + PackageInstaller.STATUS_FAILURE_ABORTED -> showToast(getString(R.string.install_cancelled)) + + else -> messages[statusCode]?.let { showToast(getString(it)) } + } + + stopSelf() + return START_NOT_STICKY + } + + override fun onBind(intent: Intent?): IBinder? = null + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/components/Avatar.kt b/app/src/main/java/com/materiiapps/gloom/ui/components/Avatar.kt index c1234ae..76f725b 100644 --- a/app/src/main/java/com/materiiapps/gloom/ui/components/Avatar.kt +++ b/app/src/main/java/com/materiiapps/gloom/ui/components/Avatar.kt @@ -6,14 +6,13 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import coil.compose.AsyncImage -import com.materiiapps.gloom.domain.models.ModelUser import com.materiiapps.gloom.rest.dto.user.User @Composable fun Avatar( url: String?, contentDescription: String?, - type: User.Type, + type: User.Type = User.Type.USER, modifier: Modifier = Modifier ) { val shape = when(type) { diff --git a/app/src/main/java/com/materiiapps/gloom/ui/components/Label.kt b/app/src/main/java/com/materiiapps/gloom/ui/components/Label.kt new file mode 100644 index 0000000..4bf22ed --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/components/Label.kt @@ -0,0 +1,66 @@ +package com.materiiapps.gloom.ui.components + +import android.annotation.SuppressLint +import androidx.compose.foundation.background +import androidx.compose.foundation.border +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material3.Icon +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp + +@Composable +fun Label( + text: String? = null, + icon: ImageVector? = null, + textColor: Color, + borderColor: Color = textColor, + fillColor: Color = Color.Transparent, + iconColor: Color = textColor, + @SuppressLint("ModifierParameter") modifier: Modifier = Modifier +) { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(4.dp), + modifier = Modifier + .then(modifier) + .clip(CircleShape) + .background(fillColor) + .border(1.dp, borderColor, CircleShape) + .then( + if (text == null) + Modifier.padding(5.dp) + else + Modifier.padding(vertical = 5.dp, horizontal = 7.dp) + ) + ) { + icon?.let { + Icon( + imageVector = it, + contentDescription = null, + tint = iconColor, + modifier = Modifier.size(12.dp) + ) + } + text?.let { + Text( + text = text, + style = MaterialTheme.typography.labelSmall, + fontSize = 10.sp, + color = textColor, + maxLines = 1 + ) + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/components/LargeSegmentedButton.kt b/app/src/main/java/com/materiiapps/gloom/ui/components/LargeSegmentedButton.kt new file mode 100644 index 0000000..54710f4 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/components/LargeSegmentedButton.kt @@ -0,0 +1,72 @@ +package com.materiiapps.gloom.ui.components + +import androidx.compose.foundation.ExperimentalFoundationApi +import androidx.compose.foundation.background +import androidx.compose.foundation.basicMarquee +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.RowScope +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.Icon +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.material3.surfaceColorAtElevation +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.painter.Painter +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.unit.dp + +@OptIn(ExperimentalFoundationApi::class) +@Composable +fun RowScope.LargeSegmentedButton( + icon: Any, + iconDescription: String? = null, + text: String +) { + Column( + horizontalAlignment = Alignment.CenterHorizontally, + verticalArrangement = Arrangement.spacedBy(12.dp, Alignment.CenterVertically), + modifier = Modifier + .background(MaterialTheme.colorScheme.surfaceColorAtElevation(2.dp)) + .weight(1f) + .padding(16.dp) + ) { + when (icon) { + is ImageVector -> { + Icon( + imageVector = icon, + contentDescription = iconDescription, + tint = MaterialTheme.colorScheme.primary + ) + } + + is Painter -> { + Icon( + painter = icon, + contentDescription = iconDescription, + tint = MaterialTheme.colorScheme.primary + ) + } + } + + Text( + text = text, + style = MaterialTheme.typography.labelLarge, + color = MaterialTheme.colorScheme.primary, + maxLines = 1, + modifier = Modifier.basicMarquee(Int.MAX_VALUE) + ) + } +} + +@Composable +fun LargeSegmentedButtonRow(modifier: Modifier = Modifier, content: @Composable RowScope.() -> Unit) = Row( + horizontalArrangement = Arrangement.spacedBy(2.dp), + modifier = Modifier.clip(RoundedCornerShape(16.dp)).then(modifier), + content = content +) \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/components/ThinDivider.kt b/app/src/main/java/com/materiiapps/gloom/ui/components/ThinDivider.kt new file mode 100644 index 0000000..a4f8fa6 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/components/ThinDivider.kt @@ -0,0 +1,12 @@ +package com.materiiapps.gloom.ui.components + +import androidx.compose.material3.Divider +import androidx.compose.material3.MaterialTheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.unit.dp + +@Composable +fun ThinDivider() = Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, +) \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/icons/ClosedPullRequest.kt b/app/src/main/java/com/materiiapps/gloom/ui/icons/ClosedPullRequest.kt new file mode 100644 index 0000000..955190a --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/icons/ClosedPullRequest.kt @@ -0,0 +1,192 @@ +package com.materiiapps.gloom.ui.icons + +import androidx.compose.material.icons.materialIcon +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.graphics.StrokeJoin +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.graphics.vector.path + +val CustomIcons.ClosedPullRequest: ImageVector + get() { + if (_closedPullRequest != null) { + return _closedPullRequest!! + } + _closedPullRequest = materialIcon(name = "ClosedPullRequest") { + path( + fill = SolidColor(Color(0xFFFFFFFF)), + fillAlpha = 1.0F, + strokeAlpha = 1.0F, + strokeLineWidth = 0.0F, + strokeLineCap = StrokeCap.Butt, + strokeLineJoin = StrokeJoin.Miter, + strokeLineMiter = 4.0F, + pathFillType = PathFillType.EvenOdd, + ) { + moveTo(18.073F, 6.705F) + lineTo(19.417F, 7.939F) + curveTo(19.577F, 8.086F, 19.789F, 8.163F, 20.006F, 8.154F) + curveTo(20.224F, 8.145F, 20.429F, 8.05F, 20.576F, 7.889F) + curveTo(20.723F, 7.729F, 20.8F, 7.517F, 20.791F, 7.3F) + curveTo(20.782F, 7.082F, 20.686F, 6.877F, 20.526F, 6.73F) + lineTo(19.256F, 5.564F) + lineTo(20.554F, 4.256F) + curveTo(20.707F, 4.102F, 20.793F, 3.893F, 20.792F, 3.675F) + curveTo(20.791F, 3.458F, 20.704F, 3.249F, 20.549F, 3.096F) + curveTo(20.395F, 2.943F, 20.186F, 2.857F, 19.968F, 2.858F) + curveTo(19.751F, 2.859F, 19.542F, 2.946F, 19.389F, 3.101F) + lineTo(18.073F, 4.427F) + lineTo(16.757F, 3.101F) + curveTo(16.604F, 2.946F, 16.395F, 2.859F, 16.178F, 2.858F) + curveTo(15.96F, 2.857F, 15.751F, 2.943F, 15.597F, 3.096F) + curveTo(15.442F, 3.249F, 15.355F, 3.458F, 15.354F, 3.675F) + curveTo(15.353F, 3.893F, 15.439F, 4.102F, 15.592F, 4.256F) + lineTo(16.89F, 5.564F) + lineTo(15.62F, 6.73F) + curveTo(15.46F, 6.877F, 15.364F, 7.082F, 15.355F, 7.3F) + curveTo(15.346F, 7.517F, 15.423F, 7.729F, 15.57F, 7.889F) + curveTo(15.717F, 8.05F, 15.922F, 8.145F, 16.14F, 8.154F) + curveTo(16.357F, 8.163F, 16.569F, 8.086F, 16.729F, 7.939F) + lineTo(18.073F, 6.705F) + lineTo(18.073F, 6.705F) + + moveTo(4.812F, 5.789F) + curveTo(4.812F, 5.64F, 4.841F, 5.493F, 4.9F, 5.355F) + curveTo(4.956F, 5.224F, 5.037F, 5.103F, 5.139F, 5.001F) + curveTo(5.241F, 4.899F, 5.361F, 4.818F, 5.494F, 4.762F) + curveTo(5.631F, 4.704F, 5.778F, 4.674F, 5.927F, 4.674F) + curveTo(6.076F, 4.674F, 6.223F, 4.704F, 6.36F, 4.762F) + curveTo(6.493F, 4.818F, 6.613F, 4.899F, 6.715F, 5.001F) + curveTo(6.817F, 5.103F, 6.898F, 5.224F, 6.955F, 5.356F) + curveTo(7.012F, 5.493F, 7.042F, 5.64F, 7.042F, 5.789F) + curveTo(7.042F, 5.938F, 7.012F, 6.086F, 6.955F, 6.223F) + curveTo(6.898F, 6.355F, 6.817F, 6.476F, 6.715F, 6.577F) + curveTo(6.613F, 6.679F, 6.493F, 6.761F, 6.36F, 6.817F) + curveTo(6.223F, 6.875F, 6.076F, 6.904F, 5.927F, 6.904F) + curveTo(5.778F, 6.904F, 5.631F, 6.875F, 5.494F, 6.817F) + curveTo(5.361F, 6.761F, 5.241F, 6.679F, 5.139F, 6.577F) + curveTo(5.037F, 6.476F, 4.956F, 6.355F, 4.899F, 6.223F) + curveTo(4.841F, 6.086F, 4.812F, 5.938F, 4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + + moveTo(4.812F, 18.211F) + curveTo(4.812F, 18.062F, 4.841F, 17.914F, 4.9F, 17.777F) + curveTo(4.956F, 17.645F, 5.037F, 17.524F, 5.139F, 17.423F) + curveTo(5.241F, 17.321F, 5.361F, 17.239F, 5.494F, 17.183F) + curveTo(5.631F, 17.125F, 5.778F, 17.096F, 5.927F, 17.096F) + curveTo(6.076F, 17.096F, 6.223F, 17.125F, 6.36F, 17.183F) + curveTo(6.493F, 17.239F, 6.613F, 17.321F, 6.715F, 17.423F) + curveTo(6.817F, 17.524F, 6.898F, 17.645F, 6.955F, 17.777F) + curveTo(7.012F, 17.914F, 7.042F, 18.062F, 7.042F, 18.211F) + curveTo(7.042F, 18.36F, 7.012F, 18.507F, 6.955F, 18.644F) + curveTo(6.898F, 18.776F, 6.817F, 18.897F, 6.715F, 18.999F) + curveTo(6.613F, 19.101F, 6.493F, 19.182F, 6.36F, 19.238F) + curveTo(6.223F, 19.296F, 6.076F, 19.326F, 5.927F, 19.326F) + curveTo(5.778F, 19.326F, 5.631F, 19.296F, 5.494F, 19.238F) + curveTo(5.361F, 19.182F, 5.241F, 19.101F, 5.139F, 18.999F) + curveTo(5.037F, 18.897F, 4.956F, 18.776F, 4.899F, 18.644F) + curveTo(4.841F, 18.507F, 4.812F, 18.36F, 4.812F, 18.211F) + lineTo(4.812F, 18.211F) + lineTo(4.812F, 18.211F) + lineTo(4.812F, 18.211F) + + moveTo(5.048F, 15.23F) + lineTo(5.048F, 9.104F) + lineTo(5.048F, 8.77F) + lineTo(5.048F, 8.77F) + curveTo(4.936F, 8.737F, 4.826F, 8.697F, 4.718F, 8.652F) + curveTo(4.349F, 8.495F, 4.013F, 8.269F, 3.73F, 7.986F) + curveTo(3.447F, 7.703F, 3.221F, 7.368F, 3.065F, 6.999F) + curveTo(2.903F, 6.616F, 2.82F, 6.205F, 2.82F, 5.789F) + lineTo(2.82F, 5.789F) + curveTo(2.82F, 5.374F, 2.903F, 4.963F, 3.064F, 4.58F) + curveTo(3.221F, 4.211F, 3.447F, 3.876F, 3.73F, 3.593F) + curveTo(4.013F, 3.309F, 4.349F, 3.083F, 4.718F, 2.927F) + curveTo(5.1F, 2.765F, 5.512F, 2.682F, 5.927F, 2.682F) + curveTo(6.342F, 2.682F, 6.754F, 2.765F, 7.136F, 2.927F) + curveTo(7.505F, 3.083F, 7.841F, 3.309F, 8.124F, 3.593F) + curveTo(8.407F, 3.876F, 8.633F, 4.211F, 8.789F, 4.58F) + curveTo(8.951F, 4.962F, 9.034F, 5.374F, 9.034F, 5.789F) + curveTo(9.034F, 6.205F, 8.951F, 6.616F, 8.789F, 6.999F) + curveTo(8.633F, 7.368F, 8.407F, 7.703F, 8.124F, 7.986F) + curveTo(7.841F, 8.269F, 7.505F, 8.495F, 7.136F, 8.652F) + curveTo(7.028F, 8.697F, 6.918F, 8.737F, 6.806F, 8.77F) + lineTo(6.806F, 9.104F) + lineTo(6.806F, 15.23F) + curveTo(6.918F, 15.263F, 7.028F, 15.303F, 7.136F, 15.348F) + curveTo(7.505F, 15.505F, 7.841F, 15.731F, 8.124F, 16.014F) + curveTo(8.407F, 16.297F, 8.633F, 16.632F, 8.789F, 17.001F) + curveTo(8.951F, 17.384F, 9.034F, 17.795F, 9.034F, 18.211F) + curveTo(9.034F, 18.626F, 8.951F, 19.038F, 8.789F, 19.42F) + curveTo(8.633F, 19.789F, 8.407F, 20.124F, 8.124F, 20.408F) + curveTo(7.841F, 20.691F, 7.505F, 20.917F, 7.136F, 21.073F) + curveTo(6.754F, 21.235F, 6.342F, 21.318F, 5.927F, 21.318F) + curveTo(5.512F, 21.318F, 5.1F, 21.235F, 4.718F, 21.073F) + curveTo(4.349F, 20.917F, 4.013F, 20.691F, 3.73F, 20.408F) + curveTo(3.447F, 20.124F, 3.221F, 19.789F, 3.065F, 19.42F) + curveTo(2.903F, 19.038F, 2.82F, 18.626F, 2.82F, 18.211F) + lineTo(2.82F, 18.211F) + curveTo(2.82F, 17.795F, 2.903F, 17.384F, 3.064F, 17.002F) + curveTo(3.221F, 16.632F, 3.447F, 16.297F, 3.73F, 16.014F) + curveTo(4.013F, 15.731F, 4.349F, 15.505F, 4.718F, 15.348F) + curveTo(4.826F, 15.303F, 4.936F, 15.263F, 5.048F, 15.23F) + lineTo(5.048F, 15.23F) + lineTo(5.048F, 15.23F) + + moveTo(16.958F, 18.211F) + curveTo(16.958F, 18.062F, 16.988F, 17.914F, 17.046F, 17.777F) + curveTo(17.102F, 17.645F, 17.183F, 17.524F, 17.285F, 17.423F) + curveTo(17.387F, 17.321F, 17.507F, 17.239F, 17.64F, 17.183F) + curveTo(17.777F, 17.125F, 17.924F, 17.096F, 18.073F, 17.096F) + curveTo(18.222F, 17.096F, 18.369F, 17.125F, 18.506F, 17.183F) + curveTo(18.639F, 17.239F, 18.759F, 17.321F, 18.861F, 17.423F) + curveTo(18.963F, 17.524F, 19.044F, 17.645F, 19.101F, 17.777F) + curveTo(19.159F, 17.914F, 19.188F, 18.062F, 19.188F, 18.211F) + curveTo(19.188F, 18.36F, 19.159F, 18.507F, 19.101F, 18.644F) + curveTo(19.044F, 18.776F, 18.963F, 18.897F, 18.861F, 18.999F) + curveTo(18.759F, 19.101F, 18.639F, 19.182F, 18.506F, 19.238F) + curveTo(18.369F, 19.296F, 18.222F, 19.326F, 18.073F, 19.326F) + curveTo(17.924F, 19.326F, 17.777F, 19.296F, 17.64F, 19.238F) + curveTo(17.507F, 19.182F, 17.387F, 19.101F, 17.285F, 18.999F) + curveTo(17.183F, 18.897F, 17.102F, 18.776F, 17.045F, 18.644F) + curveTo(16.987F, 18.507F, 16.958F, 18.36F, 16.958F, 18.211F) + lineTo(16.958F, 18.211F) + lineTo(16.958F, 18.211F) + + moveTo(18.996F, 15.244F) + lineTo(18.996F, 9.633F) + curveTo(18.996F, 9.4F, 18.903F, 9.176F, 18.739F, 9.011F) + curveTo(18.574F, 8.846F, 18.35F, 8.754F, 18.117F, 8.754F) + curveTo(17.884F, 8.754F, 17.66F, 8.846F, 17.496F, 9.011F) + curveTo(17.331F, 9.176F, 17.238F, 9.4F, 17.238F, 9.633F) + lineTo(17.238F, 15.217F) + curveTo(17.111F, 15.253F, 16.986F, 15.297F, 16.864F, 15.348F) + curveTo(16.495F, 15.505F, 16.159F, 15.731F, 15.876F, 16.014F) + curveTo(15.593F, 16.297F, 15.367F, 16.632F, 15.21F, 17.002F) + curveTo(15.049F, 17.384F, 14.966F, 17.795F, 14.966F, 18.211F) + lineTo(14.966F, 18.211F) + curveTo(14.966F, 18.626F, 15.049F, 19.038F, 15.211F, 19.42F) + curveTo(15.367F, 19.789F, 15.593F, 20.124F, 15.876F, 20.408F) + curveTo(16.159F, 20.691F, 16.495F, 20.917F, 16.864F, 21.073F) + curveTo(17.246F, 21.235F, 17.658F, 21.318F, 18.073F, 21.318F) + curveTo(18.488F, 21.318F, 18.9F, 21.235F, 19.283F, 21.073F) + curveTo(19.651F, 20.917F, 19.987F, 20.691F, 20.27F, 20.408F) + curveTo(20.553F, 20.124F, 20.779F, 19.789F, 20.935F, 19.42F) + curveTo(21.097F, 19.038F, 21.18F, 18.626F, 21.18F, 18.211F) + curveTo(21.18F, 17.795F, 21.097F, 17.384F, 20.935F, 17.001F) + curveTo(20.779F, 16.632F, 20.553F, 16.297F, 20.27F, 16.014F) + curveTo(19.987F, 15.731F, 19.651F, 15.505F, 19.283F, 15.348F) + curveTo(19.189F, 15.309F, 19.093F, 15.274F, 18.996F, 15.244F) + lineTo(18.996F, 15.244F) + close() + } + } + return _closedPullRequest!! + } + +private var _closedPullRequest: ImageVector? = null \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/icons/Custom.kt b/app/src/main/java/com/materiiapps/gloom/ui/icons/Custom.kt new file mode 100644 index 0000000..4698f50 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/icons/Custom.kt @@ -0,0 +1,8 @@ +package com.materiiapps.gloom.ui.icons + +import androidx.compose.material.icons.Icons + +object CustomIcons + +val Icons.Custom: CustomIcons + get() = CustomIcons diff --git a/app/src/main/java/com/materiiapps/gloom/ui/icons/DraftPullRequest.kt b/app/src/main/java/com/materiiapps/gloom/ui/icons/DraftPullRequest.kt new file mode 100644 index 0000000..c0b52cb --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/icons/DraftPullRequest.kt @@ -0,0 +1,175 @@ +package com.materiiapps.gloom.ui.icons + +import androidx.compose.material.icons.materialIcon +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.graphics.StrokeJoin +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.graphics.vector.path + +val CustomIcons.DraftPullRequest: ImageVector + get() { + if (_draftPullRequest != null) { + return _draftPullRequest!! + } + _draftPullRequest = materialIcon(name = "DraftPullRequest") { + path( + fill = SolidColor(Color(0xFFFFFFFF)), + fillAlpha = 1.0F, + strokeAlpha = 1.0F, + strokeLineWidth = 0.0F, + strokeLineCap = StrokeCap.Butt, + strokeLineJoin = StrokeJoin.Miter, + strokeLineMiter = 4.0F, + pathFillType = PathFillType.EvenOdd, + ) { + moveTo(16.625F, 10.552F) + curveTo(16.625F, 9.753F, 17.274F, 9.104F, 18.073F, 9.104F) + curveTo(18.872F, 9.104F, 19.521F, 9.753F, 19.521F, 10.552F) + curveTo(19.521F, 11.351F, 18.872F, 12.0F, 18.073F, 12.0F) + curveTo(17.274F, 12.0F, 16.625F, 11.351F, 16.625F, 10.552F) + lineTo(16.625F, 10.552F) + lineTo(16.625F, 10.552F) + lineTo(16.625F, 10.552F) + lineTo(16.625F, 10.552F) + + moveTo(4.812F, 5.789F) + curveTo(4.812F, 5.64F, 4.841F, 5.493F, 4.9F, 5.355F) + curveTo(4.956F, 5.224F, 5.037F, 5.103F, 5.139F, 5.001F) + curveTo(5.241F, 4.899F, 5.361F, 4.818F, 5.494F, 4.762F) + curveTo(5.631F, 4.704F, 5.778F, 4.674F, 5.927F, 4.674F) + curveTo(6.076F, 4.674F, 6.223F, 4.704F, 6.36F, 4.762F) + curveTo(6.493F, 4.818F, 6.613F, 4.899F, 6.715F, 5.001F) + curveTo(6.817F, 5.103F, 6.898F, 5.224F, 6.955F, 5.356F) + curveTo(7.012F, 5.493F, 7.042F, 5.64F, 7.042F, 5.789F) + curveTo(7.042F, 5.938F, 7.012F, 6.086F, 6.955F, 6.223F) + curveTo(6.898F, 6.355F, 6.817F, 6.476F, 6.715F, 6.577F) + curveTo(6.613F, 6.679F, 6.493F, 6.761F, 6.36F, 6.817F) + curveTo(6.223F, 6.875F, 6.076F, 6.904F, 5.927F, 6.904F) + curveTo(5.778F, 6.904F, 5.631F, 6.875F, 5.494F, 6.817F) + curveTo(5.361F, 6.761F, 5.241F, 6.679F, 5.139F, 6.577F) + curveTo(5.037F, 6.476F, 4.956F, 6.355F, 4.899F, 6.223F) + curveTo(4.841F, 6.086F, 4.812F, 5.938F, 4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + + moveTo(4.812F, 18.211F) + curveTo(4.812F, 18.062F, 4.841F, 17.914F, 4.9F, 17.777F) + curveTo(4.956F, 17.645F, 5.037F, 17.524F, 5.139F, 17.423F) + curveTo(5.241F, 17.321F, 5.361F, 17.239F, 5.494F, 17.183F) + curveTo(5.631F, 17.125F, 5.778F, 17.096F, 5.927F, 17.096F) + curveTo(6.076F, 17.096F, 6.223F, 17.125F, 6.36F, 17.183F) + curveTo(6.493F, 17.239F, 6.613F, 17.321F, 6.715F, 17.423F) + curveTo(6.817F, 17.524F, 6.898F, 17.645F, 6.955F, 17.777F) + curveTo(7.012F, 17.914F, 7.042F, 18.062F, 7.042F, 18.211F) + curveTo(7.042F, 18.36F, 7.012F, 18.507F, 6.955F, 18.644F) + curveTo(6.898F, 18.776F, 6.817F, 18.897F, 6.715F, 18.999F) + curveTo(6.613F, 19.101F, 6.493F, 19.182F, 6.36F, 19.238F) + curveTo(6.223F, 19.296F, 6.076F, 19.326F, 5.927F, 19.326F) + curveTo(5.778F, 19.326F, 5.631F, 19.296F, 5.494F, 19.238F) + curveTo(5.361F, 19.182F, 5.241F, 19.101F, 5.139F, 18.999F) + curveTo(5.037F, 18.897F, 4.956F, 18.776F, 4.899F, 18.644F) + curveTo(4.841F, 18.507F, 4.812F, 18.36F, 4.812F, 18.211F) + lineTo(4.812F, 18.211F) + lineTo(4.812F, 18.211F) + lineTo(4.812F, 18.211F) + + moveTo(16.958F, 18.211F) + curveTo(16.958F, 18.062F, 16.988F, 17.914F, 17.046F, 17.777F) + curveTo(17.102F, 17.645F, 17.183F, 17.524F, 17.285F, 17.423F) + curveTo(17.387F, 17.321F, 17.507F, 17.239F, 17.64F, 17.183F) + curveTo(17.777F, 17.125F, 17.924F, 17.096F, 18.073F, 17.096F) + curveTo(18.222F, 17.096F, 18.369F, 17.125F, 18.506F, 17.183F) + curveTo(18.639F, 17.239F, 18.759F, 17.321F, 18.861F, 17.423F) + curveTo(18.963F, 17.524F, 19.044F, 17.645F, 19.101F, 17.777F) + curveTo(19.159F, 17.914F, 19.188F, 18.062F, 19.188F, 18.211F) + curveTo(19.188F, 18.36F, 19.159F, 18.507F, 19.101F, 18.644F) + curveTo(19.044F, 18.776F, 18.963F, 18.897F, 18.861F, 18.999F) + curveTo(18.759F, 19.101F, 18.639F, 19.182F, 18.506F, 19.238F) + curveTo(18.369F, 19.296F, 18.222F, 19.326F, 18.073F, 19.326F) + curveTo(17.924F, 19.326F, 17.777F, 19.296F, 17.64F, 19.238F) + curveTo(17.507F, 19.182F, 17.387F, 19.101F, 17.285F, 18.999F) + curveTo(17.183F, 18.897F, 17.102F, 18.776F, 17.045F, 18.644F) + curveTo(16.987F, 18.507F, 16.958F, 18.36F, 16.958F, 18.211F) + lineTo(16.958F, 18.211F) + lineTo(16.958F, 18.211F) + + moveTo(14.966F, 18.211F) + curveTo(14.966F, 17.795F, 15.049F, 17.384F, 15.21F, 17.002F) + curveTo(15.367F, 16.632F, 15.593F, 16.297F, 15.876F, 16.014F) + curveTo(16.159F, 15.731F, 16.495F, 15.505F, 16.864F, 15.348F) + curveTo(17.246F, 15.187F, 17.658F, 15.103F, 18.073F, 15.104F) + curveTo(18.488F, 15.103F, 18.9F, 15.187F, 19.283F, 15.348F) + curveTo(19.651F, 15.505F, 19.987F, 15.731F, 20.27F, 16.014F) + curveTo(20.553F, 16.297F, 20.779F, 16.632F, 20.935F, 17.001F) + curveTo(21.097F, 17.384F, 21.18F, 17.795F, 21.18F, 18.211F) + curveTo(21.18F, 18.626F, 21.097F, 19.038F, 20.935F, 19.42F) + curveTo(20.779F, 19.789F, 20.553F, 20.124F, 20.27F, 20.408F) + curveTo(19.987F, 20.691F, 19.651F, 20.917F, 19.283F, 21.073F) + curveTo(18.9F, 21.235F, 18.488F, 21.318F, 18.073F, 21.318F) + curveTo(17.658F, 21.318F, 17.246F, 21.235F, 16.864F, 21.073F) + curveTo(16.495F, 20.917F, 16.159F, 20.691F, 15.876F, 20.408F) + curveTo(15.593F, 20.124F, 15.367F, 19.789F, 15.211F, 19.42F) + curveTo(15.049F, 19.038F, 14.966F, 18.626F, 14.966F, 18.211F) + lineTo(14.966F, 18.211F) + lineTo(14.966F, 18.211F) + + moveTo(5.048F, 15.23F) + lineTo(5.048F, 9.104F) + lineTo(5.048F, 8.77F) + lineTo(5.048F, 8.77F) + curveTo(4.936F, 8.737F, 4.826F, 8.697F, 4.718F, 8.652F) + curveTo(4.349F, 8.495F, 4.013F, 8.269F, 3.73F, 7.986F) + curveTo(3.447F, 7.703F, 3.221F, 7.368F, 3.065F, 6.999F) + curveTo(2.903F, 6.616F, 2.82F, 6.205F, 2.82F, 5.789F) + lineTo(2.82F, 5.789F) + curveTo(2.82F, 5.374F, 2.903F, 4.963F, 3.064F, 4.58F) + curveTo(3.221F, 4.211F, 3.447F, 3.876F, 3.73F, 3.593F) + curveTo(4.013F, 3.309F, 4.349F, 3.083F, 4.718F, 2.927F) + curveTo(5.1F, 2.765F, 5.512F, 2.682F, 5.927F, 2.682F) + curveTo(6.342F, 2.682F, 6.754F, 2.765F, 7.136F, 2.927F) + curveTo(7.505F, 3.083F, 7.841F, 3.309F, 8.124F, 3.593F) + curveTo(8.407F, 3.876F, 8.633F, 4.211F, 8.789F, 4.58F) + curveTo(8.951F, 4.962F, 9.034F, 5.374F, 9.034F, 5.789F) + curveTo(9.034F, 6.205F, 8.951F, 6.616F, 8.789F, 6.999F) + curveTo(8.633F, 7.368F, 8.407F, 7.703F, 8.124F, 7.986F) + curveTo(7.841F, 8.269F, 7.505F, 8.495F, 7.136F, 8.652F) + curveTo(7.028F, 8.697F, 6.918F, 8.737F, 6.806F, 8.77F) + lineTo(6.806F, 9.104F) + lineTo(6.806F, 15.23F) + curveTo(6.918F, 15.263F, 7.028F, 15.303F, 7.136F, 15.348F) + curveTo(7.505F, 15.505F, 7.841F, 15.731F, 8.124F, 16.014F) + curveTo(8.407F, 16.297F, 8.633F, 16.632F, 8.789F, 17.001F) + curveTo(8.951F, 17.384F, 9.034F, 17.795F, 9.034F, 18.211F) + curveTo(9.034F, 18.626F, 8.951F, 19.038F, 8.789F, 19.42F) + curveTo(8.633F, 19.789F, 8.407F, 20.124F, 8.124F, 20.408F) + curveTo(7.841F, 20.691F, 7.505F, 20.917F, 7.136F, 21.073F) + curveTo(6.754F, 21.235F, 6.342F, 21.318F, 5.927F, 21.318F) + curveTo(5.512F, 21.318F, 5.1F, 21.235F, 4.718F, 21.073F) + curveTo(4.349F, 20.917F, 4.013F, 20.691F, 3.73F, 20.408F) + curveTo(3.447F, 20.124F, 3.221F, 19.789F, 3.065F, 19.42F) + curveTo(2.903F, 19.038F, 2.82F, 18.626F, 2.82F, 18.211F) + lineTo(2.82F, 18.211F) + curveTo(2.82F, 17.795F, 2.903F, 17.384F, 3.064F, 17.002F) + curveTo(3.221F, 16.632F, 3.447F, 16.297F, 3.73F, 16.014F) + curveTo(4.013F, 15.731F, 4.349F, 15.505F, 4.718F, 15.348F) + curveTo(4.826F, 15.303F, 4.936F, 15.263F, 5.048F, 15.23F) + lineTo(5.048F, 15.23F) + lineTo(5.048F, 15.23F) + + moveTo(16.627F, 5.126F) + curveTo(16.627F, 4.327F, 17.276F, 3.678F, 18.075F, 3.678F) + curveTo(18.875F, 3.678F, 19.523F, 4.327F, 19.523F, 5.126F) + curveTo(19.523F, 5.926F, 18.875F, 6.575F, 18.075F, 6.575F) + curveTo(17.276F, 6.575F, 16.627F, 5.926F, 16.627F, 5.126F) + close() + } + } + return _draftPullRequest!! + } + +private var _draftPullRequest: ImageVector? = null \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/icons/MergedPullRequest.kt b/app/src/main/java/com/materiiapps/gloom/ui/icons/MergedPullRequest.kt new file mode 100644 index 0000000..6466c95 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/icons/MergedPullRequest.kt @@ -0,0 +1,179 @@ +package com.materiiapps.gloom.ui.icons + +import androidx.compose.material.icons.materialIcon +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.graphics.StrokeJoin +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.graphics.vector.path + +val CustomIcons.MergedPullRequest: ImageVector + get() { + if (_mergedPullRequest != null) { + return _mergedPullRequest!! + } + _mergedPullRequest = materialIcon(name = "MergedPullRequest") { + path( + fill = SolidColor(Color(0xFFFFFFFF)), + fillAlpha = 1.0F, + strokeAlpha = 1.0F, + strokeLineWidth = 0.0F, + strokeLineCap = StrokeCap.Butt, + strokeLineJoin = StrokeJoin.Miter, + strokeLineMiter = 4.0F, + pathFillType = PathFillType.EvenOdd, + ) { + moveTo(13.936F, 11.145F) + lineTo(12.837F, 11.145F) + curveTo(12.837F, 11.145F, 12.837F, 11.145F, 12.836F, 11.145F) + curveTo(12.543F, 11.145F, 12.25F, 11.121F, 11.961F, 11.074F) + curveTo(11.686F, 11.029F, 11.415F, 10.961F, 11.152F, 10.872F) + curveTo(10.902F, 10.788F, 10.66F, 10.682F, 10.429F, 10.557F) + curveTo(10.211F, 10.44F, 10.005F, 10.303F, 9.811F, 10.149F) + curveTo(9.631F, 10.005F, 9.465F, 9.844F, 9.316F, 9.667F) + curveTo(9.177F, 9.503F, 9.056F, 9.325F, 8.955F, 9.135F) + curveTo(8.89F, 9.012F, 8.835F, 8.883F, 8.79F, 8.752F) + curveTo(8.858F, 8.729F, 8.925F, 8.703F, 8.991F, 8.675F) + curveTo(9.36F, 8.519F, 9.695F, 8.293F, 9.978F, 8.01F) + curveTo(10.261F, 7.726F, 10.487F, 7.391F, 10.644F, 7.022F) + curveTo(10.805F, 6.64F, 10.889F, 6.228F, 10.888F, 5.813F) + curveTo(10.888F, 5.813F, 10.888F, 5.812F, 10.888F, 5.812F) + lineTo(10.888F, 5.812F) + lineTo(10.888F, 5.813F) + curveTo(10.889F, 5.397F, 10.805F, 4.986F, 10.644F, 4.603F) + curveTo(10.487F, 4.234F, 10.261F, 3.899F, 9.978F, 3.616F) + curveTo(9.695F, 3.333F, 9.36F, 3.107F, 8.991F, 2.95F) + curveTo(8.608F, 2.789F, 8.197F, 2.705F, 7.781F, 2.706F) + curveTo(7.366F, 2.705F, 6.954F, 2.789F, 6.572F, 2.95F) + curveTo(6.203F, 3.107F, 5.868F, 3.333F, 5.584F, 3.616F) + curveTo(5.301F, 3.899F, 5.075F, 4.234F, 4.919F, 4.604F) + curveTo(4.757F, 4.986F, 4.674F, 5.397F, 4.674F, 5.813F) + curveTo(4.674F, 6.228F, 4.757F, 6.64F, 4.919F, 7.022F) + curveTo(5.075F, 7.391F, 5.301F, 7.726F, 5.584F, 8.01F) + curveTo(5.868F, 8.293F, 6.203F, 8.519F, 6.572F, 8.675F) + curveTo(6.68F, 8.721F, 6.79F, 8.76F, 6.902F, 8.793F) + lineTo(6.902F, 8.793F) + lineTo(6.902F, 9.127F) + lineTo(6.902F, 15.254F) + lineTo(6.902F, 15.254F) + curveTo(6.79F, 15.287F, 6.68F, 15.326F, 6.572F, 15.372F) + curveTo(6.203F, 15.528F, 5.868F, 15.754F, 5.584F, 16.037F) + curveTo(5.301F, 16.32F, 5.075F, 16.656F, 4.919F, 17.025F) + curveTo(4.757F, 17.408F, 4.674F, 17.819F, 4.674F, 18.234F) + lineTo(4.674F, 18.234F) + curveTo(4.674F, 18.65F, 4.757F, 19.061F, 4.919F, 19.444F) + curveTo(5.075F, 19.812F, 5.301F, 20.148F, 5.584F, 20.431F) + curveTo(5.868F, 20.714F, 6.203F, 20.94F, 6.572F, 21.097F) + curveTo(6.954F, 21.258F, 7.366F, 21.341F, 7.781F, 21.341F) + curveTo(8.197F, 21.341F, 8.608F, 21.258F, 8.991F, 21.097F) + curveTo(9.36F, 20.94F, 9.695F, 20.714F, 9.978F, 20.431F) + curveTo(10.261F, 20.148F, 10.487F, 19.812F, 10.644F, 19.444F) + curveTo(10.805F, 19.061F, 10.889F, 18.65F, 10.888F, 18.234F) + curveTo(10.889F, 17.819F, 10.805F, 17.407F, 10.644F, 17.025F) + curveTo(10.487F, 16.656F, 10.261F, 16.32F, 9.978F, 16.037F) + curveTo(9.695F, 15.754F, 9.36F, 15.528F, 8.991F, 15.372F) + curveTo(8.883F, 15.326F, 8.772F, 15.287F, 8.66F, 15.254F) + lineTo(8.66F, 11.478F) + curveTo(8.678F, 11.493F, 8.696F, 11.507F, 8.714F, 11.522F) + curveTo(8.989F, 11.742F, 9.284F, 11.936F, 9.593F, 12.104F) + curveTo(9.912F, 12.276F, 10.245F, 12.421F, 10.588F, 12.537F) + curveTo(10.943F, 12.657F, 11.307F, 12.748F, 11.677F, 12.808F) + curveTo(12.06F, 12.871F, 12.449F, 12.903F, 12.837F, 12.902F) + lineTo(13.95F, 12.902F) + lineTo(13.95F, 12.902F) + curveTo(13.982F, 13.006F, 14.019F, 13.109F, 14.061F, 13.21F) + curveTo(14.217F, 13.578F, 14.443F, 13.914F, 14.727F, 14.197F) + curveTo(15.01F, 14.48F, 15.345F, 14.706F, 15.714F, 14.862F) + curveTo(16.097F, 15.024F, 16.508F, 15.107F, 16.924F, 15.107F) + curveTo(17.339F, 15.107F, 17.75F, 15.024F, 18.133F, 14.862F) + curveTo(18.502F, 14.706F, 18.837F, 14.48F, 19.12F, 14.197F) + curveTo(19.404F, 13.914F, 19.63F, 13.578F, 19.786F, 13.21F) + curveTo(19.948F, 12.827F, 20.031F, 12.416F, 20.031F, 12.0F) + curveTo(20.031F, 11.584F, 19.948F, 11.173F, 19.786F, 10.79F) + curveTo(19.63F, 10.422F, 19.404F, 10.086F, 19.12F, 9.803F) + curveTo(18.837F, 9.52F, 18.502F, 9.294F, 18.133F, 9.138F) + curveTo(17.75F, 8.976F, 17.339F, 8.893F, 16.924F, 8.893F) + curveTo(16.508F, 8.893F, 16.097F, 8.976F, 15.714F, 9.138F) + curveTo(15.345F, 9.294F, 15.01F, 9.52F, 14.727F, 9.803F) + curveTo(14.443F, 10.086F, 14.217F, 10.422F, 14.061F, 10.791F) + curveTo(14.012F, 10.907F, 13.971F, 11.025F, 13.936F, 11.145F) + + moveTo(10.888F, 5.812F) + curveTo(10.888F, 5.812F, 10.888F, 5.813F, 10.888F, 5.813F) + lineTo(10.888F, 5.813F) + lineTo(10.888F, 5.812F) + lineTo(10.888F, 5.812F) + lineTo(10.888F, 5.812F) + lineTo(10.888F, 5.812F) + + moveTo(8.896F, 5.812F) + curveTo(8.896F, 5.812F, 8.896F, 5.813F, 8.896F, 5.813F) + lineTo(8.896F, 5.813F) + lineTo(8.896F, 5.813F) + curveTo(8.896F, 5.962F, 8.867F, 6.109F, 8.809F, 6.246F) + curveTo(8.753F, 6.379F, 8.671F, 6.499F, 8.569F, 6.601F) + curveTo(8.468F, 6.703F, 8.347F, 6.784F, 8.215F, 6.84F) + curveTo(8.078F, 6.898F, 7.93F, 6.928F, 7.781F, 6.928F) + curveTo(7.632F, 6.928F, 7.485F, 6.898F, 7.348F, 6.84F) + curveTo(7.215F, 6.784F, 7.095F, 6.703F, 6.993F, 6.601F) + curveTo(6.891F, 6.499F, 6.81F, 6.379F, 6.754F, 6.246F) + curveTo(6.696F, 6.109F, 6.666F, 5.962F, 6.666F, 5.813F) + curveTo(6.666F, 5.664F, 6.696F, 5.516F, 6.754F, 5.379F) + curveTo(6.81F, 5.247F, 6.891F, 5.126F, 6.993F, 5.025F) + curveTo(7.095F, 4.923F, 7.215F, 4.841F, 7.348F, 4.785F) + curveTo(7.485F, 4.727F, 7.632F, 4.698F, 7.781F, 4.698F) + curveTo(7.93F, 4.698F, 8.078F, 4.727F, 8.215F, 4.785F) + curveTo(8.347F, 4.841F, 8.468F, 4.923F, 8.569F, 5.025F) + curveTo(8.671F, 5.126F, 8.753F, 5.247F, 8.809F, 5.379F) + curveTo(8.867F, 5.516F, 8.896F, 5.663F, 8.896F, 5.812F) + lineTo(8.896F, 5.812F) + lineTo(8.896F, 5.812F) + lineTo(8.896F, 5.812F) + + moveTo(6.666F, 18.234F) + curveTo(6.666F, 18.085F, 6.696F, 17.938F, 6.754F, 17.8F) + curveTo(6.81F, 17.668F, 6.891F, 17.548F, 6.993F, 17.446F) + curveTo(7.095F, 17.344F, 7.215F, 17.263F, 7.348F, 17.206F) + curveTo(7.485F, 17.149F, 7.632F, 17.119F, 7.781F, 17.119F) + curveTo(7.93F, 17.119F, 8.078F, 17.149F, 8.215F, 17.206F) + curveTo(8.347F, 17.263F, 8.468F, 17.344F, 8.569F, 17.446F) + curveTo(8.671F, 17.548F, 8.753F, 17.668F, 8.809F, 17.801F) + curveTo(8.867F, 17.938F, 8.896F, 18.085F, 8.896F, 18.234F) + curveTo(8.896F, 18.383F, 8.867F, 18.53F, 8.809F, 18.668F) + curveTo(8.753F, 18.8F, 8.671F, 18.92F, 8.569F, 19.022F) + curveTo(8.468F, 19.124F, 8.347F, 19.206F, 8.215F, 19.262F) + curveTo(8.078F, 19.32F, 7.93F, 19.349F, 7.781F, 19.349F) + curveTo(7.632F, 19.349F, 7.485F, 19.32F, 7.348F, 19.262F) + curveTo(7.215F, 19.206F, 7.095F, 19.124F, 6.993F, 19.022F) + curveTo(6.891F, 18.92F, 6.81F, 18.8F, 6.754F, 18.668F) + curveTo(6.696F, 18.53F, 6.666F, 18.383F, 6.666F, 18.234F) + lineTo(6.666F, 18.234F) + lineTo(6.666F, 18.234F) + + moveTo(15.809F, 12.0F) + curveTo(15.808F, 11.851F, 15.838F, 11.704F, 15.896F, 11.566F) + curveTo(15.952F, 11.434F, 16.034F, 11.314F, 16.136F, 11.212F) + curveTo(16.237F, 11.11F, 16.358F, 11.029F, 16.49F, 10.972F) + curveTo(16.628F, 10.915F, 16.775F, 10.885F, 16.924F, 10.885F) + curveTo(17.072F, 10.885F, 17.22F, 10.915F, 17.357F, 10.972F) + curveTo(17.489F, 11.029F, 17.61F, 11.11F, 17.712F, 11.212F) + curveTo(17.813F, 11.314F, 17.895F, 11.434F, 17.951F, 11.567F) + curveTo(18.009F, 11.704F, 18.039F, 11.851F, 18.038F, 12.0F) + curveTo(18.039F, 12.149F, 18.009F, 12.296F, 17.951F, 12.433F) + curveTo(17.895F, 12.566F, 17.813F, 12.686F, 17.712F, 12.788F) + curveTo(17.61F, 12.89F, 17.489F, 12.971F, 17.357F, 13.028F) + curveTo(17.22F, 13.085F, 17.072F, 13.115F, 16.924F, 13.115F) + curveTo(16.775F, 13.115F, 16.628F, 13.085F, 16.49F, 13.028F) + curveTo(16.358F, 12.971F, 16.237F, 12.89F, 16.136F, 12.788F) + curveTo(16.034F, 12.686F, 15.952F, 12.566F, 15.896F, 12.433F) + curveTo(15.838F, 12.296F, 15.808F, 12.149F, 15.809F, 12.0F) + lineTo(15.809F, 12.0F) + close() + } + } + return _mergedPullRequest!! + } + +private var _mergedPullRequest: ImageVector? = null \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/icons/OpenPullRequest.kt b/app/src/main/java/com/materiiapps/gloom/ui/icons/OpenPullRequest.kt new file mode 100644 index 0000000..382be78 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/icons/OpenPullRequest.kt @@ -0,0 +1,185 @@ +package com.materiiapps.gloom.ui.icons + +import androidx.compose.material.icons.materialIcon +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.graphics.StrokeJoin +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.graphics.vector.path + +val CustomIcons.OpenPullRequest: ImageVector + get() { + if (_openPullRequest != null) { + return _openPullRequest!! + } + _openPullRequest = materialIcon(name = "OpenPullRequest") { + path( + fill = SolidColor(Color(0xFFFFFFFF)), + fillAlpha = 1.0F, + strokeAlpha = 1.0F, + strokeLineWidth = 0.0F, + strokeLineCap = StrokeCap.Butt, + strokeLineJoin = StrokeJoin.Miter, + strokeLineMiter = 4.0F, + pathFillType = PathFillType.EvenOdd, + ) { + moveTo(17.238F, 15.217F) + lineTo(17.238F, 7.67F) + curveTo(17.238F, 7.669F, 17.238F, 7.669F, 17.238F, 7.669F) + curveTo(17.238F, 7.514F, 17.207F, 7.361F, 17.147F, 7.219F) + curveTo(17.089F, 7.081F, 17.004F, 6.955F, 16.898F, 6.849F) + curveTo(16.792F, 6.743F, 16.667F, 6.659F, 16.529F, 6.6F) + curveTo(16.386F, 6.54F, 16.233F, 6.509F, 16.078F, 6.509F) + curveTo(16.078F, 6.509F, 16.078F, 6.509F, 16.077F, 6.509F) + lineTo(13.162F, 6.509F) + lineTo(13.69F, 6.945F) + curveTo(13.857F, 7.084F, 13.963F, 7.283F, 13.984F, 7.5F) + curveTo(14.004F, 7.716F, 13.938F, 7.932F, 13.8F, 8.1F) + curveTo(13.661F, 8.268F, 13.462F, 8.374F, 13.245F, 8.394F) + curveTo(13.029F, 8.415F, 12.813F, 8.348F, 12.645F, 8.21F) + lineTo(10.31F, 6.237F) + curveTo(9.955F, 5.936F, 9.949F, 5.441F, 10.297F, 5.132F) + lineTo(12.616F, 3.075F) + curveTo(12.777F, 2.929F, 12.99F, 2.853F, 13.207F, 2.863F) + curveTo(13.425F, 2.874F, 13.629F, 2.971F, 13.775F, 3.132F) + curveTo(13.921F, 3.293F, 13.997F, 3.506F, 13.987F, 3.723F) + curveTo(13.976F, 3.94F, 13.879F, 4.144F, 13.718F, 4.29F) + lineTo(13.718F, 4.29F) + lineTo(13.21F, 4.751F) + lineTo(13.21F, 4.751F) + lineTo(13.21F, 4.751F) + lineTo(13.21F, 4.751F) + lineTo(16.077F, 4.751F) + curveTo(16.467F, 4.751F, 16.854F, 4.829F, 17.213F, 4.981F) + curveTo(17.56F, 5.128F, 17.875F, 5.34F, 18.141F, 5.606F) + curveTo(18.407F, 5.872F, 18.619F, 6.187F, 18.766F, 6.534F) + curveTo(18.918F, 6.893F, 18.996F, 7.28F, 18.996F, 7.67F) + lineTo(18.996F, 15.244F) + curveTo(19.093F, 15.274F, 19.189F, 15.309F, 19.283F, 15.348F) + curveTo(19.651F, 15.505F, 19.987F, 15.731F, 20.27F, 16.014F) + curveTo(20.553F, 16.297F, 20.779F, 16.632F, 20.935F, 17.001F) + curveTo(21.097F, 17.384F, 21.18F, 17.795F, 21.18F, 18.211F) + curveTo(21.18F, 18.626F, 21.097F, 19.038F, 20.935F, 19.42F) + curveTo(20.779F, 19.789F, 20.553F, 20.124F, 20.27F, 20.408F) + curveTo(19.987F, 20.691F, 19.651F, 20.917F, 19.283F, 21.073F) + curveTo(18.9F, 21.235F, 18.488F, 21.318F, 18.073F, 21.318F) + curveTo(17.658F, 21.318F, 17.246F, 21.235F, 16.864F, 21.073F) + curveTo(16.495F, 20.917F, 16.159F, 20.691F, 15.876F, 20.408F) + curveTo(15.593F, 20.124F, 15.367F, 19.789F, 15.211F, 19.42F) + curveTo(15.049F, 19.038F, 14.966F, 18.626F, 14.966F, 18.211F) + lineTo(14.966F, 18.211F) + curveTo(14.966F, 17.795F, 15.049F, 17.384F, 15.21F, 17.002F) + curveTo(15.367F, 16.632F, 15.593F, 16.297F, 15.876F, 16.014F) + curveTo(16.159F, 15.731F, 16.495F, 15.505F, 16.864F, 15.348F) + curveTo(16.986F, 15.297F, 17.111F, 15.253F, 17.238F, 15.217F) + + moveTo(4.812F, 5.789F) + curveTo(4.812F, 5.64F, 4.841F, 5.493F, 4.9F, 5.355F) + curveTo(4.956F, 5.224F, 5.037F, 5.103F, 5.139F, 5.001F) + curveTo(5.241F, 4.899F, 5.361F, 4.818F, 5.494F, 4.762F) + curveTo(5.631F, 4.704F, 5.778F, 4.674F, 5.927F, 4.674F) + curveTo(6.076F, 4.674F, 6.223F, 4.704F, 6.36F, 4.762F) + curveTo(6.493F, 4.818F, 6.613F, 4.899F, 6.715F, 5.001F) + curveTo(6.817F, 5.103F, 6.898F, 5.224F, 6.955F, 5.356F) + curveTo(7.012F, 5.493F, 7.042F, 5.64F, 7.042F, 5.789F) + curveTo(7.042F, 5.938F, 7.012F, 6.086F, 6.955F, 6.223F) + curveTo(6.898F, 6.355F, 6.817F, 6.476F, 6.715F, 6.577F) + curveTo(6.613F, 6.679F, 6.493F, 6.761F, 6.36F, 6.817F) + curveTo(6.223F, 6.875F, 6.076F, 6.904F, 5.927F, 6.904F) + curveTo(5.778F, 6.904F, 5.631F, 6.875F, 5.494F, 6.817F) + curveTo(5.361F, 6.761F, 5.241F, 6.679F, 5.139F, 6.577F) + curveTo(5.037F, 6.476F, 4.956F, 6.355F, 4.899F, 6.223F) + curveTo(4.841F, 6.086F, 4.812F, 5.938F, 4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + lineTo(4.812F, 5.789F) + + moveTo(4.812F, 18.211F) + curveTo(4.812F, 18.062F, 4.841F, 17.914F, 4.9F, 17.777F) + curveTo(4.956F, 17.645F, 5.037F, 17.524F, 5.139F, 17.423F) + curveTo(5.241F, 17.321F, 5.361F, 17.239F, 5.494F, 17.183F) + curveTo(5.631F, 17.125F, 5.778F, 17.096F, 5.927F, 17.096F) + curveTo(6.076F, 17.096F, 6.223F, 17.125F, 6.36F, 17.183F) + curveTo(6.493F, 17.239F, 6.613F, 17.321F, 6.715F, 17.423F) + curveTo(6.817F, 17.524F, 6.898F, 17.645F, 6.955F, 17.777F) + curveTo(7.012F, 17.914F, 7.042F, 18.062F, 7.042F, 18.211F) + curveTo(7.042F, 18.36F, 7.012F, 18.507F, 6.955F, 18.644F) + curveTo(6.898F, 18.776F, 6.817F, 18.897F, 6.715F, 18.999F) + curveTo(6.613F, 19.101F, 6.493F, 19.182F, 6.36F, 19.238F) + curveTo(6.223F, 19.296F, 6.076F, 19.326F, 5.927F, 19.326F) + curveTo(5.778F, 19.326F, 5.631F, 19.296F, 5.494F, 19.238F) + curveTo(5.361F, 19.182F, 5.241F, 19.101F, 5.139F, 18.999F) + curveTo(5.037F, 18.897F, 4.956F, 18.776F, 4.899F, 18.644F) + curveTo(4.841F, 18.507F, 4.812F, 18.36F, 4.812F, 18.211F) + lineTo(4.812F, 18.211F) + lineTo(4.812F, 18.211F) + + moveTo(5.048F, 15.23F) + lineTo(5.048F, 9.104F) + lineTo(5.048F, 8.77F) + lineTo(5.048F, 8.77F) + curveTo(4.936F, 8.737F, 4.826F, 8.697F, 4.718F, 8.652F) + curveTo(4.349F, 8.495F, 4.013F, 8.269F, 3.73F, 7.986F) + curveTo(3.447F, 7.703F, 3.221F, 7.368F, 3.065F, 6.999F) + curveTo(2.903F, 6.616F, 2.82F, 6.205F, 2.82F, 5.789F) + lineTo(2.82F, 5.789F) + curveTo(2.82F, 5.374F, 2.903F, 4.963F, 3.064F, 4.58F) + curveTo(3.221F, 4.211F, 3.447F, 3.876F, 3.73F, 3.593F) + curveTo(4.013F, 3.309F, 4.349F, 3.083F, 4.718F, 2.927F) + curveTo(5.1F, 2.765F, 5.512F, 2.682F, 5.927F, 2.682F) + curveTo(6.342F, 2.682F, 6.754F, 2.765F, 7.136F, 2.927F) + curveTo(7.505F, 3.083F, 7.841F, 3.309F, 8.124F, 3.593F) + curveTo(8.407F, 3.876F, 8.633F, 4.211F, 8.789F, 4.58F) + curveTo(8.951F, 4.962F, 9.034F, 5.374F, 9.034F, 5.789F) + curveTo(9.034F, 6.205F, 8.951F, 6.616F, 8.789F, 6.999F) + curveTo(8.633F, 7.368F, 8.407F, 7.703F, 8.124F, 7.986F) + curveTo(7.841F, 8.269F, 7.505F, 8.495F, 7.136F, 8.652F) + curveTo(7.028F, 8.697F, 6.918F, 8.737F, 6.806F, 8.77F) + lineTo(6.806F, 9.104F) + lineTo(6.806F, 15.23F) + curveTo(6.918F, 15.263F, 7.028F, 15.303F, 7.136F, 15.348F) + curveTo(7.505F, 15.505F, 7.841F, 15.731F, 8.124F, 16.014F) + curveTo(8.407F, 16.297F, 8.633F, 16.632F, 8.789F, 17.001F) + curveTo(8.951F, 17.384F, 9.034F, 17.795F, 9.034F, 18.211F) + curveTo(9.034F, 18.626F, 8.951F, 19.038F, 8.789F, 19.42F) + curveTo(8.633F, 19.789F, 8.407F, 20.124F, 8.124F, 20.408F) + curveTo(7.841F, 20.691F, 7.505F, 20.917F, 7.136F, 21.073F) + curveTo(6.754F, 21.235F, 6.342F, 21.318F, 5.927F, 21.318F) + curveTo(5.512F, 21.318F, 5.1F, 21.235F, 4.718F, 21.073F) + curveTo(4.349F, 20.917F, 4.013F, 20.691F, 3.73F, 20.408F) + curveTo(3.447F, 20.124F, 3.221F, 19.789F, 3.065F, 19.42F) + curveTo(2.903F, 19.038F, 2.82F, 18.626F, 2.82F, 18.211F) + lineTo(2.82F, 18.211F) + curveTo(2.82F, 17.795F, 2.903F, 17.384F, 3.064F, 17.002F) + curveTo(3.221F, 16.632F, 3.447F, 16.297F, 3.73F, 16.014F) + curveTo(4.013F, 15.731F, 4.349F, 15.505F, 4.718F, 15.348F) + curveTo(4.826F, 15.303F, 4.936F, 15.263F, 5.048F, 15.23F) + lineTo(5.048F, 15.23F) + + moveTo(16.958F, 18.211F) + curveTo(16.958F, 18.062F, 16.988F, 17.914F, 17.046F, 17.777F) + curveTo(17.102F, 17.645F, 17.183F, 17.524F, 17.285F, 17.423F) + curveTo(17.387F, 17.321F, 17.507F, 17.239F, 17.64F, 17.183F) + curveTo(17.777F, 17.125F, 17.924F, 17.096F, 18.073F, 17.096F) + curveTo(18.222F, 17.096F, 18.369F, 17.125F, 18.506F, 17.183F) + curveTo(18.639F, 17.239F, 18.759F, 17.321F, 18.861F, 17.423F) + curveTo(18.963F, 17.524F, 19.044F, 17.645F, 19.101F, 17.777F) + curveTo(19.159F, 17.914F, 19.188F, 18.062F, 19.188F, 18.211F) + curveTo(19.188F, 18.36F, 19.159F, 18.507F, 19.101F, 18.644F) + curveTo(19.044F, 18.776F, 18.963F, 18.897F, 18.861F, 18.999F) + curveTo(18.759F, 19.101F, 18.639F, 19.182F, 18.506F, 19.238F) + curveTo(18.369F, 19.296F, 18.222F, 19.326F, 18.073F, 19.326F) + curveTo(17.924F, 19.326F, 17.777F, 19.296F, 17.64F, 19.238F) + curveTo(17.507F, 19.182F, 17.387F, 19.101F, 17.285F, 18.999F) + curveTo(17.183F, 18.897F, 17.102F, 18.776F, 17.045F, 18.644F) + curveTo(16.987F, 18.507F, 16.958F, 18.36F, 16.958F, 18.211F) + lineTo(16.958F, 18.211F) + close() + } + } + return _openPullRequest!! + } + +private var _openPullRequest: ImageVector? = null \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/explorer/DirectoryListingScreen.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/explorer/DirectoryListingScreen.kt new file mode 100644 index 0000000..24282ee --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/explorer/DirectoryListingScreen.kt @@ -0,0 +1,85 @@ +package com.materiiapps.gloom.ui.screens.explorer + +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Folder +import androidx.compose.material.icons.outlined.Description +import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.Icon +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.unit.dp +import cafe.adriel.voyager.core.screen.Screen +import cafe.adriel.voyager.koin.getScreenModel +import cafe.adriel.voyager.navigator.LocalNavigator +import cafe.adriel.voyager.navigator.currentOrThrow +import com.materiiapps.gloom.ui.viewmodels.explorer.DirectoryListingViewModel +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class DirectoryListingScreen( + private val owner: String, + private val name: String, + private val branchAndPath: String +) : Screen { + + override val key = "$owner/$name{$branchAndPath}-${UUID.randomUUID()}" + + @Composable + override fun Content() = Screen() + + @Composable + private fun Screen( + viewModel: DirectoryListingViewModel = getScreenModel { + parametersOf(DirectoryListingViewModel.Details(owner, name, branchAndPath)) + } + ) { + val nav = LocalNavigator.currentOrThrow + + Column( + horizontalAlignment = Alignment.CenterHorizontally, + modifier = Modifier.fillMaxSize() + ) { + if(viewModel.isLoading) { + CircularProgressIndicator( + modifier = Modifier.size(24.dp), + strokeWidth = 3.dp + ) + } + viewModel.entries.forEach { entry -> + Row( + horizontalArrangement = Arrangement.spacedBy(22.dp), + verticalAlignment = Alignment.CenterVertically, + modifier = Modifier + .clickable { + if (entry.type == "tree") + nav.push( + DirectoryListingScreen( + owner, + name, + branchAndPath + "${entry.name}/" + ) + ) + } + .padding(22.dp) + .fillMaxWidth() + ) { + val (icon, description) = if (entry.type == "tree") Icons.Filled.Folder to "" else Icons.Outlined.Description to "" + + Icon(icon, description) + + Text(entry.name) + } + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/release/ReleaseScreen.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/release/ReleaseScreen.kt new file mode 100644 index 0000000..f312dfc --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/release/ReleaseScreen.kt @@ -0,0 +1,276 @@ +package com.materiiapps.gloom.ui.screens.release + +import androidx.compose.foundation.ExperimentalFoundationApi +import androidx.compose.foundation.basicMarquee +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.material.ExperimentalMaterialApi +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Share +import androidx.compose.material.pullrefresh.pullRefresh +import androidx.compose.material.pullrefresh.rememberPullRefreshState +import androidx.compose.material3.ExperimentalMaterial3Api +import androidx.compose.material3.Icon +import androidx.compose.material3.IconButton +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Scaffold +import androidx.compose.material3.Text +import androidx.compose.material3.TopAppBar +import androidx.compose.material3.TopAppBarDefaults +import androidx.compose.material3.TopAppBarScrollBehavior +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clipToBounds +import androidx.compose.ui.graphics.graphicsLayer +import androidx.compose.ui.input.nestedscroll.nestedScroll +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.SpanStyle +import androidx.compose.ui.text.buildAnnotatedString +import androidx.compose.ui.text.withStyle +import androidx.compose.ui.unit.dp +import androidx.paging.LoadState +import androidx.paging.compose.collectAsLazyPagingItems +import androidx.paging.compose.itemContentType +import androidx.paging.compose.itemKey +import cafe.adriel.voyager.core.screen.Screen +import cafe.adriel.voyager.koin.getScreenModel +import com.materiiapps.gloom.R +import com.materiiapps.gloom.domain.manager.DialogManager +import com.materiiapps.gloom.domain.manager.DialogState +import com.materiiapps.gloom.gql.fragment.ReleaseDetails +import com.materiiapps.gloom.ui.components.BackButton +import com.materiiapps.gloom.ui.components.RefreshIndicator +import com.materiiapps.gloom.ui.components.ThinDivider +import com.materiiapps.gloom.ui.theme.colors +import com.materiiapps.gloom.ui.viewmodels.release.ReleaseViewModel +import com.materiiapps.gloom.ui.widgets.Markdown +import com.materiiapps.gloom.ui.widgets.reaction.ReactionRow +import com.materiiapps.gloom.ui.widgets.release.ReleaseAsset +import com.materiiapps.gloom.ui.widgets.release.ReleaseAuthor +import com.materiiapps.gloom.ui.widgets.release.ReleaseContributors +import com.materiiapps.gloom.ui.widgets.release.ReleaseHeader +import com.materiiapps.gloom.ui.widgets.release.ReleaseInfo +import com.materiiapps.gloom.ui.widgets.release.dialog.ReleaseAssetInstallDialog +import com.materiiapps.gloom.utils.shareText +import kotlinx.datetime.toInstant +import org.koin.androidx.compose.get +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class ReleaseScreen( + val owner: String, + val name: String, + val tag: String +) : Screen { + + override val key = "$owner/$name-$tag-${UUID.randomUUID()}" + + @Composable + @OptIn(ExperimentalMaterialApi::class, ExperimentalMaterial3Api::class) + override fun Content() { + val viewModel: ReleaseViewModel = getScreenModel { parametersOf(Triple(owner, name, tag)) } + val dialogManager: DialogManager = get() + val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior() + val items = viewModel.items.collectAsLazyPagingItems() + val details = viewModel.details + val isLoading = items.loadState.refresh == LoadState.Loading + val pullRefreshState = rememberPullRefreshState( + refreshing = isLoading, + onRefresh = { items.refresh() } + ) + + Scaffold( + topBar = { + TitleBar( + details = viewModel.details, + isLoading = isLoading, + scrollBehavior = scrollBehavior + ) + } + ) { pv -> + Box( + modifier = Modifier + .padding(pv) + .pullRefresh(pullRefreshState) + .fillMaxSize() + .clipToBounds() + .nestedScroll(scrollBehavior.nestedScrollConnection) + ) { + if(viewModel.apkFile != null) { + when(dialogManager.installApk) { + DialogState.UNKNOWN -> { + ReleaseAssetInstallDialog( + fileName = viewModel.apkFile!!.name, + onClose = { dontShowAgain -> + viewModel.clearApk() + if (dontShowAgain == true) dialogManager.installApk = DialogState.DENIED + }, + onConfirm = { dontShowAgain -> + viewModel.installApk() + viewModel.clearApk() + if(dontShowAgain) dialogManager.installApk = DialogState.CONFIRMED + } + ) + } + DialogState.CONFIRMED -> viewModel.installApk() + else -> {} + } + } + + LazyColumn( + verticalArrangement = Arrangement.spacedBy(16.dp), + modifier = Modifier.fillMaxSize() + ) { + details?.let { + item { + ReleaseHeader(it) + } + } + details?.author?.let { author -> + item { + ReleaseAuthor( + login = author.login, + avatarUrl = author.avatarUrl, + timestamp = (details.createdAt as String).toInstant() + ) + } + } + details?.descriptionHTML?.let { description -> + if (description.isNotBlank()) { + item { + Markdown( + text = description, + modifier = Modifier.padding(horizontal = 10.dp) + ) + } + } + } + details?.reactionGroups?.map { it.reaction }?.let { + item { + ReactionRow( + reactions = it, + onReactionClick = { reaction, unreact -> + viewModel.react(reaction, unreact) + }, + forRelease = true + ) + } + } + if (details != null) { + item { + ThinDivider() + } + } + details?.mentions?.nodes?.filterNotNull()?.map { it.login to it.avatarUrl } + ?.let { + if (it.isNotEmpty()) { + item { + Text( + text = stringResource(R.string.noun_contributors), + style = MaterialTheme.typography.labelLarge, + color = MaterialTheme.colors.primary, + modifier = Modifier.padding(horizontal = 16.dp) + ) + } + item { + ReleaseContributors(contributors = it) + } + item { + ThinDivider() + } + } + } + details?.let { + item { + ReleaseInfo( + tagName = it.tagName, + commit = it.tagCommit?.abbreviatedOid + ) + } + item { + ThinDivider() + } + } + items( + count = items.itemCount, + key = items.itemKey(), + contentType = items.itemContentType() + ) { + items[it]?.let { asset -> + ReleaseAsset( + name = asset.name, + size = asset.size, + onDownloadClick = { viewModel.downloadAsset(asset.downloadUrl, asset.contentType) } + ) + } + } + } + RefreshIndicator(state = pullRefreshState, isRefreshing = isLoading) + } + } + } + + @Composable + @OptIn(ExperimentalFoundationApi::class, ExperimentalMaterial3Api::class) + fun TitleBar( + details: ReleaseDetails?, + isLoading: Boolean, + scrollBehavior: TopAppBarScrollBehavior + ) { + val titleAlpha = scrollBehavior.state.overlappedFraction + val ctx = LocalContext.current + + TopAppBar( + navigationIcon = { BackButton() }, + scrollBehavior = scrollBehavior, + actions = { + details?.let { + IconButton(onClick = { ctx.shareText(it.url) }) { + Icon( + Icons.Filled.Share, + contentDescription = stringResource(R.string.action_share) + ) + } + } + }, + title = { + when { + !isLoading && details != null -> { + Column( + modifier = Modifier + .graphicsLayer(alpha = titleAlpha) + ) { + Text( + buildAnnotatedString { + append(details.repository.owner.login) + withStyle( + SpanStyle( + color = MaterialTheme.colorScheme.onSurface.copy( + 0.5f + ) + ) + ) { + append(" / ") + } + append(details.repository.name) + }, + style = MaterialTheme.typography.labelLarge + ) + Text( + text = details.name ?: details.tagName, + maxLines = 1, + modifier = Modifier.basicMarquee(Int.MAX_VALUE) + ) + } + } + } + } + ) + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/RepoScreen.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/RepoScreen.kt new file mode 100644 index 0000000..211e8b1 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/RepoScreen.kt @@ -0,0 +1,251 @@ +package com.materiiapps.gloom.ui.screens.repo + +import androidx.compose.animation.animateColorAsState +import androidx.compose.foundation.ExperimentalFoundationApi +import androidx.compose.foundation.background +import androidx.compose.foundation.basicMarquee +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.widthIn +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material.IconButton +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Share +import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.Divider +import androidx.compose.material3.ExperimentalMaterial3Api +import androidx.compose.material3.Icon +import androidx.compose.material3.LargeTopAppBar +import androidx.compose.material3.LocalContentColor +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Scaffold +import androidx.compose.material3.ScrollableTabRow +import androidx.compose.material3.Tab +import androidx.compose.material3.Text +import androidx.compose.material3.TopAppBarDefaults +import androidx.compose.material3.TopAppBarScrollBehavior +import androidx.compose.material3.surfaceColorAtElevation +import androidx.compose.runtime.Composable +import androidx.compose.runtime.derivedStateOf +import androidx.compose.runtime.getValue +import androidx.compose.runtime.remember +import androidx.compose.runtime.rememberCoroutineScope +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.compositeOver +import androidx.compose.ui.input.nestedscroll.nestedScroll +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.text.style.TextOverflow +import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import cafe.adriel.voyager.core.screen.Screen +import cafe.adriel.voyager.koin.getScreenModel +import cafe.adriel.voyager.navigator.LocalNavigator +import coil.compose.AsyncImage +import com.google.accompanist.pager.HorizontalPager +import com.google.accompanist.pager.rememberPagerState +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.BackButton +import com.materiiapps.gloom.ui.screens.profile.ProfileScreen +import com.materiiapps.gloom.ui.viewmodels.repo.RepoViewModel +import com.materiiapps.gloom.utils.navigate +import com.materiiapps.gloom.utils.shareText +import kotlinx.coroutines.launch +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class RepoScreen( + private val owner: String, + private val name: String +) : Screen { + + override val key = "$owner/$name-${UUID.randomUUID()}" + + @Composable + override fun Content() = Screen() + + @Composable + @OptIn(ExperimentalMaterial3Api::class) + private fun Screen( + viewModel: RepoViewModel = getScreenModel { parametersOf(owner to name) } + ) { + val scrollBehavior = TopAppBarDefaults.exitUntilCollapsedScrollBehavior() + val pagerState = rememberPagerState() + val coroutineScope = rememberCoroutineScope() + + Scaffold( + topBar = { Toolbar(scrollBehavior, viewModel) } + ) { pv -> + Column( + modifier = Modifier + .padding(pv) + .nestedScroll(scrollBehavior.nestedScrollConnection) + ) { + val tabColor by animateColorAsState( + targetValue = MaterialTheme.colorScheme.surfaceColorAtElevation( + 3.dp + ).copy(scrollBehavior.state.collapsedFraction), label = "Tab color" + ) + val badgeColor by animateColorAsState( + targetValue = Color.Black + .copy(scrollBehavior.state.collapsedFraction * 0.2f) + .compositeOver( + MaterialTheme.colorScheme.secondaryContainer + ), label = "Badge color" + ) + val badgeTextColor by animateColorAsState( + targetValue = Color.White + .copy(scrollBehavior.state.collapsedFraction) + .compositeOver( + LocalContentColor.current + ), label = "Badge text color" + ) + + ScrollableTabRow( + selectedTabIndex = pagerState.currentPage, + edgePadding = 0.dp, + divider = { + Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, + ) + }, + containerColor = tabColor, + modifier = Modifier.fillMaxWidth() + ) { + viewModel.tabs.forEachIndexed { i, tab -> + Tab( + selected = pagerState.currentPage == i, + onClick = { + coroutineScope.launch { + pagerState.animateScrollToPage(i) + } + }, + text = { + val badgeCount = viewModel.badgeCounts[i] + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(10.dp) + ) { + Text(tab.options.title) + if (badgeCount != null && badgeCount > 0) + Text( + text = badgeCount.toString(), + style = MaterialTheme.typography.labelLarge, + fontSize = 11.sp, + textAlign = TextAlign.Center, + color = badgeTextColor, + modifier = Modifier + .widthIn(21.dp) + .clip(CircleShape) + .background(badgeColor) + .padding(5.dp, 3.dp) + ) + } + } + ) + } + } + + HorizontalPager( + count = viewModel.tabs.size, + state = pagerState + ) { + val tab = viewModel.tabs[it] + + Box( + Modifier + .fillMaxSize() + ) { + tab.Content() + } + } + } + } + } + + @Composable + @OptIn(ExperimentalMaterial3Api::class, ExperimentalFoundationApi::class) + private fun Toolbar( + scrollBehavior: TopAppBarScrollBehavior, + viewModel: RepoViewModel + ) { + val avSize = Dp(55 - scrollBehavior.state.collapsedFraction * 55) + val nav = LocalNavigator.current + val ctx = LocalContext.current + val loading by remember { + derivedStateOf { + viewModel.repoOverviewLoading + } + } + + LargeTopAppBar( + title = { + if (!loading) { + if (!viewModel.hasError && viewModel.repoOverview != null) { + val it = viewModel.repoOverview!! + Row( + horizontalArrangement = Arrangement.spacedBy(16.dp), + verticalAlignment = Alignment.CenterVertically + ) { + if (avSize != 0.dp) AsyncImage( + model = it.owner.avatarUrl, + contentDescription = stringResource( + R.string.noun_users_avatar, + it.owner.login + ), + modifier = Modifier + .size(avSize) + .clip( + if (it.owner.__typename == "User") + CircleShape + else RoundedCornerShape(15.dp) + ) + .clickable { nav?.navigate(ProfileScreen(it.owner.login)) } + ) + Column { + Text( + text = it.owner.login, + style = MaterialTheme.typography.labelLarge, + maxLines = 1, + modifier = Modifier.basicMarquee(Int.MAX_VALUE) + ) + Text( + text = it.name, + maxLines = 1, + modifier = Modifier.basicMarquee(Int.MAX_VALUE) + ) + } + } + } else Text("Error loading repository") + } else { + Box(modifier = Modifier.size(55.dp), contentAlignment = Alignment.Center) { + CircularProgressIndicator() + } + } + }, + scrollBehavior = scrollBehavior, + navigationIcon = { BackButton() }, + actions = { + viewModel.repoOverview?.let { + IconButton(onClick = { ctx.shareText("https://github.com/${it.owner.login}/${it.name}") }) { + Icon(Icons.Filled.Share, stringResource(R.string.action_share)) + } + } + } + ) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/CodeTab.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/CodeTab.kt new file mode 100644 index 0000000..d90c573 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/CodeTab.kt @@ -0,0 +1,99 @@ +package com.materiiapps.gloom.ui.screens.repo.tab + +import androidx.compose.animation.ExperimentalAnimationApi +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.verticalScroll +import androidx.compose.material.ExperimentalMaterialApi +import androidx.compose.material.pullrefresh.pullRefresh +import androidx.compose.material.pullrefresh.rememberPullRefreshState +import androidx.compose.material3.ElevatedCard +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clipToBounds +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp +import cafe.adriel.voyager.koin.getScreenModel +import cafe.adriel.voyager.navigator.Navigator +import cafe.adriel.voyager.navigator.tab.Tab +import cafe.adriel.voyager.navigator.tab.TabOptions +import cafe.adriel.voyager.transitions.SlideTransition +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.RefreshIndicator +import com.materiiapps.gloom.ui.screens.explorer.DirectoryListingScreen +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoCodeViewModel +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class CodeTab( + private val owner: String, + private val name: String +): Tab { + + override val key = "$owner/$name-${UUID.randomUUID()}" + override val options: TabOptions + @Composable get() = TabOptions(1u, stringResource(id = R.string.repo_tab_code)) + + @Composable + override fun Content() = Screen() + + @OptIn(ExperimentalMaterialApi::class, ExperimentalAnimationApi::class) + @Composable + fun Screen( + viewModel: RepoCodeViewModel = getScreenModel { parametersOf(owner to name) } + ) { + val pullRefreshState = rememberPullRefreshState( + refreshing = viewModel.isLoading, + onRefresh = { viewModel.loadDefaultBranch() } + ) + + Box( + modifier = Modifier + .fillMaxSize() + .pullRefresh(pullRefreshState) + .clipToBounds() + ) { + Column( + modifier = Modifier + .fillMaxSize() + .verticalScroll(rememberScrollState()) + ) { + viewModel.defaultBranch?.let { + Box( + modifier = Modifier + .fillMaxWidth() + .padding(16.dp) + ) { + ElevatedCard( + modifier = Modifier.fillMaxWidth() + ) { + Row( + modifier = Modifier + .fillMaxWidth() + .padding(16.dp) + ) { + Text( + text = it + ) + } + } + } + + Navigator( + DirectoryListingScreen(owner, name, "$it:") + ) { nav -> + SlideTransition(nav) + } + } + } + RefreshIndicator(state = pullRefreshState, isRefreshing = viewModel.isLoading) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/DetailsTab.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/DetailsTab.kt new file mode 100644 index 0000000..5908162 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/DetailsTab.kt @@ -0,0 +1,172 @@ +package com.materiiapps.gloom.ui.screens.repo.tab + +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.foundation.verticalScroll +import androidx.compose.material.ExperimentalMaterialApi +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Star +import androidx.compose.material.icons.outlined.StarBorder +import androidx.compose.material.pullrefresh.pullRefresh +import androidx.compose.material.pullrefresh.rememberPullRefreshState +import androidx.compose.material3.Divider +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.draw.clipToBounds +import androidx.compose.ui.res.painterResource +import androidx.compose.ui.res.pluralStringResource +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.SpanStyle +import androidx.compose.ui.text.buildAnnotatedString +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.withStyle +import androidx.compose.ui.unit.dp +import cafe.adriel.voyager.koin.getScreenModel +import cafe.adriel.voyager.navigator.tab.Tab +import cafe.adriel.voyager.navigator.tab.TabOptions +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.LargeSegmentedButton +import com.materiiapps.gloom.ui.components.LargeSegmentedButtonRow +import com.materiiapps.gloom.ui.components.RefreshIndicator +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoDetailsViewModel +import com.materiiapps.gloom.ui.widgets.Markdown +import com.materiiapps.gloom.ui.widgets.repo.ContributorsRow +import com.materiiapps.gloom.ui.widgets.repo.LanguageMakeup +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class DetailsTab( + private val owner: String, + private val name: String +): Tab { + + override val key = "$owner/$name-${UUID.randomUUID()}" + override val options: TabOptions + @Composable get() = TabOptions(1u, stringResource(id = R.string.repo_tab_details)) + + @Composable + override fun Content() = Screen() + + @OptIn(ExperimentalMaterialApi::class) + @Composable + fun Screen( + viewModel: RepoDetailsViewModel = getScreenModel { parametersOf(owner to name) } + ) { + val refreshState = rememberPullRefreshState( + refreshing = viewModel.detailsLoading, + onRefresh = { viewModel.loadDetails() }) + val repoDetails = viewModel.details + + Box( + modifier = Modifier + .fillMaxSize() + .pullRefresh(refreshState) + .clipToBounds() + ) { + Column( + modifier = Modifier + .fillMaxSize() + .verticalScroll(rememberScrollState()) + ) { + repoDetails?.let { details -> + if (!details.description.isNullOrBlank()) { + Text( + text = details.description, + style = MaterialTheme.typography.bodyMedium, + modifier = Modifier.padding(16.dp) + ) + Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, + ) + } + + Box( + modifier = Modifier + .padding(16.dp) + .fillMaxWidth() + ) { + LargeSegmentedButtonRow { + LargeSegmentedButton( + icon = if (repoDetails.viewerHasStarred) Icons.Filled.Star else Icons.Outlined.StarBorder, + text = pluralStringResource( + id = R.plurals.stars, + count = repoDetails.stargazerCount, + repoDetails.stargazerCount + ) + ) + repoDetails.licenseInfo?.let { + LargeSegmentedButton( + icon = painterResource(R.drawable.ic_balance_24), + text = it.nickname ?: it.key.uppercase() + ) + } + LargeSegmentedButton( + icon = painterResource(R.drawable.ic_fork_24), + text = pluralStringResource( + id = R.plurals.forks, + count = repoDetails.forkCount, + repoDetails.forkCount + ) + ) + } + } + + Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, + ) + + if (!(details.readme?.contentHTML).isNullOrBlank()) { + Text( + buildAnnotatedString { + append("README") + withStyle( + SpanStyle(MaterialTheme.colorScheme.onBackground.copy(0.5f)) + ) { + append(".md") + } + }, + style = MaterialTheme.typography.labelLarge, + fontFamily = FontFamily.Monospace, + modifier = Modifier.padding(16.dp) + ) + Markdown( + text = details.readme!!.contentHTML.toString(), + Modifier.padding(horizontal = 16.dp) + ) + } + + repoDetails.contributors.let { + if (it.nodes?.isNotEmpty() == true) Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, + ) + + ContributorsRow(contributors = it) + } + + repoDetails.languages?.languages?.let { + if (it.edges?.isNotEmpty() == true) Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, + ) + LanguageMakeup(it) + } + } + } + RefreshIndicator(state = refreshState, isRefreshing = viewModel.detailsLoading) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/IssuesTab.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/IssuesTab.kt new file mode 100644 index 0000000..a6f9c8f --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/IssuesTab.kt @@ -0,0 +1,81 @@ +package com.materiiapps.gloom.ui.screens.repo.tab + +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.material.ExperimentalMaterialApi +import androidx.compose.material.pullrefresh.pullRefresh +import androidx.compose.material.pullrefresh.rememberPullRefreshState +import androidx.compose.material3.Divider +import androidx.compose.material3.MaterialTheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clipToBounds +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp +import androidx.paging.LoadState +import androidx.paging.compose.collectAsLazyPagingItems +import androidx.paging.compose.itemContentType +import androidx.paging.compose.itemKey +import cafe.adriel.voyager.koin.getScreenModel +import cafe.adriel.voyager.navigator.tab.Tab +import cafe.adriel.voyager.navigator.tab.TabOptions +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.RefreshIndicator +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoIssuesViewModel +import com.materiiapps.gloom.ui.widgets.repo.IssueItem +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class IssuesTab( + private val owner: String, + private val name: String +) : Tab { + override val options: TabOptions + @Composable get() = TabOptions(1u, stringResource(id = R.string.repo_tab_issues)) + + override val key = "$owner/$name-${UUID.randomUUID()}" + + @Composable + override fun Content() = Screen() + + @Composable + @OptIn(ExperimentalMaterialApi::class) + fun Screen() { + val viewModel: RepoIssuesViewModel = getScreenModel { parametersOf(owner to name) } + val items = viewModel.items.collectAsLazyPagingItems() + val isLoading = items.loadState.refresh == LoadState.Loading + val pullRefreshState = rememberPullRefreshState( + refreshing = isLoading, + onRefresh = { items.refresh() } + ) + + Box( + modifier = Modifier + .fillMaxSize() + .pullRefresh(pullRefreshState) + .clipToBounds() + ) { + LazyColumn { + items( + count = items.itemCount, + key = items.itemKey(), + contentType = items.itemContentType() + ) { index -> + items[index]?.let { issue -> + Column { + IssueItem(issue) + Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, + ) + } + } + } + } + RefreshIndicator(state = pullRefreshState, isRefreshing = isLoading) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/PullRequestTab.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/PullRequestTab.kt new file mode 100644 index 0000000..02bba5e --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/PullRequestTab.kt @@ -0,0 +1,81 @@ +package com.materiiapps.gloom.ui.screens.repo.tab + +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.material.ExperimentalMaterialApi +import androidx.compose.material.pullrefresh.pullRefresh +import androidx.compose.material.pullrefresh.rememberPullRefreshState +import androidx.compose.material3.Divider +import androidx.compose.material3.MaterialTheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clipToBounds +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp +import androidx.paging.LoadState +import androidx.paging.compose.collectAsLazyPagingItems +import androidx.paging.compose.itemContentType +import androidx.paging.compose.itemKey +import cafe.adriel.voyager.koin.getScreenModel +import cafe.adriel.voyager.navigator.tab.Tab +import cafe.adriel.voyager.navigator.tab.TabOptions +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.RefreshIndicator +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoPullRequestsViewModel +import com.materiiapps.gloom.ui.widgets.repo.PullRequestItem +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class PullRequestTab( + private val owner: String, + private val name: String +) : Tab { + override val options: TabOptions + @Composable get() = TabOptions(1u, stringResource(id = R.string.repo_tab_prs)) + + override val key = "$owner/$name-${UUID.randomUUID()}" + + @Composable + override fun Content() = Screen() + + @Composable + @OptIn(ExperimentalMaterialApi::class) + fun Screen() { + val viewModel: RepoPullRequestsViewModel = getScreenModel { parametersOf(owner to name) } + val items = viewModel.items.collectAsLazyPagingItems() + val isLoading = items.loadState.refresh == LoadState.Loading + val pullRefreshState = rememberPullRefreshState( + refreshing = isLoading, + onRefresh = { items.refresh() } + ) + + Box( + modifier = Modifier + .fillMaxSize() + .pullRefresh(pullRefreshState) + .clipToBounds() + ) { + LazyColumn { + items( + count = items.itemCount, + key = items.itemKey(), + contentType = items.itemContentType() + ) { index -> + items[index]?.let { pullRequest -> + Column { + PullRequestItem(pullRequest) + Divider( + color = MaterialTheme.colorScheme.onSurface.copy(0.1f), + thickness = 0.5.dp, + ) + } + } + } + } + RefreshIndicator(state = pullRefreshState, isRefreshing = isLoading) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/ReleasesTab.kt b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/ReleasesTab.kt new file mode 100644 index 0000000..17f4722 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/screens/repo/tab/ReleasesTab.kt @@ -0,0 +1,109 @@ +package com.materiiapps.gloom.ui.screens.repo.tab + +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.material.ExperimentalMaterialApi +import androidx.compose.material.pullrefresh.pullRefresh +import androidx.compose.material.pullrefresh.rememberPullRefreshState +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clipToBounds +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp +import androidx.paging.LoadState +import androidx.paging.compose.collectAsLazyPagingItems +import androidx.paging.compose.itemContentType +import androidx.paging.compose.itemKey +import cafe.adriel.voyager.koin.getScreenModel +import cafe.adriel.voyager.navigator.tab.Tab +import cafe.adriel.voyager.navigator.tab.TabOptions +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.RefreshIndicator +import com.materiiapps.gloom.ui.components.ThinDivider +import com.materiiapps.gloom.ui.viewmodels.repo.tab.RepoReleasesViewModel +import com.materiiapps.gloom.ui.widgets.repo.LatestReleaseItem +import com.materiiapps.gloom.ui.widgets.repo.ReleaseItem +import org.koin.core.parameter.parametersOf +import java.util.UUID + +class ReleasesTab( + private val owner: String, + private val name: String +) : Tab { + override val options: TabOptions + @Composable get() = TabOptions(1u, stringResource(id = R.string.repo_tab_releases)) + + override val key = "$owner/$name-${UUID.randomUUID()}" + + @Composable + override fun Content() = Screen() + + @OptIn(ExperimentalMaterialApi::class) + @Composable + fun Screen() { + val viewModel: RepoReleasesViewModel = getScreenModel { parametersOf(owner to name) } + val items = viewModel.items.collectAsLazyPagingItems() + val isLoading = items.loadState.refresh == LoadState.Loading + val pullRefreshState = rememberPullRefreshState( + refreshing = isLoading, + onRefresh = { items.refresh() } + ) + + Box( + modifier = Modifier + .fillMaxSize() + .pullRefresh(pullRefreshState) + .clipToBounds() + ) { + LazyColumn { + val latest = items.itemSnapshotList.firstOrNull { it?.isLatest == true } + + latest?.let { + item { + Column { + LatestReleaseItem(owner, name, it) + ThinDivider() + } + } + item { + Column { + Text( + text = stringResource(R.string.label_all_releases), + style = MaterialTheme.typography.labelLarge, + color = MaterialTheme.colorScheme.primary, + modifier = Modifier.padding( + start = 16.dp, + top = 32.dp, + bottom = 16.dp, + end = 16.dp + ) + ) + + ThinDivider() + } + } + } + + items( + count = items.itemCount, + key = items.itemKey(), + contentType = items.itemContentType() + ) { index -> + items[index]?.let { release -> + Column { + ReleaseItem(owner, name, release) + ThinDivider() + } + } + } + } + RefreshIndicator(state = pullRefreshState, isRefreshing = isLoading) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/theme/Colors.kt b/app/src/main/java/com/materiiapps/gloom/ui/theme/Colors.kt new file mode 100644 index 0000000..56629e1 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/theme/Colors.kt @@ -0,0 +1,14 @@ +package com.materiiapps.gloom.ui.theme + +import androidx.compose.ui.graphics.Color + +val DarkGreen = Color(0xFF5CA259) +val LightGreen = Color(0xFF68BF63) +val LightPurple = Color(0xFF8C44CA) +val DarkPurple = Color(0xFF833DC0) +val Red = Color(0xFFE0454E) +val PinkRed = Color(0xFFC34B52) +val Grey = Color(0xFF6D6F7D) +val LightGrey = Color(0xFF9294A0) +val Gold = Color(0xFFFF9800) +val Yellow = Color(0xFFE2E210) \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/theme/GloomColorScheme.kt b/app/src/main/java/com/materiiapps/gloom/ui/theme/GloomColorScheme.kt new file mode 100644 index 0000000..189fa4c --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/theme/GloomColorScheme.kt @@ -0,0 +1,211 @@ +package com.materiiapps.gloom.ui.theme + +import androidx.compose.material3.ColorScheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.runtime.Composable +import androidx.compose.runtime.ReadOnlyComposable +import androidx.compose.runtime.compositionLocalOf +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.setValue +import androidx.compose.runtime.structuralEqualityPolicy +import androidx.compose.ui.graphics.Color + +class GloomColorScheme( + primary: Color, + onPrimary: Color, + primaryContainer: Color, + onPrimaryContainer: Color, + inversePrimary: Color, + secondary: Color, + onSecondary: Color, + secondaryContainer: Color, + onSecondaryContainer: Color, + tertiary: Color, + onTertiary: Color, + tertiaryContainer: Color, + onTertiaryContainer: Color, + background: Color, + onBackground: Color, + surface: Color, + onSurface: Color, + surfaceVariant: Color, + onSurfaceVariant: Color, + surfaceTint: Color, + inverseSurface: Color, + inverseOnSurface: Color, + error: Color, + onError: Color, + errorContainer: Color, + onErrorContainer: Color, + outline: Color, + outlineVariant: Color, + scrim: Color, + + //Custom colors + statusGreen: Color, + statusPurple: Color, + statusRed: Color, + statusGrey: Color, + statusYellow: Color +) { + + constructor( + colorScheme: ColorScheme, + statusGreen: Color, + statusPurple: Color, + statusRed: Color, + statusGrey: Color, + statusYellow: Color + ) : this( + colorScheme.primary, + colorScheme.onPrimary, + colorScheme.primaryContainer, + colorScheme.onPrimaryContainer, + colorScheme.inversePrimary, + colorScheme.secondary, + colorScheme.onSecondary, + colorScheme.secondaryContainer, + colorScheme.onSecondaryContainer, + colorScheme.tertiary, + colorScheme.onTertiary, + colorScheme.tertiaryContainer, + colorScheme.onTertiaryContainer, + colorScheme.background, + colorScheme.onBackground, + colorScheme.surface, + colorScheme.onSurface, + colorScheme.surfaceVariant, + colorScheme.onSurfaceVariant, + colorScheme.surfaceTint, + colorScheme.inverseSurface, + colorScheme.inverseOnSurface, + colorScheme.error, + colorScheme.onError, + colorScheme.errorContainer, + colorScheme.onErrorContainer, + colorScheme.outline, + colorScheme.outlineVariant, + colorScheme.scrim, + statusGreen, + statusPurple, + statusRed, + statusGrey, + statusYellow + ) + + var primary by mutableStateOf(primary, structuralEqualityPolicy()) + internal set + var onPrimary by mutableStateOf(onPrimary, structuralEqualityPolicy()) + internal set + var primaryContainer by mutableStateOf(primaryContainer, structuralEqualityPolicy()) + internal set + var onPrimaryContainer by mutableStateOf(onPrimaryContainer, structuralEqualityPolicy()) + internal set + var inversePrimary by mutableStateOf(inversePrimary, structuralEqualityPolicy()) + internal set + var secondary by mutableStateOf(secondary, structuralEqualityPolicy()) + internal set + var onSecondary by mutableStateOf(onSecondary, structuralEqualityPolicy()) + internal set + var secondaryContainer by mutableStateOf(secondaryContainer, structuralEqualityPolicy()) + internal set + var onSecondaryContainer by mutableStateOf(onSecondaryContainer, structuralEqualityPolicy()) + internal set + var tertiary by mutableStateOf(tertiary, structuralEqualityPolicy()) + internal set + var onTertiary by mutableStateOf(onTertiary, structuralEqualityPolicy()) + internal set + var tertiaryContainer by mutableStateOf(tertiaryContainer, structuralEqualityPolicy()) + internal set + var onTertiaryContainer by mutableStateOf(onTertiaryContainer, structuralEqualityPolicy()) + internal set + var background by mutableStateOf(background, structuralEqualityPolicy()) + internal set + var onBackground by mutableStateOf(onBackground, structuralEqualityPolicy()) + internal set + var surface by mutableStateOf(surface, structuralEqualityPolicy()) + internal set + var onSurface by mutableStateOf(onSurface, structuralEqualityPolicy()) + internal set + var surfaceVariant by mutableStateOf(surfaceVariant, structuralEqualityPolicy()) + internal set + var onSurfaceVariant by mutableStateOf(onSurfaceVariant, structuralEqualityPolicy()) + internal set + var surfaceTint by mutableStateOf(surfaceTint, structuralEqualityPolicy()) + internal set + var inverseSurface by mutableStateOf(inverseSurface, structuralEqualityPolicy()) + internal set + var inverseOnSurface by mutableStateOf(inverseOnSurface, structuralEqualityPolicy()) + internal set + var error by mutableStateOf(error, structuralEqualityPolicy()) + internal set + var onError by mutableStateOf(onError, structuralEqualityPolicy()) + internal set + var errorContainer by mutableStateOf(errorContainer, structuralEqualityPolicy()) + internal set + var onErrorContainer by mutableStateOf(onErrorContainer, structuralEqualityPolicy()) + internal set + var outline by mutableStateOf(outline, structuralEqualityPolicy()) + internal set + var outlineVariant by mutableStateOf(outlineVariant, structuralEqualityPolicy()) + internal set + var scrim by mutableStateOf(scrim, structuralEqualityPolicy()) + internal set + + var statusGreen by mutableStateOf(statusGreen, structuralEqualityPolicy()) + internal set + + var statusPurple by mutableStateOf(statusPurple, structuralEqualityPolicy()) + internal set + + var statusRed by mutableStateOf(statusRed, structuralEqualityPolicy()) + internal set + + var statusGrey by mutableStateOf(statusGrey, structuralEqualityPolicy()) + internal set + + var statusYellow by mutableStateOf(statusYellow, structuralEqualityPolicy()) + internal set + + fun toColorScheme() = with(this) { + ColorScheme( + primary, + onPrimary, + primaryContainer, + onPrimaryContainer, + inversePrimary, + secondary, + onSecondary, + secondaryContainer, + onSecondaryContainer, + tertiary, + onTertiary, + tertiaryContainer, + onTertiaryContainer, + background, + onBackground, + surface, + onSurface, + surfaceVariant, + onSurfaceVariant, + surfaceTint, + inverseSurface, + inverseOnSurface, + error, + onError, + errorContainer, + onErrorContainer, + outline, + outlineVariant, + scrim + ) + } +} + +val LocalColors = compositionLocalOf { error("No colors initialized") } + +val MaterialTheme.colors: GloomColorScheme + @Composable + @ReadOnlyComposable + get() = LocalColors.current \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/theme/GloomTheme.kt b/app/src/main/java/com/materiiapps/gloom/ui/theme/GloomTheme.kt new file mode 100644 index 0000000..f02e230 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/theme/GloomTheme.kt @@ -0,0 +1,36 @@ +package com.materiiapps.gloom.ui.theme + +import android.annotation.SuppressLint +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Shapes +import androidx.compose.material3.Typography +import androidx.compose.runtime.Composable +import androidx.compose.runtime.CompositionLocalProvider +import androidx.compose.ui.platform.LocalContext + +@Composable +@SuppressLint("NewApi") +fun GloomTheme( + darkTheme: Boolean = isSystemInDarkTheme(), + dynamicColor: Boolean, + content: @Composable () -> Unit +) { + val colors = when { + dynamicColor && darkTheme -> dynamicDarkTheme(LocalContext.current) + dynamicColor && !darkTheme -> dynamicLightTheme(LocalContext.current) + darkTheme -> darkTheme() + else -> lightTheme() + } + + CompositionLocalProvider( + LocalColors provides colors + ) { + MaterialTheme( + colorScheme = colors.toColorScheme(), + typography = Typography(), + shapes = Shapes(), + content = content + ) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/theme/Theme.kt b/app/src/main/java/com/materiiapps/gloom/ui/theme/Theme.kt deleted file mode 100644 index fa52158..0000000 --- a/app/src/main/java/com/materiiapps/gloom/ui/theme/Theme.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.materiiapps.gloom.ui.theme - -import android.annotation.SuppressLint -import androidx.compose.foundation.isSystemInDarkTheme -import androidx.compose.material3.MaterialTheme -import androidx.compose.material3.Shapes -import androidx.compose.material3.Typography -import androidx.compose.material3.darkColorScheme -import androidx.compose.material3.dynamicDarkColorScheme -import androidx.compose.material3.dynamicLightColorScheme -import androidx.compose.material3.lightColorScheme -import androidx.compose.runtime.Composable -import androidx.compose.ui.graphics.Color -import androidx.compose.ui.platform.LocalContext - -val BadgeGreen = Color(0xFF5CA259) - -@Composable -@SuppressLint("NewApi") -fun GloomTheme( - darkTheme: Boolean = isSystemInDarkTheme(), - dynamicColor: Boolean, - content: @Composable () -> Unit -) { - val colors = when { - dynamicColor && darkTheme -> dynamicDarkColorScheme(LocalContext.current) - dynamicColor && !darkTheme -> dynamicLightColorScheme(LocalContext.current) - darkTheme -> darkColorScheme() - else -> lightColorScheme() - } - - MaterialTheme( - colorScheme = colors, - typography = Typography(), - shapes = Shapes(), - content = content - ) -} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/theme/Themes.kt b/app/src/main/java/com/materiiapps/gloom/ui/theme/Themes.kt new file mode 100644 index 0000000..e51c5cb --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/theme/Themes.kt @@ -0,0 +1,47 @@ +package com.materiiapps.gloom.ui.theme + +import android.content.Context +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.dynamicDarkColorScheme +import androidx.compose.material3.dynamicLightColorScheme +import androidx.compose.material3.lightColorScheme + +@RequiresApi(Build.VERSION_CODES.S) +fun dynamicDarkTheme(context: Context) = GloomColorScheme( + dynamicDarkColorScheme(context), + statusGreen = DarkGreen, + statusPurple = LightPurple, + statusRed = PinkRed, + statusGrey = Grey, + statusYellow = Yellow +) + +@RequiresApi(Build.VERSION_CODES.S) +fun dynamicLightTheme(context: Context) = GloomColorScheme( + dynamicLightColorScheme(context), + statusGreen = LightGreen, + statusPurple = DarkPurple, + statusRed = Red, + statusGrey = LightGrey, + statusYellow = Gold +) + +fun darkTheme() = GloomColorScheme( + darkColorScheme(), + statusGreen = DarkGreen, + statusPurple = LightPurple, + statusRed = PinkRed, + statusGrey = Grey, + statusYellow = Yellow +) + +fun lightTheme() = GloomColorScheme( + lightColorScheme(), + statusGreen = LightGreen, + statusPurple = DarkPurple, + statusRed = Red, + statusGrey = LightGrey, + statusYellow = Gold +) \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/explorer/DirectoryListingViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/explorer/DirectoryListingViewModel.kt new file mode 100644 index 0000000..3b0e521 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/explorer/DirectoryListingViewModel.kt @@ -0,0 +1,48 @@ +package com.materiiapps.gloom.ui.viewmodels.explorer + +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateListOf +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.setValue +import cafe.adriel.voyager.core.model.ScreenModel +import cafe.adriel.voyager.core.model.coroutineScope +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.gql.fragment.FileEntryFragment +import com.materiiapps.gloom.rest.utils.fold +import kotlinx.coroutines.launch + +class DirectoryListingViewModel( + private val gql: GraphQLRepository, + private val details: Details +): ScreenModel { + + val entries = mutableStateListOf() + var isLoading by mutableStateOf(false) + + init { + loadEntries() + } + + fun loadEntries() { + coroutineScope.launch { + isLoading = true + gql.getRepoFiles(details.owner, details.name, details.branchAndPath).fold( + onSuccess = { directory -> + entries.clear() + entries.addAll(directory.sortedByDescending { it.type == "tree" }) + isLoading = false + }, + onError = { + isLoading = false + } + ) + } + } + + data class Details( + val owner: String, + val name: String, + val branchAndPath: String + ) + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/release/ReleaseViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/release/ReleaseViewModel.kt new file mode 100644 index 0000000..b0d0d2a --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/release/ReleaseViewModel.kt @@ -0,0 +1,81 @@ +package com.materiiapps.gloom.ui.viewmodels.release + +import android.content.Context +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.setValue +import androidx.core.net.toUri +import cafe.adriel.voyager.core.model.coroutineScope +import com.materiiapps.gloom.domain.manager.DialogManager +import com.materiiapps.gloom.domain.manager.DialogState +import com.materiiapps.gloom.domain.manager.DownloadManager +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.gql.ReleaseDetailsQuery +import com.materiiapps.gloom.gql.fragment.ReleaseAssetFragment +import com.materiiapps.gloom.gql.fragment.ReleaseDetails +import com.materiiapps.gloom.gql.type.ReactionContent +import com.materiiapps.gloom.rest.utils.getOrNull +import com.materiiapps.gloom.ui.viewmodels.list.base.BaseListViewModel +import com.materiiapps.gloom.utils.installApks +import com.materiiapps.gloom.utils.showToast +import kotlinx.coroutines.launch +import java.io.File + +class ReleaseViewModel( + private val repo: GraphQLRepository, + private val downloadManager: DownloadManager, + private val context: Context, + nameAndTag: Triple +) : BaseListViewModel() { + + val owner = nameAndTag.first + val name = nameAndTag.second + val tag = nameAndTag.third + + var details by mutableStateOf(null) + private set + + var apkFile by mutableStateOf(null) + private set + + override suspend fun loadPage(cursor: String?): ReleaseDetailsQuery.Data? = + repo.getReleaseDetails(owner, name, tag, cursor) + .getOrNull() + .also { details = it?.repository?.release?.releaseDetails } + + override fun getCursor(data: ReleaseDetailsQuery.Data?): String? = + data?.repository?.release?.releaseDetails?.releaseAssets?.pageInfo?.endCursor + + override fun createItems(data: ReleaseDetailsQuery.Data?): List = + data?.repository?.release?.releaseDetails?.releaseAssets?.nodes?.mapNotNull { it?.releaseAssetFragment } + ?: emptyList() + + + fun react(reaction: ReactionContent, unreact: Boolean) { + details?.let { + coroutineScope.launch { + if (unreact) { + repo.unreact(it.id, reaction) + } else { + repo.react(it.id, reaction) + } + } + } + } + + fun downloadAsset(url: String, mimeType: String) { + context.showToast("Downloading ${url.toUri().lastPathSegment}...") + downloadManager.download(url) { + if(mimeType == "application/vnd.android.package-archive") apkFile = it + } + } + + fun clearApk() { + apkFile = null + } + + fun installApk() { + apkFile?.let { context.installApks(it) } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/RepoViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/RepoViewModel.kt new file mode 100644 index 0000000..3bfd540 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/RepoViewModel.kt @@ -0,0 +1,60 @@ +package com.materiiapps.gloom.ui.viewmodels.repo + +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateMapOf +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.setValue +import cafe.adriel.voyager.core.model.ScreenModel +import cafe.adriel.voyager.core.model.coroutineScope +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.gql.fragment.RepoOverview +import com.materiiapps.gloom.rest.utils.fold +import com.materiiapps.gloom.ui.screens.repo.tab.CodeTab +import com.materiiapps.gloom.ui.screens.repo.tab.DetailsTab +import com.materiiapps.gloom.ui.screens.repo.tab.IssuesTab +import com.materiiapps.gloom.ui.screens.repo.tab.PullRequestTab +import com.materiiapps.gloom.ui.screens.repo.tab.ReleasesTab +import kotlinx.coroutines.launch + +class RepoViewModel( + private val gql: GraphQLRepository, + private val nameWithOwner: Pair +) : ScreenModel { + + val owner = nameWithOwner.first + val name = nameWithOwner.second + + val tabs = listOf( + DetailsTab(owner, name), + CodeTab(owner, name), + IssuesTab(owner, name), + PullRequestTab(owner, name), + ReleasesTab(owner, name) + ) + + val badgeCounts = mutableStateMapOf() + + var hasError by mutableStateOf(false) + + var repoOverview by mutableStateOf(null as RepoOverview?) + var repoOverviewLoading by mutableStateOf(false) + + init { + coroutineScope.launch { + repoOverviewLoading = true + gql.getRepoOverview(owner, name).fold( + onSuccess = { + repoOverviewLoading = false + repoOverview = it + badgeCounts[2] = it?.issues?.totalCount ?: 0 + badgeCounts[3] = it?.pullRequests?.totalCount ?: 0 + }, + onError = { + repoOverviewLoading = false + hasError = true + } + ) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoCodeViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoCodeViewModel.kt new file mode 100644 index 0000000..2defa5d --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoCodeViewModel.kt @@ -0,0 +1,46 @@ +package com.materiiapps.gloom.ui.viewmodels.repo.tab + +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.setValue +import cafe.adriel.voyager.core.model.ScreenModel +import cafe.adriel.voyager.core.model.coroutineScope +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.rest.utils.fold +import kotlinx.coroutines.launch + +class RepoCodeViewModel( + private val gql: GraphQLRepository, + nameWithOwner: Pair +): ScreenModel { + + val owner = nameWithOwner.first + val name = nameWithOwner.second + + var hasError by mutableStateOf(false) + var isLoading by mutableStateOf(false) + + var defaultBranch by mutableStateOf(null as String?) + + init { + loadDefaultBranch() + } + + fun loadDefaultBranch() { + coroutineScope.launch { + isLoading = true + gql.getDefaultBranch(owner, name).fold( + onSuccess = { + defaultBranch = it + hasError = false + isLoading = false + }, + onError = { + hasError = true + isLoading = false + } + ) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoDetailsViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoDetailsViewModel.kt new file mode 100644 index 0000000..33cffd3 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoDetailsViewModel.kt @@ -0,0 +1,45 @@ +package com.materiiapps.gloom.ui.viewmodels.repo.tab + +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.setValue +import cafe.adriel.voyager.core.model.ScreenModel +import cafe.adriel.voyager.core.model.coroutineScope +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.gql.fragment.RepoDetails +import com.materiiapps.gloom.rest.utils.fold +import kotlinx.coroutines.launch + +class RepoDetailsViewModel( + private val gql: GraphQLRepository, + nameWithOwner: Pair +): ScreenModel { + + val owner = nameWithOwner.first + val name = nameWithOwner.second + + var details by mutableStateOf(null as RepoDetails?) + var detailsLoading by mutableStateOf(false) + var hasError by mutableStateOf(false) + + init { + loadDetails() + } + + fun loadDetails() { + coroutineScope.launch { + detailsLoading = true + gql.getRepoDetails(owner, name).fold( + onSuccess = { + details = it + detailsLoading = false + }, + onError = { + hasError = true + detailsLoading = false + } + ) + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoIssuesViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoIssuesViewModel.kt new file mode 100644 index 0000000..4e976a6 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoIssuesViewModel.kt @@ -0,0 +1,25 @@ +package com.materiiapps.gloom.ui.viewmodels.repo.tab + +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.gql.RepoIssuesQuery +import com.materiiapps.gloom.gql.fragment.IssueOverview +import com.materiiapps.gloom.rest.utils.getOrNull +import com.materiiapps.gloom.ui.viewmodels.list.base.BaseListViewModel + +class RepoIssuesViewModel( + private val gql: GraphQLRepository, + nameWithOwner: Pair +) : BaseListViewModel() { + + val owner = nameWithOwner.first + val name = nameWithOwner.second + + override suspend fun loadPage(cursor: String?): RepoIssuesQuery.Data? = + gql.getRepoIssues(owner, name, cursor).getOrNull() + + override fun getCursor(data: RepoIssuesQuery.Data?): String? = + data?.repository?.issues?.pageInfo?.endCursor + + override fun createItems(data: RepoIssuesQuery.Data?): List = + data?.repository?.issues?.nodes?.mapNotNull { it?.issueOverview } ?: emptyList() +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoPullRequestsViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoPullRequestsViewModel.kt new file mode 100644 index 0000000..273567d --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoPullRequestsViewModel.kt @@ -0,0 +1,26 @@ +package com.materiiapps.gloom.ui.viewmodels.repo.tab + +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.gql.RepoPullRequestsQuery +import com.materiiapps.gloom.gql.fragment.PullRequestOverview +import com.materiiapps.gloom.gql.type.PullRequestState +import com.materiiapps.gloom.rest.utils.getOrNull +import com.materiiapps.gloom.ui.viewmodels.list.base.BaseListViewModel + +class RepoPullRequestsViewModel( + private val gql: GraphQLRepository, + nameWithOwner: Pair +) : BaseListViewModel() { + + val owner = nameWithOwner.first + val name = nameWithOwner.second + + override suspend fun loadPage(cursor: String?): RepoPullRequestsQuery.Data? = + gql.getRepoPullRequests(owner, name, cursor, listOf(PullRequestState.CLOSED, PullRequestState.MERGED, PullRequestState.OPEN)).getOrNull() + + override fun getCursor(data: RepoPullRequestsQuery.Data?): String? = + data?.repository?.pullRequests?.pageInfo?.endCursor + + override fun createItems(data: RepoPullRequestsQuery.Data?): List = + data?.repository?.pullRequests?.nodes?.mapNotNull { it?.pullRequestOverview } ?: emptyList() +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoReleasesViewModel.kt b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoReleasesViewModel.kt new file mode 100644 index 0000000..db69c83 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/viewmodels/repo/tab/RepoReleasesViewModel.kt @@ -0,0 +1,25 @@ +package com.materiiapps.gloom.ui.viewmodels.repo.tab + +import com.materiiapps.gloom.domain.repository.GraphQLRepository +import com.materiiapps.gloom.gql.RepoReleasesQuery +import com.materiiapps.gloom.gql.fragment.ReleaseItem +import com.materiiapps.gloom.rest.utils.getOrNull +import com.materiiapps.gloom.ui.viewmodels.list.base.BaseListViewModel + +class RepoReleasesViewModel( + private val gql: GraphQLRepository, + nameWithOwner: Pair +) : BaseListViewModel() { + + val owner = nameWithOwner.first + val name = nameWithOwner.second + + override suspend fun loadPage(cursor: String?): RepoReleasesQuery.Data? = + gql.getRepoReleases(owner, name, cursor).getOrNull() + + override fun getCursor(data: RepoReleasesQuery.Data?): String? = + data?.repository?.releases?.pageInfo?.endCursor + + override fun createItems(data: RepoReleasesQuery.Data?): List = + data?.repository?.releases?.nodes?.mapNotNull { it?.releaseItem } ?: emptyList() +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedRepoCard.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedRepoCard.kt index 832a712..dd0425f 100644 --- a/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedRepoCard.kt +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedRepoCard.kt @@ -16,6 +16,7 @@ import androidx.compose.material.icons.outlined.Person import androidx.compose.material.icons.outlined.StarBorder import androidx.compose.material3.ButtonDefaults import androidx.compose.material3.ElevatedCard +import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.FilledTonalButton import androidx.compose.material3.Icon import androidx.compose.material3.LocalContentColor @@ -32,7 +33,11 @@ import androidx.compose.ui.text.SpanStyle import androidx.compose.ui.text.buildAnnotatedString import androidx.compose.ui.text.withStyle import androidx.compose.ui.unit.dp +import cafe.adriel.voyager.navigator.LocalNavigator +import cafe.adriel.voyager.navigator.currentOrThrow import coil.compose.AsyncImage +import com.materiiapps.gloom.ui.screens.repo.RepoScreen +import com.materiiapps.gloom.utils.navigate import com.materiiapps.gloom.R import com.materiiapps.gloom.gql.fragment.FeedRepository import com.materiiapps.gloom.rest.dto.user.User @@ -40,17 +45,20 @@ import com.materiiapps.gloom.ui.components.Avatar import com.materiiapps.gloom.utils.parsedColor @Composable +@OptIn(ExperimentalMaterial3Api::class) fun FeedRepoCard( repo: FeedRepository, starData: Pair? = null, onStarPressed: () -> Unit = {}, onUnstarPressed: () -> Unit = {}, ) { + val nav = LocalNavigator.currentOrThrow val viewerHasStarred = starData?.first ?: repo.viewerHasStarred val starCount = starData?.second ?: repo.stargazerCount val (starColor, starIcon) = if (viewerHasStarred) Color(0xFFF1E05A) to Icons.Filled.Star else LocalContentColor.current to Icons.Outlined.StarBorder ElevatedCard( + onClick = { nav.navigate(RepoScreen(repo.owner.login, repo.name)) }, modifier = Modifier .fillMaxWidth() ) { @@ -77,7 +85,7 @@ fun FeedRepoCard( modifier = Modifier.fillMaxWidth() ) { Avatar( - url = repo.owner.avatarUrl as? String, + url = repo.owner.avatarUrl, contentDescription = stringResource( R.string.noun_users_avatar, repo.owner.login diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedUserCard.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedUserCard.kt index adaa364..19c5d56 100644 --- a/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedUserCard.kt +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/FeedUserCard.kt @@ -80,7 +80,7 @@ fun FeedUserCard( modifier = Modifier.fillMaxWidth() ) { Avatar( - url = avatarUrl as? String, + url = avatarUrl, contentDescription = stringResource( R.string.noun_users_avatar, login ?: "ghost" diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/NewReleaseItem.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/NewReleaseItem.kt index 73d7517..d0a80a8 100644 --- a/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/NewReleaseItem.kt +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/feed/NewReleaseItem.kt @@ -18,7 +18,6 @@ import androidx.compose.material.icons.filled.LocalOffer import androidx.compose.material.icons.outlined.LocalOffer import androidx.compose.material3.Divider import androidx.compose.material3.ElevatedCard -import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text @@ -36,12 +35,16 @@ import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.withStyle import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp +import cafe.adriel.voyager.navigator.LocalNavigator +import cafe.adriel.voyager.navigator.currentOrThrow import coil.compose.AsyncImage import com.materiiapps.gloom.R import com.materiiapps.gloom.gql.fragment.NewReleaseItemFragment -import com.materiiapps.gloom.ui.theme.BadgeGreen +import com.materiiapps.gloom.ui.screens.release.ReleaseScreen +import com.materiiapps.gloom.ui.theme.DarkGreen import com.materiiapps.gloom.ui.widgets.Markdown import com.materiiapps.gloom.utils.annotatingStringResource +import com.materiiapps.gloom.utils.navigate @Composable @Suppress("UNUSED_PARAMETER") @@ -82,6 +85,8 @@ fun ReleaseCard( release: NewReleaseItemFragment.Release ) { val repo = release.repository.feedRepository + val nav = LocalNavigator.currentOrThrow + ElevatedCard( modifier = Modifier.fillMaxWidth() ) { @@ -137,17 +142,17 @@ fun ReleaseCard( text = stringResource(R.string.adj_latest), style = MaterialTheme.typography.labelSmall, fontSize = 10.sp, - color = BadgeGreen, + color = DarkGreen, modifier = Modifier .clip(CircleShape) - .border(1.dp, BadgeGreen, CircleShape) + .border(1.dp, DarkGreen, CircleShape) .padding(vertical = 4.dp, horizontal = 6.dp) ) } } - if (release.descriptionHTML?.toString()?.isNotBlank() == true) { - Markdown(release.descriptionHTML as String) + if (release.descriptionHTML?.isNotBlank() == true) { + Markdown(release.descriptionHTML) } } @@ -161,32 +166,37 @@ fun ReleaseCard( verticalAlignment = Alignment.CenterVertically, modifier = Modifier.padding(16.dp) ) { - ReleaseDetail( - icon = Icons.Outlined.LocalOffer, - iconDescription = stringResource(R.string.noun_tag), - text = release.tagName - ) - if (release.tagCommit?.abbreviatedOid?.isNotBlank() == true) { + Row( + horizontalArrangement = Arrangement.spacedBy(10.dp), + verticalAlignment = Alignment.CenterVertically, + modifier = Modifier.weight(1f) + ) { ReleaseDetail( - icon = painterResource(R.drawable.ic_commit_24), + icon = Icons.Outlined.LocalOffer, iconDescription = stringResource(R.string.noun_tag), - text = release.tagCommit.abbreviatedOid + text = release.tagName ) + if (release.tagCommit?.abbreviatedOid?.isNotBlank() == true) { + ReleaseDetail( + icon = painterResource(R.drawable.ic_commit_24), + iconDescription = stringResource(R.string.noun_tag), + text = release.tagCommit.abbreviatedOid + ) + } } - Spacer(Modifier.weight(1f)) - Row( verticalAlignment = Alignment.CenterVertically, modifier = Modifier .clip(CircleShape) - .clickable { } + .clickable { nav.navigate(ReleaseScreen(repo.owner.login, repo.name, release.tagName)) } .padding(vertical = 3.dp, horizontal = 5.dp) ) { Text( stringResource(R.string.action_view_details), style = MaterialTheme.typography.labelLarge, - color = MaterialTheme.colorScheme.onSurface + color = MaterialTheme.colorScheme.onSurface, + maxLines = 1 ) Spacer(Modifier.width(2.dp)) Icon(Icons.Default.ChevronRight, null) diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionRow.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionRow.kt new file mode 100644 index 0000000..4af560c --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionRow.kt @@ -0,0 +1,160 @@ +package com.materiiapps.gloom.ui.widgets.reaction + +import android.annotation.SuppressLint +import androidx.compose.foundation.background +import androidx.compose.foundation.clickable +import androidx.compose.foundation.horizontalScroll +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.outlined.AddReaction +import androidx.compose.material3.ExperimentalMaterial3Api +import androidx.compose.material3.Icon +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.material3.surfaceColorAtElevation +import androidx.compose.runtime.Composable +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.derivedStateOf +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateListOf +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.runtime.toMutableStateList +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.unit.dp +import com.materiiapps.gloom.gql.fragment.Reaction +import com.materiiapps.gloom.gql.type.ReactionContent +import com.materiiapps.gloom.ui.theme.colors +import com.materiiapps.gloom.utils.Constants + +//@SuppressLint("UnrememberedMutableState") +@SuppressLint("UnrememberedMutableState") +@OptIn(ExperimentalMaterial3Api::class) +@Composable +fun ReactionRow( + reactions: List, + onReactionClick: (reaction: ReactionContent, unreact: Boolean) -> Unit, + forRelease: Boolean = false +) { + val _reactions = remember { + mutableStateListOf() + } + var opened by remember { + mutableStateOf(false) + } + + LaunchedEffect(reactions) { + _reactions.clear() + _reactions.addAll(reactions.filter { it.reactors.totalCount > 0 }) + } + + fun react(reaction: ReactionContent) { + val fullReaction = _reactions.firstOrNull { it.content == reaction } + opened = false + + when { + _reactions.isEmpty() || fullReaction == null -> { + onReactionClick(reaction, false) + _reactions.add( + Reaction(reaction, true, Reaction.Reactors(1)) + ) + } + + fullReaction.viewerHasReacted -> { + val i = _reactions.indexOf(fullReaction) + val newCount = fullReaction.reactors.totalCount - 1 + onReactionClick(reaction, true) + + if (newCount == 0) + _reactions.remove(fullReaction) + else + _reactions[i] = fullReaction.copy( + viewerHasReacted = false, + reactors = fullReaction.reactors.copy( + totalCount = newCount + ) + ) + } + + !fullReaction.viewerHasReacted -> { + val i = _reactions.indexOf(fullReaction) + onReactionClick(reaction, false) + + _reactions[i] = fullReaction.copy( + viewerHasReacted = true, + reactors = fullReaction.reactors.copy( + totalCount = fullReaction.reactors.totalCount + 1 + ) + ) + } + } + } + + if (opened) { + ReactionSheet( + forRelease = forRelease, + onReactionClick = ::react, + onClose = { opened = false } + ) + } + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp), + modifier = Modifier + .horizontalScroll(rememberScrollState()) + ) { + Spacer(modifier = Modifier.width(8.dp)) + + Icon( + imageVector = Icons.Outlined.AddReaction, + contentDescription = null, + modifier = Modifier + .clip(CircleShape) + .clickable { opened = true } + .background(MaterialTheme.colorScheme.surfaceColorAtElevation(2.dp)) + .padding(6.dp) + .size(20.dp) + ) + + _reactions.forEach { reaction -> + val (backgroundColor, textColor) = + if (reaction.viewerHasReacted) + MaterialTheme.colors.primaryContainer to MaterialTheme.colors.primary + else + MaterialTheme.colorScheme.surfaceColorAtElevation(2.dp) to MaterialTheme.colors.onSurface + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp), + modifier = Modifier + .clip(CircleShape) + .clickable { react(reaction.content) } + .background(backgroundColor) + .padding(horizontal = 8.dp, vertical = 6.dp) + ) { + Text( + text = Constants.REACTION_EMOJIS[reaction.content]!!, + style = MaterialTheme.typography.bodyMedium + ) + Text( + text = reaction.reactors.totalCount.toString(), + style = MaterialTheme.typography.labelLarge, + color = textColor + ) + } + } + + Spacer(modifier = Modifier.width(8.dp)) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionSheet.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionSheet.kt new file mode 100644 index 0000000..10b320f --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/reaction/ReactionSheet.kt @@ -0,0 +1,65 @@ +package com.materiiapps.gloom.ui.widgets.reaction + +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.ExperimentalLayoutApi +import androidx.compose.foundation.layout.FlowRow +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.ExperimentalMaterial3Api +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.ModalBottomSheet +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import com.materiiapps.gloom.gql.type.ReactionContent +import com.materiiapps.gloom.utils.Constants + +@OptIn(ExperimentalMaterial3Api::class, ExperimentalLayoutApi::class) +@Composable +fun ReactionSheet( + forRelease: Boolean, + onReactionClick: (ReactionContent) -> Unit, + onClose: () -> Unit +) { + val emojis = Constants.REACTION_EMOJIS.filter { (reaction, _) -> + if (forRelease) + !listOf( + ReactionContent.THUMBS_DOWN, + ReactionContent.CONFUSED, + ReactionContent.UNKNOWN__ + ).contains(reaction) + else + reaction != ReactionContent.UNKNOWN__ + } + + ModalBottomSheet( + onDismissRequest = onClose + ) { + FlowRow( + maxItemsInEachRow = emojis.size / 2, + horizontalArrangement = Arrangement.spacedBy(12.dp), + modifier = Modifier.padding( + start = 16.dp, + end = 16.dp, + bottom = 16.dp + ) + ) { + emojis.forEach { (reaction, emoji) -> + Text( + text = emoji, + style = MaterialTheme.typography.headlineMedium, + textAlign = TextAlign.Center, + modifier = Modifier + .clip(RoundedCornerShape(16.dp)) + .weight(1f) + .clickable { onReactionClick(reaction) } + .padding(16.dp) + ) + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAsset.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAsset.kt new file mode 100644 index 0000000..d031c1d --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAsset.kt @@ -0,0 +1,142 @@ +package com.materiiapps.gloom.ui.widgets.release + +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Download +import androidx.compose.material.icons.outlined.Android +import androidx.compose.material.icons.outlined.Archive +import androidx.compose.material.icons.outlined.FolderZip +import androidx.compose.material.icons.outlined.InsertDriveFile +import androidx.compose.material3.Icon +import androidx.compose.material3.IconButton +import androidx.compose.material3.LocalContentColor +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextOverflow +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import com.materiiapps.gloom.R +import com.materiiapps.gloom.domain.manager.DialogManager +import com.materiiapps.gloom.domain.manager.DialogState +import com.materiiapps.gloom.ui.widgets.release.dialog.ReleaseAssetDownloadDialog +import com.materiiapps.gloom.utils.getFileSizeString +import org.koin.androidx.compose.get + +@Composable +fun ReleaseAsset( + name: String, + size: Int, + onDownloadClick: () -> Unit +) { + val dialogManager: DialogManager = get() + var showConfirmDialog by remember { + mutableStateOf(false) + } + val icon = when (name.split(".").lastOrNull()?.lowercase()) { + "apks", + "apkx", + "apk" -> Icons.Outlined.Android + + "dmg", + "msi", + "appimage", + "deb", + "snap", + "rpm", + "nupkg", + "pkg", + "exe" -> Icons.Outlined.Archive + + "zip", + "7z", + "7zip", + "xz", + "tar", + "gz" -> Icons.Outlined.FolderZip + + else -> Icons.Outlined.InsertDriveFile + } + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(16.dp), + modifier = Modifier + .fillMaxWidth() + .padding(horizontal = 16.dp) + ) { + Icon( + imageVector = icon, + contentDescription = null, + tint = MaterialTheme.colorScheme.primary, + modifier = Modifier + .clip(CircleShape) + .background(MaterialTheme.colorScheme.primaryContainer) + .padding(9.dp) + .size(18.dp) + ) + Column( + verticalArrangement = Arrangement.spacedBy(4.dp), + modifier = Modifier.weight(1f) + ) { + Text( + text = name, + style = MaterialTheme.typography.bodyMedium, + maxLines = 1, + overflow = TextOverflow.Ellipsis, + fontSize = 15.sp + ) + + Text( + text = getFileSizeString(size), + style = MaterialTheme.typography.labelMedium, + maxLines = 1, + overflow = TextOverflow.Ellipsis, + color = LocalContentColor.current.copy(0.5f) + ) + } + + if(showConfirmDialog) { + ReleaseAssetDownloadDialog( + fileName = name, + fileSize = size, + onClose = { showConfirmDialog = false }, + onConfirm = { dontShowAgain -> + if(dontShowAgain) dialogManager.downloadAsset = DialogState.CONFIRMED + showConfirmDialog = false + onDownloadClick() + } + ) + } + + IconButton( + onClick = { + if (dialogManager.downloadAsset == DialogState.UNKNOWN) + showConfirmDialog = true + else + onDownloadClick() + } + ) { + Icon( + imageVector = Icons.Filled.Download, + contentDescription = stringResource(R.string.action_download) + ) + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAuthor.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAuthor.kt new file mode 100644 index 0000000..4eedaa5 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseAuthor.kt @@ -0,0 +1,59 @@ +package com.materiiapps.gloom.ui.widgets.release + +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.material3.LocalContentColor +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.text.SpanStyle +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.Avatar +import com.materiiapps.gloom.utils.TimeUtils +import com.materiiapps.gloom.utils.annotatingStringResource +import kotlinx.datetime.Instant + +@Composable +fun ReleaseAuthor( + login: String, + avatarUrl: String, + timestamp: Instant +) { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(10.dp), + modifier = Modifier.padding(horizontal = 16.dp) + ) { + Avatar( + url = avatarUrl, + contentDescription = null, + modifier = Modifier.size(22.dp) + ) + Text( + text = annotatingStringResource( + R.string.msg_release_author, + login, + TimeUtils.formatDate(timestamp) + ) { + when (it) { + "author" -> SpanStyle( + color = LocalContentColor.current, + fontWeight = FontWeight.SemiBold + ) + + else -> null + } + }, + fontSize = 14.sp, + color = LocalContentColor.current.copy(alpha = 0.5f), + letterSpacing = 0.2.sp, + fontWeight = FontWeight.Normal + ) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseContributors.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseContributors.kt new file mode 100644 index 0000000..dc1a802 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseContributors.kt @@ -0,0 +1,75 @@ +package com.materiiapps.gloom.ui.widgets.release + +import androidx.compose.foundation.ExperimentalFoundationApi +import androidx.compose.foundation.clickable +import androidx.compose.foundation.horizontalScroll +import androidx.compose.foundation.interaction.MutableInteractionSource +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.rememberScrollState +import androidx.compose.material.ripple.rememberRipple +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.remember +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextOverflow +import androidx.compose.ui.unit.dp +import cafe.adriel.voyager.navigator.LocalNavigator +import cafe.adriel.voyager.navigator.currentOrThrow +import com.materiiapps.gloom.R +import com.materiiapps.gloom.ui.components.Avatar +import com.materiiapps.gloom.ui.screens.profile.ProfileScreen + +@OptIn(ExperimentalFoundationApi::class) +@Composable +fun ReleaseContributors( + contributors: List> +) { + val nav = LocalNavigator.currentOrThrow + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(16.dp), + modifier = Modifier + .horizontalScroll(rememberScrollState()) + .fillMaxWidth() + ) { + Spacer(modifier = Modifier.width(0.dp)) + contributors.forEach { (username, avatarUrl) -> + Column( + verticalArrangement = Arrangement.spacedBy(10.dp), + horizontalAlignment = Alignment.CenterHorizontally, + modifier = Modifier + .clickable( + onClick = { + nav.push(ProfileScreen(username)) + }, + indication = rememberRipple(bounded = false, radius = 40.dp), + interactionSource = remember { MutableInteractionSource() } + ) + .width(70.dp) + ) { + Avatar( + url = avatarUrl, + contentDescription = stringResource(R.string.noun_users_avatar, username), + modifier = Modifier.size(35.dp) + ) + Text( + text = username, + style = MaterialTheme.typography.labelSmall, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) + } + } + Spacer(modifier = Modifier.width(0.dp)) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseHeader.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseHeader.kt new file mode 100644 index 0000000..8ac746d --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseHeader.kt @@ -0,0 +1,97 @@ +package com.materiiapps.gloom.ui.widgets.release + +import androidx.compose.foundation.ExperimentalFoundationApi +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.SpanStyle +import androidx.compose.ui.text.buildAnnotatedString +import androidx.compose.ui.text.style.TextOverflow +import androidx.compose.ui.text.withStyle +import androidx.compose.ui.unit.dp +import cafe.adriel.voyager.navigator.LocalNavigator +import cafe.adriel.voyager.navigator.currentOrThrow +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.fragment.ReleaseDetails +import com.materiiapps.gloom.rest.dto.user.User +import com.materiiapps.gloom.ui.components.Avatar +import com.materiiapps.gloom.ui.components.Label +import com.materiiapps.gloom.ui.screens.repo.RepoScreen +import com.materiiapps.gloom.ui.theme.colors +import com.materiiapps.gloom.utils.ifNullOrBlank + +@OptIn(ExperimentalFoundationApi::class) +@Composable +fun ReleaseHeader( + details: ReleaseDetails +) { + val nav = LocalNavigator.currentOrThrow + + Column( + verticalArrangement = Arrangement.spacedBy(10.dp), + modifier = Modifier + .padding(start = 16.dp, end = 16.dp, top = 16.dp) + ) { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp), + modifier = Modifier.clickable { + nav.push(RepoScreen(details.repository.owner.login, details.repository.name)) + } + ) { + Avatar( + url = details.repository.owner.avatarUrl, + contentDescription = null, + type = User.Type.fromTypeName(details.repository.owner.__typename), + modifier = Modifier.size(22.dp) + ) + + Text( + buildAnnotatedString { + append(details.repository.owner.login) + withStyle(SpanStyle(color = MaterialTheme.colorScheme.onSurface.copy(0.5f))) { + append(" / ") + } + append(details.repository.name) + }, + style = MaterialTheme.typography.labelLarge + ) + } + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(10.dp) + ) { + Text( + text = details.name.ifNullOrBlank { details.tagName }, + maxLines = 1, + style = MaterialTheme.typography.headlineMedium, + overflow = TextOverflow.Ellipsis, + modifier = Modifier.weight(1f, fill = false) + ) + + if (details.isLatest) { + Label( + text = stringResource(R.string.label_latest), + textColor = MaterialTheme.colors.statusGreen + ) + } + + if (details.isPrerelease) { + Label( + text = stringResource(R.string.label_prerelease), + textColor = MaterialTheme.colors.statusYellow + ) + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseInfo.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseInfo.kt new file mode 100644 index 0000000..ab3966a --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/ReleaseInfo.kt @@ -0,0 +1,81 @@ +package com.materiiapps.gloom.ui.widgets.release + +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.outlined.LocalOffer +import androidx.compose.material3.Icon +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.res.painterResource +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import com.materiiapps.gloom.R + +@Composable +fun ReleaseInfo( + tagName: String, + commit: String? +) { + Row( + verticalAlignment = Alignment.CenterVertically, + modifier = Modifier + .padding(horizontal = 16.dp) + .fillMaxWidth() + ) { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterHorizontally), + modifier = Modifier + .clip(CircleShape) + .clickable { } + .padding(vertical = 8.dp) + .weight(1f) + ) { + Icon( + imageVector = Icons.Outlined.LocalOffer, + contentDescription = stringResource(R.string.noun_tag), + modifier = Modifier.size(20.dp) + ) + + Text( + text = tagName, + style = MaterialTheme.typography.labelLarge, + fontSize = 15.sp + ) + } + if (commit?.isNotBlank() == true) { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterHorizontally), + modifier = Modifier + .clip(CircleShape) + .clickable { } + .padding(vertical = 8.dp) + .weight(1f) + ) { + Icon( + painter = painterResource(R.drawable.ic_commit_24), + contentDescription = stringResource(R.string.noun_commit), + modifier = Modifier.size(20.dp) + ) + + Text( + text = commit, + style = MaterialTheme.typography.labelLarge, + fontSize = 15.sp + ) + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetDownloadDialog.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetDownloadDialog.kt new file mode 100644 index 0000000..b05dac7 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetDownloadDialog.kt @@ -0,0 +1,92 @@ +package com.materiiapps.gloom.ui.widgets.release.dialog + +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.size +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Download +import androidx.compose.material.icons.outlined.Download +import androidx.compose.material.icons.rounded.Download +import androidx.compose.material3.AlertDialog +import androidx.compose.material3.Checkbox +import androidx.compose.material3.FilledTonalButton +import androidx.compose.material3.Icon +import androidx.compose.material3.Text +import androidx.compose.material3.TextButton +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.semantics.Role +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import com.materiiapps.gloom.R +import com.materiiapps.gloom.utils.getFileSizeString + +@Composable +fun ReleaseAssetDownloadDialog( + fileName: String, + fileSize: Int, + onClose: () -> Unit, + onConfirm: (dontShowAgain: Boolean) -> Unit +) { + var checked by remember { + mutableStateOf(false) + } + + AlertDialog( + onDismissRequest = onClose, + confirmButton = { + FilledTonalButton(onClick = { onConfirm(checked) }) { + Text(stringResource(R.string.action_download)) + } + }, + dismissButton = { + TextButton(onClick = onClose) { + Text(stringResource(R.string.dismiss_cancel)) + } + }, + icon = { + Icon( + imageVector = Icons.Rounded.Download, + contentDescription = null, + modifier = Modifier.size(30.dp) + ) + }, + title = { + Text( + text = stringResource(R.string.title_download_confirm), + textAlign = TextAlign.Center, + modifier = Modifier.fillMaxWidth() + ) + }, + text = { + Column( + verticalArrangement = Arrangement.spacedBy(16.dp), + ) { + Text( + text = stringResource(R.string.msg_download_dialog_body, fileName, getFileSizeString(fileSize)), + textAlign = TextAlign.Center, + modifier = Modifier.fillMaxWidth() + ) + + Row( + verticalAlignment = Alignment.CenterVertically, + modifier = Modifier + .clickable(role = Role.Checkbox) { checked = !checked } + .fillMaxWidth() + ) { + Checkbox(checked = checked, onCheckedChange = { checked = it }) + Text(stringResource(R.string.label_dont_show_again)) + } + } + } + ) +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetInstallDialog.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetInstallDialog.kt new file mode 100644 index 0000000..42f6fc7 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/release/dialog/ReleaseAssetInstallDialog.kt @@ -0,0 +1,91 @@ +package com.materiiapps.gloom.ui.widgets.release.dialog + +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.size +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Download +import androidx.compose.material.icons.outlined.Download +import androidx.compose.material.icons.rounded.Download +import androidx.compose.material3.AlertDialog +import androidx.compose.material3.Checkbox +import androidx.compose.material3.FilledTonalButton +import androidx.compose.material3.Icon +import androidx.compose.material3.Text +import androidx.compose.material3.TextButton +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.semantics.Role +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import com.materiiapps.gloom.R +import com.materiiapps.gloom.utils.getFileSizeString + +@Composable +fun ReleaseAssetInstallDialog( + fileName: String, + onClose: (dontShowAgain: Boolean?) -> Unit, + onConfirm: (dontShowAgain: Boolean) -> Unit +) { + var checked by remember { + mutableStateOf(false) + } + + AlertDialog( + onDismissRequest = { onClose(null) }, + confirmButton = { + FilledTonalButton(onClick = { onConfirm(checked) }) { + Text(stringResource(R.string.action_install)) + } + }, + dismissButton = { + TextButton(onClick = { onClose(checked) }) { + Text(stringResource(R.string.dismiss_no_thanks)) + } + }, + icon = { + Icon( + imageVector = Icons.Rounded.Download, + contentDescription = null, + modifier = Modifier.size(30.dp) + ) + }, + title = { + Text( + text = stringResource(R.string.title_install_app), + textAlign = TextAlign.Center, + modifier = Modifier.fillMaxWidth() + ) + }, + text = { + Column( + verticalArrangement = Arrangement.spacedBy(16.dp), + ) { + Text( + text = stringResource(R.string.msg_install_dialog_body, fileName), + textAlign = TextAlign.Center, + modifier = Modifier.fillMaxWidth() + ) + + Row( + verticalAlignment = Alignment.CenterVertically, + modifier = Modifier + .clickable(role = Role.Checkbox) { checked = !checked } + .fillMaxWidth() + ) { + Checkbox(checked = checked, onCheckedChange = { checked = it }) + Text(stringResource(R.string.label_dont_show_again)) + } + } + } + ) +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ContributorsRow.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ContributorsRow.kt new file mode 100644 index 0000000..c09f4f6 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ContributorsRow.kt @@ -0,0 +1,88 @@ +package com.materiiapps.gloom.ui.widgets.repo + +import androidx.compose.foundation.background +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.widthIn +import androidx.compose.foundation.lazy.LazyRow +import androidx.compose.foundation.lazy.items +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import cafe.adriel.voyager.navigator.LocalNavigator +import coil.compose.AsyncImage +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.fragment.RepoDetails +import com.materiiapps.gloom.ui.screens.profile.ProfileScreen +import com.materiiapps.gloom.utils.navigate + +@Composable +fun ContributorsRow( + contributors: RepoDetails.Contributors +) { + val nav = LocalNavigator.current + + Column { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp), + modifier = Modifier.padding(16.dp) + ) { + Text( + text = stringResource(R.string.noun_contributors), + style = MaterialTheme.typography.labelLarge + ) + Text( + text = contributors.totalCount.toString(), + style = MaterialTheme.typography.labelLarge, + fontSize = 11.sp, + textAlign = TextAlign.Center, + modifier = Modifier + .widthIn(21.dp) + .clip(CircleShape) + .background(MaterialTheme.colorScheme.secondaryContainer) + .padding(5.dp, 3.dp) + ) + } + + LazyRow( + horizontalArrangement = Arrangement.spacedBy(10.dp), + contentPadding = PaddingValues(start = 16.dp, end = 16.dp, bottom = 16.dp), + modifier = Modifier + .fillMaxWidth() + ) { + contributors.nodes?.let { + items(it) { contributor -> + if (contributor != null) + AsyncImage( + model = contributor.contributorAvatar.avatarUrl, + contentDescription = stringResource( + R.string.noun_users_avatar, + contributor.contributorAvatar.login + ), + modifier = Modifier + .clip(CircleShape) + .size(30.dp) + .clickable { + nav?.navigate(ProfileScreen(contributor.contributorAvatar.login)) + } + ) + } + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueItem.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueItem.kt new file mode 100644 index 0000000..bc1c1b1 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueItem.kt @@ -0,0 +1,47 @@ +package com.materiiapps.gloom.ui.widgets.repo + +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.outlined.CheckCircle +import androidx.compose.material.icons.outlined.DoNotDisturb +import androidx.compose.material.icons.outlined.ModeStandby +import androidx.compose.material3.MaterialTheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.res.stringResource +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.fragment.IssueOverview +import com.materiiapps.gloom.gql.type.IssueStateReason +import com.materiiapps.gloom.ui.theme.colors +import kotlinx.datetime.toInstant + +@Composable +fun IssueItem(issue: IssueOverview) { + val (icon, color, titleCDRes) = when (issue.stateReason) { + IssueStateReason.COMPLETED -> Triple( + Icons.Outlined.CheckCircle, + MaterialTheme.colors.statusPurple, + R.string.cd_issue_title_completed + ) + + IssueStateReason.NOT_PLANNED -> Triple( + Icons.Outlined.DoNotDisturb, + MaterialTheme.colors.statusGrey, + R.string.cd_issue_title_not_planned + ) + + else -> Triple(Icons.Outlined.ModeStandby, MaterialTheme.colors.statusGreen, R.string.cd_issue_title_opened) + } + + IssueOrPRItem( + createdAt = (issue.createdAt as String).toInstant(), + icon = icon, + color = color, + titleCDRes = titleCDRes, + number = issue.number, + title = if (issue.title == "\u200E") stringResource(R.string.msg_issue_untitled) else issue.title, + authorUsername = issue.author?.login, + labels = issue.labels?.nodes?.filterNotNull()?.map { it.name to it.color } ?: emptyList(), + totalAssigned = issue.assignees.totalCount, + assignedUsers = issue.assignees.nodes?.filterNotNull()?.map { it.login to it.avatarUrl } ?: emptyList(), + totalComments = issue.comments.totalCount + ) +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueOrPRItem.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueOrPRItem.kt new file mode 100644 index 0000000..e53783b --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/IssueOrPRItem.kt @@ -0,0 +1,228 @@ +package com.materiiapps.gloom.ui.widgets.repo + +import androidx.annotation.StringRes +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.ExperimentalLayoutApi +import androidx.compose.foundation.layout.FlowRow +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Cancel +import androidx.compose.material.icons.filled.CheckCircle +import androidx.compose.material.icons.filled.Circle +import androidx.compose.material.icons.outlined.Circle +import androidx.compose.material.icons.outlined.ModeComment +import androidx.compose.material3.Divider +import androidx.compose.material3.Icon +import androidx.compose.material3.LocalContentColor +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.luminance +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.semantics.contentDescription +import androidx.compose.ui.semantics.semantics +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import coil.compose.AsyncImage +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.type.PullRequestReviewDecision +import com.materiiapps.gloom.gql.type.StatusState +import com.materiiapps.gloom.ui.components.Label +import com.materiiapps.gloom.ui.theme.colors +import com.materiiapps.gloom.utils.TimeUtils.getTimeSince +import com.materiiapps.gloom.utils.parsedColor +import kotlinx.datetime.Instant + +@OptIn(ExperimentalLayoutApi::class) +@Composable +fun IssueOrPRItem( + createdAt: Instant, + icon: ImageVector, + color: Color, + @StringRes titleCDRes: Int, + number: Int, + title: String, + authorUsername: String?, + labels: List>, + totalAssigned: Int, + assignedUsers: List>, + totalComments: Int, + checksStatus: StatusState? = null, + reviewDecision: PullRequestReviewDecision? = null +) { + val ctx = LocalContext.current + + Row( + horizontalArrangement = Arrangement.spacedBy(16.dp), + modifier = Modifier + .padding( + horizontal = 16.dp, + vertical = 16.dp + ) + .semantics( + mergeDescendants = true + ) { + this.contentDescription = ctx.getString(titleCDRes, number, title) + } + ) { + Icon( + imageVector = icon, + tint = color, + contentDescription = null + ) + + Column( + verticalArrangement = Arrangement.spacedBy(10.dp), + modifier = Modifier.weight(1f) + ) { + + Text( + text = title, + style = MaterialTheme.typography.bodyMedium, + fontSize = 15.sp, + fontWeight = FontWeight.Bold + ) + + Text( + text = stringResource( + R.string.msg_issue_or_pr_author, + number, + authorUsername ?: "ghost" + ), + style = MaterialTheme.typography.labelLarge, + color = LocalContentColor.current.copy(alpha = 0.5f) + ) + + + FlowRow( + horizontalArrangement = Arrangement.spacedBy(8.dp), + verticalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterVertically), + modifier = Modifier.fillMaxWidth() + ) { + labels.forEach { (label, color) -> + val labelColor = color.parsedColor + Label( + text = label, + textColor = if (labelColor.luminance() > 0.5f) Color.Black else Color.White, + fillColor = labelColor, + borderColor = labelColor + ) + } + + if(labels.isNotEmpty()) { + Box( + contentAlignment = Alignment.Center, + modifier = Modifier + .height(23.dp) + .padding(horizontal = 3.dp) + ) { + Divider( + color = MaterialTheme.colorScheme.primary.copy(alpha = 0.5f), + modifier = Modifier + .height(18.dp) + .width(1.dp) + ) + } + } + + if(totalAssigned > 0) { + val additionalAssignees = totalAssigned - 1 + val (username, avatarUrl) = assignedUsers.first() + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(6.dp), + modifier = Modifier + .clip(CircleShape) + .background(MaterialTheme.colorScheme.secondaryContainer) + ) { + AsyncImage( + model = avatarUrl, + contentDescription = null, + modifier = Modifier + .size(23.dp) + .clip(CircleShape) + ) + if (additionalAssignees > 0) { + Text( + text = "+ $additionalAssignees", + style = MaterialTheme.typography.labelSmall, + fontSize = 10.sp, + color = MaterialTheme.colorScheme.onSecondaryContainer, + modifier = Modifier.padding(top = 5.dp, bottom = 5.dp, end = 7.dp) + ) + } + } + } + + if(checksStatus != null) { + val (statusIcon, statusColor, statusLabelRes) = when(checksStatus) { + StatusState.EXPECTED -> Triple(Icons.Outlined.Circle, MaterialTheme.colors.surfaceTint, R.string.label_checks) + StatusState.PENDING -> Triple(Icons.Filled.Circle, MaterialTheme.colors.statusYellow, R.string.label_checks) + StatusState.SUCCESS -> Triple(Icons.Filled.CheckCircle, MaterialTheme.colors.statusGreen, R.string.label_checks) + else -> Triple(Icons.Filled.Cancel, MaterialTheme.colors.error, R.string.label_checks_failed) + } + + Label( + text = stringResource(statusLabelRes), + icon = statusIcon, + textColor = MaterialTheme.colorScheme.onSecondaryContainer, + fillColor = MaterialTheme.colorScheme.secondaryContainer, + borderColor = MaterialTheme.colorScheme.secondaryContainer, + iconColor = statusColor + ) + } + + if(reviewDecision != null) { + val (statusIcon, statusColor) = when(reviewDecision) { + PullRequestReviewDecision.CHANGES_REQUESTED -> Icons.Filled.Cancel to MaterialTheme.colors.error + PullRequestReviewDecision.APPROVED -> Icons.Filled.CheckCircle to MaterialTheme.colors.statusGreen + else -> Icons.Filled.Circle to MaterialTheme.colors.surfaceTint + } + + Label( + text = stringResource(R.string.label_reviews), + icon = statusIcon, + textColor = MaterialTheme.colorScheme.onSecondaryContainer, + fillColor = MaterialTheme.colorScheme.secondaryContainer, + borderColor = MaterialTheme.colorScheme.secondaryContainer, + iconColor = statusColor + ) + } + + Label( + text = totalComments.toString(), + icon = Icons.Outlined.ModeComment, + textColor = MaterialTheme.colorScheme.onSecondaryContainer, + fillColor = MaterialTheme.colorScheme.secondaryContainer, + borderColor = MaterialTheme.colorScheme.secondaryContainer, + modifier = Modifier.semantics(mergeDescendants = true) { + contentDescription = ctx.getString(R.string.cd_label_comments, totalComments) + } + ) + } + } + + Text( + text = ctx.getTimeSince(createdAt), + style = MaterialTheme.typography.labelLarge, + color = LocalContentColor.current.copy(alpha = 0.5f) + ) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LanguageMakeup.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LanguageMakeup.kt new file mode 100644 index 0000000..e719227 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LanguageMakeup.kt @@ -0,0 +1,129 @@ +package com.materiiapps.gloom.ui.widgets.repo + +import androidx.compose.foundation.Canvas +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.geometry.Offset +import androidx.compose.ui.geometry.Size +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.res.pluralStringResource +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import com.google.accompanist.flowlayout.FlowRow +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.fragment.Languages +import com.materiiapps.gloom.utils.parsedColor +import java.text.DecimalFormat + +@Composable +fun LanguageMakeup( + languages: Languages +) { + val bg = MaterialTheme.colorScheme.background + val _languages = mutableListOf() + languages.edges?.forEach { + val lang = it?.lang ?: return@forEach + _languages.add( + LangWithPercent( + name = lang.node.name, + color = lang.node.color?.parsedColor ?: Color.Black, + percent = lang.size.toFloat() / languages.totalSize.toFloat(), + size = lang.size + ) + ) + } + + if (_languages.isEmpty()) return + + if (_languages.sumOf { it.size } != languages.totalSize) { + val otherSize = languages.totalSize - _languages.sumOf { it.size } + _languages.add( + LangWithPercent( + name = stringResource(R.string.noun_other), + color = MaterialTheme.colorScheme.secondaryContainer, + percent = otherSize.toFloat() / languages.totalSize, + size = otherSize + ) + ) + } + + Column( + verticalArrangement = Arrangement.spacedBy(15.dp), + modifier = Modifier.padding(16.dp) + ) { + Text( + text = pluralStringResource(R.plurals.plural_language, _languages.size), + style = MaterialTheme.typography.labelLarge + ) + + Canvas( + modifier = Modifier + .height(8.dp) + .fillMaxWidth() + .clip(CircleShape) + .background(MaterialTheme.colorScheme.secondaryContainer) + ) { + _languages.forEachIndexed { i, lang -> + val offset = (_languages.subList(0, i).sumOf { it.size } + .toFloat() / languages.totalSize) * size.width + drawRect( + color = lang.color, + size = Size(lang.percent * size.width, size.height), + topLeft = Offset(offset, 0f) + ) + if (offset != 0f && offset + 2.dp.toPx() < size.width) drawRect( + color = bg, + size = Size(2.dp.toPx(), size.height), + topLeft = Offset(offset, 0f) + ) + } + } + + FlowRow( + mainAxisSpacing = 16.dp, + crossAxisSpacing = 14.dp + ) { + _languages.forEach { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(7.dp) + ) { + Box( + modifier = Modifier + .size(13.dp) + .clip(CircleShape) + .background(it.color) + ) + Text( + text = it.name, + style = MaterialTheme.typography.labelLarge, + fontSize = 12.sp + ) + Text( + text = DecimalFormat("#.##%").format(it.percent), + style = MaterialTheme.typography.labelLarge, + color = MaterialTheme.colorScheme.secondary.copy(0.5f), + fontSize = 12.sp + ) + } + } + } + } +} + +data class LangWithPercent(val name: String, val color: Color, val percent: Float, val size: Int) \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LatestReleaseItem.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LatestReleaseItem.kt new file mode 100644 index 0000000..da0f3c9 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/LatestReleaseItem.kt @@ -0,0 +1,180 @@ +package com.materiiapps.gloom.ui.widgets.repo + +import androidx.compose.foundation.background +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.heightIn +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.material3.LocalContentColor +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Brush +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.layout.onGloballyPositioned +import androidx.compose.ui.platform.LocalDensity +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.SpanStyle +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.text.style.TextOverflow +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import cafe.adriel.voyager.navigator.LocalNavigator +import cafe.adriel.voyager.navigator.currentOrThrow +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.fragment.ReleaseItem +import com.materiiapps.gloom.ui.components.Avatar +import com.materiiapps.gloom.ui.components.Label +import com.materiiapps.gloom.ui.components.ThinDivider +import com.materiiapps.gloom.ui.screens.release.ReleaseScreen +import com.materiiapps.gloom.ui.theme.DarkGreen +import com.materiiapps.gloom.ui.widgets.Markdown +import com.materiiapps.gloom.utils.TimeUtils +import com.materiiapps.gloom.utils.annotatingStringResource +import com.materiiapps.gloom.utils.ifNullOrBlank +import kotlinx.datetime.toInstant + +@Composable +fun LatestReleaseItem( + repoOwner: String, + repoName: String, + release: ReleaseItem +) { + val nav = LocalNavigator.currentOrThrow + val createdAt = remember { + (release.createdAt as String).toInstant() + } + + Column { + Column( + verticalArrangement = Arrangement.spacedBy(12.dp) + ) { + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(10.dp), + modifier = Modifier + .padding( + start = 16.dp, + end = 16.dp, + top = 16.dp + ) + ) { + Text( + text = release.name.ifNullOrBlank { release.tagName }, + style = MaterialTheme.typography.titleLarge, + fontSize = 24.sp, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) + + Label( + text = stringResource(R.string.label_latest), + textColor = DarkGreen + ) + } + + release.author?.let { author -> + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(10.dp), + modifier = Modifier.padding(horizontal = 16.dp) + ) { + Avatar( + url = author.avatarUrl, + contentDescription = null, + modifier = Modifier.size(22.dp) + ) + Text( + text = annotatingStringResource( + R.string.msg_release_author, + author.login, + TimeUtils.formatDate(createdAt) + ) { + when (it) { + "author" -> SpanStyle( + color = LocalContentColor.current, + fontWeight = FontWeight.SemiBold + ) + + else -> null + } + }, + fontSize = 14.sp, + color = LocalContentColor.current.copy(alpha = 0.5f), + letterSpacing = 0.2.sp, + fontWeight = FontWeight.Normal + ) + } + } + + release.descriptionHTML?.let { description -> + val density = LocalDensity.current + var height by remember { + mutableStateOf(0.dp) + } + + Box( + contentAlignment = Alignment.BottomStart, + modifier = Modifier + .fillMaxWidth() + .padding(horizontal = 10.dp) + ) { + Markdown( + text = description, + modifier = Modifier + .heightIn(max = 300.dp) + .onGloballyPositioned { + height = with(density) { + it.size.height.toDp() + } + } + ) + if (height >= 300.dp) { + Box( + modifier = Modifier + .fillMaxWidth() + .align(Alignment.BottomCenter) + .height(300.dp) + .background( + Brush.verticalGradient( + listOf( + Color.Transparent, + MaterialTheme.colorScheme.background + ) + ) + ) + ) + } + } + } + } + + ThinDivider() + + Text( + text = "View release", + color = MaterialTheme.colorScheme.primary, + textAlign = TextAlign.Center, + style = MaterialTheme.typography.labelLarge, + modifier = Modifier + .clickable { + nav.push(ReleaseScreen(repoOwner, repoName, release.tagName)) + } + .fillMaxWidth() + .padding(16.dp) + ) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/PullRequestItem.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/PullRequestItem.kt new file mode 100644 index 0000000..b8a153e --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/PullRequestItem.kt @@ -0,0 +1,59 @@ +package com.materiiapps.gloom.ui.widgets.repo + +import androidx.compose.material.icons.Icons +import androidx.compose.material3.MaterialTheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.res.stringResource +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.fragment.PullRequestOverview +import com.materiiapps.gloom.gql.type.PullRequestState +import com.materiiapps.gloom.ui.icons.ClosedPullRequest +import com.materiiapps.gloom.ui.icons.Custom +import com.materiiapps.gloom.ui.icons.DraftPullRequest +import com.materiiapps.gloom.ui.icons.MergedPullRequest +import com.materiiapps.gloom.ui.icons.OpenPullRequest +import com.materiiapps.gloom.ui.theme.colors +import kotlinx.datetime.toInstant + +@Composable +fun PullRequestItem( + pullRequest: PullRequestOverview +) { + val (icon, color, titleCDRes) = when { + pullRequest.state == PullRequestState.MERGED -> Triple( + Icons.Custom.MergedPullRequest, + MaterialTheme.colors.statusPurple, + R.string.cd_pr_title_merged + ) + + pullRequest.state == PullRequestState.CLOSED -> Triple( + Icons.Custom.ClosedPullRequest, + MaterialTheme.colors.statusRed, + R.string.cd_pr_title_closed + ) + + pullRequest.state == PullRequestState.OPEN && pullRequest.isDraft -> Triple( + Icons.Custom.DraftPullRequest, + MaterialTheme.colors.statusGrey, + R.string.cd_pr_title_draft + ) + + else -> Triple(Icons.Custom.OpenPullRequest, MaterialTheme.colors.statusGreen, R.string.cd_pr_title_opened) + } + + IssueOrPRItem( + createdAt = (pullRequest.createdAt as String).toInstant(), + icon = icon, + color = color, + titleCDRes = titleCDRes, + number = pullRequest.number, + title = if (pullRequest.title == "\u200E") stringResource(R.string.msg_issue_untitled) else pullRequest.title, + authorUsername = pullRequest.author?.login, + labels = pullRequest.labels?.nodes?.filterNotNull()?.map { it.name to it.color } ?: emptyList(), + totalAssigned = pullRequest.assignees.totalCount, + assignedUsers = pullRequest.assignees.nodes?.filterNotNull()?.map { it.login to it.avatarUrl } ?: emptyList(), + totalComments = pullRequest.comments.totalCount, + checksStatus = pullRequest.commits.nodes?.firstOrNull()?.commit?.statusCheckRollup?.state, + reviewDecision = pullRequest.reviewDecision + ) +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ReleaseItem.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ReleaseItem.kt new file mode 100644 index 0000000..5593778 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/ReleaseItem.kt @@ -0,0 +1,85 @@ +package com.materiiapps.gloom.ui.widgets.repo + +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.material3.LocalContentColor +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.remember +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.style.TextOverflow +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import cafe.adriel.voyager.navigator.LocalNavigator +import cafe.adriel.voyager.navigator.currentOrThrow +import com.materiiapps.gloom.R +import com.materiiapps.gloom.gql.fragment.ReleaseItem +import com.materiiapps.gloom.ui.components.Label +import com.materiiapps.gloom.ui.screens.release.ReleaseScreen +import com.materiiapps.gloom.ui.theme.DarkGreen +import com.materiiapps.gloom.utils.TimeUtils.getTimeSince +import com.materiiapps.gloom.utils.ifNullOrBlank +import kotlinx.datetime.toInstant + +@Composable +fun ReleaseItem( + repoOwner: String, + repoName: String, + release: ReleaseItem +) { + val ctx = LocalContext.current + val nav = LocalNavigator.currentOrThrow + val createdAt = remember { (release.createdAt as String).toInstant() } + + Column( + verticalArrangement = Arrangement.spacedBy(8.dp), + modifier = Modifier + .clickable { nav.push(ReleaseScreen(repoOwner, repoName, release.tagName)) } + .padding(16.dp) + .fillMaxWidth() + ) { + Text( + text = release.name.ifNullOrBlank { release.tagName }, + style = MaterialTheme.typography.bodyMedium, + fontSize = 15.sp, + fontWeight = FontWeight.Bold, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp) + ) { + Text( + text = ctx.getTimeSince(createdAt), + color = LocalContentColor.current.copy(alpha = 0.5f), + style = MaterialTheme.typography.labelLarge + ) + + if (release.isLatest) { + Label( + text = stringResource(R.string.label_latest), + textColor = DarkGreen + ) + } + + if (release.isPrerelease) { + Label( + text = stringResource(R.string.label_prerelease), + textColor = Color(0xFFFF9800) + ) + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/RepoItem.kt b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/RepoItem.kt index e5901e3..20ea5f5 100644 --- a/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/RepoItem.kt +++ b/app/src/main/java/com/materiiapps/gloom/ui/widgets/repo/RepoItem.kt @@ -10,7 +10,6 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width -import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Circle @@ -30,10 +29,11 @@ import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp -import coil.compose.AsyncImage +import cafe.adriel.voyager.navigator.LocalNavigator +import com.materiiapps.gloom.ui.screens.repo.RepoScreen +import com.materiiapps.gloom.utils.navigate import com.materiiapps.gloom.R import com.materiiapps.gloom.domain.models.ModelRepo -import com.materiiapps.gloom.rest.dto.user.User import com.materiiapps.gloom.ui.components.Avatar @Composable @@ -41,6 +41,7 @@ fun RepoItem( repo: ModelRepo, card: Boolean = false ) { + val nav = LocalNavigator.current Column( Modifier .run { @@ -49,7 +50,10 @@ fun RepoItem( } else this } .background(if (card) MaterialTheme.colorScheme.surfaceColorAtElevation(1.dp) else Color.Transparent) - .clickable { } + .clickable { + if (!repo.name.isNullOrBlank() && !repo.owner?.username.isNullOrBlank()) + nav?.navigate(RepoScreen(repo.owner?.username!!, repo.name)) + } .padding(16.dp) .run { if (card) { diff --git a/app/src/main/java/com/materiiapps/gloom/utils/Constants.kt b/app/src/main/java/com/materiiapps/gloom/utils/Constants.kt index b95acf8..4a498f5 100644 --- a/app/src/main/java/com/materiiapps/gloom/utils/Constants.kt +++ b/app/src/main/java/com/materiiapps/gloom/utils/Constants.kt @@ -4,11 +4,30 @@ package com.materiiapps.gloom.utils import android.util.Base64 import com.materiiapps.gloom.BuildConfig +import com.materiiapps.gloom.gql.type.ReactionContent object Constants { const val DEV_USER_ID = "MDQ6VXNlcjQ0OTkyNTM3" + val REACTION_EMOJIS = mapOf( + ReactionContent.HEART to "♥", + ReactionContent.CONFUSED to "😕", + ReactionContent.EYES to "👀", + ReactionContent.HOORAY to "🎉", + ReactionContent.LAUGH to "😄", + ReactionContent.ROCKET to "🚀", + ReactionContent.THUMBS_UP to "👍", + ReactionContent.THUMBS_DOWN to "👎", + ReactionContent.UNKNOWN__ to "❓" + ) + + object FILE_SIZES { + const val KILO = 1024 + const val MEGA = 1024 * KILO + const val GIGA = 1024 * MEGA + } + } object Credentials { diff --git a/app/src/main/java/com/materiiapps/gloom/utils/PackageInstaller.kt b/app/src/main/java/com/materiiapps/gloom/utils/PackageInstaller.kt new file mode 100644 index 0000000..8a028db --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/utils/PackageInstaller.kt @@ -0,0 +1,40 @@ +package com.materiiapps.gloom.utils + +import android.annotation.SuppressLint +import android.app.PendingIntent +import android.content.Context +import android.content.Intent +import android.content.pm.PackageInstaller.SessionParams +import android.content.pm.PackageManager +import android.os.Build +import com.materiiapps.gloom.service.InstallService +import java.io.File + +fun Context.installApks(vararg apks: File) { + val packageInstaller = packageManager.packageInstaller + val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { + if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) setInstallScenario(PackageManager.INSTALL_SCENARIO_FAST) + } + + val sessionId = packageInstaller.createSession(params) + val session = packageInstaller.openSession(sessionId) + + apks.forEach { apk -> + session.openWrite(apk.name, 0, apk.length()).use { + it.write(apk.readBytes()) + session.fsync(it) + } + } + + val callbackIntent = Intent(this, InstallService::class.java) + + @SuppressLint("UnspecifiedImmutableFlag") + val contentIntent = if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + PendingIntent.getService(this, 0, callbackIntent, PendingIntent.FLAG_MUTABLE) + } else { + PendingIntent.getService(this, 0, callbackIntent, 0) + } + + session.commit(contentIntent.intentSender) + session.close() +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/utils/TimeUtils.kt b/app/src/main/java/com/materiiapps/gloom/utils/TimeUtils.kt new file mode 100644 index 0000000..018ccc6 --- /dev/null +++ b/app/src/main/java/com/materiiapps/gloom/utils/TimeUtils.kt @@ -0,0 +1,66 @@ +package com.materiiapps.gloom.utils + +import android.content.Context +import com.materiiapps.gloom.R +import kotlinx.datetime.Instant +import java.text.SimpleDateFormat +import java.util.Date +import java.util.Locale +import kotlin.math.roundToInt + +object TimeUtils { + private const val SECOND_MILLIS = 1000L + private const val MINUTE_MILLIS = 60 * SECOND_MILLIS + private const val HOUR_MILLIS = 60 * MINUTE_MILLIS + private const val DAY_MILLIS = 24 * HOUR_MILLIS + private const val MONTH_MILLIS = 30 * DAY_MILLIS + private const val YEAR_MILLIS = 12 * MONTH_MILLIS + + private const val DATE_FORMAT = "MMM d" + + fun Context.getTimeSince(date: Instant): String { + val now = System.currentTimeMillis() + val diff = now - date.toEpochMilliseconds() + + return when { + diff < SECOND_MILLIS -> getString(R.string.time_now) + diff < MINUTE_MILLIS -> getString( + R.string.time_since_second, + (diff.toFloat() / SECOND_MILLIS).roundToInt() + ) + + diff < HOUR_MILLIS -> getString( + R.string.time_since_minute, + (diff.toFloat() / MINUTE_MILLIS).roundToInt() + ) + + diff < DAY_MILLIS -> getString( + R.string.time_since_hour, + (diff.toFloat() / HOUR_MILLIS).roundToInt() + ) + + diff < MONTH_MILLIS -> getString( + R.string.time_since_day, + (diff.toFloat() / DAY_MILLIS).roundToInt() + ) + + diff < YEAR_MILLIS -> getString( + R.string.time_since_month, + (diff.toFloat() / MONTH_MILLIS).roundToInt() + ) + + diff >= YEAR_MILLIS -> getString( + R.string.time_since_year, + (diff.toFloat() / YEAR_MILLIS).roundToInt() + ) + + else -> "??" + } + } + + fun formatDate(instant: Instant): String = + SimpleDateFormat( + DATE_FORMAT, + Locale.getDefault() + ).format(Date(instant.toEpochMilliseconds())) +} \ No newline at end of file diff --git a/app/src/main/java/com/materiiapps/gloom/utils/Utils.kt b/app/src/main/java/com/materiiapps/gloom/utils/Utils.kt index dce0f41..73de43c 100644 --- a/app/src/main/java/com/materiiapps/gloom/utils/Utils.kt +++ b/app/src/main/java/com/materiiapps/gloom/utils/Utils.kt @@ -7,6 +7,8 @@ import android.widget.Toast import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color +import androidx.compose.ui.platform.LocalContext +import com.materiiapps.gloom.R import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch @@ -44,9 +46,10 @@ val String.parsedColor: Color get() { val langColor = if (length == 4) this + substring(1..3) else this + val colorStr = if (!langColor.startsWith("#")) "#$langColor" else langColor return try { - Color(android.graphics.Color.parseColor(langColor)) + Color(android.graphics.Color.parseColor(colorStr)) } catch (e: Throwable) { Color.Black } @@ -70,6 +73,28 @@ fun Context.shareText(text: String) = Intent(Intent.ACTION_SEND).apply { } } +fun String?.ifNullOrBlank(block: () -> String) = if (isNullOrBlank()) block() else this + +@Composable +fun getFileSizeString(size: Int) = getFileSizeString(size, LocalContext.current) + +fun getFileSizeString(size: Int, context: Context): String { + return when { + size < Constants.FILE_SIZES.KILO -> context.getString(R.string.file_size_bytes, size) + size < Constants.FILE_SIZES.MEGA -> context.getString( + R.string.file_size_kilobytes, + size / Constants.FILE_SIZES.KILO + ) + + size < Constants.FILE_SIZES.GIGA -> context.getString( + R.string.file_size_megabytes, + size / Constants.FILE_SIZES.MEGA + ) + + else -> context.getString(R.string.file_size_gigabytes, size / Constants.FILE_SIZES.GIGA) + } +} + @Composable fun generateMdHtml( source: String, @@ -77,7 +102,7 @@ fun generateMdHtml( textColor: Color = MaterialTheme.colorScheme.onSurface, linkColor: Color = MaterialTheme.colorScheme.primary ): String { - return """ + return """ Markdown diff --git a/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkHandler.kt b/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkHandler.kt index b44247b..dc67ef3 100644 --- a/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkHandler.kt +++ b/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkHandler.kt @@ -16,6 +16,12 @@ class DeepLinkHandler { linkVisitedListeners[r.split("/")] = callback } + fun removeOnLinkVisitedListener(route: String) { + val r = route.removePrefix("/").split("/") + + linkVisitedListeners.remove(r) + } + private fun getQueryParams(path: String): Map { val parts = path.split("?") diff --git a/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkUtils.kt b/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkUtils.kt index 30f21c8..09ea502 100644 --- a/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkUtils.kt +++ b/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkUtils.kt @@ -5,6 +5,8 @@ import com.materiiapps.gloom.domain.manager.AuthManager import com.materiiapps.gloom.ui.screens.list.RepositoryListScreen import com.materiiapps.gloom.ui.screens.list.StarredReposListScreen import com.materiiapps.gloom.ui.screens.profile.ProfileScreen +import com.materiiapps.gloom.ui.screens.release.ReleaseScreen +import com.materiiapps.gloom.ui.screens.repo.RepoScreen fun DeepLinkHandler.addAllRoutes(navigator: Navigator, auth: AuthManager) { addOnLinkVisitedListener("/{username}") { params, query -> @@ -22,7 +24,14 @@ fun DeepLinkHandler.addAllRoutes(navigator: Navigator, auth: AuthManager) { addOnLinkVisitedListener("/{owner}/{repo}") { params, _ -> val owner = params["owner"]!! val repo = params["repo"]!! - println("Repo $repo by $owner") + navigator push RepoScreen(owner, repo) + } + + addOnLinkVisitedListener("/{owner}/{repo}/releases/tag/{tag}") { params, _ -> + val owner = params["owner"]!! + val repo = params["repo"]!! + val tag = params["tag"]!! + navigator push ReleaseScreen(owner, repo, tag) } addOnLinkVisitedListener("/dashboard") { _, _ -> diff --git a/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkWrapper.kt b/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkWrapper.kt index 82082c9..dd3b163 100644 --- a/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkWrapper.kt +++ b/app/src/main/java/com/materiiapps/gloom/utils/deeplinks/DeepLinkWrapper.kt @@ -3,6 +3,8 @@ package com.materiiapps.gloom.utils.deeplinks import androidx.activity.ComponentActivity import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.remember typealias DeepLinkContent = @Composable (DeepLinkHandler) -> Unit @@ -12,16 +14,19 @@ private var isMounted = false fun ComponentActivity.DeepLinkWrapper( content: DeepLinkContent ) { - val handler = DeepLinkHandler() + val handler = remember { + DeepLinkHandler() + } + + LaunchedEffect(Unit) { + handler.handle(intent) + addOnNewIntentListener { + handler.handle(it) + } + } CompositionLocalProvider(LocalDeepLinkHandler provides handler) { content(handler).also { - if(!isMounted) { - handler.handle(intent) - addOnNewIntentListener { - handler.handle(it) - } - } isMounted = true } } diff --git a/app/src/main/res/drawable/ic_balance_24.xml b/app/src/main/res/drawable/ic_balance_24.xml new file mode 100644 index 0000000..0b6a4bf --- /dev/null +++ b/app/src/main/res/drawable/ic_balance_24.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index badb376..5ccfb3f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -22,19 +22,29 @@ Unfollow Details Share + View More + View Less + Download + Install Nevermind + Cancel + No thanks Pinned + Confirm download + Install this app? Latest Starred Organizations Repositories + Contributors Sponsoring Forked Repository Empty Repository + License %s\'s avatar %d Followers %d Following @@ -44,6 +54,8 @@ Release Tag Followed + Other + Commit %d Contributor %d Contributors @@ -53,6 +65,14 @@ %d Repository %d Repositories + + %d Star + %d Stars + + + %d Fork + %d Forks + Forked from %s §name§%1$s§ §text§created a repository§ @@ -81,4 +101,68 @@ Gloom Developer Gloom Supporter + Details + Code + Issues + Pull Requests + Releases + + + Language + Languages + + + Issue number %1$d with title "%2$s" + Issue number %1$d with title "%2$s" marked as completed + Issue number %1$d with title "%2$s" marked as not planned + + Opened pull request number %1$d with title "%2$s" + Merged pull request number %1$d with title "%2$s" + Closed pull request number %1$d with title "%2$s" + Draft pull request number %1$d with title "%2$s" + Branch %1$s being merged into %2$s + + %1$d comments + + Untitled issue + Untitled pull request + #%1$d by %2$s + §author§%1$s§ released this %2$s + You are about to download %1$s (%2$s), are you sure you want to do that? + We have detected that %1$s is an Android application, would you like to install it? + + Checks failed + Checks + Reviews + + Latest + Pre-release + All releases + Don\'t show this again + + Now + %1$ds + %1$dm + %1$dh + %1$dd + %1$dmo + %1$dy + + %1$d B + %1$d KB + %1$d MB + %1$d GB + + Couldn\'t load release + + Failed to install: Unknown reason + Installation was blocked + One or more apks were invalid or corrupt + Conflicts with an existing app, usually due to mismatched signatures + Not enough available storage to install + Application is incompatible with this device + Installation timed out + App installed successfully! + Installation cancelled + diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4675bdd..1b343ea 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] accompanist = "0.30.1" -agp = "8.2.0-alpha05" +agp = "8.2.0-alpha07" apollo = "3.6.2" coil = "2.4.0" compose = "1.5.0-alpha04" @@ -12,6 +12,7 @@ voyager = "1.0.0-rc06" [libraries] accompanist-flowlayout = { group = "com.google.accompanist", name = "accompanist-flowlayout", version.ref = "accompanist" } +accompanist-pager = { group = "com.google.accompanist", name = "accompanist-pager", version.ref = "accompanist" } accompanist-systemuicontroller = { group = "com.google.accompanist", name = "accompanist-systemuicontroller", version.ref = "accompanist" } accompanist-webview = { group = "com.google.accompanist", name = "accompanist-webview", version.ref = "accompanist" } androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version = "1.7.2" } @@ -51,7 +52,7 @@ kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } [bundles] -accompanist = ["accompanist-systemuicontroller", "accompanist-flowlayout", "accompanist-webview"] +accompanist = ["accompanist-systemuicontroller", "accompanist-flowlayout", "accompanist-webview", "accompanist-pager"] androidx = ["androidx-paging-compose", "androidx-activity-compose", "androidx-lifecycle-runtime-ktx", "androidx-browser", "androidx-core-ktx", "androidx-core-splashscreen"] apollo = ["apollo-runtime", "apollo-normalized-cache"] coil = ["coil", "coil-compose"] diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8ebcb19..80e9778 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Fri Jul 08 13:32:20 EDT 2022 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME \ No newline at end of file