Skip to content

Commit 14d9b8a

Browse files
authored
Add action to lock threads two weeks after closing (#357)
1 parent 9fede0e commit 14d9b8a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/lock.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: lock-threads
2+
3+
on:
4+
# 00:00 hours UTC, i.e. 16:00 hours PST or 17:00 hours PDT
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
# allow manual trigger
9+
workflow_dispatch:
10+
11+
jobs:
12+
lock:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: dessant/lock-threads@v4
16+
if: github.repository == 'awslabs/aws-sdk-js-codemod'
17+
with:
18+
github-token: ${{ github.token }}
19+
issue-inactive-days: 14
20+
pr-inactive-days: 14
21+
issue-comment: >
22+
This thread has been automatically locked since there has not been
23+
any recent activity after it was closed. Please open a
24+
[new issue](https://github.com/awslabs/aws-sdk-js-codemod/issues/new/choose)
25+
for related bugs and link to relevant comments in this thread.
26+
pr-comment: >
27+
This thread has been automatically locked since there has not been
28+
any recent activity after it was closed. Please open a
29+
[new issue](https://github.com/awslabs/aws-sdk-js-codemod/issues/new/choose)
30+
for related bugs and link to relevant comments in this thread.

0 commit comments

Comments
 (0)