class Github::Activity::Events
def issue(*args)
github.events.issue user: 'user-name', repo: 'repo-name' { |event| ... }
github.events.issue user: 'user-name', repo: 'repo-name'
github.activity.events.issue 'user-name', 'repo-name' { |event| ... }
github.activity.events.issue 'user-name', 'repo-name'
github = Github.new
= Examples
List all issue events for a given repository
def issue(*args) arguments(args, :required => [:user, :repo]) params = arguments.params response = get_request("/repos/#{user}/#{repo}/issues/events", params) return response unless block_given? response.each { |el| yield el } end
def network(*args)
github.events.network user: 'user-name', repo: 'repo-name' { |event| ... }
github.events.network user: 'user-name', repo: 'repo-name'
github.activity.events.network 'user-name', 'repo-name' { |event| ... }
github.activity.events.network 'user-name', 'repo-name'
github = Github.new
= Examples
List all public events for a network of repositories
def network(*args) arguments(args, :required => [:user, :repo]) response = get_request("/networks/#{user}/#{repo}/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def org(*args)
github.events.org org: 'org-name' { |event| ... }
github.events.org org: 'org-name'
github.activity.events.org 'org-name' { |event| ... }
github.activity.events.org 'org-name'
github = Github.new
= Examples
List all public events for an organization
def org(*args) arguments(args, :required => [:org_name]) response = get_request("/orgs/#{org_name}/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def performed(*args)
github.activity.events.performed 'user-name', :public => true { |event| ... }
github.activity.events.performed 'user-name', :public => true
github = Github.new
= Examples
List all public events that a user has performed
github.activity.events.performed 'user-name' { |event| ... }
github.activity.events.performed 'user-name'
github = Github.new
= Examples
events. Otherwise, you’ll only see public events.
If you are authenticated as the given user, you will see your private
List all events that a user has performed
def performed(*args) arguments(args, :required => [:user]) params = arguments.params public_events = if params['public'] params.delete('public') '/public' end response = get_request("/users/#{user}/events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end
def public(*args)
github.activity.events.public { |event| ... }
github.activity.events.public
github = Github.new
= Examples
List all public events
def public(*args) arguments(args) response = get_request("/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def received(*args)
github.activity.events.received 'user-name', :public => true { |event| ... }
github.activity.events.received 'user-name', :public => true
github = Github.new
= Examples
List all public events that a user has received
github.activity.events.received 'user-name' { |event| ... }
github.activity.events.received 'user-name'
github = Github.new
= Examples
Otherwise, you’ll only see public events.
If you are authenticated as the given user, you will see private events.
These are events that you’ve received by watching repos and following users.
List all events that a user has received
def received(*args) arguments(args, :required => [:user]) params = arguments.params public_events = if params['public'] params.delete('public') '/public' end response = get_request("/users/#{user}/received_events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end
def repository(*args)
github.events.repository user: 'user-name', repo: 'repo-name' {|event| ... }
github.events.repository user: 'user-name', repo: 'repo-name'
github.activity.events.repository 'user-name', 'repo-name' { |event| ... }
github.activity.events.repository 'user-name', 'repo-name'
github = Github.new
= Examples
List all repository events for a given user
def repository(*args) arguments(args, :required => [:user, :repo]) response = get_request("/repos/#{user}/#{repo}/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def user_org(*args)
github.events.user_org user: 'user-name', org_name: 'org-name' {|event| ...}
github.events.user_org user: 'user-name', org_name: 'org-name'
github.activity.events.user_org 'user-name', 'org-name' { |event| ... }
github.activity.events.user_org 'user-name', 'org-name'
github = Github.new
= Examples
as the user to view this.
This is the user’s organization dashboard. You must be authenticated
List all events for an organization
def user_org(*args) arguments(args, :required => [:user, :org_name]) params = arguments.params response = get_request("/users/#{user}/events/orgs/#{org_name}", params) return response unless block_given? response.each { |el| yield el } end