Skip to main content

🦝 dalec-gitlab

Stable Version Code style: black Imports: isort semver

Django Aggregate a Lot of External Content -- Gitlab

Aggregate last gitlab issue or event from a given gitlab instance.

Plugin of 🤖 dalec.

Installation

pip install dalec_gitlab

In django settings INSTALLED_APPS, add:

INSTALLED_APPS = [
    ...
    "dalec",
    "dalec_prime",
    "dalec_gitlab",
    ...
    ]

Usage

General usage: in a template

{% load dalec %}

{% dalec "gitlab" content_type [channel=None] [channel_object=None] [channel_objects=None] [template=None] [ordered_by=None] %}

Real examples

content_type "issue"

  • Available channel: group, project.
  • Available channel_object: group or project id or public_id
  • Available channel_objects: list of group or project id or public_id

Retrieves recent gitlab issues for a project:

{% dalec "gitlab" "issue" channel="project" channel_object="14" %}

Or for multiple projects at once:

{% dalec "gitlab" "issue" channel="project" channel_objects=["14", "42"] %}

content_type "event"

  • Available channel: group, project, user.
  • Available channel_object: group or project id or public_id, or user username
  • Available channel_objects: list of group or project id or public_id, or user username

Retrieves recent gitlab activity for a user:

{% dalec "gitlab" "event" channel="user" channel_object="doctor-who" %}

Retrieves recent gitlab activity for a group:

{% dalec "gitlab" "event" channel="group" channel_object="42" %}

Retrieves recent gitlab activity for a project:

{% dalec "gitlab" "event" channel="project" channel_object="512" %}

content_type "milestone"

  • Available channel: group, project.
  • Available channel_object: group or project id or public_id
  • Available channel_objects: list of group or project id or public_id

Milestone are retrieve by descending updated date.

Retrieves gitlab milestone for a project or group:

{% dalec "gitlab" "milestone" channel="project" channel_object="14" %}

{% dalec "gitlab" "milestone" channel="group" channel_object="42" %}

Settings

Django settings must define:

  • DALEC_GITLAB_BASE_URL : gitlab instance url (ex: https://gitlab.com/)
  • DALEC_GITLAB_API_TOKEN : gitlab api token (ex: azeazeaezdfqsmlkrjzr)

Metadata

Release files for dalec-gitlab 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dalec-gitlab 0.1.4
File Size Uploaded
dalec-gitlab-0.1.4.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dalec-gitlab 0.1.4
File Interpreter ABI Platform
dalec_gitlab-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / dalec-gitlab-0.1.4.tar.gz

Download URL dalec-gitlab-0.1.4.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
18b92a9e4fde104c97841003faf2c6004c6a3fc7e9656961e5ccbb890762fe9e
BLAKE2b-256 checksum
How to use checksums
4a70828f43bdb1be794d6e2073eb532e992f7e840d9f670573436f9a91e29af1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / dalec_gitlab-0.1.4-py3-none-any.whl

Download URL dalec_gitlab-0.1.4-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc7de25880531f178b3ca5e8b104fa739ded525b825e58ad3bfd764b2691264c
BLAKE2b-256 checksum
How to use checksums
8357cdd7e728e7f9e507ed68180c3942a1ada58578edc5aee75a73fc90d3beb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page