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

Commit fbb270e

Browse files
author
Michelle Tilley
authored
Merge pull request #473 from atom/mkt-improve-schema-update-status-checks
Modify status check for schema checking
2 parents d05d13b + 9af40e3 commit fbb270e

File tree

3 files changed

+417
-121
lines changed

3 files changed

+417
-121
lines changed

graphql/schema.graphql

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ interface Comment {
319319

320320
# Errors why the current viewer can not edit this comment.
321321
viewerCannotEditReasons: [CommentCannotEditReason!]!
322+
323+
# Did the viewer author this comment.
324+
viewerDidAuthor: Boolean!
322325
}
323326

324327
# The possible errors that will prevent a user from editting a comment.
@@ -440,7 +443,7 @@ type Commit implements Node, GitObject {
440443
}
441444

442445
# Represents a comment on a given Commit.
443-
type CommitComment implements Node, Comment, Reactable {
446+
type CommitComment implements Node, Comment, Reactable, RepositoryNode {
444447
# Identifies the user who created the comment.
445448
author: User
446449

@@ -519,6 +522,9 @@ type CommitComment implements Node, Comment, Reactable {
519522

520523
# Errors why the current viewer can not edit this comment.
521524
viewerCannotEditReasons: [CommentCannotEditReason!]!
525+
526+
# Did the viewer author this comment.
527+
viewerDidAuthor: Boolean!
522528
}
523529

524530
# The connection type for CommitComment.
@@ -923,6 +929,9 @@ type GistComment implements Node, Comment {
923929

924930
# Errors why the current viewer can not edit this comment.
925931
viewerCannotEditReasons: [CommentCannotEditReason!]!
932+
933+
# Did the viewer author this comment.
934+
viewerDidAuthor: Boolean!
926935
}
927936

928937
# The connection type for Gist.
@@ -1161,7 +1170,7 @@ type HeadRefRestoredEvent implements Node, IssueEvent {
11611170
scalar HTML
11621171

11631172
# An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.
1164-
type Issue implements Node, Comment, Issueish, Reactable, Timeline, UniformResourceLocatable {
1173+
type Issue implements Node, Comment, Issueish, Reactable, RepositoryNode, Timeline, UniformResourceLocatable {
11651174
# A list of Users assigned to the Issue.
11661175
assignees(
11671176
# Returns the first _n_ elements from the list.
@@ -1325,6 +1334,9 @@ type Issue implements Node, Comment, Issueish, Reactable, Timeline, UniformResou
13251334
# Errors why the current viewer can not edit this comment.
13261335
viewerCannotEditReasons: [CommentCannotEditReason!]!
13271336

1337+
# Did the viewer author this comment.
1338+
viewerDidAuthor: Boolean!
1339+
13281340
# The websocket channel ID for live updates.
13291341
websocket(
13301342
# The channel to use.
@@ -1333,7 +1345,7 @@ type Issue implements Node, Comment, Issueish, Reactable, Timeline, UniformResou
13331345
}
13341346

13351347
# Represents a comment on an Issue.
1336-
type IssueComment implements Node, Comment, Reactable {
1348+
type IssueComment implements Node, Comment, Reactable, RepositoryNode {
13371349
# Identifies the author of the comment.
13381350
author: User
13391351

@@ -1386,8 +1398,8 @@ type IssueComment implements Node, Comment, Reactable {
13861398
# The websocket channel ID for reaction live updates.
13871399
reactionsWebsocket: String!
13881400

1389-
# The repository associated with this reaction subject.
1390-
repository: Repository! @deprecated(reason: "Future reaction subjects may not be scoped under repositories.")
1401+
# The repository associated with this node.
1402+
repository: Repository!
13911403

13921404
# Identifies the date and time when the object was last updated.
13931405
updatedAt: DateTime!
@@ -1404,6 +1416,9 @@ type IssueComment implements Node, Comment, Reactable {
14041416
# Errors why the current viewer can not edit this comment.
14051417
viewerCannotEditReasons: [CommentCannotEditReason!]!
14061418

1419+
# Did the viewer author this comment.
1420+
viewerDidAuthor: Boolean!
1421+
14071422
# The websocket channel ID for live updates.
14081423
websocket(
14091424
# The channel to use.
@@ -2565,7 +2580,7 @@ interface ProjectOwner {
25652580
}
25662581

25672582
# A repository pull request.
2568-
type PullRequest implements Node, Comment, Issueish, Reactable, Timeline, UniformResourceLocatable {
2583+
type PullRequest implements Node, Comment, Issueish, Reactable, RepositoryNode, Timeline, UniformResourceLocatable {
25692584
# The user associated with this pull request.
25702585
author: User
25712586

@@ -2750,6 +2765,9 @@ type PullRequest implements Node, Comment, Issueish, Reactable, Timeline, Unifor
27502765
# Errors why the current viewer can not edit this comment.
27512766
viewerCannotEditReasons: [CommentCannotEditReason!]!
27522767

2768+
# Did the viewer author this comment.
2769+
viewerDidAuthor: Boolean!
2770+
27532771
# The websocket channel ID for live updates.
27542772
websocket(
27552773
# The channel to use.
@@ -2791,7 +2809,7 @@ enum PullRequestPubSubTopic {
27912809
}
27922810

27932811
# A review object for a given pull request.
2794-
type PullRequestReview implements Node, Comment {
2812+
type PullRequestReview implements Node, Comment, RepositoryNode {
27952813
# Identifies the author associated with this pull request review.
27962814
author: User!
27972815

@@ -2838,6 +2856,9 @@ type PullRequestReview implements Node, Comment {
28382856
# Identifies the pull request associated with this pull request review.
28392857
pullRequest: PullRequest!
28402858

2859+
# The repository associated with this node.
2860+
repository: Repository!
2861+
28412862
# Identifies the current state of the pull request review.
28422863
state: PullRequestReviewState!
28432864

@@ -2858,10 +2879,13 @@ type PullRequestReview implements Node, Comment {
28582879

28592880
# Errors why the current viewer can not edit this comment.
28602881
viewerCannotEditReasons: [CommentCannotEditReason!]!
2882+
2883+
# Did the viewer author this comment.
2884+
viewerDidAuthor: Boolean!
28612885
}
28622886

28632887
# A review comment associated with a given repository pull request.
2864-
type PullRequestReviewComment implements Node, Comment, Reactable {
2888+
type PullRequestReviewComment implements Node, Comment, Reactable, RepositoryNode {
28652889
# The user associated with this review comment.
28662890
author: User
28672891

@@ -2959,6 +2983,9 @@ type PullRequestReviewComment implements Node, Comment, Reactable {
29592983
# Errors why the current viewer can not edit this comment.
29602984
viewerCannotEditReasons: [CommentCannotEditReason!]!
29612985

2986+
# Did the viewer author this comment.
2987+
viewerDidAuthor: Boolean!
2988+
29622989
# The websocket channel ID for live updates.
29632990
websocket(
29642991
# The channel to use.
@@ -4099,6 +4126,12 @@ enum RepositoryLockReason {
40994126
MIGRATING
41004127
}
41014128

4129+
# Represents a object that belongs to a repository.
4130+
interface RepositoryNode {
4131+
# The repository associated with this node.
4132+
repository: Repository!
4133+
}
4134+
41024135
# Ordering options for repository connections
41034136
input RepositoryOrder {
41044137
# The field to order repositories by.

0 commit comments

Comments
 (0)