diff --git a/nu/milestone.nu b/nu/milestone.nu index 45bc5cb..134b127 100644 --- a/nu/milestone.nu +++ b/nu/milestone.nu @@ -166,7 +166,7 @@ export def guess-milestone-for-issue [ } # Create milestone for a repository by title, due_on, and description. -export def create-milestone [ +export def --env create-milestone [ repo: string, # Github repository name title: string, # Milestone title --due-on(-d): string, # Milestone due date, format: yyyy/mm/dd @@ -181,8 +181,7 @@ export def create-milestone [ let result = gh api -X POST $'/repos/($repo)/milestones' -F $'title=($title)' ...$dueOnArg ...$descArg let milestone = $result | from json print $'Milestone (ansi p)($milestone.title)(ansi reset) with NO. (ansi p)($milestone.number)(ansi reset) was created successfully.' - print 'Set output for milestone create Github Action:' - echo $'milestone-number=($milestone.number)' | save --append $env.GITHUB_OUTPUT + echo $'milestone-number=($milestone.number)' o>> $env.GITHUB_OUTPUT } # Close milestone for a repository by title or number.