Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds Issue[closedByPullRequestsReferences] , viewerCanLabel, MergeQueue[GroupingStrategy, MergeMethod, Parameters] #971

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
62470f5
WIP: schema.graphql changed - please review
Jul 15, 2024
d52a3d5
build: schema.json and schema.d.ts updated
Jul 15, 2024
c647065
WIP: schema.graphql changed - please review
Jul 23, 2024
abe7509
WIP: schema.graphql changed - please review
Jul 24, 2024
20d2daa
WIP: schema.graphql changed - please review
Aug 9, 2024
c109d1f
WIP: schema.graphql changed - please review
Aug 30, 2024
db2772d
WIP: schema.graphql changed - please review
Sep 10, 2024
698eddb
WIP: schema.graphql changed - please review
Sep 11, 2024
269a0e9
WIP: schema.graphql changed - please review
Sep 11, 2024
21c3bff
WIP: schema.graphql changed - please review
Sep 13, 2024
1a0e7af
WIP: schema.graphql changed - please review
Sep 17, 2024
587f61d
WIP: schema.graphql changed - please review
Sep 27, 2024
0f3c7e1
WIP: schema.graphql changed - please review
Sep 30, 2024
550354f
WIP: schema.graphql changed - please review
Oct 2, 2024
f07fc2d
WIP: schema.graphql changed - please review
Oct 2, 2024
fcfc433
WIP: schema.graphql changed - please review
Oct 4, 2024
0bce406
WIP: schema.graphql changed - please review
Oct 7, 2024
ebfe0fd
WIP: schema.graphql changed - please review
Oct 8, 2024
07f8307
WIP: schema.graphql changed - please review
Oct 8, 2024
2337d93
WIP: schema.graphql changed - please review
Oct 11, 2024
d637d4c
WIP: schema.graphql changed - please review
Oct 17, 2024
12d1136
WIP: schema.graphql changed - please review
Oct 18, 2024
819a3d5
WIP: schema.graphql changed - please review
Oct 31, 2024
63265ba
WIP: schema.graphql changed - please review
Nov 6, 2024
9c31f20
WIP: schema.graphql changed - please review
Nov 25, 2024
c907f94
WIP: schema.graphql changed - please review
Nov 26, 2024
0044461
WIP: schema.graphql changed - please review
Dec 4, 2024
30276df
WIP: schema.graphql changed - please review
Dec 9, 2024
a19557c
WIP: schema.graphql changed - please review
Dec 9, 2024
22a75db
WIP: schema.graphql changed - please review
Dec 14, 2024
df6eda4
WIP: schema.graphql changed - please review
Dec 17, 2024
95f572f
WIP: schema.graphql changed - please review
Dec 18, 2024
9835556
WIP: schema.graphql changed - please review
Dec 18, 2024
3c3ad0b
WIP: schema.graphql changed - please review
Dec 18, 2024
516b2c1
WIP: schema.graphql changed - please review
Dec 18, 2024
ef052de
WIP: schema.graphql changed - please review
Dec 18, 2024
b330e92
WIP: schema.graphql changed - please review
Dec 18, 2024
90bed93
WIP: schema.graphql changed - please review
Dec 18, 2024
90c1278
WIP: schema.graphql changed - please review
Dec 18, 2024
197159f
WIP: schema.graphql changed - please review
Dec 19, 2024
c60e893
WIP: schema.graphql changed - please review
Jan 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9188,6 +9188,8 @@ export type Issue = Assignable & Closable & Comment & Deletable & Labelable & Lo
closed: Scalars['Boolean']['output'];
/** Identifies the date and time when the object was closed. */
closedAt?: Maybe<Scalars['DateTime']['output']>;
/** List of open pull requests referenced from this issue */
closedByPullRequestsReferences?: Maybe<PullRequestConnection>;
/** A list of comments associated with the Issue. */
comments: IssueCommentConnection;
/** Identifies the date and time when the object was created. */
Expand Down Expand Up @@ -9303,6 +9305,18 @@ export type IssueAssigneesArgs = {
};


/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
export type IssueClosedByPullRequestsReferencesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
includeClosedPrs?: InputMaybe<Scalars['Boolean']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
orderByState?: InputMaybe<Scalars['Boolean']['input']>;
userLinkedOnly?: InputMaybe<Scalars['Boolean']['input']>;
};


/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
export type IssueCommentsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
Expand Down
207 changes: 202 additions & 5 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11578,6 +11578,11 @@ type Discussion implements Closable & Comment & Deletable & Labelable & Lockable
"""
viewerCanDelete: Boolean!

"""
Indicates if the viewer can edit labels for this object.
"""
viewerCanLabel: Boolean!
Copy link
Contributor

Choose a reason for hiding this comment

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

This property does not appear in the public schema


"""
Can user react to this subject
"""
Expand Down Expand Up @@ -17947,6 +17952,46 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"""
closedAt: DateTime

"""
List of open pull requests referenced from this issue
"""
closedByPullRequestsReferences(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: String

"""
Returns the elements in the list that come before the specified cursor.
"""
before: String

"""
Returns the first _n_ elements from the list.
"""
first: Int

"""
Include closed PRs in results
"""
includeClosedPrs: Boolean = false

"""
Returns the last _n_ elements from the list.
"""
last: Int

"""
Return results ordered by state
"""
orderByState: Boolean = false

"""
Return only manually linked PRs
"""
userLinkedOnly: Boolean = false
): PullRequestConnection

"""
A list of comments associated with the Issue.
"""
Expand Down Expand Up @@ -18492,6 +18537,11 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"""
viewerCanDelete: Boolean!

"""
Indicates if the viewer can edit labels for this object.
"""
viewerCanLabel: Boolean!

"""
Can user react to this subject
"""
Expand Down Expand Up @@ -19676,6 +19726,11 @@ interface Labelable {
"""
orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}
): LabelConnection

"""
Indicates if the viewer can edit labels for this object.
"""
viewerCanLabel: Boolean!
}

"""
Expand Down Expand Up @@ -21723,6 +21778,44 @@ enum MergeQueueEntryState {
UNMERGEABLE
}

"""
When set to ALLGREEN, the merge commit created by merge queue for each PR in the
group must pass all required checks to merge. When set to HEADGREEN, only the
commit at the head of the merge group, i.e. the commit containing changes from
all of the PRs in the group, must pass its required checks to merge.
"""
enum MergeQueueGroupingStrategy {
"""
The merge commit created by merge queue for each PR in the group must pass all required checks to merge
"""
ALLGREEN

"""
Only the commit at the head of the merge group must pass its required checks to merge.
"""
HEADGREEN
}

"""
Method to use when merging changes from queued pull requests.
"""
enum MergeQueueMergeMethod {
"""
Merge commit
"""
MERGE

"""
Rebase and merge
"""
REBASE

"""
Squash and merge
"""
SQUASH
}

"""
The possible merging strategies for a merge queue.
"""
Expand All @@ -21738,6 +21831,100 @@ enum MergeQueueMergingStrategy {
HEADGREEN
}

"""
Merges must be performed via a merge queue.
"""
type MergeQueueParameters {
"""
Maximum time for a required status check to report a conclusion. After this
much time has elapsed, checks that have not reported a conclusion will be
assumed to have failed
"""
checkResponseTimeoutMinutes: Int!

"""
When set to ALLGREEN, the merge commit created by merge queue for each PR in
the group must pass all required checks to merge. When set to HEADGREEN, only
the commit at the head of the merge group, i.e. the commit containing changes
from all of the PRs in the group, must pass its required checks to merge.
"""
groupingStrategy: MergeQueueGroupingStrategy!

"""
Limit the number of queued pull requests requesting checks and workflow runs at the same time.
"""
maxEntriesToBuild: Int!

"""
The maximum number of PRs that will be merged together in a group.
"""
maxEntriesToMerge: Int!

"""
Method to use when merging changes from queued pull requests.
"""
mergeMethod: MergeQueueMergeMethod!

"""
The minimum number of PRs that will be merged together in a group.
"""
minEntriesToMerge: Int!

"""
The time merge queue should wait after the first PR is added to the queue for
the minimum group size to be met. After this time has elapsed, the minimum
group size will be ignored and a smaller group will be merged.
"""
minEntriesToMergeWaitMinutes: Int!
}

"""
Merges must be performed via a merge queue.
"""
input MergeQueueParametersInput {
"""
Maximum time for a required status check to report a conclusion. After this
much time has elapsed, checks that have not reported a conclusion will be
assumed to have failed
"""
checkResponseTimeoutMinutes: Int!

"""
When set to ALLGREEN, the merge commit created by merge queue for each PR in
the group must pass all required checks to merge. When set to HEADGREEN, only
the commit at the head of the merge group, i.e. the commit containing changes
from all of the PRs in the group, must pass its required checks to merge.
"""
groupingStrategy: MergeQueueGroupingStrategy!

"""
Limit the number of queued pull requests requesting checks and workflow runs at the same time.
"""
maxEntriesToBuild: Int!

"""
The maximum number of PRs that will be merged together in a group.
"""
maxEntriesToMerge: Int!

"""
Method to use when merging changes from queued pull requests.
"""
mergeMethod: MergeQueueMergeMethod!

"""
The minimum number of PRs that will be merged together in a group.
"""
minEntriesToMerge: Int!

"""
The time merge queue should wait after the first PR is added to the queue for
the minimum group size to be met. After this time has elapsed, the minimum
group size will be ignored and a smaller group will be merged.
"""
minEntriesToMergeWaitMinutes: Int!
}

"""
Detailed status information about a pull request merge.
"""
Expand Down Expand Up @@ -36916,6 +37103,11 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"""
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
"""
Expand Down Expand Up @@ -47166,13 +47358,13 @@ enum RepositoryRuleType {

"""
Prevent commits that include files with specified file extensions from being
pushed to the commit graph. NOTE: Thie rule is in beta and subject to change
pushed to the commit graph. NOTE: This rule is in beta and subject to change
"""
FILE_EXTENSION_RESTRICTION

"""
Prevent commits that include changes in specified file paths from being pushed
to the commit graph. NOTE: Thie rule is in beta and subject to change
to the commit graph. NOTE: This rule is in beta and subject to change
"""
FILE_PATH_RESTRICTION

Expand All @@ -47183,14 +47375,14 @@ enum RepositoryRuleType {

"""
Prevent commits that include file paths that exceed a specified character
limit from being pushed to the commit graph. NOTE: Thie rule is in beta and
limit from being pushed to the commit graph. NOTE: This rule is in beta and
subject to change
"""
MAX_FILE_PATH_LENGTH

"""
Prevent commits that exceed a specified file size limit from being pushed to
the commit. NOTE: Thie rule is in beta and subject to change
the commit. NOTE: This rule is in beta and subject to change
"""
MAX_FILE_SIZE

Expand Down Expand Up @@ -48895,7 +49087,7 @@ enum RuleEnforcement {
"""
Types which can be parameters for `RepositoryRule` objects.
"""
union RuleParameters = BranchNamePatternParameters | CodeScanningParameters | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters | FileExtensionRestrictionParameters | FilePathRestrictionParameters | MaxFilePathLengthParameters | MaxFileSizeParameters | PullRequestParameters | RequiredDeploymentsParameters | RequiredStatusChecksParameters | TagNamePatternParameters | UpdateParameters | WorkflowsParameters
union RuleParameters = BranchNamePatternParameters | CodeScanningParameters | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters | FileExtensionRestrictionParameters | FilePathRestrictionParameters | MaxFilePathLengthParameters | MaxFileSizeParameters | MergeQueueParameters | PullRequestParameters | RequiredDeploymentsParameters | RequiredStatusChecksParameters | TagNamePatternParameters | UpdateParameters | WorkflowsParameters

"""
Specifies the parameters for a `RepositoryRule` object. Only one of the fields should be specified.
Expand Down Expand Up @@ -48946,6 +49138,11 @@ input RuleParametersInput {
"""
maxFileSize: MaxFileSizeParametersInput

"""
Parameters used for the `merge_queue` rule type
"""
mergeQueue: MergeQueueParametersInput

"""
Parameters used for the `pull_request` rule type
"""
Expand Down
Loading