pull_request合并到源项目的问题
This commit is contained in:
parent
79b1cdcf84
commit
fca68c24dc
|
@ -93,7 +93,7 @@ class PullRequestsController < ApplicationController
|
|||
# 如果传送了目标项目ID即向fork源项目发送请求
|
||||
# if params[:forked_project_id] && params[:source_project] == "forked_project_name"
|
||||
if params[:target_project_id]
|
||||
target_project_id = params[:target_project_id].to_i
|
||||
target_project_id = params[:forked_project_id].to_i
|
||||
request = @g.create_merge_request(@project.gpid, title, User.current.gid, :description => description, :source_branch => source_branch, :target_branch => target_branch, :target_project_id => target_project_id)
|
||||
@fork_project_name = Project.find(target_project_id).try(:name)
|
||||
@fork_pr_message = true if @fork_project_name
|
||||
|
|
Loading…
Reference in New Issue