Skip to content

Commit f215410

Browse files
Commit via running ake Sources/reactions
1 parent dd2cd25 commit f215410

File tree

2 files changed

+152
-40
lines changed

2 files changed

+152
-40
lines changed

Sources/reactions/Client.swift

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ public struct Client: APIProtocol {
4040
}
4141
/// List reactions for a team discussion comment
4242
///
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).
4444
///
4545
/// **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`.
4646
///
47+
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
48+
///
4749
/// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`.
4850
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-in-org)`.
4951
public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output {
@@ -138,10 +140,14 @@ public struct Client: APIProtocol {
138140
}
139141
/// Create reaction for a team discussion comment
140142
///
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.
142146
///
143147
/// **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`.
144148
///
149+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
150+
///
145151
/// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`.
146152
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-in-org)`.
147153
public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output {
@@ -240,7 +246,9 @@ public struct Client: APIProtocol {
240246
///
241247
/// **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`.
242248
///
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.
244252
///
245253
/// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}`.
246254
/// - 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 {
284292
}
285293
/// List reactions for a team discussion
286294
///
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).
288296
///
289297
/// **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`.
290298
///
299+
/// OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
300+
///
291301
/// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`.
292302
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-in-org)`.
293303
public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output {
@@ -381,10 +391,14 @@ public struct Client: APIProtocol {
381391
}
382392
/// Create reaction for a team discussion
383393
///
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.
385397
///
386398
/// **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`.
387399
///
400+
/// OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
401+
///
388402
/// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`.
389403
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-in-org)`.
390404
public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output {
@@ -482,7 +496,9 @@ public struct Client: APIProtocol {
482496
///
483497
/// **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`.
484498
///
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.
486502
///
487503
/// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}`.
488504
/// - 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 {
19541970
///
19551971
/// **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.
19561972
///
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.
19581976
///
19591977
/// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`.
19601978
/// - 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 {
20522070
///
20532071
/// **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.
20542072
///
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.
20562078
///
20572079
/// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`.
20582080
/// - 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 {
21302152
///
21312153
/// **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.
21322154
///
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.
21342158
///
21352159
/// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/reactions`.
21362160
/// - 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 {
22272251
///
22282252
/// **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.
22292253
///
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.
22312259
///
22322260
/// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/reactions`.
22332261
/// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-legacy)`.

0 commit comments

Comments
 (0)