更改:分支列表搜索参数
This commit is contained in:
parent
7c911f5b86
commit
0eb17aa90f
|
@ -2,7 +2,7 @@ class Api::V1::Projects::BranchesController < Api::V1::BaseController
|
||||||
before_action :require_public_and_member_above, only: [:index, :all]
|
before_action :require_public_and_member_above, only: [:index, :all]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@result_object = Api::V1::Projects::Branches::ListService.call(@project, {name: params[:name], page: page, limit: limit}, current_user&.gitea_token)
|
@result_object = Api::V1::Projects::Branches::ListService.call(@project, {name: params[:keyword], page: page, limit: limit}, current_user&.gitea_token)
|
||||||
end
|
end
|
||||||
|
|
||||||
def all
|
def all
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Api::V1::Projects::Tags::DeleteService < ApplicationService
|
||||||
def call
|
def call
|
||||||
raise Error, errors.full_messages.join(",") unless valid?
|
raise Error, errors.full_messages.join(",") unless valid?
|
||||||
|
|
||||||
# check_tag_exist
|
check_tag_exist
|
||||||
excute_data_to_gitea
|
excute_data_to_gitea
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue