From 5292ffb366f97e4dc611dfd49a1dca7d1e934f4c Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 20 May 2018 09:01:05 +0200 Subject: [docs] Rework the examples pages * Get rid of the .py files and bring all the python examples in the RST files * Fix a few things --- docs/gl_objects/notifications.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 docs/gl_objects/notifications.py (limited to 'docs/gl_objects/notifications.py') diff --git a/docs/gl_objects/notifications.py b/docs/gl_objects/notifications.py deleted file mode 100644 index c46e36e..0000000 --- a/docs/gl_objects/notifications.py +++ /dev/null @@ -1,21 +0,0 @@ -# get -# global settings -settings = gl.notificationsettings.get() -# for a group -settings = gl.groups.get(group_id).notificationsettings.get() -# for a project -settings = gl.projects.get(project_id).notificationsettings.get() -# end get - -# update -# use a predefined level -settings.level = gitlab.NOTIFICATION_LEVEL_WATCH -# create a custom setup -settings.level = gitlab.NOTIFICATION_LEVEL_CUSTOM -settings.save() # will create additional attributes, but not mandatory - -settings.new_merge_request = True -settings.new_issue = True -settings.new_note = True -settings.save() -# end update -- cgit v1.2.1