diff options
Diffstat (limited to 'app/workers/auto_devops/disable_worker.rb')
-rw-r--r-- | app/workers/auto_devops/disable_worker.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/workers/auto_devops/disable_worker.rb b/app/workers/auto_devops/disable_worker.rb index 9ec3e5490c2..03613db3f29 100644 --- a/app/workers/auto_devops/disable_worker.rb +++ b/app/workers/auto_devops/disable_worker.rb @@ -32,8 +32,12 @@ module AutoDevops def email_receivers_for(pipeline, project) recipients = [pipeline.user&.email] - recipients << project.owner.email unless project.group - recipients.uniq.compact + + if project.personal? + recipients << project.owners.map(&:email) + end + + recipients.flatten.uniq.compact end end end |