Skip to content

Commit

Permalink
Try to use PAT instead of secrets.GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Oct 13, 2024
1 parent 899e4d4 commit 95371b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion nu/milestone.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 95371b1

Please sign in to comment.