Skip to content

Commit c60d335

Browse files
authored
Add actions/stale closing inactive issues and PRs after 30d (#746)
* Add actions/stale closing inactive issues and PRs * Fix actions/stale with hash
1 parent a0da083 commit c60d335

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2025 Google LLC
2+
#
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+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License
14+
15+
16+
name: 'Close stale issues and PRs'
17+
on:
18+
schedule:
19+
- cron: '30 1 * * *'
20+
21+
jobs:
22+
stale:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
26+
with:
27+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
28+
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
29+
days-before-stale: 30
30+
days-before-close: 7
31+
32+
permissions:
33+
actions: write
34+
issues: write
35+
pull-requests: write

0 commit comments

Comments
 (0)