-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (39 loc) · 1.97 KB
/
lock.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Lock
on:
# NOTE: github.event is workflow_dispatch payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
workflow_dispatch:
schedule:
- cron: 0 6 * * *
permissions:
issues: write
pull-requests: write
jobs:
lock:
if: '!github.event.repository.fork'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
with:
# Number of days of inactivity before a closed issue is locked
issue-inactive-days: 365
# Do not lock issues created before a given timestamp, value must follow ISO 8601
exclude-issue-created-before: ''
# Do not lock issues with these labels, value must be a comma separated list of labels or ''
exclude-any-issue-labels: ''
# Labels to add before locking an issue, value must be a comma separated list of labels or ''
add-issue-labels: locked
# Reason for locking an issue, value must be one of resolved, off-topic, too heated, spam or ''
issue-lock-reason: resolved
# Number of days of inactivity before a closed pull request is locked
pr-inactive-days: 365
# Do not lock pull requests created before a given timestamp, value must follow ISO 8601
exclude-pr-created-before: ''
# Do not lock pull requests with these labels, value must be a comma separated list of labels or ''
exclude-any-pr-labels: ''
# Labels to add before locking a pull request, value must be a comma separated list of labels or ''
add-pr-labels: locked
# Reason for locking a pull request, value must be one of resolved, off-topic, too heated, spam or ''
pr-lock-reason: resolved
# Limit locking to issues, pull requests or discussions, value must be a comma separated list of issues, prs, discussions or ''
process-only: issues, prs