From 44114b38e601c8bf44f575daef1d0e0597f37d1d Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Mon, 18 Feb 2019 21:55:04 +0100 Subject: Implement "conversation lock" for issue comments (#5073) --- modules/setting/setting.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/setting') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index d3b45ec29d..5f65570540 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -227,6 +227,11 @@ var ( PullRequest struct { WorkInProgressPrefixes []string } `ini:"repository.pull-request"` + + // Issue Setting + Issue struct { + LockReasons []string + } `ini:"repository.issue"` }{ AnsiCharset: "", ForcePrivate: false, @@ -279,6 +284,13 @@ var ( }{ WorkInProgressPrefixes: []string{"WIP:", "[WIP]"}, }, + + // Issue settings + Issue: struct { + LockReasons []string + }{ + LockReasons: strings.Split("Too heated,Off-topic,Spam,Resolved", ","), + }, } RepoRootPath string ScriptType = "bash" -- cgit v1.2.3