Browse Source

Upgrade to Lock Threads 2

Benoit Blanchon 5 years ago
parent
commit
ab902128dc
2 changed files with 14 additions and 7 deletions
  1. 0 7
      .github/lock.yml
  2. 14 0
      .github/workflows/lock.yml

+ 0 - 7
.github/lock.yml

@@ -1,7 +0,0 @@
-# Configuration for Lock Threads - https://github.com/dessant/lock-threads
-
-# Number of days of inactivity before a closed issue or pull request is locked
-daysUntilLock: 30
-
-# Comment to post before locking. Set to `false` to disable
-lockComment: false

+ 14 - 0
.github/workflows/lock.yml

@@ -0,0 +1,14 @@
+name: 'Lock Threads'
+
+on:
+  schedule:
+    - cron: '0 0 * * *'
+
+jobs:
+  lock:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: dessant/lock-threads@v2
+        with:
+          github-token: ${{ github.token }}
+          issue-lock-inactive-days: 30