From 7781e8cef2dfe73d71be7804f4c5a7c5f1995d31 Mon Sep 17 00:00:00 2001 From: Julien Tant Date: Mon, 13 Aug 2018 21:04:39 +0200 Subject: Disable merging a WIP Pull request (#4529) * prevent pull request to be merged when PR is a WIP * add tests * add helper to prepend WIP: in PR title * move default wip prefixes into settings * use configurable WIP prefixes in javascript and default to first one in templates * add documentation * add unit test on pull model Signed-off-by: Julien Tant --- custom/conf/app.ini.sample | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'custom/conf/app.ini.sample') diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 682a03b8bf..6f973c63e1 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -60,6 +60,10 @@ FILE_MAX_SIZE = 3 ; Max number of files per upload. Defaults to 5 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] + [ui] ; Number of repositories that are displayed on one explore page EXPLORE_PAGING_NUM = 20 -- cgit v1.2.3