diff options
author | Phil Hughes <me@iamphill.com> | 2018-07-10 12:35:16 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-12 13:14:49 +0300 |
commit | 3a77664d1a550cfbedc92068926e4adae9c82b87 (patch) | |
tree | 49884555a4aa2fbaf5c29be1e6b4a5970fcbe104 /app/serializers/merge_request_widget_entity.rb | |
parent | 6a0ff9eb7cc5e95ba25ecd86aef34330c89bdeed (diff) |
Allow merge requests from forks to be opened in Web IDE
Closes #47460
Diffstat (limited to 'app/serializers/merge_request_widget_entity.rb')
-rw-r--r-- | app/serializers/merge_request_widget_entity.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/merge_request_widget_entity.rb b/app/serializers/merge_request_widget_entity.rb index 5d72ebdd7fd..a78bd77cf7c 100644 --- a/app/serializers/merge_request_widget_entity.rb +++ b/app/serializers/merge_request_widget_entity.rb @@ -10,9 +10,15 @@ class MergeRequestWidgetEntity < IssuableEntity expose :merge_when_pipeline_succeeds expose :source_branch expose :source_project_id + expose :source_project_full_path do |merge_request| + merge_request.source_project&.full_path + end expose :squash expose :target_branch expose :target_project_id + expose :target_project_full_path do |merge_request| + merge_request.project&.full_path + end expose :allow_collaboration expose :should_be_rebased?, as: :should_be_rebased |