Skip to content

Commit

Permalink
Add a workflow to lock closed issue/PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Mar 11, 2024
1 parent edfd765 commit c350f05
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ group:
dest: .github/workflows/issue-labeler.yml
- source: synced-files/.github/workflows/check-pr-title.yml
dest: .github/workflows/check-pr-title.yml
- source: synced-files/.github/workflows/lock-threads.yml
dest: .github/workflows/lock-threads.yml
repos: |
realm/realm-js
realm/realm-java
Expand All @@ -53,6 +55,8 @@ group:
dest: .github/auto_assign.yml
- source: synced-files/.github/workflows/check-pr-title.yml
dest: .github/workflows/check-pr-title.yml
- source: synced-files/.github/workflows/lock-threads.yml
dest: .github/workflows/lock-threads.yml
repos: |
realm/realm-core
Expand Down
24 changes: 24 additions & 0 deletions synced-files/.github/workflows/lock-threads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Lock Threads'

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

permissions:
issues: write
pull-requests: write
discussions: write

concurrency:
group: lock-threads

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
issue-inactive-days: 30
pr-inactive-days: 30
log-output: true

0 comments on commit c350f05

Please sign in to comment.