Skip to content

Commit 9955d67

Browse files
authored
Create github workflow to mark old issues as stale and close (#1011)
This workflow is to mark all issues as stale after 30 days, and mark for closure after 60. Issues labeled "awaiting-maintainer" will not be marked stale.
1 parent fbc1b89 commit 9955d67

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/stale.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
#
14+
# This workflow applies stale label to issues that have had no activity for atleast 30 days.
15+
#
16+
# You can adjust the behavior by modifying this file.
17+
# For more information, see:
18+
# https://github.com/actions/stale
19+
name: Mark stale
20+
on:
21+
workflow_dispatch:
22+
schedule:
23+
- cron: 0 10 1,15 * *
24+
jobs:
25+
stale:
26+
runs-on: ubuntu-latest
27+
permissions:
28+
issues: write
29+
name: stale issues
30+
steps:
31+
- name: Stale issues
32+
uses: actions/stale@v8
33+
with:
34+
repo-token: ${{ secrets.GITHUB_TOKEN }}
35+
days-before-issue-stale: 30
36+
days-before-issue-close: 60
37+
stale-issue-message: >
38+
'This issue is marked as Stale due to inactivity for more than 30 days. To
39+
avoid being marked as 'stale' please add 'awaiting-maintainer' label or
40+
add a comment. Thank you for your contributions '
41+
stale-issue-label: stale
42+
exempt-issue-labels: awaiting-maintainer, obsolete
43+
ascending: true
44+
enable-statistics: true
45+
labels-to-remove-when-unstale: stale,obsolete

0 commit comments

Comments
 (0)