mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00:00
fix(workflow): lock old issues silently, new issues with comment
This commit is contained in:
37
.github/workflows/lock-issue.yaml
generated
vendored
37
.github/workflows/lock-issue.yaml
generated
vendored
@@ -2,22 +2,49 @@ name: Lock closed issues
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 */6 * * *" # Run every 6 hours
|
- cron: "0 0 * * *" # Run daily at midnight
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lock-threads
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lock:
|
lock:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
# Lock old issues (before 2026-01-27) without comment
|
||||||
- uses: dessant/lock-threads@v6
|
- uses: dessant/lock-threads@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-inactive-days: 1
|
issue-inactive-days: 1
|
||||||
issue-lock-reason: "resolved"
|
issue-lock-reason: "resolved"
|
||||||
exclude-issue-created-before: "2026-01-27"
|
exclude-issue-created-after: "2026-01-27T00:00:00Z"
|
||||||
issue-comment: |
|
issue-comment: ""
|
||||||
This issue has been automatically locked since it has been closed for more than 1 day.
|
pr-inactive-days: 1
|
||||||
If you have a related issue, please open a new one and reference this issue if needed.
|
pr-lock-reason: "resolved"
|
||||||
|
exclude-pr-created-after: "2026-01-27T00:00:00Z"
|
||||||
|
pr-comment: ""
|
||||||
|
|
||||||
|
# Lock new issues (from 2026-01-27) with comment
|
||||||
|
- uses: dessant/lock-threads@v6
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue-inactive-days: 1
|
||||||
|
issue-lock-reason: "resolved"
|
||||||
|
exclude-issue-created-before: "2026-01-27T00:00:00Z"
|
||||||
|
issue-comment: >
|
||||||
|
This issue has been automatically locked since there
|
||||||
|
has not been any recent activity after it was closed.
|
||||||
|
Please open a new issue for related bugs and reference
|
||||||
|
this issue if needed.
|
||||||
|
pr-inactive-days: 1
|
||||||
|
pr-lock-reason: "resolved"
|
||||||
|
exclude-pr-created-before: "2026-01-27T00:00:00Z"
|
||||||
|
pr-comment: >
|
||||||
|
This pull request has been automatically locked since there
|
||||||
|
has not been any recent activity after it was closed.
|
||||||
|
Please open a new issue for related bugs.
|
||||||
|
|||||||
Reference in New Issue
Block a user