Skip to content

prepare_release_notes.py: add ability to automatically create the release in gitlab.

Now if you use a gitlab token when running prepare_release_notes.py, you will get prompted: Would you like me to create the release for you in gitlab (i.e. make the tag and fill in the release notes)? (y/N) if you answer yes, then the script will tag the release, and add the generated release notes).

An example is here: https://gitlab.cern.ch/atlas/athena/-/releases/release%2F23.0.5

This relies on a newer gitlab-python version (the current default is 1.4 which is too old), but lsetup "gitlab testing" will get a sufficiently modern version. See ATLINFR-4663 for details.

N.B. There appears to be a bug - when you create a release from the web interface, the tag is created automatically, but when you use the gitlab api this does not happen. So this MR contains a workaround for this.

cc @elmsheus, @nstyles, @wlampl, @fwinkl, @abarton, @strichte, @jmaurer

Merge request reports