From 63fa27f7026cef858cece2e26edc20f4cd36b850 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Sat, 11 Nov 2023 16:00:03 +0100 Subject: [PATCH] add a command to get last release date in the release note template (#662) this PR adds ```nushell let last_release_date = ^gh api /repos/nushell/nushell/releases | from json | into datetime published_at | get published_at | sort | last ``` to the relaease note template to get the date of the last release and list the PRs from there to now. --- make_release/release-note/template.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/make_release/release-note/template.md b/make_release/release-note/template.md index 5d45c29..bda92d9 100644 --- a/make_release/release-note/template.md +++ b/make_release/release-note/template.md @@ -94,8 +94,16 @@ As usual, new release rhyms with changes to commands! ```nushell use ./make_release/release-note/list-merged-prs + use std clip - list-merged-prs nushell/nushell + let last_release_date = ^gh api /repos/nushell/nushell/releases + | from json + | into datetime published_at + | get published_at + | sort + | last + + let prs = list-merged-prs nushell/nushell $last_release_date | where author != "app/dependabot" | sort-by mergedAt | update url {|it| $"[#($it.number)]\(($it.url)\)" } @@ -103,6 +111,8 @@ As usual, new release rhyms with changes to commands! | select author title url | rename -c {url: pr} | to md --pretty + + $prs | to md --pretty | clip ``` -->