From d84d088ca0c296ba1da864a9b0c4241e6b03b2d2 Mon Sep 17 00:00:00 2001 From: Create or Update Pull Request Action Date: Tue, 30 Mar 2021 16:14:18 +0000 Subject: [PATCH] WIP: github schema.graphql changed - please review --- example/github/schema.graphql | 89 ++++++++++++++++++++++++++++++----- 1 file changed, 77 insertions(+), 12 deletions(-) diff --git a/example/github/schema.graphql b/example/github/schema.graphql index c37ca5f18f806..7af5bade0be09 100644 --- a/example/github/schema.graphql +++ b/example/github/schema.graphql @@ -2165,7 +2165,7 @@ enum CheckConclusionState { """ A check run. """ -type CheckRun implements Node & UniformResourceLocatable { +type CheckRun implements Node & RequirableByPullRequest & UniformResourceLocatable { """ The check run's annotations """ @@ -2223,13 +2223,18 @@ type CheckRun implements Node & UniformResourceLocatable { id: ID! """ - Whether this check run is required to pass before merging. + Whether this is required to pass before merging for a specific pull request. """ isRequired( """ - The pull request this check is required for + The id of the pull request this is required for """ - pullRequestId: ID! + pullRequestId: ID + + """ + The number of the pull request this is required for + """ + pullRequestNumber: Int ): Boolean! """ @@ -3214,7 +3219,9 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl additions: Int! """ - The pull requests associated with a commit + 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( """ @@ -9660,7 +9667,7 @@ type EnterpriseRepositoryInfo implements Node { id: ID! """ - Identifies if the repository is private. + Identifies if the repository is private or internal. """ isPrivate: Boolean! @@ -24057,6 +24064,16 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab """ 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. """ @@ -30531,7 +30548,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & RepositoryInfo & isMirror: Boolean! """ - Identifies if the repository is private. + Identifies if the repository is private or internal. """ isPrivate: Boolean! @@ -31640,7 +31657,7 @@ interface RepositoryInfo { isMirror: Boolean! """ - Identifies if the repository is private. + Identifies if the repository is private or internal. """ isPrivate: Boolean! @@ -32622,6 +32639,26 @@ Types that can be requested reviewers. """ union RequestedReviewer = Mannequin | Team | User +""" +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! +} + """ Autogenerated input type of RerequestCheckSuite """ @@ -34207,6 +34244,13 @@ type SponsorsTier implements Node { """ adminInfo: SponsorsTierAdminInfo + """ + Get a different tier for this tier's maintainer that is at the same frequency + as this tier but with a 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. """ @@ -34223,6 +34267,17 @@ type SponsorsTier implements Node { 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. """ @@ -34370,6 +34425,11 @@ type Sponsorship implements Node { createdAt: DateTime! id: ID! + """ + Whether this sponsorship represents a one-time payment versus a recurring sponsorship. + """ + isOneTimePayment: Boolean! + """ The entity that is being sponsored """ @@ -34785,7 +34845,7 @@ type StatusCheckRollupContextEdge { """ Represents an individual commit status context """ -type StatusContext implements Node { +type StatusContext implements Node & RequirableByPullRequest { """ The avatar of the OAuth application or the user that created the status """ @@ -34823,13 +34883,18 @@ type StatusContext implements Node { id: ID! """ - Whether this status is required to pass before merging. + Whether this is required to pass before merging for a specific pull request. """ isRequired( """ - The pull request this status is required for + The id of the pull request this is required for + """ + pullRequestId: ID + + """ + The number of the pull request this is required for """ - pullRequestId: ID! + pullRequestNumber: Int ): Boolean! """