blob: 8071b00fb65cdb7091ba398c732ef255abd47051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
######
Events
######
Reference
---------
* v4 API:
+ :class:`gitlab.v4.objects.Event`
+ :class:`gitlab.v4.objects.EventManager`
+ :attr:`gitlab.Gitlab.events`
+ :class:`gitlab.v4.objects.ProjectEvent`
+ :class:`gitlab.v4.objects.ProjectEventManager`
+ :attr:`gitlab.v4.objects.Project.events`
+ :class:`gitlab.v4.objects.UserEvent`
+ :class:`gitlab.v4.objects.UserEventManager`
+ :attr:`gitlab.v4.objects.User.events`
* GitLab API: https://docs.gitlab.com/ce/api/events.html
Examples
--------
You can list events for an entire Gitlab instance (admin), users and projects.
You can filter you events you want to retrieve using the ``action`` and
``target_type`` attributes. The possible values for these attributes are
available on `the gitlab documentation
<https://docs.gitlab.com/ce/api/events.html>`_.
List all the events (paginated)::
events = gl.events.list()
List the issue events on a project::
events = project.events.list(target_type='issue')
List the user events::
events = project.events.list()
|