You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo/issue
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}
```
8 months ago
..
fields Support setting the `default` attribute of the issue template dropdown field (#31045) 9 months ago
labels Fix branch selector UI (#30803) 9 months ago
milestone Migrate margin and padding helpers to tailwind (#30043) 11 months ago
view_content Allow including `Reviewed-on`/`Reviewed-by` lines for custom merge messages (#31211) 8 months ago
branch_selector_field.tmpl Fix incorrect issue form (#30881) 9 months ago
card.tmpl Fix overflow in issue card (#31203) 8 months ago
choose.tmpl Fix spacing in issue navbar (#30238) 10 months ago
comment_tab.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
filter_actions.tmpl Rename project board -> column to make the UI less confusing (#30170) 9 months ago
filter_list.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
filters.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
label_precolors.tmpl Replace 10 more gt- classes with tw- (#29945) 11 months ago
labels.tmpl Fix spacing in issue navbar (#30238) 10 months ago
list.tmpl Replace `gt-word-break` with `tw-break-anywhere` (#31183) 8 months ago
milestone_issues.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
milestone_new.tmpl Fix spacing in issue navbar (#30238) 10 months ago
milestones.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
navbar.tmpl Fix menu buttons in issues and release (#30056) 11 months ago
new.tmpl Fix incorrect redirection when creating a PR fails (#29537) 11 months ago
new_form.tmpl When the title in the issue has a value, set the text cursor at the end of the text. (#30090) 11 months ago
openclose.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
search.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago
view.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2 years ago
view_content.tmpl Prevent simultaneous editing of comments and issues (#31053) 9 months ago
view_title.tmpl Prevent tab shifting, remove extra margin on fluid pages (#31090) 9 months ago