新增:标签名字列表
This commit is contained in:
parent
35965f542a
commit
e25231738a
|
@ -147,10 +147,16 @@ class RepositoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def tags
|
def tags
|
||||||
|
if params[:only_name].present?
|
||||||
|
result = Gitea::Repository::Tags::ListNameService.call(@owner, @project.identifier, params[:name])
|
||||||
|
|
||||||
|
@tags = result.is_a?(Hash) && result.key?(:status) ? [] : result
|
||||||
|
else
|
||||||
result = Gitea::Repository::Tags::ListService.call(current_user&.gitea_token, @owner.login, @project.identifier, {page: params[:page], limit: params[:limit]})
|
result = Gitea::Repository::Tags::ListService.call(current_user&.gitea_token, @owner.login, @project.identifier, {page: params[:page], limit: params[:limit]})
|
||||||
|
|
||||||
@tags = result.is_a?(Hash) && result.key?(:status) ? [] : result
|
@tags = result.is_a?(Hash) && result.key?(:status) ? [] : result
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def contributors
|
def contributors
|
||||||
if params[:filepath].present? || @project.educoder?
|
if params[:filepath].present? || @project.educoder?
|
||||||
|
|
Loading…
Reference in New Issue