We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b349bd + 07d47ef commit 4e5a12bCopy full SHA for 4e5a12b
.github/workflows/dependabot-assignments.yml
@@ -12,6 +12,13 @@ jobs:
12
if: ${{ github.actor == 'dependabot[bot]' }}
13
steps:
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}}
+ # 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
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