Skip to content

Commit

Permalink
ci: Use manual gh api request to assign users.
Browse files Browse the repository at this point in the history
The `gh` cli does not contain pr users that are not part of the org assignable users.
  • Loading branch information
FabianLars authored Aug 9, 2024
1 parent e54fbde commit 746c6ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ jobs:
- name: Auto-assign PR to author
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr edit ${{ github.event.pull_request.number }} --add-assignee ${{ github.event.pull_request.user.login }} -R ${{ github.repository }}
# The gh cli currently does not consider the pr author an assignable user if they aren't part of the org
run: gh api -X POST /repos/tauri-apps/tauri-docs/issues/${{ github.event.pull_request.number }}/assignees -f "assignees[]=${{ github.event.pull_request.user.login }}"
#run: gh pr edit ${{ github.event.pull_request.number }} --add-assignee ${{ github.event.pull_request.user.login }} -R ${{ github.repository }}

0 comments on commit 746c6ce

Please sign in to comment.