mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
测试entries
This commit is contained in:
@@ -15,9 +15,15 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def entries
|
||||
Rails.logger.info("##############_________project_id_________############{@project.id}")
|
||||
@project.increment!(:visits)
|
||||
Rails.logger.info("##############___________@repo.identifier_______############{@repo.identifier}")
|
||||
Rails.logger.info("##############___________@user_______############{@user.login}")
|
||||
|
||||
@ref = params[:branch] || "master"
|
||||
@entries = Gitea::Repository::Entries::ListService.new(@user, @repo.identifier, ref:@ref).call
|
||||
Rails.logger.info("##############__________@entries______############{@entries}")
|
||||
|
||||
@entries = @entries.sort_by{ |hash| hash['type'] }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user