summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2023-01-07 12:28:34 -0800
committerDavid Lord <davidism@gmail.com>2023-01-07 12:28:34 -0800
commit21c0a01a745ec817f05f37ece3e70a321e62260f (patch)
tree3470bd0fe9372e8b92d77ebd2b4a2ba2b60d2a00 /.github
parent0ffe72590e709d0c498e6062b92e79baa8b32bec (diff)
downloadwerkzeug-21c0a01a745ec817f05f37ece3e70a321e62260f.tar.gz
set workflow permissions
Diffstat (limited to '.github')
-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 c771673b..20bec85a 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