Lock issues/PRs automatically upon closing. [skip ci]

This commit is contained in:
chase 2022-08-15 16:23:48 -05:00 committed by GitHub
parent 53e1570132
commit 0e06bddb63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

21
.github/workflows/lock.yml vendored Normal file
View File

@ -0,0 +1,21 @@
---
name: "🔒 Lock Resolved Issues/PRs"
on:
pull_request:
types:
- closed
issues:
types:
- closed
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: sudo-bot/action-pull-request-lock@v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number || github.event.issue.number }}
lock-reason: resolved