Skip to content

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

Open
solracsf wants to merge 3 commits into
masterfrom
lockThreadsOlderThan120d
Open

feat(workflows): auto-lock closed issues and PRs older than X days#49033
solracsf wants to merge 3 commits into
masterfrom
lockThreadsOlderThan120d

Conversation

@solracsf

@solracsfsolracsf commented Oct 31, 2024

Copy link
Copy Markdown
Member

Summary

Lock Threads is a GitHub Action that locks closed threads (issues, PRs) after a certain (configurable) period of inactivity.

The proposed workflow will search once a week (on sunday) for closed issues and pull requests that have not had any activity in the past 120 days, and lock them to Nextcloud collaborators only (whose can unlock/reopen/comment on them if needed).

This should prevent regular users to comment on old (out-of-date) threads and invite them to open a new issue instead, with up-to-date material.

More info at https://github.com/dessant/lock-threads

Checklist

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsfsolracsf changed the title feat(workflows): lock threads older than 120 daysfeat(workflows): lock closed threads older than 120 daysOct 31, 2024

@provokateurinprovokateurin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking for now for internal discussion

@solracsfsolracsf changed the title feat(workflows): lock closed threads older than 120 daysfeat(workflows): auto-lock closed issues and PRs older than 120 daysOct 31, 2024
@kesselb

Copy link
Copy Markdown
Contributor

👍

I fear this will create a huge number of notifications, but I like the idea. It happens that people respond to issues and prs that were closed years ago and never receive a response (e.g. because the involved people are not there anymore).

@joshtrichards

Copy link
Copy Markdown
Member

I fear this will create a huge number of notifications, but I like the idea.

@kesselb You mean initially? We could incrementally tweak the options to chunk it. I guess this is one of those "rip the band-aid off things". Or, for the initial batch (existing closed Issues), we could configure to lock w/o comment. As long as the reason is set to resolved, even without adding a comment, it'll look like this (minus the locker name since that doesn't get shown publicly):

image

Once that's done we can add the explanation comment+lock back in for newly closed Issues going forward.

@solracsf I've thought about doing this. Thanks for taking action and pushing us all to think this through to see if we want to do it.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@susnux

Copy link
Copy Markdown
Contributor

I would even say an issue (bug report!) which was closed and not marked as stale (thus resolved) be be locked right after closing.
If there is a regression, then a new issue should be created.

@solracsfsolracsf changed the title feat(workflows): auto-lock closed issues and PRs older than 120 daysfeat(workflows): auto-lock closed issues and PRs older than X daysNov 3, 2024
@solracsf

Copy link
Copy Markdown
MemberAuthor

Any news for a Go/no-Go here ?

@provokateurin

Copy link
Copy Markdown
Member

I think we wanted to have this, but I just brought it up in our team chat again to see how we want to proceed.

@susnuxsusnux added this to the Nextcloud 32 milestone Mar 2, 2025
This was referenced Aug 22, 2025
This was referenced Sep 2, 2025
@nextcloud-botnextcloud-bot mentioned this pull request Sep 10, 2025
@nextcloud-botnextcloud-bot mentioned this pull request Sep 18, 2025
This was referenced Sep 25, 2025
This was referenced Jan 7, 2026
This was referenced Jan 14, 2026
@nextcloud-botnextcloud-bot mentioned this pull request Jan 22, 2026
This was referenced Jan 29, 2026
This was referenced Feb 11, 2026
@blizzzblizzz modified the milestones: Nextcloud 33, Nextcloud 34Feb 16, 2026
@DorraJaouad
DorraJaouad requested a review from a team as a code ownerApril 23, 2026 09:41
@DorraJaouad
DorraJaouad requested review from artonge, come-nc, leftybournes and nfebe and removed request for a teamApril 23, 2026 09:41
@nextcloud-botnextcloud-bot mentioned this pull request May 27, 2026
@nextcloud-botnextcloud-bot mentioned this pull request Jun 4, 2026
This was referenced Jun 5, 2026
@susnuxsusnux added the community pull requests from community label Jun 9, 2026
@susnuxsusnux removed this from the Nextcloud 34.0.1 milestone Jun 9, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewscommunitypull requests from communityfeature: workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@solracsf@kesselb@joshtrichards@susnux@provokateurin@jenny123455@blizzz@skjnldsv@nextcloud-bot