mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
rename date format
to format date
(#571)
This commit is contained in:
parent
1d8457fa9d
commit
be47e43db6
17 changed files with 37 additions and 37 deletions
|
@ -43,7 +43,7 @@ def main [
|
|||
let branch = $"release-notes-($version)"
|
||||
|
||||
let blog_path = (
|
||||
$repo | path join "blog" $"($date | date format "%Y-%m-%d")-nushell_($version | str replace --all --string '.' '_').md"
|
||||
$repo | path join "blog" $"($date | format date "%Y-%m-%d")-nushell_($version | str replace --all --string '.' '_').md"
|
||||
)
|
||||
|
||||
let title = $"Release notes for `($version)`"
|
||||
|
|
|
@ -15,9 +15,9 @@ def main [
|
|||
--pretty: bool # pretty-print for the MarkDown release not
|
||||
--no-author: bool # do not group the contributions by author
|
||||
] {
|
||||
let date = $date | default ((date now) - 4wk) | date format "%Y-%m-%d"
|
||||
let date = $date | default ((date now) - 4wk) | format date "%Y-%m-%d"
|
||||
|
||||
let since = (date now | date format %F | into datetime) - ($date | into datetime)
|
||||
let since = (date now | format date %F | into datetime) - ($date | into datetime)
|
||||
log info $"listing PRs in ($repo) since ($date) \(($since) ago\)"
|
||||
|
||||
let query = if $label == null {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue