Skip to content

refactor(json): Dispatch surface material (de)serialization via TypeDispatcher #4277

refactor(json): Dispatch surface material (de)serialization via TypeDispatcher

refactor(json): Dispatch surface material (de)serialization via TypeDispatcher #4277

name: Remove automerge label

Check warning on line 1 in .github/workflows/remove-automerge-label.yml

View workflow run for this annotation

GitHub Actions / Remove automerge label

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 is required to remove labels from PRs from forks; the
# workflow does not check out or execute untrusted PR code.
pull_request_target: # zizmor: ignore[dangerous-triggers]
types: [closed]
permissions:
contents: read
jobs:
remove-automerge-label:
runs-on: ubuntu-slim
if: github.event.pull_request.merged == true
permissions:
pull-requests: write
steps:
- name: Remove automerge label
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
# The label may not be present; don't fail the job in that case.
run: gh pr edit "$PR_NUMBER" --remove-label automerge || true