Skip to content

ci: Automate requesting review #1

ci: Automate requesting review

ci: Automate requesting review #1

Workflow file for this run

name: Request Review
on: pull_request
jobs:
request_review:

Check failure on line 6 in .github/workflows/request-review.yaml

View workflow run for this annotation

GitHub Actions / Request Review

Invalid workflow file

The workflow is not valid. .github/workflows/request-review.yaml (Line: 6, Col: 3): The workflow must contain at least one job with no dependencies.
needs: CI
runs-on: ubuntu-latest
steps:
- name: Request reviews
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const reviewers = ['seanpdoyle', 'jorgemanrubia'];
github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
reviewers: reviewers
});