Skip to content

chore: Add external contributor to CHANGELOG.md #88

chore: Add external contributor to CHANGELOG.md

chore: Add external contributor to CHANGELOG.md #88

name: 'Automation: Label external PRs'

Check warning on line 1 in .github/workflows/label-external-prs.yml

View workflow run for this annotation

GitHub Actions / Automation: Label external PRs

Workflow execution policy warning (evaluate mode)

On November 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
jobs:
label_external_pr:
name: Add external label
permissions:
pull-requests: write
runs-on: ubuntu-24.04
if: |
github.event.pull_request.author_association != 'COLLABORATOR'
&& github.event.pull_request.author_association != 'MEMBER'
&& github.event.pull_request.author_association != 'OWNER'
&& endsWith(github.event.pull_request.user.login, '[bot]') == false
steps:
- name: Add external label
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
with:
labels: external