{"id":21114577,"url":"https://github.com/webu/dalec-gitlab","last_synced_at":"2025-09-14T15:08:36.909Z","repository":{"id":176598982,"uuid":"657626086","full_name":"webu/dalec-gitlab","owner":"webu","description":"DALEC -- Aggregate a lot of gitlab content for django","archived":false,"fork":false,"pushed_at":"2023-07-04T15:39:38.000Z","size":125,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-08T18:43:06.324Z","etag":null,"topics":["aggregator","dalec","django","gitlab"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-23T13:22:45.000Z","updated_at":"2023-07-07T13:25:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"2be15d07-b059-4beb-8ab2-4c53d141bd13","html_url":"https://github.com/webu/dalec-gitlab","commit_stats":null,"previous_names":["webu/dalec-gitlab"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/webu/dalec-gitlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webu%2Fdalec-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webu%2Fdalec-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webu%2Fdalec-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webu%2Fdalec-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webu","download_url":"https://codeload.github.com/webu/dalec-gitlab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webu%2Fdalec-gitlab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275121505,"owners_count":25409048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aggregator","dalec","django","gitlab"],"created_at":"2024-11-20T02:00:42.259Z","updated_at":"2025-09-14T15:08:36.886Z","avatar_url":"https://github.com/webu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦝 dalec-gitlab\n\n[![Stable Version](https://img.shields.io/pypi/v/dalec-gitlab?color=blue)](https://pypi.org/project/dalec-gitlab/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![semver](https://img.shields.io/badge/semver-2.0.0-green)](https://semver.org/)\n[![Documentation Status](https://readthedocs.org/projects/dalec-gitlab/badge/?version=latest)](https://dalec-gitlab.readthedocs.io/en/latest/?badge=latest)\n\nDjango Aggregate a Lot of External Content -- Gitlab\n\nAggregate last gitlab issue or event from a given gitlab instance.\n\nPlugin of [🤖 dalec](https://github.com/webu/dalec).\n\n## Installation\n\n```\npip install dalec_gitlab\n```\n\nIn django settings `INSTALLED_APPS`, add:\n\n```\nINSTALLED_APPS = [\n    ...\n    \"dalec\",\n    \"dalec_prime\",\n    \"dalec_gitlab\",\n    ...\n    ]\n```\n\n\n## Usage\n\nGeneral usage: in a template\n\n```django\n{% load dalec %}\n\n{% dalec \"gitlab\" content_type [channel=None] [channel_object=None] [channel_objects=None] [template=None] [ordered_by=None] %}\n```\n\n## Real examples\n\n### content_type \"issue\"\n\n- Available `channel`: `group`, `project`.\n- Available `channel_object`: group or project id or public_id\n- Available `channel_objects`: list of group or project id or public_id\n\n\nRetrieves recent gitlab issues for a project:\n\n```django\n{% dalec \"gitlab\" \"issue\" channel=\"project\" channel_object=\"14\" %}\n```\n\nOr for multiple projects at once:\n\n```django\n{% dalec \"gitlab\" \"issue\" channel=\"project\" channel_objects=[\"14\", \"42\"] %}\n```\n\n### content_type \"event\"\n\n- Available `channel`: `group`, `project`, `user`.\n- Available `channel_object`: group or project id or public_id, or user username\n- Available `channel_objects`: list of group or project id or public_id, or user username\n\n\nRetrieves recent gitlab activity for a user:\n\n```django\n{% dalec \"gitlab\" \"event\" channel=\"user\" channel_object=\"doctor-who\" %}\n```\n\nRetrieves recent gitlab activity for a group:\n\n```django\n{% dalec \"gitlab\" \"event\" channel=\"group\" channel_object=\"42\" %}\n```\n\nRetrieves recent gitlab activity for a project:\n\n```django\n{% dalec \"gitlab\" \"event\" channel=\"project\" channel_object=\"512\" %}\n```\n\n### content_type \"milestone\"\n\n- Available `channel`: `group`, `project`.\n- Available `channel_object`: group or project id or public_id\n- Available `channel_objects`: list of group or project id or public_id\n\nMilestone are retrieve by descending updated date.\n\nRetrieves gitlab milestone for a project or group:\n```django\n{% dalec \"gitlab\" \"milestone\" channel=\"project\" channel_object=\"14\" %}\n\n{% dalec \"gitlab\" \"milestone\" channel=\"group\" channel_object=\"42\" %}\n```\n\n## Settings\n\nDjango settings must define:\n\n  - `DALEC_GITLAB_BASE_URL` : gitlab instance url (ex: `https://gitlab.com/`)\n  - `DALEC_GITLAB_API_TOKEN` : gitlab api token (ex: `azeazeaezdfqsmlkrjzr`)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebu%2Fdalec-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebu%2Fdalec-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebu%2Fdalec-gitlab/lists"}