aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lock.yml
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-03-15 21:30:13 +0800
committerGitHub <noreply@github.com>2022-03-15 21:30:13 +0800
commitd392bc6e9a8244500693aae37ab7e4d011457447 (patch)
tree42db551f2b9b1a8b35bf5e79086b95962a73f128 /.github/workflows/lock.yml
parent714383a063f64fcc7c6a458182c4f9cf5a46df66 (diff)
workflows: lock closed threads after 90 days (#6843)
Diffstat (limited to '.github/workflows/lock.yml')
-rw-r--r--.github/workflows/lock.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml
new file mode 100644
index 00000000..45169f85
--- /dev/null
+++ b/.github/workflows/lock.yml
@@ -0,0 +1,25 @@
+name: 'Lock Threads'
+
+on:
+ schedule:
+ - cron: '0 0 * * *'
+ workflow_dispatch:
+
+permissions:
+ issues: write
+ pull-requests: write
+
+concurrency:
+ group: lock
+
+jobs:
+ action:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: dessant/lock-threads@v3
+ with:
+ github-token: ${{ github.token }}
+ issue-inactive-days: '90'
+ issue-lock-reason: 'resolved'
+ pr-inactive-days: '365'
+ pr-lock-reason: 'resolved'