更改:合并请求代码冲突提示语更改

This commit is contained in:
yystopf 2022-10-19 16:17:44 +08:00
parent 64d9c334ce
commit e9b23d6577
1 changed files with 3 additions and 0 deletions

View File

@ -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