Skip to content

Commit 1b879bd

Browse files
authored
feat: Add workflow to automatically close stale issues (#692)
1 parent d3ce786 commit 1b879bd

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Close Stale Issues
19+
20+
on:
21+
schedule:
22+
- cron: '0 0 * * *'
23+
workflow_dispatch:
24+
25+
permissions:
26+
issues: write
27+
28+
jobs:
29+
stale:
30+
if: (github.event_name == 'schedule' && github.repository == 'apache/fesod') || (github.event_name != 'schedule')
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/stale@v10
34+
with:
35+
repo-token: ${{ secrets.GITHUB_TOKEN }}
36+
only-issue-labels: 'waiting for feedback'
37+
days-before-issue-stale: 30
38+
days-before-issue-close: 7
39+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.'
40+
close-issue-message: 'This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.'
41+
stale-issue-label: 'stale'
42+
days-before-pr-stale: -1
43+
days-before-pr-close: -1

0 commit comments

Comments
 (0)