1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Update release excerpt script (#1015)

We moved to a 6 weeks cycle

Also some unnecessary stuff in the API call
This commit is contained in:
Stefan Holderbach 2025-01-16 14:51:14 +01:00 committed by GitHub
parent 62c3aa7403
commit 14e3ecb139
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,10 +5,10 @@
def main [
versionname: string # The version we release now
bloglink: string # The link to the blogpost
date?: datetime # the date of the last release (default to 3 weeks ago, excluded)
date?: datetime # the date of the last release (default to 6 weeks ago, excluded)
] {
let date = (
if $date == null { (date now) - 4wk + 1day } else { $date }
if $date == null { (date now) - 6wk + 1day } else { $date }
| format date "%Y-%m-%d"
)
@ -19,10 +19,9 @@ def main [
gh --repo $repo pr list
--state merged
--limit (inf | into int)
--json author,title,number,mergedAt,url
--json author
--search $query
| from json
| sort-by mergedAt --reverse
| update author { get login }
)