新增:合并请求合并接口冲突文件提示
This commit is contained in:
parent
c1fbea8453
commit
a0f1679f03
|
@ -179,6 +179,7 @@ class PullRequestsController < ApplicationController
|
|||
|
||||
def pr_merge
|
||||
return render_forbidden("你没有权限操作.") unless @project.operator?(current_user)
|
||||
return normal_status(-1, "该分支存在冲突,无法自动合并.") unless @pull_request.conflict_files.blank?
|
||||
|
||||
if params[:do].blank?
|
||||
normal_status(-1, "请选择合并方式")
|
||||
|
|
Loading…
Reference in New Issue