新增: 查询删除分支与普通分支

This commit is contained in:
2024-01-05 13:56:09 +08:00
parent a644a65493
commit feec49d4bd
2 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ class Api::V1::Projects::BranchesController < Api::V1::BaseController
before_action :require_public_and_member_above, only: [:index, :all]
def index
@result_object = Api::V1::Projects::Branches::ListService.call(@project, {name: params[:keyword], page: page, limit: limit}, current_user&.gitea_token)
@result_object = Api::V1::Projects::Branches::ListService.call(@project, {name: params[:keyword], state: params[:state], page: page, limit: limit}, current_user&.gitea_token)
end
def all