mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Configurable close and reopen keywords for PRs (#8120)
* Add settings for CloseKeywords and ReopenKeywords * Fix and improve tests * Use sync.Once() for initialization * Fix unintended exported function
This commit is contained in:
		@@ -69,6 +69,10 @@ MAX_FILES = 5
 | 
			
		||||
[repository.pull-request]
 | 
			
		||||
; List of prefixes used in Pull Request title to mark them as Work In Progress
 | 
			
		||||
WORK_IN_PROGRESS_PREFIXES=WIP:,[WIP]
 | 
			
		||||
; List of keywords used in Pull Request comments to automatically close a related issue
 | 
			
		||||
CLOSE_KEYWORDS=close,closes,closed,fix,fixes,fixed,resolve,resolves,resolved
 | 
			
		||||
; List of keywords used in Pull Request comments to automatically reopen a related issue
 | 
			
		||||
REOPEN_KEYWORDS=reopen,reopens,reopened
 | 
			
		||||
 | 
			
		||||
[repository.issue]
 | 
			
		||||
; List of reasons why a Pull Request or Issue can be locked
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user