class Github::Issues::Events

def get(user_name, repo_name, event_id, params={})


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

Get a single event
def get(user_name, repo_name, event_id, params={})
  _update_user_repo_params(user_name, repo_name)
  _validate_user_repo_params(user, repo) unless user? && repo?
  _validate_presence_of event_id
  normalize! params
  get_request("/repos/#{user}/#{repo}/issues/events/#{event_id}")
end

def initialize(options = {})

Creates new Issues::Events API
def initialize(options = {})
  super(options)
end

def list(user_name, repo_name, issue_id=nil, params={})


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'
github = Github.new
= Examples

List events for an issue
def list(user_name, repo_name, issue_id=nil, params={})
  _update_user_repo_params(user_name, repo_name)
  _validate_user_repo_params(user, repo) unless user? && repo?
  normalize! params
  response = if 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