Skip to content

Commit

Permalink
Fix add milestone for milestone.nu (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer authored Oct 13, 2024
1 parent b29cfcf commit 7d1d484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nu/milestone.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7d1d484

Please sign in to comment.