Skip to content

Commit 6b3a9e3

Browse files
committed
Added stale issues and PR workflow
1 parent 4e2cad1 commit 6b3a9e3

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/stale.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0' # Runs every Sunday at midnight
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v8
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
# Message to comment on stale issues.
20+
stale-issue-message: |
21+
Hello! :wave:
22+
23+
This issue has been automatically marked as stale due to inactivity :sleeping:
24+
25+
It will be closed in 180 days if no further activity occurs. To keep it active, please add a comment with more details.
26+
27+
There can be many reasons why a specific issue has no activity. The most probable cause is a lack of time, not a lack of interest.
28+
29+
Let us figure out together how to push this issue forward. Connect with us through our slack channel : https://json-schema.org/slack
30+
31+
Thank you for your patience :heart:
32+
33+
# Message to comment on stale pull requests.
34+
stale-pr-message: |
35+
Hello! :wave:
36+
37+
This pull request has been automatically marked as stale due to inactivity :sleeping:
38+
39+
It will be closed in 180 days if no further activity occurs. To keep it active, please add a comment with more details.
40+
41+
There can be many reasons why a specific pull request has no activity. The most probable cause is a lack of time, not a lack of interest.
42+
43+
Let us figure out together how to push this pull request forward. Connect with us through our slack channel : https://json-schema.org/slack
44+
45+
Thank you for your patience :heart:
46+
47+
# Message to comment on issues that are about to be closed.
48+
close-issue-message: 'This issue did not get any activity in the past 180 days and thus has been closed. Please check if the main branch has fixed it. Please, create a new issue if the issue is not fixed.'
49+
50+
# Message to comment on pull requests that are about to be closed.
51+
close-pr-message: 'This pull request did not get any activity in the past 180 days and thus has been closed.'
52+
53+
# Labels to add to stale issues and pull requests.
54+
stale-issue-label: 'Status: Stale'
55+
stale-pr-label: 'Status: Stale'
56+
57+
# Number of days of inactivity before an issue/PR is marked as stale.
58+
days-before-stale: 30
59+
60+
# Number of days of inactivity before an issue/PR is closed.
61+
days-before-close: 180
62+
63+
# Remove the stale label when the issue/PR is updated.
64+
remove-stale-when-updated: true
65+
66+
# Exempt labels to ignore when checking for stale issues/PRs.
67+
exempt-pr-labels: 'Status: On Hold,Status: Blocked'
68+
exempt-issue-labels: 'Status: On Hold,Status: Blocked'

0 commit comments

Comments
 (0)