Skip to content

Commit cff0413

Browse files
Commit via running ake Sources/issues
1 parent 6a229b1 commit cff0413

File tree

2 files changed

+336
-8
lines changed

2 files changed

+336
-8
lines changed

Sources/issues/Client.swift

Lines changed: 84 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,18 @@ public struct Client: APIProtocol {
4444
/// repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not
4545
/// necessarily assigned to you.
4646
///
47-
///
4847
/// **Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this
4948
/// reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
5049
/// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
5150
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
5251
///
52+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
53+
///
54+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
55+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
56+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
57+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
58+
///
5359
/// - Remark: HTTP `GET /issues`.
5460
/// - Remark: Generated from `#/paths//issues/get(issues/list)`.
5561
public func issues_sol_list(_ input: Operations.issues_sol_list.Input) async throws -> Operations.issues_sol_list.Output {
@@ -255,6 +261,13 @@ public struct Client: APIProtocol {
255261
/// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
256262
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
257263
///
264+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
265+
///
266+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
267+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
268+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
269+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
270+
///
258271
/// - Remark: HTTP `GET /orgs/{org}/issues`.
259272
/// - Remark: Generated from `#/paths//orgs/{org}/issues/get(issues/list-for-org)`.
260273
public func issues_sol_list_hyphen_for_hyphen_org(_ input: Operations.issues_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_org.Output {
@@ -591,6 +604,13 @@ public struct Client: APIProtocol {
591604
/// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
592605
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
593606
///
607+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
608+
///
609+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
610+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
611+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
612+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
613+
///
594614
/// - Remark: HTTP `GET /repos/{owner}/{repo}/issues`.
595615
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)`.
596616
public func issues_sol_list_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_repo.Output {
@@ -810,6 +830,13 @@ public struct Client: APIProtocol {
810830
/// This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
811831
/// and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
812832
///
833+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
834+
///
835+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
836+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
837+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
838+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
839+
///
813840
/// - Remark: HTTP `POST /repos/{owner}/{repo}/issues`.
814841
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)`.
815842
public func issues_sol_create(_ input: Operations.issues_sol_create.Input) async throws -> Operations.issues_sol_create.Output {
@@ -1035,6 +1062,13 @@ public struct Client: APIProtocol {
10351062
///
10361063
/// By default, issue comments are ordered by ascending ID.
10371064
///
1065+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1066+
///
1067+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1068+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1069+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1070+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1071+
///
10381072
/// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments`.
10391073
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)`.
10401074
public func issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output {
@@ -1187,6 +1221,13 @@ public struct Client: APIProtocol {
11871221
///
11881222
/// You can use the REST API to get comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
11891223
///
1224+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1225+
///
1226+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1227+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1228+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1229+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1230+
///
11901231
/// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}`.
11911232
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/get(issues/get-comment)`.
11921233
public func issues_sol_get_hyphen_comment(_ input: Operations.issues_sol_get_hyphen_comment.Input) async throws -> Operations.issues_sol_get_hyphen_comment.Output {
@@ -1275,6 +1316,13 @@ public struct Client: APIProtocol {
12751316
///
12761317
/// You can use the REST API to update comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
12771318
///
1319+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1320+
///
1321+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1322+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1323+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1324+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1325+
///
12781326
/// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}`.
12791327
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/patch(issues/update-comment)`.
12801328
public func issues_sol_update_hyphen_comment(_ input: Operations.issues_sol_update_hyphen_comment.Input) async throws -> Operations.issues_sol_update_hyphen_comment.Output {
@@ -1665,6 +1713,13 @@ public struct Client: APIProtocol {
16651713
/// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
16661714
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
16671715
///
1716+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1717+
///
1718+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1719+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1720+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1721+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1722+
///
16681723
/// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}`.
16691724
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)`.
16701725
public func issues_sol_get(_ input: Operations.issues_sol_get.Input) async throws -> Operations.issues_sol_get.Output {
@@ -1799,6 +1854,13 @@ public struct Client: APIProtocol {
17991854
///
18001855
/// Issue owners and users with push access can edit an issue.
18011856
///
1857+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1858+
///
1859+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1860+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1861+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1862+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1863+
///
18021864
/// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}`.
18031865
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)`.
18041866
public func issues_sol_update(_ input: Operations.issues_sol_update.Input) async throws -> Operations.issues_sol_update.Output {
@@ -2237,6 +2299,13 @@ public struct Client: APIProtocol {
22372299
///
22382300
/// Issue comments are ordered by ascending ID.
22392301
///
2302+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
2303+
///
2304+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
2305+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
2306+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
2307+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
2308+
///
22402309
/// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/comments`.
22412310
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)`.
22422311
public func issues_sol_list_hyphen_comments(_ input: Operations.issues_sol_list_hyphen_comments.Input) async throws -> Operations.issues_sol_list_hyphen_comments.Output {
@@ -2374,14 +2443,20 @@ public struct Client: APIProtocol {
23742443
}
23752444
/// Create an issue comment
23762445
///
2377-
///
23782446
/// You can use the REST API to create comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
23792447
///
23802448
/// This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications).
23812449
/// Creating content too quickly using this endpoint may result in secondary rate limiting.
23822450
/// For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
23832451
/// and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
23842452
///
2453+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
2454+
///
2455+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
2456+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
2457+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
2458+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
2459+
///
23852460
/// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/comments`.
23862461
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)`.
23872462
public func issues_sol_create_hyphen_comment(_ input: Operations.issues_sol_create_hyphen_comment.Input) async throws -> Operations.issues_sol_create_hyphen_comment.Output {
@@ -4783,6 +4858,13 @@ public struct Client: APIProtocol {
47834858
/// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
47844859
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
47854860
///
4861+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
4862+
///
4863+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
4864+
/// - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
4865+
/// - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
4866+
/// - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
4867+
///
47864868
/// - Remark: HTTP `GET /user/issues`.
47874869
/// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)`.
47884870
public func issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output {

0 commit comments

Comments
 (0)