From 02130af47d47dfa7f4507e1ecab3eb564174d73a Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Tue, 23 Oct 2018 19:21:58 -0700 Subject: [PATCH] Enable auto-locking of issues closed long ago (#3821) * Enable auto-locking of issues closed long ago Issues that were closed more than 90 days ago will be locked automatically so that no additional comments would be allowed. We will use a bot to do this: https://probot.github.io/apps/lock/ Background: As a maintainer, I often see people leaving comments to old issue posts that were closed long ago. Those comments are hard to discover and assist with, since they get buried under list of other active issues. With the change, users who want to follow up with an old issue would be asked to file a new issue. * Exempt `feature-request` from auto locking * Disable comment to avoid triggering notification --- .github/lock.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/lock.yml diff --git a/.github/lock.yml b/.github/lock.yml new file mode 100644 index 000000000..f916abe5a --- /dev/null +++ b/.github/lock.yml @@ -0,0 +1,32 @@ +# Configuration for lock-threads - https://github.com/dessant/lock-threads + +# Number of days of inactivity before a closed issue or pull request is locked +daysUntilLock: 90 + +# Issues and pull requests with these labels will not be locked. Set to `[]` to disable +exemptLabels: + - feature-request + +# Label to add before locking, such as `outdated`. Set to `false` to disable +lockLabel: false + +# Comment to post before locking. Set to `false` to disable +lockComment: false + +# Assign `resolved` as the reason for locking. Set to `false` to disable +setLockReason: true + +# Limit to only `issues` or `pulls` +# only: issues + +# Optionally, specify configuration settings just for `issues` or `pulls` +# issues: +# exemptLabels: +# - help-wanted +# lockLabel: outdated + +# pulls: +# daysUntilLock: 30 + +# Repository to extend settings from +# _extends: repo