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
+30-15Lines changed: 30 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,8 @@ public struct Client: APIProtocol {
42
42
///
43
43
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
44
44
///
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`.
45
+
/// > [!NOTE]
46
+
/// > 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
47
///
47
48
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
48
49
///
@@ -144,7 +145,8 @@ public struct Client: APIProtocol {
144
145
///
145
146
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
146
147
///
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`.
148
+
/// > [!NOTE]
149
+
/// > 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`.
148
150
///
149
151
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
150
152
///
@@ -244,7 +246,8 @@ public struct Client: APIProtocol {
244
246
}
245
247
/// Delete team discussion comment reaction
246
248
///
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`.
249
+
/// > [!NOTE]
250
+
/// > 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`.
248
251
///
249
252
/// Delete a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
250
253
///
@@ -294,7 +297,8 @@ public struct Client: APIProtocol {
294
297
///
295
298
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
296
299
///
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`.
300
+
/// > [!NOTE]
301
+
/// > 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`.
298
302
///
299
303
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
300
304
///
@@ -395,7 +399,8 @@ public struct Client: APIProtocol {
395
399
///
396
400
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
397
401
///
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`.
402
+
/// > [!NOTE]
403
+
/// > 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`.
399
404
///
400
405
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
401
406
///
@@ -494,7 +499,8 @@ public struct Client: APIProtocol {
494
499
}
495
500
/// Delete team discussion reaction
496
501
///
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`.
502
+
/// > [!NOTE]
503
+
/// > 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`.
498
504
///
499
505
/// Delete a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
500
506
///
@@ -777,7 +783,8 @@ public struct Client: APIProtocol {
777
783
}
778
784
/// Delete a commit comment reaction
779
785
///
780
-
/// **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`.
786
+
/// > [!NOTE]
787
+
/// > You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`.
781
788
///
782
789
/// Delete a reaction to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment).
783
790
///
@@ -1058,7 +1065,8 @@ public struct Client: APIProtocol {
1058
1065
}
1059
1066
/// Delete an issue comment reaction
1060
1067
///
1061
-
/// **Note:** You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`.
1068
+
/// > [!NOTE]
1069
+
/// > You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`.
1062
1070
///
1063
1071
/// Delete a reaction to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment).
1064
1072
///
@@ -1361,7 +1369,8 @@ public struct Client: APIProtocol {
1361
1369
}
1362
1370
/// Delete an issue reaction
1363
1371
///
1364
-
/// **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`.
1372
+
/// > [!NOTE]
1373
+
/// > You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`.
1365
1374
///
1366
1375
/// Delete a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue).
1367
1376
///
@@ -1642,7 +1651,8 @@ public struct Client: APIProtocol {
1642
1651
}
1643
1652
/// Delete a pull request comment reaction
1644
1653
///
1645
-
/// **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.`
1654
+
/// > [!NOTE]
1655
+
/// > You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.`
1646
1656
///
1647
1657
/// Delete a reaction to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request).
1648
1658
///
@@ -1923,7 +1933,8 @@ public struct Client: APIProtocol {
1923
1933
}
1924
1934
/// Delete a release reaction
1925
1935
///
1926
-
/// **Note:** You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id`.
1936
+
/// > [!NOTE]
1937
+
/// > You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id`.
1927
1938
///
1928
1939
/// Delete a reaction to a [release](https://docs.github.com/rest/releases/releases#get-a-release).
1929
1940
///
@@ -1968,7 +1979,8 @@ public struct Client: APIProtocol {
1968
1979
}
1969
1980
/// List reactions for a team discussion comment (Legacy)
1970
1981
///
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.
1982
+
/// > [!WARNING]
1983
+
/// > **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.
1972
1984
///
1973
1985
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
1974
1986
///
@@ -2068,7 +2080,8 @@ public struct Client: APIProtocol {
2068
2080
}
2069
2081
/// Create reaction for a team discussion comment (Legacy)
2070
2082
///
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.
2083
+
/// > [!WARNING]
2084
+
/// > **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.
2072
2085
///
2073
2086
/// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
2074
2087
///
@@ -2150,7 +2163,8 @@ public struct Client: APIProtocol {
2150
2163
}
2151
2164
/// List reactions for a team discussion (Legacy)
2152
2165
///
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.
2166
+
/// > [!WARNING]
2167
+
/// > **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.
2154
2168
///
2155
2169
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
2156
2170
///
@@ -2249,7 +2263,8 @@ public struct Client: APIProtocol {
2249
2263
}
2250
2264
/// Create reaction for a team discussion (Legacy)
2251
2265
///
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.
2266
+
/// > [!WARNING]
2267
+
/// > **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.
2253
2268
///
2254
2269
/// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
0 commit comments