Skip to content

fix(electron): share held input across windows and tighten launch checks #6165

fix(electron): share held input across windows and tighten launch checks

fix(electron): share held input across windows and tighten launch checks #6165

Workflow file for this run

name: pr-policy

Check warning on line 1 in .github/workflows/pr-policy.yml

View workflow run for this annotation

GitHub Actions / pr-policy

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
# Checks community PRs against CONTRIBUTING.md (scripts/pr-policy/check.ts).
# The `maintainer takeover` label exempts a PR and tells its author that a
# maintainer finishes it (scripts/pr-policy/takeover.ts). Both steps read the
# PR as it is, on every label change: a queued run is dropped when a newer
# event arrives, so the run that survives has to settle whatever it missed.
# pull_request_target so fork PRs get a token that can label and comment; the
# checkout is the base branch's script, never PR code.
on:
pull_request_target:
types: [opened, edited, reopened, synchronize, labeled, unlabeled]
permissions:
contents: read
issues: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
jobs:
check:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: scripts/pr-policy
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 26
- name: Check the PR
env:
GITHUB_TOKEN: ${{ github.token }}
run: node scripts/pr-policy/check.ts
- name: Announce a takeover
env:
GITHUB_TOKEN: ${{ github.token }}
run: node scripts/pr-policy/takeover.ts