Skip to content

Commit e2dc67d

Browse files
authored
ci: centralize stale.yml (#19994)
* ci: centralize `stale.yml` * Update stale.yml * Update stale.yml
1 parent 7093cb8 commit e2dc67d

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

.github/workflows/stale.yml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,13 @@
1-
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2-
#
3-
# You can adjust the behavior by modifying this file.
4-
# For more information, see:
5-
# https://github.com/actions/stale
6-
name: Mark stale issues and pull requests
1+
name: stale
72

83
on:
94
schedule:
10-
- cron: "31 22 * * *"
5+
- cron: "31 22 * * *" # Runs every day at 10:31 PM UTC
116

127
permissions: read-all
138

149
jobs:
1510
stale:
16-
runs-on: ubuntu-latest
17-
permissions:
18-
issues: write
19-
pull-requests: write
20-
21-
steps:
22-
- uses: actions/stale@v9
23-
with:
24-
repo-token: ${{ secrets.GITHUB_TOKEN }}
25-
days-before-issue-stale: 30
26-
days-before-pr-stale: 10
27-
days-before-close: 7
28-
stale-issue-message: "Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update."
29-
close-issue-message: "This issue was auto-closed due to inactivity. While we wish we could keep responding to every issue, we unfortunately don't have the bandwidth and need to focus on high-value issues."
30-
stale-pr-message: "Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update."
31-
close-pr-message: "This pull request was auto-closed due to inactivity. While we wish we could keep working on every request, we unfortunately don't have the bandwidth to continue here and need to focus on other things. You can resubmit this pull request if you would like to continue working on it."
32-
exempt-all-assignees: true
33-
exempt-issue-labels: accepted
11+
uses: eslint/workflows/.github/workflows/stale.yml@main
12+
secrets:
13+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)