Skip to content

Commit 57f4421

Browse files
Merge pull request #704 from DataDog/chore/add-stale-bot
chore(ci): add stale bot workflow for issues and PRs
2 parents 8b41ade + ca96491 commit 57f4421

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Close Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
17+
with:
18+
days-before-stale: 30
19+
days-before-close: 14
20+
exempt-issue-labels: "no-stale,enhancement,bug"
21+
exempt-pr-labels: "no-stale,enhancement,bug"
22+
stale-issue-label: stale
23+
stale-pr-label: stale
24+
stale-issue-message: >
25+
This issue has been automatically marked as stale because it has not had
26+
recent activity. It will be closed in 14 days if no further activity occurs.
27+
Remove the stale label or comment to keep it open.
28+
stale-pr-message: >
29+
This pull request has been automatically marked as stale because it has not had
30+
recent activity. It will be closed in 14 days if no further activity occurs.
31+
Remove the stale label or comment to keep it open.
32+
close-issue-message: >
33+
This issue has been automatically closed due to inactivity. Feel free to
34+
reopen if it is still relevant.
35+
close-pr-message: >
36+
This pull request has been automatically closed due to inactivity. Feel free to
37+
reopen if it is still relevant.

0 commit comments

Comments
 (0)