Skip to content

[DRAFT] ci: add reviewers workflow #6

[DRAFT] ci: add reviewers workflow

[DRAFT] ci: add reviewers workflow #6

# Add `needs-starcraft-review` if starcraft-reviewers is added as a reviewer
name: add-reviewer-label
on:
pull_request:
types:
- review_requested
jobs:
add-reviewer-label:
runs-on: ubuntu-latest
steps:
- name: Add 'needs-starcraft-review' label
uses: octokit/[email protected]
with:
route: POST /repos/${{ github.repository }}/issues/$ {{ github.event.pull_request.number }}/labels
mediaType: 'application/vnd.github.v3+json'
labels:
- needs-starcraft-review

Check failure on line 20 in .github/workflows/add-reviewer-label.yaml

View workflow run for this annotation

GitHub Actions / add-reviewer-label

Invalid workflow file

The workflow is not valid. .github/workflows/add-reviewer-label.yaml (Line: 20, Col: 11): A sequence was not expected
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}