|
|
|
@@ -176,6 +176,9 @@ class RepositoriesController < ApplicationController |
|
|
|
result = Gitea::Repository::Contributors::GetService.call(@owner, @repository.identifier, {page: params[:page], limit: params[:limit]})
|
|
|
|
@total_count = result[:total_count]
|
|
|
|
@contributors = result.is_a?(Hash) ? result[:body] : []
|
|
|
|
|
|
|
|
add_contributors_count = EduSetting.get("ProjectAddContributors-#{@project.id}")
|
|
|
|
@total_count = @total_count + add_contributors_count.to_i
|
|
|
|
end
|
|
|
|
rescue
|
|
|
|
@contributors = []
|
|
|
|
|