Sha256: c6901c6d40ee7cdcb348b8cef1834c08a7f6744142a2a740189701d896436c74

Contents?: true

Size: 765 Bytes

Versions: 19

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true

module Octokit
  class Client
    # Methods for the Community Profile API
    #
    # @see https://developer.github.com/v3/repos/community/
    module CommunityProfile
      # Get community profile metrics for a repository
      #
      # @param repo [Integer, String, Hash, Repository] A GitHub repository
      # @return [Sawyer::Resource] Community profile metrics
      # @see https://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')
      def community_profile(repo, options = {})
        get "#{Repository.path repo}/community/profile", options
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
octokit-9.2.0 lib/octokit/client/community_profile.rb
octokit-9.1.0 lib/octokit/client/community_profile.rb
octokit-9.0.0 lib/octokit/client/community_profile.rb
octokit-8.1.0 lib/octokit/client/community_profile.rb
octokit-8.0.0 lib/octokit/client/community_profile.rb
octokit-7.2.0 lib/octokit/client/community_profile.rb
octokit-7.1.0 lib/octokit/client/community_profile.rb
octokit-7.0.0 lib/octokit/client/community_profile.rb
octokit-6.1.1 lib/octokit/client/community_profile.rb
octokit-6.1.0 lib/octokit/client/community_profile.rb
octokit-6.0.1 lib/octokit/client/community_profile.rb
octokit-6.0.0 lib/octokit/client/community_profile.rb
octokit-5.6.1 lib/octokit/client/community_profile.rb
octokit-5.6.0 lib/octokit/client/community_profile.rb
octokit-5.5.0 lib/octokit/client/community_profile.rb
octokit-5.4.0 lib/octokit/client/community_profile.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/octokit-5.3.0/lib/octokit/client/community_profile.rb
octokit-5.3.0 lib/octokit/client/community_profile.rb
octokit-5.2.0 lib/octokit/client/community_profile.rb