Skip to content

Commit c04cdbe

Browse files
octokitbotgr2m
authored andcommitted
feat: viewerSubscription no longer required (#49)
see https://developer.github.com/v4/changelog/
1 parent 33fcae6 commit c04cdbe

File tree

2 files changed

+28
-61
lines changed

2 files changed

+28
-61
lines changed

schema.graphql

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ type Commit implements GitObject & Node & Subscribable {
717717
viewerCanSubscribe: Boolean!
718718

719719
# Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
720-
viewerSubscription: SubscriptionState!
720+
viewerSubscription: SubscriptionState
721721

722722
# Returns a URL to download a zipball archive for a repository.
723723
# Note: For private repositories, these links are temporary and expire after five minutes.
@@ -2162,7 +2162,7 @@ type Issue implements Assignable & Closable & Comment & Labelable & Lockable & N
21622162
viewerDidAuthor: Boolean!
21632163

21642164
# Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
2165-
viewerSubscription: SubscriptionState!
2165+
viewerSubscription: SubscriptionState
21662166
}
21672167

21682168
# Represents a comment on an Issue.
@@ -3284,7 +3284,7 @@ type Mutation {
32843284
# Updates a pull request review comment.
32853285
updatePullRequestReviewComment(input: UpdatePullRequestReviewCommentInput!): UpdatePullRequestReviewCommentPayload
32863286

3287-
# Updates viewers repository subscription state.
3287+
# Updates the state for subscribable subjects.
32883288
updateSubscription(input: UpdateSubscriptionInput!): UpdateSubscriptionPayload
32893289

32903290
# Replaces the repository's topics with the given topics.
@@ -4467,7 +4467,7 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
44674467
viewerDidAuthor: Boolean!
44684468

44694469
# Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
4470-
viewerSubscription: SubscriptionState!
4470+
viewerSubscription: SubscriptionState
44714471
}
44724472

44734473
# Represents a Git commit part of a pull request.
@@ -5620,7 +5620,7 @@ input RemoveReactionInput {
56205620
# A unique identifier for the client performing the mutation.
56215621
clientMutationId: String
56225622

5623-
# The name of the emoji to react with.
5623+
# The name of the emoji reaction to remove.
56245624
content: ReactionContent!
56255625

56265626
# The Node ID of the subject to modify.
@@ -6244,7 +6244,7 @@ type Repository implements Node & ProjectOwner & RepositoryInfo & Starrable & Su
62446244
viewerPermission: RepositoryPermission
62456245

62466246
# Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
6247-
viewerSubscription: SubscriptionState!
6247+
viewerSubscription: SubscriptionState
62486248

62496249
# A list of users watching the repository.
62506250
watchers(
@@ -7096,7 +7096,7 @@ interface Subscribable {
70967096
viewerCanSubscribe: Boolean!
70977097

70987098
# Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
7099-
viewerSubscription: SubscriptionState!
7099+
viewerSubscription: SubscriptionState
71007100
}
71017101

71027102
# Represents a 'subscribed' event on a given `Subscribable`.
@@ -7120,9 +7120,6 @@ enum SubscriptionState {
71207120
# The User is notified of all conversations.
71217121
SUBSCRIBED
71227122

7123-
# Subscriptions are currently unavailable
7124-
UNAVAILABLE
7125-
71267123
# The User is only notified when particpating or @mentioned.
71277124
UNSUBSCRIBED
71287125
}
@@ -7351,7 +7348,7 @@ type Team implements Node & Subscribable {
73517348
viewerCanSubscribe: Boolean!
73527349

73537350
# Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
7354-
viewerSubscription: SubscriptionState!
7351+
viewerSubscription: SubscriptionState
73557352
}
73567353

73577354
# The connection type for Team.

schema.json

Lines changed: 20 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5461,13 +5461,9 @@
54615461
"description": "Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.",
54625462
"args": [],
54635463
"type": {
5464-
"kind": "NON_NULL",
5465-
"name": null,
5466-
"ofType": {
5467-
"kind": "ENUM",
5468-
"name": "SubscriptionState",
5469-
"ofType": null
5470-
}
5464+
"kind": "ENUM",
5465+
"name": "SubscriptionState",
5466+
"ofType": null
54715467
},
54725468
"isDeprecated": false,
54735469
"deprecationReason": null
@@ -7951,13 +7947,9 @@
79517947
"description": "Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.",
79527948
"args": [],
79537949
"type": {
7954-
"kind": "NON_NULL",
7955-
"name": null,
7956-
"ofType": {
7957-
"kind": "ENUM",
7958-
"name": "SubscriptionState",
7959-
"ofType": null
7960-
}
7950+
"kind": "ENUM",
7951+
"name": "SubscriptionState",
7952+
"ofType": null
79617953
},
79627954
"isDeprecated": false,
79637955
"deprecationReason": null
@@ -11358,13 +11350,9 @@
1135811350
"description": "Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.",
1135911351
"args": [],
1136011352
"type": {
11361-
"kind": "NON_NULL",
11362-
"name": null,
11363-
"ofType": {
11364-
"kind": "ENUM",
11365-
"name": "SubscriptionState",
11366-
"ofType": null
11367-
}
11353+
"kind": "ENUM",
11354+
"name": "SubscriptionState",
11355+
"ofType": null
1136811356
},
1136911357
"isDeprecated": false,
1137011358
"deprecationReason": null
@@ -12404,13 +12392,9 @@
1240412392
"description": "Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.",
1240512393
"args": [],
1240612394
"type": {
12407-
"kind": "NON_NULL",
12408-
"name": null,
12409-
"ofType": {
12410-
"kind": "ENUM",
12411-
"name": "SubscriptionState",
12412-
"ofType": null
12413-
}
12395+
"kind": "ENUM",
12396+
"name": "SubscriptionState",
12397+
"ofType": null
1241412398
},
1241512399
"isDeprecated": false,
1241612400
"deprecationReason": null
@@ -12472,12 +12456,6 @@
1247212456
"description": "The User is never notified.",
1247312457
"isDeprecated": false,
1247412458
"deprecationReason": null
12475-
},
12476-
{
12477-
"name": "UNAVAILABLE",
12478-
"description": "Subscriptions are currently unavailable",
12479-
"isDeprecated": false,
12480-
"deprecationReason": null
1248112459
}
1248212460
],
1248312461
"possibleTypes": null
@@ -13730,13 +13708,9 @@
1373013708
"description": "Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.",
1373113709
"args": [],
1373213710
"type": {
13733-
"kind": "NON_NULL",
13734-
"name": null,
13735-
"ofType": {
13736-
"kind": "ENUM",
13737-
"name": "SubscriptionState",
13738-
"ofType": null
13739-
}
13711+
"kind": "ENUM",
13712+
"name": "SubscriptionState",
13713+
"ofType": null
1374013714
},
1374113715
"isDeprecated": false,
1374213716
"deprecationReason": null
@@ -20320,13 +20294,9 @@
2032020294
"description": "Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.",
2032120295
"args": [],
2032220296
"type": {
20323-
"kind": "NON_NULL",
20324-
"name": null,
20325-
"ofType": {
20326-
"kind": "ENUM",
20327-
"name": "SubscriptionState",
20328-
"ofType": null
20329-
}
20297+
"kind": "ENUM",
20298+
"name": "SubscriptionState",
20299+
"ofType": null
2033020300
},
2033120301
"isDeprecated": false,
2033220302
"deprecationReason": null
@@ -36024,7 +35994,7 @@
3602435994
},
3602535995
{
3602635996
"name": "updateSubscription",
36027-
"description": "Updates viewers repository subscription state.",
35997+
"description": "Updates the state for subscribable subjects.",
3602835998
"args": [
3602935999
{
3603036000
"name": "input",
@@ -36263,7 +36233,7 @@
3626336233
},
3626436234
{
3626536235
"name": "content",
36266-
"description": "The name of the emoji to react with.",
36236+
"description": "The name of the emoji reaction to remove.",
3626736237
"type": {
3626836238
"kind": "NON_NULL",
3626936239
"name": null,

0 commit comments

Comments
 (0)