Repository navigation
fix(electron): share held input across windows and tighten launch checks #6165
This file contains hidden or 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: pr-policy | ||
|
Check warning on line 1 in .github/workflows/pr-policy.yml
|
||
| # 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 | ||