Skip to content

Commit 4e5a12b

Browse files
authored
Merge pull request #831 from cmu-delphi/ds/dependabot
bug(ci): fix dependabot-assignments
2 parents 9b349bd + 07d47ef commit 4e5a12b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/dependabot-assignments.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ jobs:
1212
if: ${{ github.actor == 'dependabot[bot]' }}
1313
steps:
1414
- 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://github.com/api/repos/${{ github.repository }}/pulls/${{github.event.pull_request.number}}/requested_reviewers \
24+
-d '{"team_reviewers":["code-reviewers"]}'

0 commit comments

Comments
 (0)