Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now
Optional Merge Request notifications for approvers
## Problem to Solve Users who are listed as approvers on a merge request are not notified of new merge request requiring their approval. ## Additional Details In https://gitlab.com/gitlab-org/gitlab/issues/616, users with approver and other roles to play in the MR were no longer automatically made participants which reduced notifications to only MRs where they were an active participant. ## Proposal An optional project level configuration should be created to enable a one-time notification (Email + To-Do) on MR creation for eligible approvers. This will provide a notification that an MR needs to be addressed, but will not add those members as participants for subsequent notifications on the MR (unless they become a participant). **IMPORTANT NOTE:** This issue is labeled ~"Accepting merge requests" and is **NOT** something that GitLab will work towards as it does not align with our vision for Reviewers and the Review process. We will accept a community contribution for the outlined proposal. More details in: https://gitlab.com/gitlab-org/gitlab/-/issues/12855#note_489881317 <details><summary>Original Description</summary> <!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label. For the Community Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=bug For the Enterprise Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary When creating a merge request (from feature branch to dev branch), notification emails are not sent to approvers ### Steps to reproduce Repo setup: accept FF merges only Notification setting of approvers for repo: Global (Participate) 1. Create a dev branch from master 2. Create a feature branch from dev branch 3. Push commits to feature branch 5. Create merge request from feature branch, change target branch to dev branch 6. Select author as assignee 6. Set No. of approvers to 1, select 2 approvers. 7. Submit the merge request ### Example Project N/A ### What is the current *bug* behavior? Notification emails are not sent to approvers. ### What is the expected *correct* behavior? Notification of the new merge request is sent to approvers. ### Relevant logs and/or screenshots N/A ### Output of checks This bug happens on GitLab.com #### Results of GitLab environment info N/A #### Results of GitLab application Check N/A ### Possible fixes </details> ## Implementation Plan We will probably need to do something like: 1. Add a new column to the `project_settings` table using a database migration: https://docs.gitlab.com/ee/development/migration_style_guide.html#create-a-regular-schema-migration 1. Build the functionality to send the notifications (probably using https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/services/notification_service.rb) and create the todos (probably using https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/services/todo_service.rb) 1. Allow the field to be set/toggled (probably via the merge request approval settings API https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/lib/api/merge_request_approval_settings.rb) 1. Add the field to the UI (https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/approvals/components/approval_settings.vue) We probably do NOT need to build this behind a feature flag because it is behind a setting.
issue