123456789_123456789_123456789_123456789_123456789_

Module: Octokit::Client::CommunityProfile

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/octokit/client/community_profile.rb

Overview

Methods for the Community Profile API

Instance Method Summary

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')

Parameters:

  • repo (Integer, String, Hash, Repository)

    A GitHub repository

Returns:

  • (Sawyer::Resource)

    Community profile metrics

See Also:

[ GitHub ]

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

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