The giltab release-notes checker is a simple cli for gitlab-ci to prevent deploy project without release-notes.
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.
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
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.
if you using this tool please consider giving it a star! ⭐