workflows: Lock comments on old PRs (no activity in a year)

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2022-10-13 17:26:12 -04:00
parent 6cc104677e
commit 2bffa925c8
1 changed files with 3 additions and 2 deletions

View File

@ -326,7 +326,7 @@ jobs:
state: 'closed' state: 'closed'
}); });
} }
# Lock closed issues after 6 months of inactivity. # Lock closed issues after 6 months of inactivity and PRs after 1 year.
lock: lock:
name: Lock Closed Issues name: Lock Closed Issues
if: github.repository == 'Klipper3d/klipper' if: github.repository == 'Klipper3d/klipper'
@ -334,6 +334,7 @@ jobs:
steps: steps:
- uses: dessant/lock-threads@v3 - uses: dessant/lock-threads@v3
with: with:
process-only: 'issues'
issue-inactive-days: '180' issue-inactive-days: '180'
issue-lock-reason: '' issue-lock-reason: ''
pr-inactive-days: '365'
pr-lock-reason: ''