diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml index 9e4b5b7..6ded59c 100644 --- a/.github/workflows/milestone.yml +++ b/.github/workflows/milestone.yml @@ -20,6 +20,6 @@ jobs: - name: Set Milestone uses: hustcer/milestone-action@main with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.PAT }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/nu/milestone.nu b/nu/milestone.nu index fbb49a8..944bcf0 100644 --- a/nu/milestone.nu +++ b/nu/milestone.nu @@ -27,7 +27,7 @@ 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 --repo $repo --remove-milestone } - print $'Setting milestone to (ansi p)($selected)(ansi reset) for PR ($pr) in repository ($repo)...' + print $'(char nl)Setting milestone to (ansi p)($selected)(ansi reset) for PR ($pr) in repository ($repo)...' # FIXME: GraphQL: Resource not accessible by integration (updatePullRequest) gh pr edit $pr --repo $repo --milestone $selected }