diff --git a/ahoy.changelog.yml b/ahoy.changelog.yml index 481118f470c4f042befa329d8b0c1f2e0d588cf6..05e9370a744581bd15423d0ba6f43a326f735a52 100644 --- a/ahoy.changelog.yml +++ b/ahoy.changelog.yml @@ -1,5 +1,9 @@ ahoyapi: v2 commands: extract: - cmd: git log $(git describe --tags `git rev-list --tags --max-count=1`)..HEAD --oneline | cut -d' ' -f 2-999 - usage: Extract changelog from Git for the current project since the last release. + cmd: | + if [ "x$1" <> "x" ]; then + cd $1 + fi + git log $(git describe --tags `git rev-list --tags --max-count=1`)..HEAD --oneline | cut -d' ' -f 2-999 + usage: Extract changelog from Git for the current project (or the given path as 1st argument) since the last release.