FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

python-gitlab/docs/gl_objects/system_hooks.rst at v8.6.0 · python-gitlab/python-gitlab · GitHub

Repository navigation

Latest commit

 

History

History
35 lines (22 loc) · 600 Bytes

File metadata and controls

35 lines (22 loc) · 600 Bytes

System hooks

Reference

Examples

List the system hooks:

hooks = gl.hooks.list(get_all=True)

Create a system hook:

gl.hooks.get(hook_id)

Test a system hook. The returned object is not usable (it misses the hook ID):

hook = gl.hooks.create({'url': 'http://your.target.url'})

Delete a system hook:

gl.hooks.delete(hook_id)
# or
hook.delete()

Back | FazBrowse Home | New Git URL