name: Notify When Maintainers Cannot Edit

# **What it does**: Notifies the author of a PR when their PR does not allow maintainers to edit it.
# **Why we have it**: To prevent having to do this manually.
# **Who does it impact**: Open-source.

on:
  pull_request_target:
    types:
      - opened
      - edited

permissions:
  pull-requests: write

jobs:
  notify-when-maintainers-cannot-edit:
    uses: jandedobbeleer/workflows/.github/workflows/edit_rights.yml@main
    secrets:
      token: ${{ secrets.GH_PAT }}
