forked from clouddrove/github-shared-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 2.24 KB
/
Copy pathpr-lock.yml
File metadata and controls
47 lines (44 loc) · 2.24 KB
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
46
47
---
name: '🔒 Lock Threads'
on:
workflow_call:
inputs:
issue-inactive-days:
description: 'Number of days of inactivity before a closed issue is locked'
type: number
default: '30'
pr-inactive-days:
description: 'Number of days of inactivity before a closed pull request is locked'
type: number
default: '30'
discussion-inactive-days:
description: 'Number of days of inactivity before a closed discussion is locked'
type: number
default: '30'
secrets:
github-token:
required: true
permissions:
issues: write
pull-requests: write
jobs:
lock:
runs-on: ubuntu-latest
steps:
- name: 🔒 Lock issues, PRs & discussions
uses: dessant/lock-threads@v6
with:
github-token: ${{ secrets.github-token }}
issue-comment: >
I'm going to lock this issue because it has been closed for *${{ inputs.issue-inactive-days }} days* ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
issue-inactive-days: ${{ inputs.issue-inactive-days }}
pr-comment: >
I'm going to lock this pull request because it has been closed for *${{ inputs.pr-inactive-days }} days* ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
pr-inactive-days: ${{ inputs.pr-inactive-days }}
discussion-comment: >
I'm going to lock this pull request because it has been closed for *${{ inputs.discussion-inactive-days }} days* ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
discussion-inactive-days: ${{ inputs.discussion-inactive-days }}
...