Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf40650c

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent2501d9b commitf40650c

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)

[8]ページ先頭

©2009-2025 Movatter.jp