测试entries
This commit is contained in:
parent
505797d7ae
commit
1574659667
|
@ -15,9 +15,15 @@ class RepositoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def entries
|
def entries
|
||||||
|
Rails.logger.info("##############_________project_id_________############{@project.id}")
|
||||||
@project.increment!(:visits)
|
@project.increment!(:visits)
|
||||||
|
Rails.logger.info("##############___________@repo.identifier_______############{@repo.identifier}")
|
||||||
|
Rails.logger.info("##############___________@user_______############{@user.login}")
|
||||||
|
|
||||||
@ref = params[:branch] || "master"
|
@ref = params[:branch] || "master"
|
||||||
@entries = Gitea::Repository::Entries::ListService.new(@user, @repo.identifier, ref:@ref).call
|
@entries = Gitea::Repository::Entries::ListService.new(@user, @repo.identifier, ref:@ref).call
|
||||||
|
Rails.logger.info("##############__________@entries______############{@entries}")
|
||||||
|
|
||||||
@entries = @entries.sort_by{ |hash| hash['type'] }
|
@entries = @entries.sort_by{ |hash| hash['type'] }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue