forked from keepkey/python-keepkey
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (21 loc) · 804 Bytes
/
Copy pathcopilot-review.yml
File metadata and controls
23 lines (21 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Request Copilot Review
on:
# This workflow never checks out or executes pull-request code. Using the
# base-repository context is therefore safe and is required for cross-fork
# PRs, whose pull_request GITHUB_TOKEN is always downgraded to read-only.
pull_request_target:
types: [opened, reopened, ready_for_review, synchronize]
jobs:
request-copilot-review:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Request Copilot review
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \
-X POST \
--field 'reviewers[]=Copilot'