-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (40 loc) · 1.43 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 closed issues and PRs
on:
schedule:
- cron: "30 2 * * *"
workflow_call: {}
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
lock:
name: 🔐 Lock closed issues and PRs
runs-on: ubuntu-latest
steps:
# https://github.com/dessant/lock-threads#available-input-parameters
- uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21
with:
github-token: ${{ secrets.ORG_TOKEN }}
issue-inactive-days: "60"
issue-lock-reason: ""
issue-comment: >
This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
pr-inactive-days: "7"
pr-lock-reason: ""
pr-comment: >
This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
To build on this closed PR, you can clone it using this method:
- https://stackoverflow.com/a/14969986
Then open a new PR, referencing this closed PR in your message.
- uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21
with:
github-token: ${{ secrets.ORG_TOKEN }}
exclude-any-pr-labels: "wip"
process-only: "prs"