module Github::Issues::Events
def events(user_name=nil, repo_name=nil, issue_id=nil, params={})
@github.issues.events 'user-name', 'repo-name'
@github = Github.new
= Examples
List events for a repository
@github.issues.events 'user-name', 'repo-name', 'issue-id'
@github = Github.new
= Examples
List events for an issue
def events(user_name=nil, repo_name=nil, issue_id=nil, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _normalize_params_keys(params) response = if issue_id get("/repos/#{user}/#{repo}/issues/#{issue_id}/events", params) else get("/repos/#{user}/#{repo}/issues/events", params) end return response unless block_given? response.each { |el| yield el } end