module Octokit::Client::CommunityProfile

Methods for the Community Profile API

@see developer.github.com/v3/repos/community/

Public Instance Methods

community_profile(repo, options = {}) click to toggle source

Get community profile metrics for a repository

@param repo [Integer, String, Hash, Repository] A GitHub repository @return [Sawyer::Resource] Community profile metrics @see developer.github.com/v3/repos/community/#retrieve-community-profile-metrics @example Get community profile metrics for octokit/octokit.rb

@client.community_profile('octokit/octokit.rb')
# 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