diff --git a/ahoy.changelog.yml b/ahoy.changelog.yml index 3b6444105c075da6bd87bcd61819eba638c0ef28..eeebb50c532bb9658e97520d8112a07a2e23f9a6 100644 --- a/ahoy.changelog.yml +++ b/ahoy.changelog.yml @@ -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.