Skip to content
a simple cli for gitlab-ci to prevent deploy project without release-notes
Branch: master
Clone or download
behroozam
behroozam fix syntax
Latest commit e729955 Jun 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore 🎉 first commit Jun 12, 2019
.gitlab-ci.yml 🎉 first commit Jun 12, 2019
LICENSE Initial commit Jun 12, 2019
README.md fix syntax Jun 12, 2019
config.py.example 🎉 first commit Jun 12, 2019
release-notes.py 🎉 first commit Jun 12, 2019
requirements.txt 🎉 first commit Jun 12, 2019

README.md

GitLab Release-Notes checker

The giltab release-notes checker is a simple cli for gitlab-ci to prevent deploy project without release-notes.

How Release-Notes checker works

The giltab release-notes checker gets environment variables and configs from config.py. in config.py we have PRIVATE_TOKEN and GITLAB_URL that must set by user in config.py. CI_PROJECT_ID and CI_COMMIT_TAG is set automatically by gitlab-runner to environment variables.

giltab release-notes checks current tag in gitlab-runner match with the tag in release page and print release notes to pipeline output.

installation

get your PRIVATE_TOKEN from your gitlab personal access token page

pip3 install -r requirements.txt

mv config.py.example config.py

change values of config.py

python3 release-notes.py

how to use

clone the project in your /opt gitlab-runner linux directory

cd /opt && git clone https://github.com/behroozam/gitlab-release-notes

link the project to /usr/bin/

ln -s /opt/release-note/release-notes.py /usr/bin/release-notes

and finally using .gitlab-ci.yaml example in repository.

In The End

if you using this tool please consider giving it a star! ⭐

You can’t perform that action at this time.