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/issues/Client.swift
+10-20Lines changed: 10 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,8 @@ public struct Client: APIProtocol {
44
44
/// repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not
45
45
/// necessarily assigned to you.
46
46
///
47
-
/// **Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this
48
-
/// reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
49
-
/// 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
50
-
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
47
+
/// > [!NOTE]
48
+
/// > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by 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 request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
51
49
///
52
50
/// 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
51
///
@@ -256,10 +254,8 @@ public struct Client: APIProtocol {
256
254
///
257
255
/// List issues in an organization assigned to the authenticated user.
258
256
///
259
-
/// **Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this
260
-
/// reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
261
-
/// 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
262
-
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
257
+
/// > [!NOTE]
258
+
/// > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by 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 request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
263
259
///
264
260
/// 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
261
///
@@ -599,10 +595,8 @@ public struct Client: APIProtocol {
599
595
///
600
596
/// List issues in a repository. Only open issues will be listed.
601
597
///
602
-
/// **Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this
603
-
/// reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
604
-
/// 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
605
-
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
598
+
/// > [!NOTE]
599
+
/// > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by 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 request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
606
600
///
607
601
/// 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
602
///
@@ -1708,10 +1702,8 @@ public struct Client: APIProtocol {
1708
1702
/// access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe
1709
1703
/// to the [`issues`](https://docs.github.com/webhooks/event-payloads/#issues) webhook.
1710
1704
///
1711
-
/// **Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this
1712
-
/// reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
1713
-
/// 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
1714
-
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
1705
+
/// > [!NOTE]
1706
+
/// > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by 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 request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
1715
1707
///
1716
1708
/// 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
1709
///
@@ -4855,10 +4847,8 @@ public struct Client: APIProtocol {
4855
4847
///
4856
4848
/// List issues across owned and member repositories assigned to the authenticated user.
4857
4849
///
4858
-
/// **Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this
4859
-
/// reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
4860
-
/// 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
4861
-
/// request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
4850
+
/// > [!NOTE]
4851
+
/// > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by 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 request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
4862
4852
///
4863
4853
/// 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)."
0 commit comments