| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
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.
List all the events (paginated):
events = gl.events.list(get_all=True)
List the issue events on a project:
events = project.events.list(target_type='issue', get_all=True)
List the user events:
events = project.events.list(get_all=True)
You can list and get specific resource state events (via their id) for project issues and project merge requests.
List the state events of a project issue (paginated):
state_events = issue.resourcestateevents.list(get_all=True)
Get a specific state event of a project issue by its id:
state_event = issue.resourcestateevents.get(1)
List the state events of a project merge request (paginated):
state_events = mr.resourcestateevents.list(get_all=True)
Get a specific state event of a project merge request by its id:
state_event = mr.resourcestateevents.get(1)
| Back | FazBrowse Home | New Git URL |