-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(lock-threads): Automatically lock closed, inactive issues
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 'Lock Threads' | ||
|
||
on: | ||
schedule: | ||
- cron: '42 5 * * *' # 5:42 AM UTC every day | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
# Enable the line below if you turn on pull request locking | ||
# pull-requests: write | ||
|
||
concurrency: | ||
group: lock-threads | ||
|
||
jobs: | ||
action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v4 | ||
with: | ||
# Remove the line below to turn on pull request locking | ||
process-only: 'issues' | ||
|
||
# Issue-locking options | ||
issue-inactive-days: 60 | ||
issue-comment: > | ||
This issue has been automatically locked. If you believe you have | ||
found a related problem, please open a new issue (with | ||
[a reprex](https://reprex.tidyverse.org/)) and link to this issue. | ||
# Pull request-locking options | ||
pr-inactive-days: 60 | ||
pull-comment: > | ||
This pull request has been automatically locked. If you believe | ||
you have found a related problem, please open a new issue | ||
(with [a reprex](https://reprex.tidyverse.org/)) and link to this | ||
pull request. |