Skip to content

Commit e4390f7

Browse files
committed
Merge pull request github#739 from github/update-1426621044
2 parents 2501d9b + f40650c commit e4390f7

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

content/v3/issues.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ read more about the use of media types in the API [here](/v3/media/).
1212

1313
## List issues
1414

15+
<%= fetch_content(:prs_as_issues) %>
16+
1517
List all issues across all the authenticated user's visible repositories
1618
including owned repositories, member repositories, and organization
1719
repositories:
@@ -44,6 +46,8 @@ Name | Type | Description
4446

4547
## List issues for a repository
4648

49+
<%= fetch_content(:prs_as_issues) %>
50+
4751
GET /repos/:owner/:repo/issues
4852

4953
### Parameters
@@ -67,11 +71,7 @@ Name | Type | Description
6771

6872
## Get a single issue
6973

70-
{{#tip}}
71-
72-
**Note**: Every pull request is an issue, but not every issue is a pull request. If the issue is not a pull request, the response omits the `pull_request` attribute.
73-
74-
{{/tip}}
74+
<%= fetch_content(:prs_as_issues) %>
7575

7676
GET /repos/:owner/:repo/issues/:number
7777

lib/resources.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ def webhook_payload(event_name)
131131
`content_type` | `string` | The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
132132
`secret` | `string` | If provided, payloads will be delivered with an `X-Hub-Signature` header. The value of this header is computed as the [HMAC hex digest of the body, using the `secret` as the key][hub-signature].
133133
`insecure_ssl` | `string` | Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `"0"` (verification is performed) and `"1"` (verification is not performed). The default is `"0"`. **We strongly recommend not setting this to "1" as you are subject to man-in-the-middle and other attacks.**
134+
''',
135+
"PRS_AS_ISSUES" =>
136+
'''
137+
{{#tip}}
138+
139+
**Note**: In the past, pull requests and issues were more closely aligned than they are now. As far as the API is concerned, every pull request is an issue, but not every issue is a pull request.
140+
141+
This endpoint may also return pull requests in the response. If an issue *is* a pull request, the object will include a `pull_request` key.
142+
143+
{{/tip}}
134144
'''
135145
}
136146

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy