Sha256: 9d8ac128d7d60cf92da5dd1cdfa6d74a749ce95f6670808405a704b7b81d6a2f

Contents?: true

Size: 834 Bytes

Versions: 5

Compression:

Stored size: 834 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 = {})
        options = ensure_api_media_type(:community_profile, options)
        get "#{Repository.path repo}/community/profile", options
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/octokit-4.25.1/lib/octokit/client/community_profile.rb
octokit-5.1.0 lib/octokit/client/community_profile.rb
octokit-5.0.0 lib/octokit/client/community_profile.rb
octokit-4.25.1 lib/octokit/client/community_profile.rb
octokit-4.25.0 lib/octokit/client/community_profile.rb