Module: Octokit::Client::CommunityProfile

Included in:
Octokit::Client
Defined in:
lib/octokit/client/community_profile.rb

Overview

Methods for the Community Profile API

Instance Method Summary collapse

Instance Method Details

#community_profile(repo, options = {}) ⇒ Sawyer::Resource

Get community profile metrics for a repository

Examples:

Get community profile metrics for octokit/octokit.rb

@client.community_profile('octokit/octokit.rb')

See Also:


16
17
18
19
# File 'lib/octokit/client/community_profile.rb', line 16

def community_profile(repo, options = {})
  options = ensure_api_media_type(:community_profile, options)
  get "#{Repository.path repo}/community/profile", options
end