Skip to content

Commit 178f1b0

Browse files
authored
Merge pull request #305 from CasperGN/ci/stale-bot
ci: add stale bot to clean up stale issues and PRs
2 parents 57240a2 + 708669d commit 178f1b0

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# Copyright 2025 The Dapr Authors
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
14+
name: dapr-bot-schedule
15+
16+
on:
17+
schedule:
18+
- cron: '*/10 * * * *'
19+
workflow_dispatch:
20+
21+
permissions:
22+
actions: write
23+
issues: write
24+
pull-requests: write
25+
26+
jobs:
27+
prune_stale:
28+
name: Prune Stale
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Prune Stale
32+
uses: actions/stale@v10
33+
with:
34+
stale-issue-message: >
35+
This issue has been automatically marked as stale because it has not had activity in the
36+
last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity
37+
occurs. Thank you for your contributions.
38+
close-issue-message: >
39+
This issue has been automatically closed because it has not had activity in the
40+
last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved.
41+
Thank you for your contributions.
42+
stale-pr-message: >
43+
This pull request has been automatically marked as stale because it has not had
44+
activity in the last 60 days. It will be closed in 7 days if no further activity occurs. Please
45+
feel free to give a status update now, ping for review, or re-open when it's ready.
46+
Thank you for your contributions!
47+
close-pr-message: >
48+
This pull request has been automatically closed because it has not had
49+
activity in the last 67 days. Please feel free to give a status update now, ping for review, or re-open when it's ready.
50+
Thank you for your contributions!
51+
stale-issue-label: 'stale'
52+
exempt-issue-labels: 'pinned,good first issue,help wanted,triaged/resolved'
53+
stale-pr-label: 'stale'
54+
exempt-pr-labels: 'pinned'
55+
operations-per-run: 500
56+
ascending: true

0 commit comments

Comments
 (0)