|
|
|
@ -4,6 +4,7 @@ class RepositoriesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
|
@project = @repo.project
|
|
|
|
|
@project.increment!(:visits)
|
|
|
|
|
@branches_count = Gitea::Repository::BranchesService.new(@user, @repo.identifier).call&.size
|
|
|
|
|
@commits_count = Gitea::Repository::Commits::ListService.new(@user, @repo.identifier).call[:total_count]
|
|
|
|
|
@result = Gitea::Repository::GetService.new(@user, @repo.identifier).call
|
|
|
|
|