Skip to content

Commit 50daf25

Browse files
committed
lock-threads.yml: update to match main configuration
1 parent 41ab58c commit 50daf25

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/lock-threads.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is synced from the `.github` repository, do not modify it directly.
2+
name: Lock threads
3+
4+
on:
5+
push:
6+
paths:
7+
- .github/workflows/lock-threads.yml
8+
branches-ignore:
9+
- dependabot/**
10+
schedule:
11+
# Once every day at 1am UTC
12+
- cron: "0 1 * * *"
13+
issue_comment:
14+
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
19+
concurrency:
20+
group: lock-threads
21+
cancel-in-progress: ${{ github.event_name != 'issue_comment' }}
22+
23+
jobs:
24+
lock-threads:
25+
if: github.repository_owner == 'Homebrew' && github.event_name != 'issue_comment'
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Lock Outdated Threads
29+
uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
process-only: 'issues, prs'
33+
issue-inactive-days: 30
34+
add-issue-labels: outdated
35+
pr-inactive-days: 30
36+
add-pr-labels: outdated

0 commit comments

Comments
 (0)