X Tutup
Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.87 KB

File metadata and controls

60 lines (46 loc) · 1.87 KB

Notification settings

You can define notification settings globally, for groups and for projects. Valid levels are defined as constants:

  • gitlab.NOTIFICATION_LEVEL_DISABLED
  • gitlab.NOTIFICATION_LEVEL_PARTICIPATING
  • gitlab.NOTIFICATION_LEVEL_WATCH
  • gitlab.NOTIFICATION_LEVEL_GLOBAL
  • gitlab.NOTIFICATION_LEVEL_MENTION
  • gitlab.NOTIFICATION_LEVEL_CUSTOM

You get access to fine-grained settings if you use the NOTIFICATION_LEVEL_CUSTOM level.

Reference

Examples

Get the settings:

.. literalinclude:: notifications.py
   :start-after: # get
   :end-before: # end get

Update the settings:

.. literalinclude:: notifications.py
   :start-after: # update
   :end-before: # end update
X Tutup