Skip to content

Commit 6c99533

Browse files
Commit via running ake Sources/reactions
1 parent 33e5602 commit 6c99533

File tree

2 files changed

+120
-60
lines changed

2 files changed

+120
-60
lines changed

Sources/reactions/Client.swift

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public struct Client: APIProtocol {
4242
///
4343
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
4444
///
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`.
4647
///
4748
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
4849
///
@@ -144,7 +145,8 @@ public struct Client: APIProtocol {
144145
///
145146
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
146147
///
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`.
148150
///
149151
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
150152
///
@@ -244,7 +246,8 @@ public struct Client: APIProtocol {
244246
}
245247
/// Delete team discussion comment reaction
246248
///
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`.
248251
///
249252
/// Delete a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
250253
///
@@ -294,7 +297,8 @@ public struct Client: APIProtocol {
294297
///
295298
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
296299
///
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`.
298302
///
299303
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
300304
///
@@ -395,7 +399,8 @@ public struct Client: APIProtocol {
395399
///
396400
/// A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
397401
///
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`.
399404
///
400405
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
401406
///
@@ -494,7 +499,8 @@ public struct Client: APIProtocol {
494499
}
495500
/// Delete team discussion reaction
496501
///
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`.
498504
///
499505
/// Delete a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
500506
///
@@ -777,7 +783,8 @@ public struct Client: APIProtocol {
777783
}
778784
/// Delete a commit comment reaction
779785
///
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`.
781788
///
782789
/// Delete a reaction to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment).
783790
///
@@ -1058,7 +1065,8 @@ public struct Client: APIProtocol {
10581065
}
10591066
/// Delete an issue comment reaction
10601067
///
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`.
10621070
///
10631071
/// Delete a reaction to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment).
10641072
///
@@ -1361,7 +1369,8 @@ public struct Client: APIProtocol {
13611369
}
13621370
/// Delete an issue reaction
13631371
///
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`.
13651374
///
13661375
/// Delete a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue).
13671376
///
@@ -1642,7 +1651,8 @@ public struct Client: APIProtocol {
16421651
}
16431652
/// Delete a pull request comment reaction
16441653
///
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.`
16461656
///
16471657
/// Delete a reaction to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request).
16481658
///
@@ -1923,7 +1933,8 @@ public struct Client: APIProtocol {
19231933
}
19241934
/// Delete a release reaction
19251935
///
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`.
19271938
///
19281939
/// Delete a reaction to a [release](https://docs.github.com/rest/releases/releases#get-a-release).
19291940
///
@@ -1968,7 +1979,8 @@ public struct Client: APIProtocol {
19681979
}
19691980
/// List reactions for a team discussion comment (Legacy)
19701981
///
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.
19721984
///
19731985
/// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
19741986
///
@@ -2068,7 +2080,8 @@ public struct Client: APIProtocol {
20682080
}
20692081
/// Create reaction for a team discussion comment (Legacy)
20702082
///
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.
20722085
///
20732086
/// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
20742087
///
@@ -2150,7 +2163,8 @@ public struct Client: APIProtocol {
21502163
}
21512164
/// List reactions for a team discussion (Legacy)
21522165
///
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.
21542168
///
21552169
/// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
21562170
///
@@ -2249,7 +2263,8 @@ public struct Client: APIProtocol {
22492263
}
22502264
/// Create reaction for a team discussion (Legacy)
22512265
///
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.
22532268
///
22542269
/// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
22552270
///

0 commit comments

Comments
 (0)