mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
更改:合并请求代码冲突提示语更改
This commit is contained in:
@@ -24,6 +24,9 @@ class PullRequests::MergeService < ApplicationService
|
||||
result = Gitea::PullRequest::MergeService.call(@current_user.gitea_token, @owner.login,
|
||||
@repo.identifier, @pull.gitea_number, gitea_merge_pull_params)
|
||||
@status, @message = result
|
||||
if @status.to_i == 409
|
||||
@message = "代码冲突,请重新提交合并请求"
|
||||
end
|
||||
end
|
||||
|
||||
def gitea_merge_pull_params
|
||||
|
||||
Reference in New Issue
Block a user