Set default MR title/description to first multi-line commit
Closes https://gitlab.com/gitlab-org/gitlab/-/issues/300479 When creating a merge request, the behaviour of the prefilled title and discription is different than the behaviour of squashed commit messages. For squashed commit messages, the behaviour is described in the [docs](https://docs.gitlab.com/ee/user/project/merge_requests/squash_and_merge.html#overview) as > Taken from the first multi-line commit message in the merge. However, for merge requests, the current behavior is to use the branch name. This commit sets the prefilled MR title/description to the first multi-line commit in the MR, if applicable. Otherwise falling back to the previous behaviour.
显示
- app/models/merge_request.rb 8 个添加, 1 个删除app/models/merge_request.rb
- app/services/merge_requests/build_service.rb 11 个添加, 5 个删除app/services/merge_requests/build_service.rb
- changelogs/unreleased/300479-change-prefilled-mr-title-description.yml 5 个添加, 0 个删除...released/300479-change-prefilled-mr-title-description.yml
- doc/user/project/merge_requests/creating_merge_requests.md 6 个添加, 3 个删除doc/user/project/merge_requests/creating_merge_requests.md
- spec/services/merge_requests/build_service_spec.rb 93 个添加, 30 个删除spec/services/merge_requests/build_service_spec.rb
加载中
想要评论请 注册 或 登录