summaryrefslogtreecommitdiff
path: root/.github/workflows/lock.yaml
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2023-01-09 15:09:02 -0800
committerDavid Lord <davidism@gmail.com>2023-01-09 15:09:02 -0800
commit03fac16fd8723418b6e8623c2fb0bec616aff677 (patch)
treee30ab1db68d98810c483f3a8f761c381b4747e32 /.github/workflows/lock.yaml
parent1b07d600ee4eb475da2a52d84c3c81ecd59b6f7d (diff)
parent64e1c36851cb615276f631c9ee8bbd95f6e6c39f (diff)
downloadmarkupsafe-03fac16fd8723418b6e8623c2fb0bec616aff677.tar.gz
Merge branch '2.1.x'
Diffstat (limited to '.github/workflows/lock.yaml')
-rw-r--r--.github/workflows/lock.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/lock.yaml b/.github/workflows/lock.yaml
index c771673..20bec85 100644
--- a/.github/workflows/lock.yaml
+++ b/.github/workflows/lock.yaml
@@ -1,15 +1,25 @@
name: 'Lock threads'
+# Lock closed issues that have not received any further activity for
+# two weeks. This does not close open issues, only humans may do that.
+# We find that it is easier to respond to new issues with fresh examples
+# rather than continuing discussions on old issues.
on:
schedule:
- cron: '0 0 * * *'
+permissions:
+ issues: write
+ pull-requests: write
+
+concurrency:
+ group: lock
+
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
- github-token: ${{ github.token }}
issue-inactive-days: 14
pr-inactive-days: 14