diff --git a/nu/milestone.nu b/nu/milestone.nu index dbb0327..ba8f27d 100644 --- a/nu/milestone.nu +++ b/nu/milestone.nu @@ -26,9 +26,9 @@ export def 'milestone-update' [ } if ($gh_token | is-not-empty) { $env.GH_TOKEN = $gh_token } let selected = if ($milestone | is-empty) { guess-milestone $repo $pr } else { $milestone } - if $force { gh pr edit $pr --remove-milestone } + if $force { gh pr edit $pr --repo $repo --remove-milestone } print $'Setting milestone to ($selected) for PR ($pr)...' - gh pr edit $pr --milestone $selected + gh pr edit $pr --repo $repo --milestone $selected } # Guess milestone by the merged date of the PR and the infomation of open milestones.