diff --git a/.github/sync.yml b/.github/sync.yml index 5d8323f..767245e 100644 --- a/.github/sync.yml +++ b/.github/sync.yml @@ -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 @@ -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 diff --git a/synced-files/.github/workflows/lock-threads.yml b/synced-files/.github/workflows/lock-threads.yml new file mode 100644 index 0000000..e359b34 --- /dev/null +++ b/synced-files/.github/workflows/lock-threads.yml @@ -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 \ No newline at end of file