Skip to main content

GitLab group configuration as code

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Python Gitlab Management

Pipelien Status - Stable Pipelien Status - Dev PyPi Version License: LGPL v3 Read the Docs (version) Read the Docs (version)

Gitlab-management is python module that enables GitLab group configuration from code. By design it's intended to be setup to run on a schedule.

How to Use

GitLab-Management can be used from the command line or imported as a python module.

Feature wise this module only process labels (create/add). over time features will be added. please see the milestones, issue and merge requests at the home page.

For please refer to the docs.

Python Module

To install run pip install gitlab-management. from there you will be able to use and extend the module as you see fit.

CLI

Gitlab-management can be used via cli with command python3 -m gitlab-management -H {GITLAB_URL} -T {GITLAB_PRIVATE_TOKEN} replacing {GITLAB_URL} with the gitlab url and {GITLAB_PRIVATE_TOKEN} with your gitlab private token. to view all available options, use switch -h or --help

Config File

The configuration file for this module (config.yml) is a yml formated file that is required to be in the directory that the command is ran from.

The layout of the yml file

Group:
    Labels:
        -
            Group: Example1
            Name: Bug
            Description: "Items that are bugs or bug related"
            Color: "#FF0000"

        -
            Group: 
                - Example1
                - Example2
            Name: Feature
            Description: "Items that are feature related"
            Color: "#00FF00"

Group.Labels is a list of dict for each label that is to be created add a new dict to the list under Group.Labels

Group.Labels.#.Group can be a single string which is the name of an existing group that the user has access to as maintainer. Group.Labels.#.Group can also be a list of group names that the label will be added to.

Issues, Feature Requests and Bugs

If an issue or bug is found within the package (i.e. exception), please create an issue ticket using the applicable issue template available at the time of ticket creation. If you would like to request a feature and are unable to contribute, please create an issue using the feature issue template.

Contributing

Contribution guide can be viewed in the repo.

Licence

The package licence can be viewed in the repo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab-management-0.1.2rc2006061112.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitlab_management-0.1.2rc2006061112-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file gitlab-management-0.1.2rc2006061112.tar.gz.

File metadata

  • Download URL: gitlab-management-0.1.2rc2006061112.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

File hashes

Hashes for gitlab-management-0.1.2rc2006061112.tar.gz
Algorithm Hash digest
SHA256 d1eedb407309b0362327e1ecc1872d811d5432a6a0ef35dc036046b83ed6f9eb
MD5 7f1abf4d2a2add2c828db9090ff3e82f
BLAKE2b-256 cd845e9321adc06838deb3d8e2310f1f9e16f16e709f937eb4387b0730278164

See more details on using hashes here.

File details

Details for the file gitlab_management-0.1.2rc2006061112-py3-none-any.whl.

File metadata

  • Download URL: gitlab_management-0.1.2rc2006061112-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

File hashes

Hashes for gitlab_management-0.1.2rc2006061112-py3-none-any.whl
Algorithm Hash digest
SHA256 1527c404114892728b117827cfa5d2c2fa85f3819518d2dbf9a31cd796dba88f
MD5 1a0c0acb5d17b724977614ccbd447bca
BLAKE2b-256 e0551d7a61fa0326ca2c91a98f07d2326faf8984559b5b5c676f81aaf8adaa3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page