File: lock.yml

package info (click to toggle)
python-telegram-bot 22.5-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 11,940 kB
  • sloc: python: 92,703; makefile: 179; sh: 4
file content (25 lines) | stat: -rw-r--r-- 579 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: 'Lock Closed Threads'

on:
  schedule:
    - cron: '8 4 * * *'

permissions: {}

jobs:
  lock:
    runs-on: ubuntu-latest
    permissions:
      # For locking the threads
      issues: write
      pull-requests: write
    steps:
      - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
        with:
          github-token: ${{ github.token }}
          issue-inactive-days: '7'
          issue-lock-reason: ''
          pr-inactive-days: '7'
          pr-lock-reason: ''
          # Don't lock Discussions
          process-only: 'issues, prs'