API
- class dalec_gitlab.proxy.GitlabProxy(*args: Any, **kwargs: Any)
Gitlab dalec proxy to fetch the last :
content_type = {“issue”, “event”, “milestone”}
- For issue:
channel = {“group”, “project”}
channel_object = group id or public_id, project id or public_id
- For event:
channel = {“group”, “project”, “user”}
channel_object = group id or public_id, project id or public_id, or user username
- For milestone:
channel = {“group”, “project”}
channel_object = group id or public_id, project id or public_id
- app = 'gitlab'
- _fetch(nb: int, content_type: str, channel: str, channel_object: str) Dict[str, dict]
- _filter_channel(channel=None, channel_object=None)
- _fetch_issue(nb, channel=None, channel_object=None)
- _fetch_event(nb, channel=None, channel_object=None)
Get the latest event from gitlab.
If channel is “group”, “project” or “user” we retrieve the event belonging to the channel.
FUTUR: If channel is “dashboard”, we retrieve event similar to the “/dashboard/activity” of a user (i.e. all activities related to the user, not from the user (see https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19816).)
- _fetch_milestone(nb, channel=None, channel_object=None)
Retrieve milestone and associated issues.
ordering by last updated_at