新增: 批量更改文件

This commit is contained in:
2022-07-19 16:47:01 +08:00
parent 1882120df3
commit 25afedcdfd
10 changed files with 816 additions and 261 deletions

View File

@@ -44,7 +44,7 @@ class Api::V1::Projects::Branches::CreateService < ApplicationService
end
def check_new_branch_exist
result = $gitea_client.get_repos_branch_name_set_by_owner_repo(owner, repo) rescue nil
result = $gitea_client.get_repos_branch_name_set_by_owner_repo(owner, repo, {query: request_params}) rescue nil
raise Error, '查询分支名称失败!' unless result.is_a?(Hash)
raise Error, '分支已存在!' if result['branch_name'].include?(@new_branch_name)
end