Generate badges for Gitlab Projects in Public and Private Repositories
Project description
Badges Gitlab
This project was created to generate badges for Gitlab in CI jobs, mainly for private repositories where other common methods are not available (direct API Calls, shields.io, etc...).
By default, Gitlab supports only two types of badges: pipeline and test coverage.
These badges are better detailed at: Gitlab Project Badges.
Installation
You can install this package from pypi using pip.
$ pip install badges-gitlab
General Usage
usage: badges-gitlab [-h] [-p PATH] [-t TOKEN] [--junit-xml FILE_PATH] [-s LABEL MESSAGE COLOR]
[-lb URLS [URLS ...]] [-V]
Generate Gitlab Badges using JSON files and API requests. Program version v0.0.0.
optional arguments:
-h, --help show this help message and exit
-p TEXT, --path TEXT path where json and badges files will be generated/located (default: ./public/badges/)
-t TEXT, --token TEXT specify the private-token in command line (default: ${PRIVATE_TOKEN})
--junit-xml TEXT specifies the path of a JUnit XML file for parsing the test results
-s LABEL MESSAGE COLOR, --static-badges LABEL MESSAGE COLOR
specify static badges in command line using lists
-lb URLS [URLS ...], --link-badges URLS [URLS ...]
specify shields.io urls to download badges
-V, --version returns the package version
Author
Felipe Pinheiro Silva
Further Documentation
Slowly moving documentation to ReadTheDocs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
badges-gitlab-0.8.0.tar.gz
(40.7 kB
view hashes)
Built Distribution
Close
Hashes for badges_gitlab-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d04bb6f37432b9361fbca258a53e069fce0e7aae5ad28cc034338adc512f7e |
|
MD5 | f119f3a7203278c4213531bbaaaff511 |
|
BLAKE2b-256 | d276efd293da00b6a2a97cd337c31c204adb3cb87356b9d2cd514519877bd9ff |