diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-09 06:13:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-09 06:13:31 +0300 |
commit | 97b58a8a76559ddfed510c8a867c7dc1b0bbfc24 (patch) | |
tree | ae77c9dbd7bcbaa51b62b4668e3f2963a01ea86c /app/mailers | |
parent | 386339e38e501273877d30001e98e3cc807b28bf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/projects.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb index 06ba16f9724..14c724b5b91 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -59,6 +59,7 @@ module Emails def prometheus_alert_fired_email(project, user, alert) @project = project @alert = alert.present + @incident = alert.issue add_project_headers add_alert_headers @@ -80,11 +81,10 @@ module Emails end def add_incident_headers - incident = @alert.issue - return unless incident + return unless @incident - headers['X-GitLab-Incident-ID'] = incident.id - headers['X-GitLab-Incident-IID'] = incident.iid + headers['X-GitLab-Incident-ID'] = @incident.id + headers['X-GitLab-Incident-IID'] = @incident.iid end end end |