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