Skip to content

Commit f83f899

Browse files
committed
workflow: Lock closed issues
1 parent 61e37f4 commit f83f899

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/lock.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Lock Closed Issues'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0' # Every Sunday
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
concurrency:
13+
group: lock
14+
15+
jobs:
16+
action:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Lock Issues
20+
if: github.repository == 'htr-tech/zphisher' && github.ref == 'refs/heads/master'
21+
uses: dessant/lock-threads@v3
22+
with:
23+
process-only: 'issues'
24+
issue-inactive-days: '30'
25+
exclude-any-issue-labels: 'enhancement'
26+
add-issue-labels: 'archived'
27+
remove-issue-labels: 'stale'
28+
issue-lock-reason: 'resolved'
29+
issue-comment: >
30+
This issue has been automatically locked since there
31+
has not been any recent activity after it was closed.
32+
Please open a new issue for related bugs/questions.

0 commit comments

Comments
 (0)