Files
forgejo/services
Max Wipfli 4ddd9af50f 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}
```

(cherry picked from commit da4bbc42477ba04d175cc0775a0c5ec90c4c24fe)

Conflicts:
	docs/content/usage/merge-message-templates.en-us.md
	not in Forgejo
	templates/repo/issue/view_content/pull.tmpl
	trivial context conflict
2024-06-09 16:04:57 +02:00
..
2024-05-05 08:59:40 +01:00
2024-05-24 13:28:15 +02:00
2024-03-31 10:52:24 +05:00
2024-06-07 17:12:48 +00:00
2024-03-28 05:42:25 +01:00
2024-06-09 11:13:39 +02:00
2024-04-15 20:01:35 +02:00
2024-06-09 11:13:39 +02:00
2024-05-26 18:20:33 +02:00
2024-05-20 13:48:50 +00:00