Skip to content

Commit

Permalink
feat: Use shared lock-threads workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jul 17, 2023
1 parent 4dbee04 commit 1959024
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/lock-threads.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 'Lock Threads'
name: 'Lock Closed Threads'

on:
schedule:
- cron: '42 5 * * *' # 5:42 AM UTC every day
- cron: '42 5 * * 1' # 5:42 AM UTC every Monday
repository_dispatch: { types: [lock_threads] }
workflow_dispatch:

permissions:
Expand All @@ -14,25 +15,5 @@ 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.
lock-threads:
uses: rstudio/shiny-workflows/.github/workflows/lock-threads.yaml@v1

0 comments on commit 1959024

Please sign in to comment.