Files
news.gitea.happylizard.me/bin/gems/octokit-6.1.1/lib/octokit/client/community_profile.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

22 lines
765 B
Ruby

# 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