Skip to content

Commit e32cb51

Browse files
Create stale.yaml
Signed-off-by: Julius von Kohout <[email protected]>
1 parent 4a275cf commit e32cb51

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 0 * * *' # Run every day at midnight
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: 60
24+
days-before-close: 21
25+
# The message that will be added as a comment to the issues
26+
# when the stale workflow marks it automatically as stale with a label.
27+
stale-issue-message: >
28+
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
29+
# The message that will be added as a comment to the issues
30+
# when the stale workflow closes it automatically after being stale for too long.
31+
close-issue-message: >
32+
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.
33+
stale-issue-label: lifecycle/stale
34+
# Exclude them from being marked as stale
35+
exempt-issue-labels: lifecycle/frozen,enhancement,good first issue
36+
# The message that will be added as a comment to the pull requests
37+
# when the stale workflow marks it automatically as stale with a label.
38+
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. \n"
39+
# The message that will be added as a comment to the pull requests
40+
# when the stale workflow closes it automatically after being stale for too long.
41+
close-pr-message: "This pull request has been automatically closed because it has not had recent activity.You can reopen the PR if you want. \n"
42+
stale-pr-label: lifecycle/stale
43+
# Exclude them from being marked as stale
44+
exempt-pr-labels: lifecycle/frozen,enhancement,good first issue
45+
# The issues or the pull requests with a milestone will not be marked as stale automatically
46+
exempt-all-milestones: true
47+
# Learn more about operations: https://github.com/actions/stale#operations-per-run.
48+
operations-per-run: 250

0 commit comments

Comments
 (0)