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
Sebastian Brückner a70c00b80b
Properly migrate automatic merge GitLab comments (#27873)
GitLab generates "system notes" whenever an event happens within the
platform. Unlike Gitea, those events are stored and retrieved as text
comments with no semantic details. The only way to tell whether a
comment was generated in this manner is the `system` flag on the note
type.

This PR adds detection for two specific kinds of events: Scheduling and
un-scheduling of automatic merges on a PR. When detected, they are
downloaded using Gitea's type for these events, and eventually uploaded
into Gitea in the expected format, i.e. with no text content in the
comment.

This PR also updates the template used to render comments to add support
for migrated comments of these two types.

ref:
11bd6dc826/app/services/system_notes/merge_requests_service.rb (L6-L17)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
12 months ago
..
admin Convert visibility to number (#29226) 12 months ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Remove DataRaceCheck (#29258) 12 months ago
code Fix 500 error of searching commits (#28576) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Improve CSS helper naming (#28769) 1 year ago
explore Add support for sha256 repositories (#23894) 1 year ago
mail Refactor locale&string&template related code (#29165) 12 months ago
org Use "Safe" modifier for manually constructed safe HTML strings in templates (#29227) 12 months ago
package Fix some RPM registry flaws (#28782) 1 year ago
projects Use full width for project boards (#28225) 1 year ago
repo Properly migrate automatic merge GitLab comments (#27873) 12 months ago
shared Refactor more code in templates (#29236) 12 months ago
status Clean up template locale usage (#27856) 1 year ago
swagger Refactor more code in templates (#29236) 12 months ago
user Revert #28753 because UI broken. (#29293) 12 months ago
webhook Change webhook-type in create-view (#29114) 12 months ago
home.tmpl Fix more "locale" usages (#27259) 1 year ago
install.tmpl Fix more "locale" usages (#27259) 1 year ago
post-install.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago