Skip to content

Merge request approval triggers notification to the action author with X-GitLab-Notification-Reason:own_activity missing

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Missing e-mail header X-GitLab-Notification-Reason: own_activity for some notifications after enabling Receive notifications about your own activity checkbox.

Approving merge requests triggers an e-mail notification without the mentioned header although it's clearly my doing.

Steps to reproduce

Enable checkbox Receive notifications about your own activity in your Notifications settings, approve a merge request and inspect headers on received e-mail message.

Example Project

Not project related. But an example in section Relevant logs and/or screenshots relates to jindraj/test

What is the current bug behavior?

An e-mail notification is completely missing header X-GitLab-Notification-Reason

What is the expected correct behavior?

E-mail notification should contain X-GitLab-Notification-Reason header with value own_activity

Relevant logs and/or screenshots

Here's message with partial headers part, but still containing all the X-GitLab-* headers that were sent.

From: "Jakub Jindra (@jindraj)" <gitlab@mg.gitlab.com>
To: REDACTED
Date: Tue, 13 Aug 2024 20:31:44 +0000
Subject: Re: test | test (!1)
List-Id: jindraj/test <60831452.test.jindraj.gitlab.com>
X-GitLab-Project: test
X-GitLab-Project-Id: 60831452
X-GitLab-Project-Path: jindraj/test
X-GitLab-MergeRequest-ID: 321143557
X-GitLab-MergeRequest-IID: 1
X-GitLab-MergeRequest-State: opened
X-GitLab-Reply-Key: e69e3da142d9297371a63e601dbb59d1

Merge request !1 was approved by Jakub Jindra
Merge request URL: https://gitlab.com/jindraj/test/-/merge_requests/1
Branches: test to main
Author: Jakub Jindra
Assignees:
Reviewers:

--
You're receiving this email because of your account on gitlab.com.

Output of checks

Results of GitLab environment info

N/A

Results of GitLab application Check

N/A

Possible fixes

Edited by 🤖 GitLab Bot 🤖