Skip to main content
The REST API is now versioned. For more information, see "About API versioning."

Reaktionen

Verwende die REST-API, um mit Reaktionen auf GitHub zu interagieren.

Informationen zu Reaktionen

Du kannst Reaktionen auf Kommentare, Issues, Pull Requests und Diskussionen auf GitHub erstellen und verwalten. Beim Erstellen einer Reaktion sind folgende Werte für den content-Parameter zulässig (mit dem entsprechenden Emoji zur Referenz):

Inhalt emoji
+1 👍
-1 👎
laugh 😄
confused 😕
heart ❤️
hooray 🎉
rocket 🚀
eyes 👀

List reactions for a team discussion comment

Funktioniert mit GitHub Apps

List the reactions to a team discussion comment. OAuth access tokens require the read:discussion scope.

Note: You can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions.

Parameter

Headers
Name, Type, Description
acceptstring

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
orgstringRequired

The organization name. The name is not case sensitive.

team_slugstringRequired

The slug of the team name.

discussion_numberintegerRequired

The number that identifies the discussion.

comment_numberintegerRequired

The number that identifies the comment.

Query parameters
Name, Type, Description
contentstring

Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.

Can be one of: +1, -