Skip to content

Commit f3f7578

Browse files
authored
added action yml "autolock_bot_PR.yml"
This GitHub action is used to automatically lock PR since there has not been any activity in past 14 days after it was merged.
1 parent c8937fa commit f3f7578

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/autolock_bot_PR.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'Autolock RitBot for for PR'
2+
3+
on:
4+
schedule:
5+
- cron: '0 */2 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
concurrency:
13+
group: lock
14+
15+
jobs:
16+
action:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: dessant/lock-threads@v3
20+
with:
21+
22+
github-token: ${{ github.token }}
23+
pr-inactive-days: '14'
24+
exclude-pr-created-before: ''
25+
exclude-pr-created-after: ''
26+
exclude-pr-created-between: ''
27+
exclude-pr-closed-before: ''
28+
exclude-pr-closed-after: ''
29+
exclude-pr-closed-between: ''
30+
include-any-pr-labels: 'automerge'
31+
include-all-pr-labels: ''
32+
exclude-any-pr-labels: ''
33+
add-pr-labels: 'locked PR'
34+
remove-pr-labels: ''
35+
pr-comment: 'This PR has been automatically locked since there has not been any activity in past 14 days after it was merged.'
36+
pr-lock-reason: 'resolved'
37+
log-output: true

0 commit comments

Comments
 (0)