Disable automatic issue closing and locking

- Add enable-issue-pending-close: false to prevent stale action from closing issues
- Comment out lock-threads action to disable issue/PR locking
- Keep PR stale handling enabled (180 days)
- Fixes issue where半年 issues were being automatically closed despite configuration
This commit is contained in:
John Howe
2026-04-24 12:05:29 +08:00
parent 7272ec3d75
commit 19c16950a3

View File

@@ -12,23 +12,25 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@7de207be1d3ce97a9abe6ff1306222982d1ca9f9 # v5.0.1
with:
# Issue locking disabled
# issue-inactive-days: 365 # 1 year
# add-issue-labels: 'Outdated'
# 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.
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.
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
# - uses: dessant/lock-threads@7de207be1d3ce97a9abe6ff1306222982d1ca9f9 # v5.0.1
# with:
# # Issue locking disabled
# # issue-inactive-days: 365 # 1 year
# # add-issue-labels: 'Outdated'
# # 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.
# 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.
- uses: actions/stale@28ca1036281a5ce5922ead5184a1bbf96e5fc984e # v9.0.0
with:
operations-per-run: 999
# Issue handling disabled
enable-issue-pending-close: false
enable-pr-pending-close: true
# days-before-issue-stale: 180 # 6 months
days-before-pr-stale: 180 # 6 months
# days-before-issue-close: 180 # 6 months