diff --git a/.github/workflows/dependabot-assignments.yml b/.github/workflows/dependabot-assignments.yml index 2a8e45a0f..6a405c0ec 100644 --- a/.github/workflows/dependabot-assignments.yml +++ b/.github/workflows/dependabot-assignments.yml @@ -11,13 +11,6 @@ jobs: if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Assign team to PR - # This is a workaround a limitation in the GitHub CLI. - # Can probably simplify after this issue is closed: - # https://github.com/cli/cli/issues/4844 - run: | - curl -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{github.event.pull_request.number}}/requested_reviewers \ - -d '{"team_reviewers":["code-reviewers"]}' + run: gh pr edit "$PR_URL" --add-reviewer "code-reviewers" + env: + PR_URL: ${{github.event.pull_request.html_url}} \ No newline at end of file