Lock/Unlock PR/Issue upon Close/Open. [skip ci]
This commit is contained in:
parent
2c7513b4e4
commit
faf3ed99a1
3
.github/workflows/lock.yml
vendored
3
.github/workflows/lock.yml
vendored
@ -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
21
.github/workflows/unlock.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user