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 permissions:
12 issues: write
13 pull-requests: write
14
15 jobs:
16 lock:
17 if: '!github.event.repository.fork'
18 runs-on: ubuntu-slim
19 steps:
20 - uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # v6.0.0
21 with:
22 # Number of days of inactivity before a closed issue is locked
23 issue-inactive-days: 180
24 # Do not lock issues created before a given timestamp, value must follow ISO 8601
25 exclude-issue-created-before: ''
26 # Do not lock issues with these labels, value must be a comma separated list of labels or ''
27 exclude-any-issue-labels: ''
28 # Labels to add before locking an issue, value must be a comma separated list of labels or ''
29 add-issue-labels: locked
30 # Reason for locking an issue, value must be one of resolved, off-topic, too heated, spam or ''
31 issue-lock-reason: resolved
32 # Number of days of inactivity before a closed pull request is locked
33 pr-inactive-days: 365
34 # Do not lock pull requests created before a given timestamp, value must follow ISO 8601
35 exclude-pr-created-before: ''
36 # Do not lock pull requests with these labels, value must be a comma separated list of labels or ''
37 exclude-any-pr-labels: ''
38 # Labels to add before locking a pull request, value must be a comma separated list of labels or ''
39 add-pr-labels: locked
40 # Reason for locking a pull request, value must be one of resolved, off-topic, too heated, spam or ''
41 pr-lock-reason: resolved
42
43 # Limit locking to issues, pull requests or discussions, value must be a comma separated list of issues, prs, discussions or ''
44 process-only: issues, prs