Skip to content

Commit 67d10d5

Browse files
committed
chore(gh): add lock workflow
Adds a workflow to lock closed issues and pull requests. Signed-off-by: Ryan Johnson <[email protected]>
1 parent 060d9d0 commit 67d10d5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/govmomi-lock.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lock Threads
2+
3+
permissions:
4+
contents: read
5+
issues: write
6+
pull-requests: write
7+
8+
on:
9+
schedule:
10+
- cron: 30 00 * * *
11+
12+
jobs:
13+
lock:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
17+
with:
18+
github-token: '${{ secrets.GITHUB_TOKEN }}'
19+
issue-comment: >
20+
I'm going to lock this issue because it has been closed for 30
21+
days. This helps our maintainers find and focus on the active
22+
issues.
23+
24+
25+
If you have found a problem that seems similar to this,
26+
please open a new issue and complete the issue template so we can
27+
capture all the details necessary to investigate further.
28+
issue-inactive-days: 30
29+
pr-comment: >
30+
I'm going to lock this pull request because it has been closed for
31+
30 days. This helps our maintainers find and focus on the active
32+
issues.
33+
34+
35+
If you have found a problem that seems related to this
36+
change, please open a new issue and complete the issue template so
37+
we can capture all the details necessary to investigate further.
38+
pr-inactive-days: 30

0 commit comments

Comments
 (0)