Fix typing for optional imports #3140
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: Pull Request Validation | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
types: | |
# milestone changes | |
- milestoned | |
- demilestoned | |
# label changes for “no milestone” | |
- labeled | |
- unlabeled | |
# initial check | |
- opened | |
- edited | |
- reopened | |
# code change (e.g. this workflow) | |
- synchronize | |
env: | |
LABELS: ${{ join(github.event.pull_request.labels.*.name, '|') }} | |
jobs: | |
check-milestone: | |
name: "Triage: Check Milestone" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if merging isn’t blocked | |
uses: flying-sheep/check@v1 | |
with: | |
success: ${{ ! contains(env.LABELS, 'DON’T MERGE') }} | |
- name: Check if a milestone is necessary and exists | |
uses: flying-sheep/check@v1 | |
with: | |
success: ${{ github.event.pull_request.milestone != null || contains(env.LABELS, 'no milestone') }} |