Debian Codegraph @

.github/workflows/lock.yml

raw
1 name: Lock
2
3 on:
4 # NOTE: github.event is workflow_dispatch payload:
5 # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
6 workflow_dispatch:
7
8 schedule:
9 - cron: 0 6 * * *
10
11 concurrency:
12 group: ${{ github.workflow }}-${{ github.repository }}
13 cancel-in-progress: true
14
15 permissions:
16 contents: read
17
18 jobs:
19 lock:
20 name: Lock inactive threads
21 if: '!github.event.repository.fork'
22 runs-on: ubuntu-slim
23 permissions:
24 issues: write # Required to lock inactive issues.
25 pull-requests: write # Required to lock inactive pull requests.
26 steps:
27 - uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
28 with:
29 # Number of days of inactivity before a closed issue is locked
30 issue-inactive-days: 180
31 # Do not lock issues created before a given timestamp, value must follow ISO 8601
32 exclude-issue-created-before: ''
33 # Do not lock issues with these labels, value must be a comma separated list of labels or ''
34 exclude-any-issue-labels: ''
35 # Labels to add before locking an issue, value must be a comma separated list of labels or ''
36 add-issue-labels: locked
37 # Reason for locking an issue, value must be one of resolved, off-topic, too heated, spam or ''
38 issue-lock-reason: resolved
39 # Number of days of inactivity before a closed pull request is locked
40 pr-inactive-days: 365
41 # Do not lock pull requests created before a given timestamp, value must follow ISO 8601
42 exclude-pr-created-before: ''
43 # Do not lock pull requests with these labels, value must be a comma separated list of labels or ''
44 exclude-any-pr-labels: ''
45 # Labels to add before locking a pull request, value must be a comma separated list of labels or ''
46 add-pr-labels: locked
47 # Reason for locking a pull request, value must be one of resolved, off-topic, too heated, spam or ''
48 pr-lock-reason: resolved
49
50 # Limit locking to issues, pull requests or discussions, value must be a comma separated list of issues, prs, discussions or ''
51 process-only: issues, prs