mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-09-11 13:45:56 +03:00
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.
This commit is contained in:
parent
e5e0ef6f7b
commit
63fa27f702
@ -94,8 +94,16 @@ As usual, new release rhyms with changes to commands!
|
|||||||
|
|
||||||
```nushell
|
```nushell
|
||||||
use ./make_release/release-note/list-merged-prs
|
use ./make_release/release-note/list-merged-prs
|
||||||
|
use std clip
|
||||||
|
|
||||||
list-merged-prs nushell/nushell <last-release-date>
|
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"
|
| where author != "app/dependabot"
|
||||||
| sort-by mergedAt
|
| sort-by mergedAt
|
||||||
| update url {|it| $"[#($it.number)]\(($it.url)\)" }
|
| update url {|it| $"[#($it.number)]\(($it.url)\)" }
|
||||||
@ -103,6 +111,8 @@ As usual, new release rhyms with changes to commands!
|
|||||||
| select author title url
|
| select author title url
|
||||||
| rename -c {url: pr}
|
| rename -c {url: pr}
|
||||||
| to md --pretty
|
| to md --pretty
|
||||||
|
|
||||||
|
$prs | to md --pretty | clip
|
||||||
```
|
```
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user