Module: Octokit::Client::Stats
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/stats.rb
Overview
Methods for the Repository Statistics API
Instance Method Summary collapse
-
#code_frequency_stats(repo, options = {}) ⇒ Array<Sawyer::Resource>
Get the number of additions and deletions per week.
-
#commit_activity_stats(repo, options = {}) ⇒ Array<Sawyer::Resource>
Get the last year of commit activity data.
-
#contributors_stats(repo, options = {}) ⇒ Array<Sawyer::Resource>
(also: #contributor_stats)
Get contributors list with additions, deletions, and commit counts.
-
#participation_stats(repo, options = {}) ⇒ Sawyer::Resource
Get the weekly commit count for the repo owner and everyone else.
-
#punch_card_stats(repo, options = {}) ⇒ Array<Array>
(also: #punch_card)
Get the number of commits per hour in each day.
Instance Method Details
#code_frequency_stats(repo, options = {}) ⇒ Array<Sawyer::Resource>
Get the number of additions and deletions per week
41 42 43 |
# File 'lib/octokit/client/stats.rb', line 41 def code_frequency_stats(repo, = {}) get_stats(repo, "code_frequency", ) end |
#commit_activity_stats(repo, options = {}) ⇒ Array<Sawyer::Resource>
Get the last year of commit activity data
29 30 31 |
# File 'lib/octokit/client/stats.rb', line 29 def commit_activity_stats(repo, = {}) get_stats(repo, "commit_activity", ) end |
#contributors_stats(repo, options = {}) ⇒ Array<Sawyer::Resource> Also known as: contributor_stats
Get contributors list with additions, deletions, and commit counts
16 17 18 |
# File 'lib/octokit/client/stats.rb', line 16 def contributors_stats(repo, = {}) get_stats(repo, "contributors", ) end |
#participation_stats(repo, options = {}) ⇒ Sawyer::Resource
Get the weekly commit count for the repo owner and everyone else
55 56 57 |
# File 'lib/octokit/client/stats.rb', line 55 def participation_stats(repo, = {}) get_stats(repo, "participation", ) end |
#punch_card_stats(repo, options = {}) ⇒ Array<Array> Also known as: punch_card
Get the number of commits per hour in each day
67 68 69 |
# File 'lib/octokit/client/stats.rb', line 67 def punch_card_stats(repo, = {}) get_stats(repo, "punch_card", ) end |