Get an issue
Returns the original issue metadata. Pull request numbers are also supported by the issues API.
GET
/github/repos/{owner}/{repo}/issues/{issue_number}No authentication requiredPath parameters3
| Name | Type | Description |
|---|---|---|
owner* | string | The repository owner login. The value is case-insensitive. |
repo* | string | The repository name without the .git suffix. The value is case-insensitive. |
issue_number* | integer | The issue or pull request number. Minimum: 1 |
Headers2
| Name | Type | Description |
|---|---|---|
If-None-Match | string | An ETag for conditional requests. |
If-Modified-Since | string | An HTTP date for conditional requests. |
Responses
application/jsonSchemaobject
Additional properties are allowed
idintegerRequired
numberintegerRequired
titlestringRequired
statestringRequired
state_reasonstring | nullNullable
bodystring | nullNullable
html_urlstring
Format: uri
userGithubUserSummary | null
assigneesGithubUserSummary[]
labelsobject[]
commentsinteger
Minimum: 0
lockedboolean
created_atstring
Format: date-time
updated_atstring
Format: date-time
closed_atstring | nullNullable
Format: date-time
pull_requestobject
Additional properties are allowed
The original GitHub response.