class Github::Client::Activity::Events
def issue(*args)
- Api: - public
def issue(*args) arguments(args, required: [:user, :repo]) response = get_request("/repos/#{arguments.user}/#{arguments.repo}/issues/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def network(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories -
def network(*args) arguments(args, required: [:user, :repo]) response = get_request("/networks/#{arguments.user}/#{arguments.repo}/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def org(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/events/#list-public-events-for-an-organization -
def org(*args) arguments(args, required: [:name]) response = get_request("/orgs/#{arguments.name}/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def performed(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user -
See: https://developer.github.com/v3/activity/events/#list-events-performed-by-a-user -
def performed(*args) arguments(args, required: [:user]) params = arguments.params public_events = if params['public'] params.delete('public') '/public' end response = get_request("/users/#{arguments.user}/events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end
def public(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/events/#list-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)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received -
See: https://developer.github.com/v3/activity/events/#list-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/#{arguments.user}/received_events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end
def repository(*args)
- Api: - public
def repository(*args) arguments(args, required: [:user, :repo]) response = get_request("/repos/#{arguments.user}/#{arguments.repo}/events", arguments.params) return response unless block_given? response.each { |el| yield el } end
def user_org(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/events/#list-events-for-an-organization -
def user_org(*args) arguments(args, required: [:user, :name]) response = get_request("/users/#{arguments.user}/events/orgs/#{arguments.name}", arguments.params) return response unless block_given? response.each { |el| yield el } end