Skip to content

Commit bf96605

Browse files
authored
remove mark-legacy-issue and bump up operations-per-run
Please note that the scheduling cron job is not enabled yet. Let it run through one delete cycle (30 days from 4/9) before turning on the cron.
1 parent e68fb48 commit bf96605

File tree

1 file changed

+14
-37
lines changed

1 file changed

+14
-37
lines changed

.github/workflows/stale.yml

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
name: Manage Stale, Legacy, and Close Issues
22

33
on:
4-
# Uncomment the schedule below to run automatically, or trigger manually with workflow_dispatch.
5-
# schedule:
6-
# - cron: '0 4 * * *' # 04:00 UTC
7-
# - cron: '30 5 * * *' # 05:30 UTC
8-
4+
# Uncomment the schedule below to run automatically, or trigger manually with workflow_dispatch.
5+
# schedule:
6+
# - cron: '0 4 * * *' # 04:00 UTC
7+
8+
# Uncomment below and enable debug-only when testing changes via PR
9+
# push:
10+
# branches:
11+
# - manage-stale-issues
12+
# pull_request:
13+
# branches:
14+
# - manage-stale-issues
15+
916
workflow_dispatch:
1017

1118
jobs:
@@ -43,36 +50,6 @@ jobs:
4350
debug-only: false
4451
enable-statistics: true
4552
remove-stale-when-updated: true
46-
operations-per-run: 500
47-
48-
# ----------------------------------------------------------------------------
49-
# Job: mark-legacy-issue
50-
# Summary:
51-
# Marks open issues as "legacy" (using ignore-updates so that only the creation date is considered)
52-
# if they were created over 2 years (730 days) ago and lack exempt labels like "pinned" or "security".
53-
# ----------------------------------------------------------------------------
54-
mark-legacy-issue:
55-
runs-on: ubuntu-latest
56-
permissions:
57-
issues: write
58-
steps:
59-
- name: Mark legacy issues using stale action
60-
uses: actions/stale@v9
61-
with:
62-
repo-token: ${{ secrets.GITHUB_TOKEN }}
63-
ignore-updates: true
64-
days-before-issue-stale: 730
65-
days-before-pr-stale: -1
66-
days-before-issue-close: -1
67-
days-before-pr-close: -1
68-
stale-issue-label: 'legacy'
69-
stale-issue-message: >
70-
This issue was created over 2 years ago and is considered legacy.
71-
Given the extensive changes to the codebase since then, we recommend opening a new issue
72-
with updated details if this problem still affects you.
73-
exempt-issue-labels: 'pinned,security'
74-
debug-only: false
75-
enable-statistics: true
76-
remove-stale-when-updated: false
77-
operations-per-run: 500
53+
operations-per-run: 1000
7854

55+

0 commit comments

Comments
 (0)