Skip to content

perf: use name in map_blocks to bypass tokenization #523

perf: use name in map_blocks to bypass tokenization

perf: use name in map_blocks to bypass tokenization #523

Workflow file for this run

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 PR title, milestone, and labels"
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.user.login == 'pre-commit-ci[bot]' || github.event.pull_request.milestone != null || contains(env.LABELS, 'no milestone') }}
- name: Check if PR title is valid
uses: amannn/action-semantic-pull-request@v6
env: # Needs repo options: “Squash and merge” with commit message set to “PR title”
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}