1
Fork 0
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:
Antoine Stevan 2023-08-04 16:08:10 +02:00 committed by GitHub
parent 1d8457fa9d
commit be47e43db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 37 additions and 37 deletions

View file

@ -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)`"

View file

@ -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 {