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