From 0e06bddb63366ea5c8afc58d1b58da0d86aa507a Mon Sep 17 00:00:00 2001 From: chase Date: Mon, 15 Aug 2022 16:23:48 -0500 Subject: [PATCH] Lock issues/PRs automatically upon closing. [skip ci] --- .github/workflows/lock.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/lock.yml diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 0000000..4f99038 --- /dev/null +++ b/.github/workflows/lock.yml @@ -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