0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 09:24:07 -05:00
forgejo/docs/content/doc/usage/pull-request.en-us.md
Julien Tant 7781e8cef2 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 <julien@craftyx.fr>
2018-08-13 22:04:39 +03:00

881 B

date title slug weight toc draft menu
2018-06-01T19:00:00+02:00 Usage: Pull Request pull-request 13 true false
sidebar
parent name weight identifier
usage Pull Request 13 pull-request

Pull Request

"Work In Progress" pull requests

Marking a pull request as being a work in progress will prevent that pull request from being accidentally merged. To mark a pull request as being a work in progress, you must prefix its title by WIP: or [WIP] (case insensitive). Those values are configurable in your app.ini file :

[repository.pull-request]
WORK_IN_PROGRESS_PREFIXES=WIP:,[WIP]

The first value of the list will be used in helpers.

Pull Request Templates

You can find more information about pull request templates in the dedicated page : Issue and Pull Request templates