Skip to content

Commit

Permalink
feat: use lock-threads GH action for inactive issues/PRs (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jan 7, 2021
1 parent ea39ca6 commit fc22682
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/lock.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: lock-threads

on:
# 00:00 hours UTC, i.e. 16:00 hours PST or 17:00 hours PDT
schedule:
- cron: '0 0 * * *'

# allow manual trigger
workflow_dispatch:

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
if: github.repository == 'aws/aws-sdk-js-v3'
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: 14
pr-lock-inactive-days: 14
issue-exclude-created-before: '2020-10-01T00:00:00Z'
pr-exclude-created-before: '2020-10-01T00:00:00Z'
issue-lock-comment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a
[new issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose)
for related bugs and link to relevant comments in this thread.
pr-lock-comment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a
[new issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose)
for related bugs and link to relevant comments in this thread.

0 comments on commit fc22682

Please sign in to comment.