You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/reactions/Client.swift
+38-10Lines changed: 38 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,12 @@ public struct Client: APIProtocol {
40
40
}
41
41
/// List reactions for a team discussion comment
42
42
///
43
-
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
43
+
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
44
44
///
45
45
/// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.
46
46
///
47
+
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
@@ -138,10 +140,14 @@ public struct Client: APIProtocol {
138
140
}
139
141
/// Create reaction for a team discussion comment
140
142
///
141
-
/// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
143
+
/// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
144
+
///
145
+
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
142
146
///
143
147
/// **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.
144
148
///
149
+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
@@ -240,7 +246,9 @@ public struct Client: APIProtocol {
240
246
///
241
247
/// **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id`.
242
248
///
243
-
/// Delete a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
249
+
/// Delete a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
250
+
///
251
+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion-comment)`.
@@ -284,10 +292,12 @@ public struct Client: APIProtocol {
284
292
}
285
293
/// List reactions for a team discussion
286
294
///
287
-
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
295
+
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
288
296
///
289
297
/// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.
290
298
///
299
+
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
@@ -381,10 +391,14 @@ public struct Client: APIProtocol {
381
391
}
382
392
/// Create reaction for a team discussion
383
393
///
384
-
/// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
394
+
/// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
395
+
///
396
+
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
385
397
///
386
398
/// **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.
387
399
///
400
+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
@@ -482,7 +496,9 @@ public struct Client: APIProtocol {
482
496
///
483
497
/// **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id`.
484
498
///
485
-
/// Delete a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
499
+
/// Delete a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
500
+
///
501
+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion)`.
@@ -1954,7 +1970,9 @@ public struct Client: APIProtocol {
1954
1970
///
1955
1971
/// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.
1956
1972
///
1957
-
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
1973
+
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
1974
+
///
1975
+
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
/// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-legacy)`.
@@ -2052,7 +2070,11 @@ public struct Client: APIProtocol {
2052
2070
///
2053
2071
/// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.
2054
2072
///
2055
-
/// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
2073
+
/// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
2074
+
///
2075
+
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
2076
+
///
2077
+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
/// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-legacy)`.
@@ -2130,7 +2152,9 @@ public struct Client: APIProtocol {
2130
2152
///
2131
2153
/// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.
2132
2154
///
2133
-
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
2155
+
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
2156
+
///
2157
+
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
/// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-legacy)`.
@@ -2227,7 +2251,11 @@ public struct Client: APIProtocol {
2227
2251
///
2228
2252
/// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.
2229
2253
///
2230
-
/// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
2254
+
/// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
2255
+
///
2256
+
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
2257
+
///
2258
+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
0 commit comments