Skip to content

Commit 3ebab3c

Browse files
authored
Add GitHub Action to check and close stale issues and PRs (opea-project#1394)
Signed-off-by: Sun, Xuehao <[email protected]>
1 parent b2b7908 commit 3ebab3c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Check stale issue and pr
5+
6+
on:
7+
schedule:
8+
- cron: "30 22 * * *"
9+
10+
jobs:
11+
close-issues:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
19+
days-before-issue-stale: 30
20+
days-before-pr-stale: 30
21+
days-before-issue-close: 7
22+
days-before-pr-close: 7
23+
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."
24+
stale-pr-message: "This PR 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."
25+
close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity."
26+
close-pr-message: "This PR was closed because it has been stalled for 7 days with no activity."
27+
repo-token: ${{ secrets.ACTION_TOKEN }}
28+
start-date: "2025-03-01T00:00:00Z"

0 commit comments

Comments
 (0)