@sebbo2002/gitlab-badges
v8.0.0
Published
It's like a very tiny shields.io (without website) for your private GitLab instance…
Readme
GitLab Badges
This server acts like a very tiny shields.io to generate SVG badges for your private GitLab instance. Uses shield.io's gh-badges to generate them.
📦 Installation
npm i -g @sebbo2002/gitlab-badges
gitlab-badges
# OR
docker run -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=**** sebbo2002/gitlab-badges🔧 Configuration
Use environment variables to set login credentials and pushover tokens:
📑 API
/:projectId/:branch/build
Generates a badge with the current build state of the latest commit in the given branch. You'll find your project's ID in the GitLab project settings.
Example
https://gitlab-badges.example.com/1337/master/build/:projectId/:branch/coverage
Generates a badge with the current build coverage of the latest commit in the given branch. You'll find your project's ID in the GitLab project settings.
Example
https://gitlab-badges.example.com/1337/master/coverage/cache
Returns all currently cached data as a JSON object.
/ping
Returns pong. Usually helpful to monitor the server in a very basic way.
🙆🏼♂️ Copyright and license
Copyright (c) Sebastian Pekarek under the MIT license.
