Skip to content

fix(events): guard proxy event emitters #864

fix(events): guard proxy event emitters

fix(events): guard proxy event emitters #864

Workflow file for this run

name: labeler
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
pull-requests: write
issues: read
concurrency:
group: labeler-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
label:
runs-on: ubuntu-latest
steps:
# Apply directory-based labels using changes files and .github/labeler.yml
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true
- name: Apply type labels from PR title
uses: github/issue-labeler@v3.4
with:
configuration-path: .github/pr-title-labeler.yml
enable-versioned-regex: 0
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: 0
include-title: 1
include-body: 0
# Checkout out only the base branch's .github/scripts directory.
# DO NOT check out the PR head, because pull_request_target runs with
# elevated token permissions and PR-authored code must not be executed.
- uses: actions/checkout@v4
with:
sparse-checkout: .github/scripts
# Copy P- (priority) labels from issues that GitHub links to this PR via
# closing keywords such as "Closes #XXX". Area (A-) and type (T-) come
# from the file/title labelers above, so they are not copied here.
- name: Copy priority labels from linked issues
uses: actions/github-script@v7
with:
script: |
const copyLabels = require('./.github/scripts/copy-linked-issue-labels.js');
await copyLabels({ github, context, core });