deps: breaking: update @typescript-eslint dependencies #1468
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: Pull request assignee | |
on: | |
pull_request: | |
types: [assigned, unassigned, synchronize] | |
jobs: | |
assignee: | |
name: 'check assignee' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if there is at least one assignee | |
uses: actions/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const { data: pull } = await github.pulls.get({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.payload.pull_request.number, | |
}); | |
if (pull.assignees.length > 0) { | |
return; | |
} | |
throw new Error('Should have at least one assignee'); |