Skip to content

Commit bda2aa4

Browse files
committed
RUM-8727 Automatically close stale issues
1 parent f313693 commit bda2aa4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Automatically close stale issues'
2+
3+
on:
4+
workflow_dispatch: # Allows manual triggering
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-issue-message: |
14+
This issue has been automatically marked as stale because it has not had recent activity and has the `awaiting-response` label.
15+
16+
It will be closed if no further activity occurs within 3 days.
17+
18+
# The label that will be added to the issues when automatically marked as stale
19+
stale-issue-label: 'stale'
20+
# The label that will be added to the issues when automatically marked as stale
21+
close-issue-label: 'automatically-closed'
22+
# Only target issues with 'awaiting-response' label
23+
only-labels: 'awaiting-response'
24+
# Mark issues as stale after 14 days
25+
days-before-issue-stale: 14
26+
# Close issues after 3 days of being marked stale
27+
days-before-issue-close: 3
28+
# Automatically remove the stale label when the issues or the pull requests are updated
29+
remove-stale-when-updated: true
30+
# Run the stale workflow as dry-run.
31+
# No GitHub API calls that can alter the issues and pull requests will happen.
32+
# Useful to debug or when you want to configure the stale workflow safely.
33+
debug-only: true

0 commit comments

Comments
 (0)