class Github::Issues::Events

def get(*args)


github.issues.events.get 'user-name', 'repo-name', 'event-id'
github = Github.new
= Examples

Get a single event
def get(*args)
  arguments(args, :required => [:user, :repo, :event_id])
  params = arguments.params
  get_request("/repos/#{user}/#{repo}/issues/events/#{event_id}", params)
end

def list(*args)


github.issues.events.list 'user-name', 'repo-name'
github = Github.new
= Examples

List events for a repository

github.issues.events.list 'user-name', 'repo-name', issue_id: 'issue-id'
github = Github.new
= Examples

List events for an issue
def list(*args)
  arguments(args, :required => [:user, :repo])
  params = arguments.params
  response = if (issue_id = params.delete('issue_id'))
    get_request("/repos/#{user}/#{repo}/issues/#{issue_id}/events", params)
  else
    get_request("/repos/#{user}/#{repo}/issues/events", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end