module Octokit::Client::Reactions

def commit_comment_reactions(repo, id, options = {})

Returns:
  • (Array) - Array of Hashes representing the reactions.

Other tags:
    See: https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment -

Parameters:
  • id (Integer) -- The id of the commit comment
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def commit_comment_reactions(repo, id, options = {})
  options = ensure_api_media_type(:reactions, options)
  get "#{Repository.path repo}/comments/#{id}/reactions", options
end

def create_commit_comment_reaction(repo, id, reaction, options = {})

Returns:
  • () - Hash representing the reaction

Other tags:
    See: https://developer.github.com/v3/reactions/#reaction-types -
    See: https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment -

Parameters:
  • reaction (String) -- The Reaction
  • id (Integer) -- The id of the commit comment
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def create_commit_comment_reaction(repo, id, reaction, options = {})
  options = ensure_api_media_type(:reactions, options.merge(:content => reaction))
  post "#{Repository.path repo}/comments/#{id}/reactions", options
end

def create_issue_comment_reaction(repo, id, reaction, options = {})

Returns:
  • () - Hashes representing the reaction.

Other tags:
    See: https://developer.github.com/v3/reactions/#reaction-types -
    See: https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment -

Parameters:
  • reaction (String) -- The Reaction
  • id (Integer) -- The Issue comment id
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def create_issue_comment_reaction(repo, id, reaction, options = {})
  options = ensure_api_media_type(:reactions, options.merge(:content => reaction))
  post "#{Repository.path repo}/issues/comments/#{id}/reactions", options
end

def create_issue_reaction(repo, number, reaction, options = {})

Returns:
  • () - Hash representing the reaction.

Other tags:
    See: https://developer.github.com/v3/reactions/#reaction-types -
    See: https://developer.github.com/v3/reactions/#create-reaction-for-an-issue -

Parameters:
  • reaction (String) -- The Reaction
  • number (Integer) -- The Issue number
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def create_issue_reaction(repo, number, reaction, options = {})
  options = ensure_api_media_type(:reactions, options.merge(:content => reaction))
  post "#{Repository.path repo}/issues/#{number}/reactions", options
end

def create_pull_request_review_comment_reaction(repo, id, reaction, options = {})

Returns:
  • () - Hash representing the reaction.

Other tags:
    See: https://developer.github.com/v3/reactions/#reaction-types -
    See: https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment -

Parameters:
  • reaction (String) -- The Reaction
  • id (Integer) -- The Issue comment id
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def create_pull_request_review_comment_reaction(repo, id, reaction, options = {})
  options = ensure_api_media_type(:reactions, options.merge(:content => reaction))
  post "#{Repository.path repo}/pulls/comments/#{id}/reactions", options
end

def delete_reaction(id, options = {})

Returns:
  • (Boolean) - Return true if reaction was deleted, false otherwise.

Other tags:
    See: https://developer.github.com/v3/reactions/#delete-a-reaction -

Parameters:
  • id (Integer) -- Reaction id
def delete_reaction(id, options = {})
  options = ensure_api_media_type(:reactions, options)
  boolean_from_response :delete, "reactions/#{id}", options
end

def issue_comment_reactions(repo, id, options = {})

Returns:
  • (Array) - Array of Hashes representing the reactions.

Other tags:
    See: https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment -

Parameters:
  • id (Integer) -- The Issue comment id
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def issue_comment_reactions(repo, id, options = {})
  options = ensure_api_media_type(:reactions, options)
  get "#{Repository.path repo}/issues/comments/#{id}/reactions", options
end

def issue_reactions(repo, number, options = {})

Returns:
  • (Array) - Array of Hashes representing the reactions.

Other tags:
    See: https://developer.github.com/v3/reactions/#list-reactions-for-an-issue -

Parameters:
  • number (Integer) -- The Issue number
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def issue_reactions(repo, number, options = {})
  options = ensure_api_media_type(:reactions, options)
  get "#{Repository.path repo}/issues/#{number}/reactions", options
end

def pull_request_review_comment_reactions(repo, id, options = {})

Returns:
  • (Array) - Array of Hashes representing the reactions.

Other tags:
    See: https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment -

Parameters:
  • id (Integer) -- The Issue comment id
  • repo (Integer, String, Hash, Repository) -- A GitHub repository
def pull_request_review_comment_reactions(repo, id, options = {})
  options = ensure_api_media_type(:reactions, options)
  get "#{Repository.path repo}/pulls/comments/#{id}/reactions", options
end