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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7f2219dd433df2fe7e3b29ca68352a3e8122ccfd9865db76f243e4d879434c |
|
MD5 | 547065d8b61180df66a37a1f03368382 |
|
BLAKE2b-256 | ef5e78459c29aa0e1f6fc7ec0f44acd020a3ad935ac477cde38824aff8f62551 |
Close
Hashes for gitlab_deployment_changelog-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8298363e4f91889e37756fb420612fbf8770a38a92bf750b553dfbfcfc937c41 |
|
MD5 | 4e07c4e8532d260ea8e6acb02c5ebe6c |
|
BLAKE2b-256 | 0923a173115a44f2c7e9f6579c65637a135dcfc03ec902a606662de913a6628e |