diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-10-30 09:43:59 -0300 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-10-30 14:43:59 +0200 |
commit | f9944c0e6929f1c314d0a6e8d38a5592ba6eee2c (patch) | |
tree | 8381e4df7ee7c2c9a25cec990a103b978cd4c04b /custom | |
parent | ac6accef092ea5a983a4a8ee35282246fc3c6fc5 (diff) | |
download | gitea-f9944c0e6929f1c314d0a6e8d38a5592ba6eee2c.tar.gz gitea-f9944c0e6929f1c314d0a6e8d38a5592ba6eee2c.zip |
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
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index f0204bb06e..e6ccab95d9 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -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 |