Skip to content

Commit 4b17233

Browse files
authored
Marks issues as obsolete after 30 days of stale (#1012)
This GitHub workflow marks an issue as obsolete after 30 days of the "stale" label applied to the issue.
1 parent 9955d67 commit 4b17233

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/obsolete.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 'obsolete' label to issues that have had no activity for 60 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 issues obsolete
20+
on:
21+
schedule:
22+
- cron: 0 2 1,15 * *
23+
workflow_dispatch:
24+
jobs:
25+
stale:
26+
runs-on: ubuntu-latest
27+
permissions:
28+
issues: write
29+
name: Track Obsolete Issues
30+
steps:
31+
- name: Track stale issues and check if obsolete
32+
uses: actions/stale@v8
33+
with:
34+
repo-token: ${{ secrets.GITHUB_TOKEN }}
35+
days-before-issue-stale: 30
36+
stale-issue-message: >
37+
This issue is marked as obsolete due to inactivity for last 60 days. To
38+
avoid issue getting closed in next 30 days, please add a comment or add
39+
'awaiting-maintainer' label. Thank you for your contributions
40+
stale-issue-label: obsolete
41+
only-labels: stale
42+
labels-to-remove-when-unstale: stale,obsolete
43+
exempt-issue-labels: awaiting-maintainer
44+
remove-stale-when-updated: true
45+
ascending: true
46+
enable-statistics: true

0 commit comments

Comments
 (0)