From bcf1cbb92da844a9a40a68cda1ce492247e20606 Mon Sep 17 00:00:00 2001 From: KobeNguyenT <7845001+kobenguyent@users.noreply.github.com> Date: Sat, 24 Jun 2023 08:44:29 +0200 Subject: [PATCH] feat(CD): get commits from latest commit to latest tag (#3693) --- runok.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runok.js b/runok.js index 655dfc497..0a13550d9 100755 --- a/runok.js +++ b/runok.js @@ -428,6 +428,12 @@ title: ${name} await exec(`git checkout -b release-${newVersion}`); } }, + + async getCommitLog() { + console.log('Gathering commits...'); + const logs = await exec('git log --pretty=\'format:%s - by %aN\' $(git describe --abbrev=0 --tags)..HEAD'); + console.log(logs.data.stdout); + }, }; async function processChangelog() {