Commit Graph

8 Commits (d487a76ee2843cc94ec6185dfdb676b4482dc8d8)

Author SHA1 Message Date
Julien Tant 7781e8cef2 Disable merging a WIP Pull request ()
* 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 <julien@craftyx.fr>
Ethan Koenig b496e3e1cc Fix unit test race condition ()
Morlinest 8e61823ec4 Fix tests code to prevent some runtime errors ()
* Fix tests code to prevent some runtime errors

* Reduce nesting
Ethan Koenig ceae143e78 Consistency checks for unit tests ()
Lunny Xiao bb5a6b7a07 fix xorm NewSession uncorrected usages ()
Ethan Koenig 8093b3372e Less boilerplate in models/ unit tests ()
Ethan Koenig 973282dae2 Better coverage in pull_test ()
Ethan Koenig 72bfabfada Unit tests for models/pull.go