Merge branch 'master' into meta-tags
This commit is contained in:
commit
4b806e9ca4
|
@ -49,7 +49,7 @@ class Api::V1::PullRequestsController < Api::V1::BaseController
|
|||
|
||||
@pull = @project.pull_requests.new
|
||||
@pull.build_issue title: pull_params[:title], body: pull_params[:body]
|
||||
@pull.from_project = @project
|
||||
@pull.from_project = from_project
|
||||
@pull.to_ref, @pull.from_ref = pull_params[:to_ref], pull_params[:from_ref]
|
||||
@pull.issue.assignee_id = pull_params[:assignee_id] if can?(:write, @project)
|
||||
@pull.issue.user, @pull.issue.project = current_user, @project
|
||||
|
|
Loading…
Reference in New Issue