name: lock pull-request

permissions:
  pull-requests: write

on:
    pull_request:
        types:
            - closed
jobs:
    lock:
        environment:
            name: sudo-bot-workflows
        runs-on: ubuntu-latest
        steps:
            - name: lock pull request
              uses: sudo-bot/action-pull-request-lock@v1.1.0
              with:
                  github-token: ${{ secrets.WDES_BOT_TOKEN }}
                  number: ${{ github.event.pull_request.number }}
                  lock-reason: resolved
