Added Github Copilot for PR reviews #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Assign GitHub Copilot for Pull Requests Review | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
auto-assign-copilot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Assign GitHub Copilot as reviewer | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
github.rest.pulls.requestReviewers({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.payload.pull_request.number, | |
reviewers: ["github-copilot"] | |
}) |