Skip to content

Commit ec34174

Browse files
authored
chore(gh): update lock workflow (#2391)
Updates the lock workflow. Signed-off-by: Ryan Johnson <[email protected]>
1 parent 6c74230 commit ec34174

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/lock.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
1-
name: Lock Threads
1+
---
2+
name: Lock
23

34
on:
45
schedule:
5-
- cron: '50 1 * * *'
6+
- cron: 30 00 * * *
7+
8+
permissions:
9+
contents: read
610

711
jobs:
812
lock:
913
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
1017
steps:
1118
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
1219
with:
13-
github-token: ${{ github.token }}
20+
github-token: '${{ secrets.GITHUB_TOKEN }}'
1421
issue-comment: >
15-
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
16-
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.
22+
I'm going to lock this issue because it has been closed for 30
23+
days. This helps our maintainers find and focus on the active
24+
issues.
25+
26+
27+
If you have found a problem that seems similar to this,
28+
please open a new issue and complete the issue template so we can
29+
capture all the details necessary to investigate further.
1730
issue-inactive-days: '30'
1831
pr-comment: >
19-
I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
20-
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.
32+
I'm going to lock this pull request because it has been closed for
33+
30 days. This helps our maintainers find and focus on the active
34+
issues.
35+
36+
37+
If you have found a problem that seems related to this
38+
change, please open a new issue and complete the issue template so
39+
we can capture all the details necessary to investigate further.
2140
pr-inactive-days: '30'

0 commit comments

Comments
 (0)