e-mail: allow to customize the prefix used in the subject of outgoing mails

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

  • Label this issue
  • Close this issue

Description

Atm, gitlab sends emails with a subject of "<project-name> | <issue-subject>". This does not work very well when software projects are organized in (sub)groups are used which are having similar layouts. E.g. we have a structure like

.
|-- ksp001
|   |-- doc
|   |-- kernel
|   `-- BSP
|-- ksp002
.   |-- doc
.   |-- kernel
    `-- BSP

Generated subjects will be

Subject: kernel | there is some bug

It would be nice when the "<project>" part can be configured on a group and/or project level. So, more meaningful subjects like

Subject: [ksp002] there is some bug

or

Subject: [ksp002/kernel] there is some bug

would be possible.

Automatic and fits-all-cases prefixes (the part in [....]) are probably not possible, because:

  • complete paths can be too long
  • only the leafs might be too short in deeply nested projects where some component in the middle identifies the software project

Of course, filtering would be possible with the existing setup where the X-GitLab-Project-Path path contains the full header. But it is very difficult/impossible to teach users how to implement filtering in their MUAs...

Edited Jun 21, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading