Skip to content

Align list box hover and unfocused selection styling with DataGrid #604

Align list box hover and unfocused selection styling with DataGrid

Align list box hover and unfocused selection styling with DataGrid #604

name: Copilot code review
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
permissions:
contents: read
pull-requests: write
jobs:
request-copilot-review:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Request Copilot review
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
requested_reviewers="$(gh api \
"/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers")"
if echo "$requested_reviewers" | jq -e '(.users // []) | any(.login | ascii_downcase == "copilot")' >/dev/null; then
echo "Copilot review already requested, skipping."
exit 0
fi
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
"/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers" \
-f reviewers[]='copilot'