mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-09-11 13:45:56 +03:00
Fix error when listing PRs by milestone (#885)
This commit is contained in:
parent
526c9525ea
commit
b1cd222c2a
@ -25,9 +25,9 @@ export def main [
|
|||||||
} else {
|
} else {
|
||||||
$date
|
$date
|
||||||
}
|
}
|
||||||
| format date "%Y-%m-%d"
|
|
||||||
|
|
||||||
if $date != null {
|
if $date != null {
|
||||||
|
let date = $date | format date "%Y-%m-%d"
|
||||||
let since = (date now | format date %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\)"
|
log info $"listing PRs in ($repo) since ($date) \(($since) ago\)"
|
||||||
$query_parts ++= [ $"merged:>($date)" ]
|
$query_parts ++= [ $"merged:>($date)" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user