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
-v, --verbose Show more information incl legend
> 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
File details
Details for the file gitlab-deployment-changelog-0.2.0.tar.gz
.
File metadata
- Download URL: gitlab-deployment-changelog-0.2.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.11.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f7c01f87d9d96f57a3efa7205e677f07b4310df1ab301a143992fdddd554d82 |
|
MD5 | aeea4ec40fdc3f7a2d9851b4de68cf44 |
|
BLAKE2b-256 | 1f34fa5712224ff251b4758fcce4510b99b8ba7caca37411aae6ca65453c5f96 |
File details
Details for the file gitlab_deployment_changelog-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: gitlab_deployment_changelog-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.11.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a5e8cf10554ed2d4d0f4b6034e7f55b7fd4d2b5a0a9f6ad566e4ab52030ffe5 |
|
MD5 | 1fb842cec0ec4f308f1c4a825ccd0e40 |
|
BLAKE2b-256 | 290312f3f4e6664440933e0de7174841f192093bbbac2ba4659a00ed5370911a |