1
0
mirror of https://github.com/go-gitea/gitea synced 2025-01-12 20:57:45 +01:00
Max Wipfli da4bbc4247
Allow including Reviewed-on/Reviewed-by lines for custom merge messages ()
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 .

---

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
..
2024-05-02 10:45:23 +00:00
2024-06-03 00:09:51 +00:00