From 746c6ced1157dc820230d636add0b9cc73a0d349 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Fri, 9 Aug 2024 14:24:40 +0200 Subject: [PATCH] ci: Use manual `gh api` request to assign users. The `gh` cli does not contain pr users that are not part of the org assignable users. --- .github/workflows/assign.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index 847ebbe80c..54b5ad48d6 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -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 }} \ No newline at end of file + # 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 }}