Lock/Unlock PR/Issue upon Close/Open. [skip ci]

This commit is contained in:
chase 2022-08-27 11:11:51 -05:00 committed by GitHub
parent 2c7513b4e4
commit faf3ed99a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -14,8 +14,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: sudo-bot/action-pull-request-lock@v1.1.0 - uses: chxseh/action-lock-unlock@v1.0.1
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number || github.event.issue.number }} number: ${{ github.event.pull_request.number || github.event.issue.number }}
lock: true
lock-reason: resolved lock-reason: resolved

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

@ -0,0 +1,21 @@
---
name: "🔓 Unlock Reopened Issues/PRs"
on:
pull_request:
types:
- reopened
issues:
types:
- reopened
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: chxseh/action-lock-unlock@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number || github.event.issue.number }}
lock: false