Add script for generating release notes draft
A script for generating release notes from MR descriptions. It relies on having both a clone of the repository and access to the GitLab API.
Questions/answers:
- Is
LbRelease/scripts
the right place?
- A default .md template lives in LbRelease/data. I've copied the one from Hlt, but I don't mind changing it.
- Where should templates live? Probably in
ProjectSys/doc
and not in LbScripts?
- The default project template in
Project/ReleaseNotes/
will take precedence.
- Can we get
gitlab
andjinja2
without prependinglb-run --ext pytools LCG/latest
?
-
gen_release_notes
is the wrapper script and the action is inLbRelease/python/LbRelease/GenReleaseNotes.py
-
git
,git_o
andgetOutput
were copied fromgit-lb-push
, but should probably be shared. How?
- Separated out these commands in a new module
LbRelease/python/LbRelease/GitTools.py
To test:
# Clone and build LbScripts
cd $TMPDIR
git clone --recursive ssh://git@gitlab.cern.ch:7999/lhcb-core/LbScripts.git
cd LbScripts
git checkout rmatev-release-notes
cd LbScriptsSys/cmt; cmt br cmt make; cd -
cd LbPlatformUtils/cmt; cmt br cmt make; cd -
# LbLogin
$TMPDIR/LbScripts/InstallArea/scripts/LbLogin.sh -m /cvmfs/lhcb.cern.ch/lib
git clone ssh://git@gitlab.cern.ch:7999/lhcb/Hlt.git
cd Hlt
gen_release_notes v26r6 v27r0
Edited by Rosen Matev