From 35a957f5ce0cfa6080018aa2d22ea5996ac831e9 Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Tue, 15 Dec 2020 10:09:03 +0100
Subject: [PATCH] chore: switch lock app to action (#8022)

---
 .github/lock.yml           | 15 ---------------
 .github/workflows/lock.yml | 20 ++++++++++++++++++++
 2 files changed, 20 insertions(+), 15 deletions(-)
 delete mode 100644 .github/lock.yml
 create mode 100644 .github/workflows/lock.yml

diff --git a/.github/lock.yml b/.github/lock.yml
deleted file mode 100644
index 4cf261904d..0000000000
--- a/.github/lock.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# Github Lock App configuration
-# https://github.com/apps/lock
-
-# Do not comment on very old issues / prs
-lockComment: false
-
-# Only process issues / prs older than 2 years
-daysUntilLock: 730
-
-# Assign `resolved` as the reason for locking.
-setLockReason: true
-
-# other config
-skipCreatedBefore: false
-lockLabel: false
diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml
new file mode 100644
index 0000000000..f6b02ec902
--- /dev/null
+++ b/.github/workflows/lock.yml
@@ -0,0 +1,20 @@
+name: lock-threads
+
+on:
+  # run daily
+  schedule:
+    - cron: '0 0 * * *'
+
+  # allow manual trigger
+  workflow_dispatch:
+
+jobs:
+  lock:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: dessant/lock-threads@v2.0.1
+        if: github.repository == 'renovatebot/renovate'
+        with:
+          github-token: ${{ github.token }}
+          issue-lock-inactive-days: 730
+          pr-lock-inactive-days: 730
-- 
GitLab