diff options
author | David Lord <davidism@gmail.com> | 2023-01-09 14:51:55 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2023-01-09 14:51:55 -0800 |
commit | 89eec1c5ee5022342f05c121dccb0e7b8b0ac523 (patch) | |
tree | c812e252a723e63f0adcafd2984bb00a3d4d19ac /.github | |
parent | 495b889b7c978268cc9c5939106aa6f4ce76c7f5 (diff) | |
download | jinja2-89eec1c5ee5022342f05c121dccb0e7b8b0ac523.tar.gz |
set workflow permissions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lock.yaml | 12 |
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 |