-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (36 loc) · 1.31 KB
/
lock-closed.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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Lock closed
on:
workflow_dispatch:
schedule:
- cron: '5 8 * * *'
# * * * * *
# │ │ │ │ │
# │ │ │ │ └───── day of the week (0 - 6 or SUN-SAT)
# │ │ │ └─────── month (1 - 12 or JAN-DEC)
# │ │ └───────── day of the month (1 - 31)
# │ └─────────── hour (0 - 23)
# └───────────── minute (0 - 59)
jobs:
lock:
name: Lock closed issues and PRs
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
concurrency:
group: lock-closed
steps:
- name: 🔒 Lock closed issues and PRs
uses: dessant/[email protected]
with:
github-token: ${{ github.token }}
issue-inactive-days: 7
pr-inactive-days: 1
pr-lock-reason: resolved
issue-comment: >
Issue closed and locked due to lack of activity.
If you encounter this same issue, please open a new issue and refer
to this closed one.
# pr-comment: >
# Pull Request closed and locked due to lack of activity.