GitLab has a notification system in place to notify a user of events that are important for the workflow.

Notification settings

You can find notification settings under the user profile.

Notification settings are divided into three groups:

  • Global settings
  • Group settings
  • Project settings

Each of these settings have levels of notification:

  • Watch: Receive notifications for any activity.
  • On Mention: Receive notifications when @mentioned in comments.
  • Participate: Receive notifications for threads you have participated in.
  • Disabled: Turns off notifications.
  • Custom: Receive notifications for custom selected events.
  • Global: For groups and projects, notifications as per global settings.

Global Settings

Global settings are at the bottom of the hierarchy. Any setting set here will be overridden by a setting at the group or a project level.

Group or Project settings can use global notification setting which will then use anything that is set at Global Settings.

Group Settings

Group settings are taking precedence over Global Settings but are on a level below Project or Subgroup settings:

Group < Subgroup < Project

This means that you can set a different level of notifications per group while still being able to have a finer level setting per project or subgroup. Organization like this is suitable for users that belong to different groups but don’t have the same need for being notified for every group they are member of. These settings can be configured on group page under the name of the group. It will be the dropdown with the bell icon. They can also be configured on the user profile notifications dropdown.

Project Settings

Project settings are at the top level and any setting placed at this level will take precedence of any other setting. This is suitable for users that have different needs for notifications per project basis. These settings can be configured on project page under the name of the project. It will be the dropdown with the bell icon. They can also be configured on the user profile notifications dropdown.

Notification events

Below is the table of events users can be notified of:

Event Sent to Settings level
New SSH key added User Security email, always sent.
New email added User Security email, always sent.
New user created User Sent on user creation, except for omniauth (LDAP)
User added to project User Sent when user is added to project
Project access level changed User Sent when user project access level is changed
User added to group User Sent when user is added to group
Group access level changed User Sent when user group access level is changed
Project moved Project members [1] [1] not disabled

Issue / Merge request events

In most of the below cases, the notification will be sent to:

  • Participants:

    • the author and assignee of the issue/merge request
    • authors of comments on the issue/merge request
    • anyone mentioned by @username in the issue/merge request title or description
    • anyone mentioned by @username in any of the comments on the issue/merge request …with notification level “Participating” or higher
  • Watchers: users with notification level “Watch”
  • Subscribers: anyone who manually subscribed to the issue/merge request
  • Custom: Users with notification level “custom” who turned on notifications for any of the events present in the table below
Event Sent to
New issue  
Close issue  
Reassign issue The above, plus the old assignee
Reopen issue  
Due issue Participants and Custom notification level with this event selected
Change milestone issue Subscribers, participants mentioned, and Custom notification level with this event selected
Remove milestone issue Subscribers, participants mentioned, and Custom notification level with this event selected
New merge request  
Push to merge request Participants and Custom notification level with this event selected
Reassign merge request The above, plus the old assignee
Close merge request  
Reopen merge request  
Merge merge request  
Change milestone merge request Subscribers, participants mentioned, and Custom notification level with this event selected
Remove milestone merge request Subscribers, participants mentioned, and Custom notification level with this event selected
New comment The above, plus anyone mentioned by @username in the comment, with notification level “Mention” or higher
Failed pipeline The author of the pipeline
Successful pipeline The author of the pipeline, if they have the custom notification setting for successful pipelines set
New epic  

In addition, if the title or description of an Issue or Merge Request is changed, notifications will be sent to any new mentions by @username as if they had been mentioned in the original text.

You won’t receive notifications for Issues, Merge Requests or Milestones created by yourself (except when an issue is due). You will only receive automatic notifications when somebody else comments or adds changes to the ones that you’ve created or mentions you.

If an open merge request becomes unmergeable due to conflict, its author will be notified about the cause. If a user has also set the merge request to automatically merge once pipeline succeeds, then that user will also be notified.

Email Headers

Notification emails include headers that provide extra content about the notification received:

Header Description
X-GitLab-Project The name of the project the notification belongs to
X-GitLab-Project-Id The ID of the project
X-GitLab-Project-Path The path of the project
X-GitLab-(Resource)-ID The ID of the resource the notification is for, where resource is IssueMergeRequestCommit, etc
X-GitLab-Discussion-ID Only in comment emails, the ID of the discussion the comment is from
X-GitLab-Pipeline-Id Only in pipeline emails, the ID of the pipeline the notification is for
X-GitLab-Reply-Key A unique token to support reply by email
X-GitLab-NotificationReason The reason for being notified. “mentioned”, “assigned”, etc

X-GitLab-NotificationReason

This header holds the reason for the notification to have been sent out, where reason can be mentionedassignedown_activity, etc. Only one reason is sent out according to its priority:

  • own_activity
  • assigned
  • mentioned

The reason in this header will also be shown in the footer of the notification email. For example an email with the reason assigned will have this sentence in the footer: "You are receiving this email because you have been assigned an item on {configured GitLab hostname}"

GitLab Notification Emails的更多相关文章

  1. Jenkins + Ansible + Gitlab之gitlab篇

    前言 持续交付 版本控制器:Gitlab.GitHub 持续集成工具:jenkins 部署工具:ansible  课程安排 Gitlab搭建与流程使用 Ansible环境配置与Playbook编写规范 ...

  2. 远程办公的GitLab开源的员工手册:涵盖了公司价值观,内部沟通交流指南,开发流程,如何开会,写作风格指南,如何报销,如何请假,线上办公工具推荐等方方面面

    原文 :https://docs.gitlab.com.cn/ce/ 英文 :https://about.gitlab.com/handbook/ GitLab Community Edition G ...

  3. 在CentOS6.4上安装GitLab

    1.Install and configure the necessary dependencies On CentOS 6 (and RedHat/Oracle/Scientific Linux 6 ...

  4. 二、CentOS 7安装部署GitLab服务器(解决邮箱发信问题)

    一.环境安装(10.0.0) 1.安装依赖软件 yum -y install policycoreutils policycoreutils-python openssh-server openssh ...

  5. [转]gitlab ci/cd 发布

    转自 https://meigit.readthedocs.io/en/latest/configure_gitlab_i18n_and_create_gitlab_ci_with_gitlab_ru ...

  6. ofbiz 本地化及邮件设置126邮箱

    ofibz登陆功能有通过电子邮件找会密码的功能,但找回密码功能需要配置一个发送email的邮箱账号和smtp服务器的配置,具体配置如下: 1:在ofbiz数据库的表product_store_emai ...

  7. The Google Test and Development Environment (持续更新)

    最近Google Testing Blog上开始连载The Google Test and Development Environment(Google的测试和开发环境),因为blogspot被墙,我 ...

  8. Linux 上使用 Gmail SMTP 服务器发送邮件通知

    导读 假定你想配置一个 Linux 应用,用于从你的服务器或桌面客户端发送邮件信息.邮件信息可能是邮件简报.状态更新(如 Cachet).监控警报(如 Monit).磁盘时间(如 RAID mdadm ...

  9. galera cluster,mysql配置wsrep_notify_cmd参数,增加邮件告警

    vi /usr/local/sunlight/wsrep_notify_cmd.sh chown mysql:mysql  /usr/local/sunlight/wsrep_notify_cmd.s ...

随机推荐

  1. Selenium2+python自动化49-判断文本(text_to_be_present_in_element)

    前言 在做结果判断的时候,经常想判断某个元素中是否存在指定的文本,如登录后判断页面中是账号是否是该用户的用户名. 在前面的登录案例中,写了一个简单的方法,但不是公用的,在EC模块有个方法是可以专门用来 ...

  2. Kafka分布式环境搭建 (二)赞

    这篇文章将介绍如何搭建kafka环境,我们会从单机版开始,然后逐渐往分布式扩展.单机版的搭建官网上就有,比较容易实现,这里我就简单介绍下即可,而分布式的搭建官网却没有描述,我们最终的目的还是用分布式来 ...

  3. css3 transform方法常用属性

    css3中transform方法是一个功能强大的属性,可以对元素进行移动.缩放.转动.拉长或拉伸等功能. transform中最为常用的4个属性分别是:rotate();.scale();.skew( ...

  4. Hashing图像检索源码及数据库总结

    下面的这份哈希算法小结来源于本周的周报,原本并没有打算要贴出来的,不过,考虑到这些资源属于关注利用哈希算法进行大规模图像搜索的各位看官应该很有用,所以好东西本小子就不私藏了.本资源汇总最主要的收录原则 ...

  5. HTTP协议状态码详解(HTTP Status Code)(转)

    原文链接:HTTP协议状态码详解(HTTP Status Code) 使用ASP.NET/PHP/JSP 或者javascript都会用到http的不同状态,一些常见的状态码为: 200 – 服务器成 ...

  6. Java基础(四):Java Number & Math 类、Character 类、String 类、StringBuffer & StringBuilder 类

    一.Java Number & Math 类: 1.Number类: 一般地,当需要使用数字的时候,我们通常使用内置数据类型,如:byte.int.long.double 等.然而,在实际开发 ...

  7. android 中的 window,view,activity具体关系

    通过讨论这个问题,我们能够见识到google是对面向对象模式的理解,能够理解android底层的一些调用.这也是一道很常见的面试题. 我们这篇文章就来解决这四个问题: Android  中view的显 ...

  8. js 继承概述

    上文讲述过js实现面向对象,一定是能够实现继承的效果的.尽管说非常多的js框架都帮助我们实现了继承的功能.或者说在日常的工作和学习中我们压根就用不到js的继承,可是我们还是须要了解一下js中继承.以方 ...

  9. 帝吧fb出征是什么原因?帝吧fb出征事情始末 帝吧出征FB打“台独” 台湾网民崩溃:巨人之墙爆了

    帝吧出征FB打"台独" 台湾网民崩溃:巨人之墙爆了 发表时间:2016-01-20 21:08:10 字号:A-AA+ 关键字: 帝吧帝吧出征FB帝吧出征FB打台独台独脸书巨人之墙 ...

  10. 拓展javascript内置函数

    1.获取字符串字节数 //获取字符串字节数 //方法一 /* */ String.prototype.getBytesLength = function () { var length = 0; fo ...