mirror of
https://github.com/go-gitea/gitea
synced 2024-08-27 17:53:41 +02:00
This PR introduces the `ReviewedOn` and `ReviewedBy` variables for the default merge message templates (e.g., `.gitea/default_merge_message/MERGE_TEMPLATE.md`). This allows customizing the default merge messages while retaining these trailers. This also moves the associated logic out of `pull.tmpl` into the relevant Go function. This is a first contribution towards #11077. --- For illustration, this allows to recreate the "default default" merge message with the following template: ``` .gitea/default_merge_message/MERGE_TEMPLATE.md Merge pull request '${PullRequestTitle}' (${PullRequestReference}) from ${HeadBranch} into ${BaseBranch} ${ReviewedOn} ${ReviewedBy} ``` |
||
---|---|---|
.. | ||
administration | ||
contributing | ||
development | ||
help | ||
installation | ||
usage | ||
actions.en-us.md | ||
administration.en-us.md | ||
administration.zh-cn.md | ||
contributing.en-us.md | ||
development.en-us.md | ||
development.zh-cn.md | ||
help.en-us.md | ||
help.zh-cn.md | ||
index.en-us.md | ||
index.zh-cn.md | ||
installation.en-us.md | ||
installation.zh-cn.md | ||
packages.en-us.md | ||
search.en-us.md | ||
search.nl-nl.md | ||
search.pt-br.md | ||
search.zh-cn.md | ||
usage.en-us.md | ||
usage.zh-cn.md |