From a2191a6cbf2f5b50aa71026dd068582dbd5016cc Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Thu, 14 Mar 2024 21:25:30 +0100 Subject: [PATCH] Add a workflow to lock closed issue/PRs (#52) * Add a workflow to lock closed issue/PRs * Update lock-threads.yml --- .github/sync.yml | 4 ++++ .../.github/workflows/lock-threads.yml | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 synced-files/.github/workflows/lock-threads.yml 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..dc1d483 --- /dev/null +++ b/synced-files/.github/workflows/lock-threads.yml @@ -0,0 +1,24 @@ +name: 'Lock Threads' + +on: + schedule: + - cron: '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