github-schema 1.12.1 → 1.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1216,6 +1216,31 @@ type AddedToProjectEvent implements Node {
1216
1216
  projectColumnName: String!
1217
1217
  }
1218
1218
 
1219
+ """
1220
+ An announcement banner for an enterprise or organization.
1221
+ """
1222
+ type AnnouncementBanner {
1223
+ """
1224
+ The date the announcement was created
1225
+ """
1226
+ createdAt: DateTime!
1227
+
1228
+ """
1229
+ The expiration date of the announcement, if any
1230
+ """
1231
+ expiresAt: DateTime
1232
+
1233
+ """
1234
+ Whether the announcement can be dismissed by the user
1235
+ """
1236
+ isUserDismissible: Boolean!
1237
+
1238
+ """
1239
+ The text of the announcement
1240
+ """
1241
+ message: String
1242
+ }
1243
+
1219
1244
  """
1220
1245
  Represents an announcement banner.
1221
1246
  """
@@ -1223,22 +1248,22 @@ interface AnnouncementBannerI {
1223
1248
  """
1224
1249
  The text of the announcement
1225
1250
  """
1226
- announcement: String
1251
+ announcement: String @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
1227
1252
 
1228
1253
  """
1229
1254
  The date the announcement was created
1230
1255
  """
1231
- announcementCreatedAt: DateTime
1256
+ announcementCreatedAt: DateTime @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
1232
1257
 
1233
1258
  """
1234
1259
  The expiration date of the announcement, if any
1235
1260
  """
1236
- announcementExpiresAt: DateTime
1261
+ announcementExpiresAt: DateTime @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
1237
1262
 
1238
1263
  """
1239
1264
  Whether the announcement can be dismissed by the user
1240
1265
  """
1241
- announcementUserDismissible: Boolean
1266
+ announcementUserDismissible: Boolean @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
1242
1267
  }
1243
1268
 
1244
1269
  """
@@ -12783,22 +12808,27 @@ type Enterprise implements AnnouncementBannerI & Node {
12783
12808
  """
12784
12809
  The text of the announcement
12785
12810
  """
12786
- announcement: String
12811
+ announcement: String @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
12812
+
12813
+ """
12814
+ The announcement banner set on this enterprise, if any. Only visible to members of the enterprise.
12815
+ """
12816
+ announcementBanner: AnnouncementBanner
12787
12817
 
12788
12818
  """
12789
12819
  The date the announcement was created
12790
12820
  """
12791
- announcementCreatedAt: DateTime
12821
+ announcementCreatedAt: DateTime @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
12792
12822
 
12793
12823
  """
12794
12824
  The expiration date of the announcement, if any
12795
12825
  """
12796
- announcementExpiresAt: DateTime
12826
+ announcementExpiresAt: DateTime @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
12797
12827
 
12798
12828
  """
12799
12829
  Whether the announcement can be dismissed by the user
12800
12830
  """
12801
- announcementUserDismissible: Boolean
12831
+ announcementUserDismissible: Boolean @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
12802
12832
 
12803
12833
  """
12804
12834
  A URL pointing to the enterprise's public avatar.
@@ -12982,6 +13012,41 @@ type Enterprise implements AnnouncementBannerI & Node {
12982
13012
  """
12983
13013
  resourcePath: URI!
12984
13014
 
13015
+ """
13016
+ Returns a single ruleset from the current enterprise by ID.
13017
+ """
13018
+ ruleset(
13019
+ """
13020
+ The ID of the ruleset to be returned.
13021
+ """
13022
+ databaseId: Int!
13023
+ ): RepositoryRuleset
13024
+
13025
+ """
13026
+ A list of rulesets for this enterprise.
13027
+ """
13028
+ rulesets(
13029
+ """
13030
+ Returns the elements in the list that come after the specified cursor.
13031
+ """
13032
+ after: String
13033
+
13034
+ """
13035
+ Returns the elements in the list that come before the specified cursor.
13036
+ """
13037
+ before: String
13038
+
13039
+ """
13040
+ Returns the first _n_ elements from the list.
13041
+ """
13042
+ first: Int
13043
+
13044
+ """
13045
+ Returns the last _n_ elements from the list.
13046
+ """
13047
+ last: Int
13048
+ ): RepositoryRulesetConnection
13049
+
12985
13050
  """
12986
13051
  The URL-friendly identifier for the enterprise.
12987
13052
  """
@@ -20645,41 +20710,6 @@ type MarkFileAsViewedPayload {
20645
20710
  pullRequest: PullRequest
20646
20711
  }
20647
20712
 
20648
- """
20649
- Autogenerated input type of MarkNotificationAsDone
20650
- """
20651
- input MarkNotificationAsDoneInput {
20652
- """
20653
- A unique identifier for the client performing the mutation.
20654
- """
20655
- clientMutationId: String
20656
-
20657
- """
20658
- The NotificationThread id.
20659
- """
20660
- id: ID!
20661
- }
20662
-
20663
- """
20664
- Autogenerated return type of MarkNotificationAsDone.
20665
- """
20666
- type MarkNotificationAsDonePayload {
20667
- """
20668
- A unique identifier for the client performing the mutation.
20669
- """
20670
- clientMutationId: String
20671
-
20672
- """
20673
- Did the operation succeed?
20674
- """
20675
- success: Boolean
20676
-
20677
- """
20678
- The user that the notification belongs to.
20679
- """
20680
- viewer: User
20681
- }
20682
-
20683
20713
  """
20684
20714
  Autogenerated input type of MarkProjectV2AsTemplate
20685
20715
  """
@@ -24161,16 +24191,6 @@ type Mutation {
24161
24191
  input: MarkFileAsViewedInput!
24162
24192
  ): MarkFileAsViewedPayload
24163
24193
 
24164
- """
24165
- Marks a notification as done
24166
- """
24167
- markNotificationAsDone(
24168
- """
24169
- Parameters for MarkNotificationAsDone
24170
- """
24171
- input: MarkNotificationAsDoneInput!
24172
- ): MarkNotificationAsDonePayload
24173
-
24174
24194
  """
24175
24195
  Mark a project as a template. Note that only projects which are owned by an Organization can be marked as a template.
24176
24196
  """
@@ -24782,16 +24802,6 @@ type Mutation {
24782
24802
  input: UnresolveReviewThreadInput!
24783
24803
  ): UnresolveReviewThreadPayload
24784
24804
 
24785
- """
24786
- Unsubscribes from notifications
24787
- """
24788
- unsubscribeFromNotifications(
24789
- """
24790
- Parameters for UnsubscribeFromNotifications
24791
- """
24792
- input: UnsubscribeFromNotificationsInput!
24793
- ): UnsubscribeFromNotificationsPayload
24794
-
24795
24805
  """
24796
24806
  Update a branch protection rule
24797
24807
  """
@@ -25205,6 +25215,16 @@ type Mutation {
25205
25215
  input: UpdateProjectV2DraftIssueInput!
25206
25216
  ): UpdateProjectV2DraftIssuePayload
25207
25217
 
25218
+ """
25219
+ Update a project field.
25220
+ """
25221
+ updateProjectV2Field(
25222
+ """
25223
+ Parameters for UpdateProjectV2Field
25224
+ """
25225
+ input: UpdateProjectV2FieldInput!
25226
+ ): UpdateProjectV2FieldPayload
25227
+
25208
25228
  """
25209
25229
  This mutation updates the value of a field for an item in a Project. Currently
25210
25230
  only single-select, text, number, date, and iteration fields are supported.
@@ -29092,22 +29112,27 @@ type Organization implements Actor & AnnouncementBannerI & MemberStatusable & No
29092
29112
  """
29093
29113
  The text of the announcement
29094
29114
  """
29095
- announcement: String
29115
+ announcement: String @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
29116
+
29117
+ """
29118
+ The announcement banner set on this organization, if any. Only visible to members of the organization's enterprise.
29119
+ """
29120
+ announcementBanner: AnnouncementBanner
29096
29121
 
29097
29122
  """
29098
29123
  The date the announcement was created
29099
29124
  """
29100
- announcementCreatedAt: DateTime
29125
+ announcementCreatedAt: DateTime @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
29101
29126
 
29102
29127
  """
29103
29128
  The expiration date of the announcement, if any
29104
29129
  """
29105
- announcementExpiresAt: DateTime
29130
+ announcementExpiresAt: DateTime @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
29106
29131
 
29107
29132
  """
29108
29133
  Whether the announcement can be dismissed by the user
29109
29134
  """
29110
- announcementUserDismissible: Boolean
29135
+ announcementUserDismissible: Boolean @deprecated(reason: "The individual `announcementX` fields do not follow our standard GraphQL patterns. Use the `announcementBanner` object instead. Removal on 2025-04-01 UTC.")
29111
29136
 
29112
29137
  """
29113
29138
  Determine if this repository owner has any items that can be pinned to their profile.
@@ -37834,6 +37859,12 @@ enum PullRequestOrderField {
37834
37859
  Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
37835
37860
  """
37836
37861
  type PullRequestParameters {
37862
+ """
37863
+ When merging pull requests, you can allow any combination of merge commits,
37864
+ squashing, or rebasing. At least one option must be enabled.
37865
+ """
37866
+ allowedMergeMethods: [String!]
37867
+
37837
37868
  """
37838
37869
  New, reviewable commits pushed will dismiss previous pull request review approvals.
37839
37870
  """
@@ -37864,6 +37895,12 @@ type PullRequestParameters {
37864
37895
  Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
37865
37896
  """
37866
37897
  input PullRequestParametersInput {
37898
+ """
37899
+ When merging pull requests, you can allow any combination of merge commits,
37900
+ squashing, or rebasing. At least one option must be enabled.
37901
+ """
37902
+ allowedMergeMethods: [String!]
37903
+
37867
37904
  """
37868
37905
  New, reviewable commits pushed will dismiss previous pull request review approvals.
37869
37906
  """
@@ -48131,6 +48168,11 @@ enum RepositoryRulesetTarget {
48131
48168
  """
48132
48169
  PUSH
48133
48170
 
48171
+ """
48172
+ repository
48173
+ """
48174
+ REPOSITORY
48175
+
48134
48176
  """
48135
48177
  Tag
48136
48178
  """
@@ -57994,36 +58036,6 @@ type UnresolveReviewThreadPayload {
57994
58036
  thread: PullRequestReviewThread
57995
58037
  }
57996
58038
 
57997
- """
57998
- Autogenerated input type of UnsubscribeFromNotifications
57999
- """
58000
- input UnsubscribeFromNotificationsInput {
58001
- """
58002
- A unique identifier for the client performing the mutation.
58003
- """
58004
- clientMutationId: String
58005
-
58006
- """
58007
- The NotificationThread IDs of the objects to unsubscribe from.
58008
- """
58009
- ids: [ID!]!
58010
- }
58011
-
58012
- """
58013
- Autogenerated return type of UnsubscribeFromNotifications.
58014
- """
58015
- type UnsubscribeFromNotificationsPayload {
58016
- """
58017
- A unique identifier for the client performing the mutation.
58018
- """
58019
- clientMutationId: String
58020
-
58021
- """
58022
- Did the operation succeed?
58023
- """
58024
- success: Boolean
58025
- }
58026
-
58027
58039
  """
58028
58040
  Represents an 'unsubscribed' event on a given `Subscribable`.
58029
58041
  """
@@ -59933,6 +59945,48 @@ type UpdateProjectV2DraftIssuePayload {
59933
59945
  draftIssue: DraftIssue
59934
59946
  }
59935
59947
 
59948
+ """
59949
+ Autogenerated input type of UpdateProjectV2Field
59950
+ """
59951
+ input UpdateProjectV2FieldInput {
59952
+ """
59953
+ A unique identifier for the client performing the mutation.
59954
+ """
59955
+ clientMutationId: String
59956
+
59957
+ """
59958
+ The ID of the field to update.
59959
+ """
59960
+ fieldId: ID!
59961
+
59962
+ """
59963
+ The name to update.
59964
+ """
59965
+ name: String
59966
+
59967
+ """
59968
+ Options for a field of type SINGLE_SELECT. If empty, no changes will be made
59969
+ to the options. If values are present, they will overwrite the existing
59970
+ options for the field.
59971
+ """
59972
+ singleSelectOptions: [ProjectV2SingleSelectFieldOptionInput!]
59973
+ }
59974
+
59975
+ """
59976
+ Autogenerated return type of UpdateProjectV2Field.
59977
+ """
59978
+ type UpdateProjectV2FieldPayload {
59979
+ """
59980
+ A unique identifier for the client performing the mutation.
59981
+ """
59982
+ clientMutationId: String
59983
+
59984
+ """
59985
+ The updated field.
59986
+ """
59987
+ projectV2Field: ProjectV2FieldConfiguration
59988
+ }
59989
+
59936
59990
  """
59937
59991
  Autogenerated input type of UpdateProjectV2
59938
59992
  """
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-schema",
3
- "version": "1.12.1",
3
+ "version": "1.12.3",
4
4
  "description": "GitHub's GraphQL schema",
5
5
  "type": "module",
6
6
  "author": {
@@ -8,7 +8,7 @@
8
8
  "email": "lucasnrgaard@gmail.com",
9
9
  "url": "https://luxass.dev"
10
10
  },
11
- "packageManager": "pnpm@9.14.2",
11
+ "packageManager": "pnpm@9.14.4",
12
12
  "license": "MIT",
13
13
  "homepage": "https://github.com/luxass/github-schema",
14
14
  "repository": {