Browse Source

fix: check pr can merge change redirect url

tags/v3.2.0
yystopf 4 years ago
parent
commit
48b5117062
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/pull_requests_controller.rb

+ 1
- 1
app/controllers/pull_requests_controller.rb View File

@@ -200,7 +200,7 @@ class PullRequestsController < ApplicationController
if can_merge.present?
render json: {
status: -2,
message: "在这些分支之间的合并请求已存在:<a href='/projects/#{@owner.login}/#{@project.identifier}/pulls/#{can_merge.first.id}/Messagecount''>#{can_merge.first.try(:title)}</a>",
message: "在这些分支之间的合并请求已存在:<a href='/#{@owner.login}/#{@project.identifier}/pulls/#{can_merge.first.id}''>#{can_merge.first.try(:title)}</a>",
}
else
normal_status(0, "可以合并")


Loading…
Cancel
Save