Skip to content

Commit 0c16146

Browse files
committed
Add Stale GitHub action
Signed-off-by: kramaranya <[email protected]>
1 parent 410a445 commit 0c16146

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/github-stale.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: "0 */5 * * *"
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
19+
steps:
20+
- uses: actions/stale@v5
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
days-before-stale: 90
24+
days-before-close: 20
25+
stale-issue-message: >
26+
This issue has been automatically marked as stale because it has not had
27+
recent activity. It will be closed if no further activity occurs. Thank you
28+
for your contributions.
29+
close-issue-message: >
30+
This issue has been automatically closed because it has not had recent
31+
activity. Please comment "/reopen" to reopen it.
32+
stale-issue-label: lifecycle/stale
33+
exempt-issue-labels: lifecycle/frozen
34+
stale-pr-message: >
35+
This pull request has been automatically marked as stale because it has not had
36+
recent activity. It will be closed if no further activity occurs. Thank you
37+
for your contributions.
38+
close-pr-message: >
39+
This pull request has been automatically marked as stale because it has not had
40+
recent activity. It will be closed if no further activity occurs. Thank you
41+
for your contributions.
42+
stale-pr-label: lifecycle/stale
43+
exempt-pr-labels: lifecycle/frozen

0 commit comments

Comments
 (0)