Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflows): auto-lock closed issues and PRs older than X days #49033

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/lock-threads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT

name: 'Lock threads older than 120 days'

on:
schedule:
- cron: '17 3 * * 7'
workflow_dispatch:

permissions:
issues: write
pull-requests: write

concurrency:
group: lock-threads

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
issue-inactive-days: '120'
issue-lock-reason: 'resolved'
issue-comment: >
This issue has been inactive for 120 days, we're locking it to keep discussions tidy and focused.
If you believe this issue is still relevant, we encourage you to update Nextcloud to the latest supported version first.
If needed, feel free to create a new issue, and we'll be happy to help.
pr-inactive-days: '120'
pr-lock-reason: 'resolved'
pr-comment: >
This PR has been inactive for 120 days, we're locking it to keep discussions tidy and focused.
If this PR is causing any issues, feel free to create a new issue, and we'll be happy to help.
Loading