-
- Downloads
Fix replying to commit comments on MRs from forks
A commit comment shows in the MR, but if the MR is from a fork, it will have a different project ID to the MR's target project. In that case, add an note_project_id param so that we can pick the correct project for the note.
Showing
- app/assets/javascripts/notes.js 4 additions, 0 deletionsapp/assets/javascripts/notes.js
- app/controllers/concerns/notes_actions.rb 21 additions, 1 deletionapp/controllers/concerns/notes_actions.rb
- app/helpers/notes_helper.rb 5 additions, 1 deletionapp/helpers/notes_helper.rb
- app/views/shared/notes/_form.html.haml 1 addition, 0 deletionsapp/views/shared/notes/_form.html.haml
- changelogs/unreleased/fix-replying-to-commit-comment-in-mr-from-fork.yml 4 additions, 0 deletions...leased/fix-replying-to-commit-comment-in-mr-from-fork.yml
- spec/controllers/projects/notes_controller_spec.rb 61 additions, 1 deletionspec/controllers/projects/notes_controller_spec.rb
- spec/features/merge_requests/created_from_fork_spec.rb 27 additions, 0 deletionsspec/features/merge_requests/created_from_fork_spec.rb
Please register or sign in to comment