Skip to content
Snippets Groups Projects
Commit cbe28662 authored by jurgenhaas's avatar jurgenhaas
Browse files

#122 Add better changelog command for Drupal projects

parent 23c86705
No related branches found
No related tags found
1 merge request!22Merging develop into main
This commit is part of merge request !22. Comments created here will be created in the context of that merge request.
......@@ -12,5 +12,20 @@ commands:
if [ "x$1" != "x" ]; then
cd $1
fi
dorg-cli maintainer:release-notes $(gen-semver)
usage: Same as above but for a drupal.org project.
PROJECT=${PWD##*/}
TO=$(git tag --sort=committerdate | tail -1)
FROM=$(git tag --sort=committerdate | tail -2 | head -1)
FORMAT=html
if [ "x$2" != "x" ]; then
FROM=$2
fi
if [ "x$3" != "x" ]; then
FROM=$3
fi
if [ "x$4" != "x" ]; then
FROM=$4
fi
curl "https://api.drupal-mrn.dev/changelog?project=${PROJECT}&to=${TO}&from=${FROM}&format=${FORMAT}"
usage: Same as above but for a drupal.org project. Optional arguments are (1) relative path to project, (2) the from tag, (3) the to tag, (4) the output format.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment