Skip to content

Commit adbce06

Browse files
authored
feat: Add action to lock Threads (#21)
1 parent c1b00fe commit adbce06

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lock.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: lock-threads
2+
on:
3+
# run daily
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
# allow manual trigger
8+
workflow_dispatch:
9+
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
14+
# Ensure only one lock action can run at a time
15+
concurrency:
16+
group: lock
17+
18+
jobs:
19+
lock:
20+
if: github.repository == 'swisspost/terraform-grafana-prometheus-alerts'
21+
runs-on: ubuntu-24.04
22+
steps:
23+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
24+
with:
25+
github-token: ${{ github.token }}
26+
issue-inactive-days: 30
27+
pr-inactive-days: 30
28+
process-only: 'issues, prs'

0 commit comments

Comments
 (0)