Skip to content

Commit 13922cf

Browse files
authored
ci: add lockthreads and stale actions (#306)
1 parent 70b756e commit 13922cf

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/stale.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: 'Close stale and lock closed issues and PRs'
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 1 * * *'
6+
permissions:
7+
contents: read
8+
jobs:
9+
stale:
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: dessant/lock-threads@7de207be1d3ce97a9abe6ff1306222982d1ca9f9 # v5.0.1
16+
with:
17+
issue-inactive-days: 365 # 1 year
18+
add-issue-labels: 'Outdated'
19+
issue-comment: >
20+
This issue has been automatically locked since there
21+
has not been any recent activity after it was closed.
22+
Please open a new issue for related bugs.
23+
pr-comment: >
24+
This pull request has been automatically locked since there
25+
has not been any recent activity after it was closed.
26+
Please open a new issue for related bugs.
27+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
28+
with:
29+
operations-per-run: 999
30+
days-before-issue-stale: 180 # 6 months
31+
days-before-pr-stale: 180 # 6 months
32+
days-before-issue-close: 180 # 6 months
33+
days-before-pr-close: 180 # 6 months
34+
stale-issue-message: >
35+
This issue has been automatically marked as stale because it has not had
36+
recent activity. The resources of team are limited, and so we are asking for your help.
37+
38+
If this is a **bug** and you can still reproduce this error on the <code>main</code> branch, please reply with all of the information you have about it in order to keep the issue open.
39+
40+
If this is a **feature request**, and you feel that it is still relevant and valuable, please tell us why.
41+
42+
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
43+
stale-pr-message: This PR has been automatically marked as stale because it has not had
44+
recent activity. The resources of the team are limited, and so we are asking for your help.
45+
46+
Please check and verify that this code contribution fits with the purpose of the project. If yes, tell is in a comment.
47+
48+
This PR will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
49+
stale-issue-label: 'Stale'
50+
exempt-issue-labels: 'Keep,Security'
51+
stale-pr-label: 'Stale'
52+
exempt-pr-labels: 'Keep,Security'

0 commit comments

Comments
 (0)