Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit e84da3e

Browse files
authored
Merge pull request #2522 from atom/schema-update/1600392059541
GraphQL schema update
2 parents 5df0b63 + dd367fc commit e84da3e

File tree

1 file changed

+187
-2
lines changed

1 file changed

+187
-2
lines changed

graphql/schema.graphql

Lines changed: 187 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,24 @@ type BaseRefChangedEvent implements Node {
600600
id: ID!
601601
}
602602

603+
"""Represents a 'base_ref_deleted' event on a given pull request."""
604+
type BaseRefDeletedEvent implements Node {
605+
"""Identifies the actor who performed the event."""
606+
actor: Actor
607+
608+
"""
609+
Identifies the name of the Ref associated with the `base_ref_deleted` event.
610+
"""
611+
baseRefName: String
612+
613+
"""Identifies the date and time when the object was created."""
614+
createdAt: DateTime!
615+
id: ID!
616+
617+
"""PullRequest referenced by event."""
618+
pullRequest: PullRequest
619+
}
620+
603621
"""Represents a 'base_ref_force_pushed' event on a given pull request."""
604622
type BaseRefForcePushedEvent implements Node {
605623
"""Identifies the actor who performed the event."""
@@ -1865,6 +1883,12 @@ type Commit implements Node & GitObject & Subscribable & UniformResourceLocatabl
18651883
last: Int
18661884
): DeploymentConnection
18671885

1886+
"""The tree entry representing the file located at the given path."""
1887+
file(
1888+
"""The path for the file"""
1889+
path: String!
1890+
): TreeEntry
1891+
18681892
"""
18691893
The linear commit history starting from (and including) this commit, in the same order as `git log`.
18701894
"""
@@ -3333,6 +3357,11 @@ input CreateIssueInput {
33333357
"""An array of Node IDs for projects associated with this issue."""
33343358
projectIds: [ID!]
33353359

3360+
"""
3361+
The name of an issue template in the repository, assigns labels and assignees from the template to the issue
3362+
"""
3363+
issueTemplate: String
3364+
33363365
"""A unique identifier for the client performing the mutation."""
33373366
clientMutationId: String
33383367
}
@@ -7477,6 +7506,21 @@ enum IssueState {
74777506
CLOSED
74787507
}
74797508

7509+
"""A repository issue template."""
7510+
type IssueTemplate {
7511+
"""The template purpose."""
7512+
about: String
7513+
7514+
"""The suggested issue body."""
7515+
body: String
7516+
7517+
"""The template name."""
7518+
name: String!
7519+
7520+
"""The suggested issue title."""
7521+
title: String
7522+
}
7523+
74807524
"""The connection type for IssueTimelineItem."""
74817525
type IssueTimelineConnection {
74827526
"""A list of edges."""
@@ -8376,6 +8420,27 @@ type MarketplaceListingEdge {
83768420
node: MarketplaceListing
83778421
}
83788422

8423+
"""Autogenerated input type of MarkFileAsViewed"""
8424+
input MarkFileAsViewedInput {
8425+
"""The Node ID of the pull request."""
8426+
pullRequestId: ID!
8427+
8428+
"""The path of the file to mark as viewed"""
8429+
path: String!
8430+
8431+
"""A unique identifier for the client performing the mutation."""
8432+
clientMutationId: String
8433+
}
8434+
8435+
"""Autogenerated return type of MarkFileAsViewed"""
8436+
type MarkFileAsViewedPayload {
8437+
"""A unique identifier for the client performing the mutation."""
8438+
clientMutationId: String
8439+
8440+
"""The updated pull request."""
8441+
pullRequest: PullRequest
8442+
}
8443+
83798444
"""Autogenerated input type of MarkPullRequestReadyForReview"""
83808445
input MarkPullRequestReadyForReviewInput {
83818446
"""ID of the pull request to be marked as ready for review."""
@@ -9202,6 +9267,9 @@ type Mutation {
92029267
"""Lock a lockable object"""
92039268
lockLockable(input: LockLockableInput!): LockLockablePayload
92049269

9270+
"""Mark a pull request file as viewed"""
9271+
markFileAsViewed(input: MarkFileAsViewedInput!): MarkFileAsViewedPayload
9272+
92059273
"""Marks a pull request ready for review."""
92069274
markPullRequestReadyForReview(input: MarkPullRequestReadyForReviewInput!): MarkPullRequestReadyForReviewPayload
92079275

@@ -9283,6 +9351,9 @@ type Mutation {
92839351
"""Unlock a lockable object"""
92849352
unlockLockable(input: UnlockLockableInput!): UnlockLockablePayload
92859353

9354+
"""Unmark a pull request file as viewed"""
9355+
unmarkFileAsViewed(input: UnmarkFileAsViewedInput!): UnmarkFileAsViewedPayload
9356+
92869357
"""Unmark an issue as a duplicate of another issue."""
92879358
unmarkIssueAsDuplicate(input: UnmarkIssueAsDuplicateInput!): UnmarkIssueAsDuplicatePayload
92889359

@@ -13601,6 +13672,45 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable &
1360113672
"""The moment the editor made the last edit"""
1360213673
lastEditedAt: DateTime
1360313674

13675+
"""A list of latest reviews per user associated with the pull request."""
13676+
latestOpinionatedReviews(
13677+
"""Returns the elements in the list that come after the specified cursor."""
13678+
after: String
13679+
13680+
"""
13681+
Returns the elements in the list that come before the specified cursor.
13682+
"""
13683+
before: String
13684+
13685+
"""Returns the first _n_ elements from the list."""
13686+
first: Int
13687+
13688+
"""Returns the last _n_ elements from the list."""
13689+
last: Int
13690+
13691+
"""Only return reviews from user who have write access to the repository"""
13692+
writersOnly: Boolean = false
13693+
): PullRequestReviewConnection
13694+
13695+
"""
13696+
A list of latest reviews per user associated with the pull request that are not also pending review.
13697+
"""
13698+
latestReviews(
13699+
"""Returns the elements in the list that come after the specified cursor."""
13700+
after: String
13701+
13702+
"""
13703+
Returns the elements in the list that come before the specified cursor.
13704+
"""
13705+
before: String
13706+
13707+
"""Returns the first _n_ elements from the list."""
13708+
first: Int
13709+
13710+
"""Returns the last _n_ elements from the list."""
13711+
last: Int
13712+
): PullRequestReviewConnection
13713+
1360413714
"""`true` if the pull request is locked"""
1360513715
locked: Boolean!
1360613716

@@ -13846,6 +13956,9 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable &
1384613956
"""Whether or not the viewer can apply suggestion."""
1384713957
viewerCanApplySuggestion: Boolean!
1384813958

13959+
"""Check if the viewer can restore the deleted head ref."""
13960+
viewerCanDeleteHeadRef: Boolean!
13961+
1384913962
"""Can user react to this subject"""
1385013963
viewerCanReact: Boolean!
1385113964

@@ -14552,6 +14665,12 @@ type PullRequestReviewThread implements Node {
1455214665
diffSide: DiffSide!
1455314666
id: ID!
1455414667

14668+
"""Whether or not the thread has been collapsed (outdated or resolved)"""
14669+
isCollapsed: Boolean!
14670+
14671+
"""Indicates whether this thread was outdated by newer changes."""
14672+
isOutdated: Boolean!
14673+
1455514674
"""Whether this thread has been resolved"""
1455614675
isResolved: Boolean!
1455714676

@@ -14566,6 +14685,9 @@ type PullRequestReviewThread implements Node {
1456614685
"""
1456714686
originalStartLine: Int
1456814687

14688+
"""Identifies the file path of this thread."""
14689+
path: String!
14690+
1456914691
"""Identifies the pull request associated with this thread."""
1457014692
pullRequest: PullRequest!
1457114693

@@ -14585,6 +14707,9 @@ type PullRequestReviewThread implements Node {
1458514707
"""
1458614708
startLine: Int
1458714709

14710+
"""Indicates whether the current viewer can reply to this thread."""
14711+
viewerCanReply: Boolean!
14712+
1458814713
"""Whether or not the viewer can resolve this thread"""
1458914714
viewerCanResolve: Boolean!
1459014715

@@ -14658,7 +14783,7 @@ type PullRequestTimelineConnection {
1465814783
}
1465914784

1466014785
"""An item in an pull request timeline"""
14661-
union PullRequestTimelineItem = AssignedEvent | BaseRefForcePushedEvent | ClosedEvent | Commit | CommitCommentThread | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MergedEvent | MilestonedEvent | PullRequestReview | PullRequestReviewComment | PullRequestReviewThread | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent
14786+
union PullRequestTimelineItem = AssignedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | Commit | CommitCommentThread | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MergedEvent | MilestonedEvent | PullRequestReview | PullRequestReviewComment | PullRequestReviewThread | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent
1466214787

1466314788
"""An edge in a connection."""
1466414789
type PullRequestTimelineItemEdge {
@@ -14670,7 +14795,7 @@ type PullRequestTimelineItemEdge {
1467014795
}
1467114796

1467214797
"""An item in a pull request timeline"""
14673-
union PullRequestTimelineItems = AddedToProjectEvent | AssignedEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | 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
14798+
union PullRequestTimelineItems = AddedToProjectEvent | AssignedEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | 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
1467414799

1467514800
"""The connection type for PullRequestTimelineItems."""
1467614801
type PullRequestTimelineItemsConnection {
@@ -14746,6 +14871,9 @@ enum PullRequestTimelineItemsItemType {
1474614871
"""Represents a 'base_ref_force_pushed' event on a given pull request."""
1474714872
BASE_REF_FORCE_PUSHED_EVENT
1474814873

14874+
"""Represents a 'base_ref_deleted' event on a given pull request."""
14875+
BASE_REF_DELETED_EVENT
14876+
1474914877
"""Represents a 'deployed' event on a given pull request."""
1475014878
DEPLOYED_EVENT
1475114879

@@ -17608,6 +17736,9 @@ type Repository implements Node & ProjectOwner & PackageOwner & Subscribable & S
1760817736
last: Int
1760917737
): CommitCommentConnection!
1761017738

17739+
"""Returns a list of contact links associated to the repository"""
17740+
contactLinks: [RepositoryContactLink!]
17741+
1761117742
"""Identifies the date and time when the object was created."""
1761217743
createdAt: DateTime!
1761317744

@@ -17737,6 +17868,9 @@ type Repository implements Node & ProjectOwner & PackageOwner & Subscribable & S
1773717868
"""Indicates if the repository is unmaintained."""
1773817869
isArchived: Boolean!
1773917870

17871+
"""Returns true if blank issue creation is allowed"""
17872+
isBlankIssuesEnabled: Boolean!
17873+
1774017874
"""Returns whether or not this repository disabled."""
1774117875
isDisabled: Boolean!
1774217876

@@ -17755,6 +17889,9 @@ type Repository implements Node & ProjectOwner & PackageOwner & Subscribable & S
1775517889
"""Identifies if the repository is private."""
1775617890
isPrivate: Boolean!
1775717891

17892+
"""Returns true if this repository has a security policy"""
17893+
isSecurityPolicyEnabled: Boolean
17894+
1775817895
"""
1775917896
Identifies if the repository is a template that can be used to generate new repositories.
1776017897
"""
@@ -17774,6 +17911,9 @@ type Repository implements Node & ProjectOwner & PackageOwner & Subscribable & S
1777417911
number: Int!
1777517912
): IssueOrPullRequest
1777617913

17914+
"""Returns a list of issue templates associated to the repository"""
17915+
issueTemplates: [IssueTemplate!]
17916+
1777717917
"""A list of issues that have been opened in the repository."""
1777817918
issues(
1777917919
"""Ordering options for issues returned from the connection."""
@@ -18142,6 +18282,9 @@ type Repository implements Node & ProjectOwner & PackageOwner & Subscribable & S
1814218282
"""The HTTP path for this repository"""
1814318283
resourcePath: URI!
1814418284

18285+
"""The security policy URL."""
18286+
securityPolicyUrl: URI
18287+
1814518288
"""
1814618289
A description of the repository, rendered to HTML without any links in it.
1814718290
"""
@@ -18371,6 +18514,18 @@ type RepositoryConnection {
1837118514
totalDiskUsage: Int!
1837218515
}
1837318516

18517+
"""A repository contact link."""
18518+
type RepositoryContactLink {
18519+
"""The contact link purpose."""
18520+
about: String!
18521+
18522+
"""The contact link name."""
18523+
name: String!
18524+
18525+
"""The contact link URL."""
18526+
url: URI!
18527+
}
18528+
1837418529
"""The reason a repository is listed as 'contributed'."""
1837518530
enum RepositoryContributionType {
1837618531
"""Created a commit"""
@@ -21778,6 +21933,12 @@ type Tree implements Node & GitObject {
2177821933

2177921934
"""Represents a Git tree entry."""
2178021935
type TreeEntry {
21936+
"""The extension of the file"""
21937+
extension: String
21938+
21939+
"""Whether or not this tree entry is generated"""
21940+
isGenerated: Boolean!
21941+
2178121942
"""Entry file mode."""
2178221943
mode: Int!
2178321944

@@ -21790,6 +21951,9 @@ type TreeEntry {
2179021951
"""Entry file Git object ID."""
2179121952
oid: GitObjectID!
2179221953

21954+
"""The full path of the file."""
21955+
path: String
21956+
2179321957
"""The Repository the tree entry belongs to"""
2179421958
repository: Repository!
2179521959

@@ -21978,6 +22142,27 @@ type UnmarkedAsDuplicateEvent implements Node {
2197822142
id: ID!
2197922143
}
2198022144

22145+
"""Autogenerated input type of UnmarkFileAsViewed"""
22146+
input UnmarkFileAsViewedInput {
22147+
"""The Node ID of the pull request."""
22148+
pullRequestId: ID!
22149+
22150+
"""The path of the file to mark as unviewed"""
22151+
path: String!
22152+
22153+
"""A unique identifier for the client performing the mutation."""
22154+
clientMutationId: String
22155+
}
22156+
22157+
"""Autogenerated return type of UnmarkFileAsViewed"""
22158+
type UnmarkFileAsViewedPayload {
22159+
"""A unique identifier for the client performing the mutation."""
22160+
clientMutationId: String
22161+
22162+
"""The updated pull request."""
22163+
pullRequest: PullRequest
22164+
}
22165+
2198122166
"""Autogenerated input type of UnmarkIssueAsDuplicate"""
2198222167
input UnmarkIssueAsDuplicateInput {
2198322168
"""ID of the issue or pull request currently marked as a duplicate."""

0 commit comments

Comments
 (0)