forgejo/templates/repo
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
..
actions UI: Actions: Replace runs list description semicolon 2024-04-29 21:05:20 +02:00
branch Don't include link of deleted branch when listing branches (#31028) 2024-05-26 18:45:23 +02:00
cite
code Fix overflow on push notification (#31179) 2024-06-09 11:13:39 +02:00
diff Prevent simultaneous editing of comments and issues (#31053) 2024-06-02 16:26:54 +02:00
editor
find
graph
issue Allow including Reviewed-on/Reviewed-by lines for custom merge messages (#31211) 2024-06-09 16:04:57 +02:00
migrate Fix and improve repo visibility checkbox when FORCE_PRIVATE is on (#3786) 2024-05-16 05:51:55 +00:00
projects
pulls Improve diff stats bar (#30669) 2024-04-28 15:39:01 +02:00
release
settings feat(federated-star) star repositories via ActivityPub (#1680) 2024-06-06 08:58:11 +02:00
tag
wiki feat: wiki search using git-grep 2024-05-20 13:48:50 +00:00
activity.tmpl Show repo activities even if only code unit active or git repo is empty but issue is active (#3455) 2024-04-28 13:47:52 +00:00
admin_flags.tmpl
blame.tmpl
branch_dropdown.tmpl Fix long branch name overflows (https://github.com/go-gitea/gitea/pull/30345) 2024-05-24 22:11:37 +05:00
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl Fix some UI regressions for commit list (#30920) 2024-05-12 20:03:10 +02:00
commits_search_dropdown.tmpl
commits_table.tmpl
contributors.tmpl
create.tmpl Fix and improve repo visibility checkbox when FORCE_PRIVATE is on (#3786) 2024-05-16 05:51:55 +00:00
create_helper.tmpl
empty.tmpl
file_info.tmpl Remove obsolete CSS text classes (#30576) 2024-04-28 15:39:00 +02:00
flags.tmpl
forks.tmpl
graph.tmpl
header.tmpl Rename project board -> column to make the UI less confusing (#30170) 2024-06-02 09:42:39 +02:00
header_fork.tmpl
home.tmpl [FEAT] support searching non default branches/tags when using git-grep (#3654) 2024-05-14 15:41:03 +00:00
icon.tmpl
latest_commit.tmpl
navbar.tmpl
packages.tmpl
pulse.tmpl
recent_commits.tmpl
release_tag_header.tmpl Fix localization of release/tag counters on releases page 2024-05-29 22:46:36 +05:00
search.tmpl
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl Fix view of readme file in the home code page. (#30564) 2024-04-28 15:39:01 +02:00
watch_unwatch.tmpl
watchers.tmpl