Skip to content

Keep API example line numbers in place when long lines scroll #17180

Keep API example line numbers in place when long lines scroll

Keep API example line numbers in place when long lines scroll #17180

name: required-labels

Check warning on line 1 in .github/workflows/required-labels.yml

View workflow run for this annotation

GitHub Actions / required-labels

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types:
- opened
- labeled
- unlabeled
- synchronize
permissions:
contents: read
jobs:
check-labels:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Wait for PR to be ready (if just opened)
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
run: sleep 30
- id: get-labels
run: |
labels=$(yq '[.categories[].labels] | flatten | unique | sort | @tsv' .github/release-drafter.yml | tr '\t' ',')
echo "labels=$labels" >> "${GITHUB_OUTPUT}"
- id: check-labels
uses: mheap/github-action-required-labels@23e10fde7e062233401931a0eece796cd9bf3177 # v5.6.0
with:
mode: exactly
count: 1
use_regex: false
add_comment: false
labels: ${{ steps.get-labels.outputs.labels }}