0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 20:54:40 +01:00
gitea/docs/content/usage
Max Wipfli da4bbc4247
Allow including Reviewed-on/Reviewed-by lines for custom merge messages (#31211)
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}
```
2024-06-06 08:35:04 +00:00
..
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