Module: Octokit::Client::Events
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/events.rb
Overview
Method for the Events API
Instance Method Summary collapse
-
#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.
-
#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 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
141 142 143 |
# File 'lib/octokit/client/events.rb', line 141 def issue_event(repo, number, = {}) paginate "repos/#{Repository.new(repo)}/issues/events/#{number}", end |
#issue_events(repo, number, options = {}) ⇒ Array<Sawyer::Resource>
List events for an Issue
128 129 130 |
# File 'lib/octokit/client/events.rb', line 128 def issue_events(repo, number, = {}) paginate "repos/#{Repository.new(repo)}/issues/#{number}/events", end |
#organization_events(org, options = {}) ⇒ Array<Sawyer::Resource>
List all events for an organization
Requires authenticated client.
91 92 93 |
# File 'lib/octokit/client/events.rb', line 91 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
102 103 104 |
# File 'lib/octokit/client/events.rb', line 102 def organization_public_events(org, = {}) paginate "orgs/#{org}/events", end |
#public_events(options = {}) ⇒ Array<Sawyer::Resource>
List all public events for GitHub
15 16 17 |
# File 'lib/octokit/client/events.rb', line 15 def public_events( = {}) paginate "events", end |
#received_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List events that a user has received
46 47 48 |
# File 'lib/octokit/client/events.rb', line 46 def received_events(user, = {}) paginate "users/#{user}/received_events", end |
#received_public_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List public events a user has received
56 57 58 |
# File 'lib/octokit/client/events.rb', line 56 def received_public_events(user, = {}) paginate "users/#{user}/received_events/public", end |
#repository_events(repo, options = {}) ⇒ Array<Sawyer::Resource>
List events for a repository
67 68 69 |
# File 'lib/octokit/client/events.rb', line 67 def repository_events(repo, = {}) paginate "repos/#{Repository.new(repo)}/events", end |
#repository_issue_events(repo, options = {}) ⇒ Array<Sawyer::Resource> Also known as: repo_issue_events
Get all Issue Events for a given Repository
114 115 116 |
# File 'lib/octokit/client/events.rb', line 114 def repository_issue_events(repo, = {}) paginate "repos/#{Repository.new repo}/issues/events", end |
#repository_network_events(repo, options = {}) ⇒ Array<Sawyer::Resource>
List public events for a repository’s network
78 79 80 |
# File 'lib/octokit/client/events.rb', line 78 def repository_network_events(repo, = {}) paginate "networks/#{Repository.new repo}/events", end |
#user_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List all user events
25 26 27 |
# File 'lib/octokit/client/events.rb', line 25 def user_events(user, = {}) paginate "users/#{user}/events", end |
#user_public_events(user, options = {}) ⇒ Array<Sawyer::Resource>
List public user events
36 37 38 |
# File 'lib/octokit/client/events.rb', line 36 def user_public_events(user, = {}) paginate "users/#{user}/events/public", end |