Gitlab Deployment Changelog Creator
Project description
Gitlab Deployment Changelog
Home of this code is now https://github.com/ExB-Group/gitlab-deployment-changelog
This package grabs the last n
deployments for a project from gitlab and creates a summary of the merge requests
and their issues. Decoration is done based on scoped labels type::
. As of now we cover bug
. Everything else is
considered as a feature. Merge requests without issues, were indicated as well.
Mandatory setup
- set gitlab access token
PAT
(https://gitlab.com/-/profile/personal_access_tokens) WEBHOOK_URL
for slack- go to https://api.slack.com/apps
- create or select your app
- Features/Incoming Webhooks
- Add new webhook to workspace, select the channel where you would like to see the notifications
How to use at all
> pip install gitlab-deployment-changelog
> gdc -h
usage: Gitlab Deployment Changelog [-h] [-c COUNT] [-n] [-d] env
positional arguments:
env Name of the environment
options:
-h, --help show this help message and exit
-c COUNT, --count COUNT
How many last deployments to consider
-n, --no_slack Dont send to slack
-d, --debug Show debug output
> gdc environment_to_run_again # find merges and issues which were deployed
How to use locally or manually
- checkout
pdm install
- Make sure you have
PROJECT_ID
properly set pdm run changelog <environment>
, the environment is mandatory and could be something likeproduction/the_exb
Pipeline usage
- call it with the environment name as argument, e.g.,
pdm run changelog staging/the_exb
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
Built Distribution
Close
Hashes for gitlab-deployment-changelog-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2adda8b730db15320cb00ca583333a917eef9f6d063cd76deb352d0b2abf070d |
|
MD5 | 51147ed1890775079653b5c5cd334ae4 |
|
BLAKE2b-256 | 8d5b8f4145c639aa2c35918d014c9bd64c8a3092b34c9d56f4ac3e474408a980 |
Close
Hashes for gitlab_deployment_changelog-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677ef65321e514b3aed765db78de6916a02d77cef26900c94928bcc3793b71ea |
|
MD5 | fda7fbdd88acbcc63b5342ba0e542fb6 |
|
BLAKE2b-256 | 288f417a644d22ea940ae0dc72f2b19f67c7c33e71a8b9561fd5f91054b13834 |