fixed: 返回错误跳转地址

This commit is contained in:
yystopf 2025-06-25 16:42:12 +08:00
parent 542fe0b60c
commit 8cab37587e
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class Api::V1::Projects::Pulls::PullsController < Api::V1::BaseController
if can_merge.present?
render json: {
status: -2,
redirect_url:"/#{@project.owner.login}/#{@project.identifier}/pulls/#{can_merge.first.gitea_number}",
message: "在这些分支之间的合并请求已存在:<a href='/#{@project.owner.login}/#{@project.identifier}/pulls/#{can_merge.first.gitea_number}''>#{can_merge.first.try(:title)}</a>",
}
else