Skip to content

Commit 0b46e53

Browse files
committed
adds lock and stale workflows
1 parent 20b5e66 commit 0b46e53

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

.github/workflows/lock.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# lock-threads (https://github.com/marketplace/actions/lock-threads)
2+
name: 'Lock threads'
3+
4+
on:
5+
schedule:
6+
- cron: '0 3 * * *'
7+
workflow_dispatch:
8+
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
lock:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: dessant/lock-threads@v3
18+
with:
19+
issue-inactive-days: 90
20+
pr-inactive-days: 30
21+
issue-lock-reason: 'resolved'

.github/workflows/stale.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues)
2+
name: 'Close stale issues/PRs'
3+
4+
on:
5+
schedule:
6+
- cron: '0 4 * * *'
7+
workflow_dispatch:
8+
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
stale:
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/stale@v6
19+
with:
20+
close-issue-message: >
21+
This issue has been automatically closed due to lack of activity. In an
22+
effort to reduce noise, please do not comment any further. Note that the
23+
core maintainers may elect to reopen this issue at a later date if deemed
24+
necessary.
25+
close-pr-message: >
26+
This PR has been automatically closed due to lack of activity.
27+
days-before-stale: 90
28+
days-before-close: 30
29+
exempt-issue-labels: 'status: accepted,status: blocked,status: needs milestone'
30+
operations-per-run: 100
31+
remove-stale-when-updated: false
32+
stale-issue-label: 'pending closure'
33+
stale-issue-message: >
34+
This issue has been automatically marked as stale because it has not had
35+
recent activity. It will be closed if no further activity occurs. NetBox
36+
is governed by a small group of core maintainers which means not all opened
37+
issues may receive direct feedback. **Do not** attempt to circumvent this
38+
process by "bumping" the issue; doing so will result in its immediate closure
39+
and you may be barred from participating in any future discussions. Please see
40+
our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
41+
stale-pr-label: 'pending closure'
42+
stale-pr-message: >
43+
This PR has been automatically marked as stale because it has not had
44+
recent activity. It will be closed automatically if no further action is
45+
taken.

0 commit comments

Comments
 (0)