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
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
..
actions Artifact deletion in actions ui (#27172) 12 months ago
branch Rework markup link rendering (#26745) 1 year ago
cite Update JS and PY dependencies (#27501) 1 year ago
code Fix more "locale" usages (#27259) 1 year ago
diff Clean up diff header css and reduce global textarea min-height (#29232) 12 months ago
editor Refactor locale&string&template related code (#29165) 12 months ago
find Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph Rework markup link rendering (#26745) 1 year ago
issue Properly migrate automatic merge GitLab comments (#27873) 12 months ago
migrate Fix duplicate ID when deleting repo (#28520) 1 year ago
projects Use full width for project boards (#28225) 1 year ago
pulls Disallow merge when required checked are missing (#29143) 12 months ago
release Show commit status for releases (#29149) 12 months ago
settings Use "Safe" modifier for manually constructed safe HTML strings in templates (#29227) 12 months ago
tag Fix more "locale" usages (#27259) 1 year ago
wiki Fix more "locale" usages (#27259) 1 year ago
activity.tmpl Implement contributors graph (#27882) 12 months ago
blame.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
branch_dropdown.tmpl Rework spellchecking, add `lint-spell` (#29106) 12 months ago
clone_buttons.tmpl Fix more "locale" usages (#27259) 1 year ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
commit_load_branches_and_tags.tmpl Wrap contained tags and branches again (#29021) 1 year ago
commit_page.tmpl Clean up diff header css and reduce global textarea min-height (#29232) 12 months ago
commit_status.tmpl Restore warning commit status (#27504) 1 year ago
commit_statuses.tmpl Show commit status for releases (#29149) 12 months ago
commits.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
commits_list.tmpl Show `View at this point in history` for every commit (#29122) 12 months ago
commits_list_small.tmpl Rework markup link rendering (#26745) 1 year ago
commits_table.tmpl Fix more "locale" usages (#27259) 1 year ago
contributors.tmpl Deduplicate translations for contributors graph (#29256) 12 months ago
create.tmpl Add support for sha256 repositories (#23894) 1 year ago
create_helper.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
empty.tmpl Fix more "locale" usages (#27259) 1 year ago
file_info.tmpl Show in Web UI if file is vendored and generated (#28620) 1 year ago
forks.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph.tmpl Fix more "locale" usages (#27259) 1 year ago
header.tmpl Tweak repo header (#29134) 12 months ago
home.tmpl Add word-break to repo description in home page (#27924) 1 year ago
icon.tmpl Tweak repo header (#29134) 12 months ago
latest_commit.tmpl Show latest commit for file (#28067) 1 year ago
navbar.tmpl Implement contributors graph (#27882) 12 months ago
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 2 years ago
pulse.tmpl Implement contributors graph (#27882) 12 months ago
release_tag_header.tmpl Improve RSS feed icons (#28368) 1 year ago
search.tmpl Fix 500 error of searching commits (#28576) 1 year ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
shabox_badge.tmpl cleanup locale function usage (#27227) 1 year ago
star_unstar.tmpl Don't do a full page load when clicking `Watch` or `Star` (#29001) 1 year ago
sub_menu.tmpl Enable followCursor for language stats bar (#27713) 1 year ago
unicode_escape_prompt.tmpl Fix incorrect button CSS usages (#29015) 1 year ago
upload.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
user_cards.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
view_file.tmpl Fix incorrect button CSS usages (#29015) 1 year ago
view_list.tmpl Show latest commit for file (#28067) 1 year ago
watch_unwatch.tmpl Don't do a full page load when clicking `Watch` or `Star` (#29001) 1 year ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago