Lock issues/PRs automatically upon closing. [skip ci]
This commit is contained in:
parent
53e1570132
commit
0e06bddb63
21
.github/workflows/lock.yml
vendored
Normal file
21
.github/workflows/lock.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user