mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-31 14:17:45 +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:
parent
62c3aa7403
commit
14e3ecb139
1 changed files with 3 additions and 4 deletions
|
@ -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 }
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue