You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/stale.yml
+14-4
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,23 @@ jobs:
12
12
issues: write
13
13
pull-requests: write
14
14
15
+
env:
16
+
DAYS_BEFORE_STALE: 30# Define the days-before-stale value
17
+
DAYS_BEFORE_CLOSE: 7# Define the days-before-close value
18
+
15
19
steps:
16
20
- uses: actions/stale@v5
17
21
with:
18
22
repo-token: ${{ secrets.GITHUB_TOKEN }}
19
-
stale-issue-message: 'This issue has been automatically marked as stale due to inactivity.'
20
-
stale-pr-message: 'This pull request has been automatically marked as stale due to inactivity.'
23
+
stale-issue-message: |
24
+
This issue has been automatically marked as stale due to ${{
25
+
env.DAYS_BEFORE_STALE }} days of inactivity.
26
+
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this issue is still relevant.
27
+
stale-pr-message: |
28
+
This pull request has been automatically marked as stale due to ${{
29
+
env.DAYS_BEFORE_STALE }} days of inactivity.
30
+
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this pull request is still relevant.
21
31
stale-issue-label: 'no-issue-activity'
22
32
stale-pr-label: 'no-pr-activity'
23
-
days-before-stale: 30# Marks issues and PRs as stale after X days of inactivity
24
-
days-before-close: 7# Closes issues and PRs X days after being marked as stale
0 commit comments