summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPradyun Gedam <pradyunsg@users.noreply.github.com>2021-09-22 07:18:13 +0100
committerPradyun Gedam <pradyunsg@users.noreply.github.com>2021-09-22 07:18:13 +0100
commit3b73331097e662e8e60a178ef6b6d01af53971fa (patch)
tree881e5191240d28c7423b2e4effa4ec4675e8ee03 /.github
parentd592abf4159c963eb36fdd6c5be6a71ee25c5883 (diff)
downloadpip-3b73331097e662e8e60a178ef6b6d01af53971fa.tar.gz
Add a GitHub Actions workflow, to lock closed threads
This replaces the now-disabled lock-bot, which did the same thing.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lock-threads.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/lock-threads.yml b/.github/workflows/lock-threads.yml
new file mode 100644
index 000000000..985060c2e
--- /dev/null
+++ b/.github/workflows/lock-threads.yml
@@ -0,0 +1,22 @@
+name: 'Lock Closed Threads'
+
+on:
+ schedule:
+ - cron: '0 7 * * *' # 7am UTC, daily
+ workflow_dispatch:
+
+permissions:
+ issues: write
+ pull-requests: write
+
+concurrency:
+ group: lock
+
+jobs:
+ action:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: dessant/lock-threads@v2
+ with:
+ issue-lock-inactive-days: '30'
+ pr-lock-inactive-days: '15'