aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/reactions.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/go-github/github/reactions.go')
-rw-r--r--vendor/github.com/google/go-github/github/reactions.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/vendor/github.com/google/go-github/github/reactions.go b/vendor/github.com/google/go-github/github/reactions.go
index 283938a..03b131b 100644
--- a/vendor/github.com/google/go-github/github/reactions.go
+++ b/vendor/github.com/google/go-github/github/reactions.go
@@ -11,15 +11,13 @@ import "fmt"
// GitHub API.
//
// GitHub API docs: https://developer.github.com/v3/reactions/
-type ReactionsService struct {
- client *Client
-}
+type ReactionsService service
// Reaction represents a GitHub reaction.
type Reaction struct {
// ID is the Reaction ID.
- ID *int `json:"id,omitempty"`
- UserID *int `json:"user_id,omitempty"`
+ ID *int `json:"id,omitempty"`
+ User *User `json:"user,omitempty"`
// Content is the type of reaction.
// Possible values are:
// "+1", "-1", "laugh", "confused", "heart", "hooray".
@@ -258,7 +256,7 @@ func (s ReactionsService) CreatePullRequestCommentReaction(owner, repo string, i
//
// GitHub API docs: https://developer.github.com/v3/reaction/reactions/#delete-a-reaction-archive
func (s *ReactionsService) DeleteReaction(id int) (*Response, error) {
- u := fmt.Sprintf("/reactions/%v", id)
+ u := fmt.Sprintf("reactions/%v", id)
req, err := s.client.NewRequest("DELETE", u, nil)
if err != nil {