Returns a single reaction type. Omit this parameter to list all reactions to an issue.
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
List the reactions to an issue.
Returns a single reaction type. Omit this parameter to list all reactions to an issue.
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
issue_number parameter
Response
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
Example:1
Example:MDg6UmVhY3Rpb24x
Simple User
The reaction to use
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Example:heart
Example:2016-05-20T20:09:31Z
curl --request GET \
--url 'http://hostname/api/v3/repos///issues//reactions?per_page=30&page=1' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
[
{
"id": 1,
"node_id": "MDg6UmVhY3Rpb24x",
"user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"content": "heart",
"created_at": "2016-05-20T20:09:31Z"
}
]
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
issue_number parameter
The reaction type to add to the issue.
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Response
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
Example:1
Example:MDg6UmVhY3Rpb24x
Simple User
The reaction to use
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Example:heart
Example:2016-05-20T20:09:31Z
{
"content": "heart"
}
curl --request POST \
--url http://hostname/api/v3/repos///issues//reactions \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"content": "heart"
}'
{
"id": 1,
"node_id": "MDg6UmVhY3Rpb24x",
"user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"content": "heart",
"created_at": "2016-05-20T20:09:31Z"
}
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
issue_number parameter
Response
curl --request DELETE \
--url http://hostname/api/v3/repos///issues//reactions/ \
--header 'Content-Type: application/json'
Response
List the reactions to a pull request review comment.
Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
comment_id parameter
Response
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
Example:1
Example:MDg6UmVhY3Rpb24x
Simple User
The reaction to use
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Example:heart
Example:2016-05-20T20:09:31Z
curl --request GET \
--url 'http://hostname/api/v3/repos///pulls/comments//reactions?per_page=30&page=1' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
[
{
"id": 1,
"node_id": "MDg6UmVhY3Rpb24x",
"user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"content": "heart",
"created_at": "2016-05-20T20:09:31Z"
}
]
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
comment_id parameter
The reaction type to add to the pull request review comment.
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Reaction exists
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
Example:1
Example:MDg6UmVhY3Rpb24x
Simple User
The reaction to use
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Example:heart
Example:2016-05-20T20:09:31Z
{
"content": "heart"
}
curl --request POST \
--url http://hostname/api/v3/repos///pulls/comments//reactions \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"content": "heart"
}'
{
"id": 1,
"node_id": "MDg6UmVhY3Rpb24x",
"user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"content": "heart",
"created_at": "2016-05-20T20:09:31Z"
}