Module: Octokit::Client::Events
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/client/events.rb |
Overview
Method for the Events
API
Instance Method Summary
-
#issue_event(repo, number, options = {}) ⇒ Sawyer::Resource
Get information on a single Issue Event.
-
#issue_events(repo, number, options = {}) ⇒ Array<Sawyer::Resource>
List events for an Issue.
-
#organization_events(org, options = {}) ⇒ Array<Sawyer::Resource>
List all events for an organization.
-
#organization_public_events(org, options = {}) ⇒ Array<Sawyer::Resource>
List an organization's public events.
-
#public_events(options = {}) ⇒ Array<Sawyer::Resource>
List all public events for GitHub.
-
#received_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List events that a user has received.
-
#received_public_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List public events a user has received.
-
#repo_issue_events(repo, options = {})
Alias for #repository_issue_events.
-
#repository_events(repo, options = {}) ⇒ Array<Sawyer::Resource>
List events for a repository.
-
#repository_issue_events(repo, options = {}) ⇒ Array<Sawyer::Resource>
(also: #repo_issue_events)
Get all Issue Events for a given
::Octokit::Repository
. -
#repository_network_events(repo, options = {}) ⇒ Array<Sawyer::Resource>
List public events for a repository's network.
-
#user_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List all user events.
-
#user_public_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List public user events.
Instance Method Details
#issue_event(repo, number, options = {}) ⇒ Sawyer::Resource
Get information on a single Issue Event
# File 'lib/octokit/client/events.rb', line 146
def issue_event(repo, number, = {}) paginate "#{Repository.path repo}/issues/events/#{number}", end
#issue_events(repo, number, options = {}) ⇒ Array
<Sawyer::Resource
>
List events for an Issue
# File 'lib/octokit/client/events.rb', line 133
def issue_events(repo, number, = {}) paginate "#{Repository.path repo}/issues/#{number}/events", end
#organization_events(org, options = {}) ⇒ Array
<Sawyer::Resource
>
List all events for an organization
Requires authenticated client.
# File 'lib/octokit/client/events.rb', line 95
def organization_events(org, = {}) paginate "users/#{login}/events/orgs/#{org}", end
#organization_public_events(org, options = {}) ⇒ Array
<Sawyer::Resource
>
List an organization's public events
# File 'lib/octokit/client/events.rb', line 106
def organization_public_events(org, = {}) paginate "#{Organization.path org}/events", end
#public_events(options = {}) ⇒ Array
<Sawyer::Resource
>
List all public events for GitHub
# File 'lib/octokit/client/events.rb', line 16
def public_events( = {}) paginate 'events', end
#received_events(user, options = {}) ⇒ Array
<Sawyer::Resource
>
List events that a user has received
#received_public_events(user, options = {}) ⇒ Array
<Sawyer::Resource
>
List public events a user has received
#repo_issue_events(repo, options = {})
Alias for #repository_issue_events.
# File 'lib/octokit/client/events.rb', line 122
alias repo_issue_events repository_issue_events
#repository_events(repo, options = {}) ⇒ Array
<Sawyer::Resource
>
List events for a repository
# File 'lib/octokit/client/events.rb', line 71
def repository_events(repo, = {}) paginate "#{Repository.path repo}/events", end
#repository_issue_events(repo, options = {}) ⇒ Array
<Sawyer::Resource
>
Also known as: #repo_issue_events
Get all Issue Events for a given ::Octokit::Repository
# File 'lib/octokit/client/events.rb', line 119
def repository_issue_events(repo, = {}) paginate "#{Repository.path repo}/issues/events", end
#repository_network_events(repo, options = {}) ⇒ Array
<Sawyer::Resource
>
List public events for a repository's network
# File 'lib/octokit/client/events.rb', line 82
def repository_network_events(repo, = {}) paginate "networks/#{Repository.new(repo)}/events", end
#user_events(user, options = {}) ⇒ Array
<Sawyer::Resource
>
List all user events
#user_public_events(user, options = {}) ⇒ Array
<Sawyer::Resource
>
List public user events