File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 12
12
if : ${{ github.actor == 'dependabot[bot]' }}
13
13
steps :
14
14
- name : Assign team to PR
15
- run : gh pr edit "$PR_URL" --add-reviewer "cmu-delphi/code-reviewers"
16
- env :
17
- PR_URL : ${{github.event.pull_request.html_url}}
15
+ # This is a workaround a limitation in the GitHub CLI.
16
+ # Can probably simplify after this issue is closed:
17
+ # https://github.com/cli/cli/issues/4844
18
+ run : |
19
+ curl -X POST \
20
+ -H "Accept: application/vnd.github+json" \
21
+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
22
+ -H "X-GitHub-Api-Version: 2022-11-28" \
23
+ https://api.github.com/repos/${{ github.repository }}/pulls/${{github.event.pull_request.number}}/requested_reviewers \
24
+ -d '{"team_reviewers":["code-reviewers"]}'
You can’t perform that action at this time.
0 commit comments