name: Sponsor Labeler

on:
  issues:
    types:
      - opened
  pull_request_target:
    types:
      - opened

jobs:
  label-sponsor:
    uses: itzg/github-workflows/.github/workflows/sponsor-labeler.yml@main
    with:
      author: ${{ github.event.issue.user.login || github.event.pull_request.user.login }}
      number: ${{ github.event.issue.number || github.event.pull_request.number }}