mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 08:22:16 +00:00
fix(workflow): use dessant/lock-threads for issue locking
This commit is contained in:
19
.github/workflows/lock-issue.yaml
generated
vendored
19
.github/workflows/lock-issue.yaml
generated
vendored
@@ -1,15 +1,22 @@
|
|||||||
name: Lock closed issues
|
name: Lock closed issues
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
schedule:
|
||||||
types: [closed]
|
- cron: "0 */6 * * *" # Run every 6 hours
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lock:
|
lock:
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: peter-evans/lock-issues@v3
|
- uses: dessant/lock-threads@v6
|
||||||
with:
|
with:
|
||||||
issue-number: ${{ github.event.issue.number }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue-inactive-days: 1
|
||||||
|
issue-lock-reason: "resolved"
|
||||||
|
issue-comment: |
|
||||||
|
This issue has been automatically locked since it has been closed for more than 1 day.
|
||||||
|
If you have a related issue, please open a new one and reference this issue if needed.
|
||||||
|
|||||||
Reference in New Issue
Block a user