mirror of
https://github.com/go-gitea/gitea
synced 2024-12-16 17:04:06 +01:00
da4bbc4247
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} ``` |
||
---|---|---|
.. | ||
actions | ||
packages | ||
_index.en-us.md | ||
_index.zh-cn.md | ||
agit-support.en-us.md | ||
agit-support.zh-cn.md | ||
authentication.en-us.md | ||
authentication.zh-cn.md | ||
blame.en-us.md | ||
blocking-users.en-us.md | ||
clone-filter.en-us.md | ||
clone-filter.zh-cn.md | ||
code-owners.en-us.md | ||
incoming-email.en-us.md | ||
incoming-email.zh-cn.md | ||
issue-pull-request-templates.en-us.md | ||
issue-pull-request-templates.zh-cn.md | ||
labels.en-us.md | ||
labels.zh-cn.md | ||
linked-references.en-us.md | ||
linked-references.zh-cn.md | ||
merge-message-templates.en-us.md | ||
merge-message-templates.zh-cn.md | ||
multi-factor-authentication.en-us.md | ||
permissions.en-us.md | ||
permissions.zh-cn.md | ||
profile-readme.en-us.md | ||
profile-readme.zh-cn.md | ||
protected-tags.en-us.md | ||
protected-tags.zh-cn.md | ||
pull-request.en-us.md | ||
pull-request.zh-cn.md | ||
push.en-us.md | ||
push.zh-cn.md | ||
repo-mirror.en-us.md | ||
repo-mirror.zh-cn.md | ||
template-repositories.en-us.md | ||
template-repositories.zh-cn.md | ||
webhooks.en-us.md | ||
webhooks.zh-cn.md |