0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-28 16:24:51 +01:00
gitea/templates/repo
Sebastian Brückner 6e5966597c
Properly migrate target branch change GitLab comment (#29340)
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 a new specific kind of event: Changing the
target branch of a PR. When detected, it is downloaded using Gitea's
type for this event, 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 this type.

ref:
11bd6dc826/app/services/system_notes/merge_requests_service.rb (L102)
2024-02-24 07:49:16 +00:00
..
actions Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
branch Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
cite
code Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
diff Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
editor Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
find
graph
issue Properly migrate target branch change GitLab comment (#29340) 2024-02-24 07:49:16 +00:00
migrate Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
projects
pulls Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
release Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
settings Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
tag
wiki Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
activity.tmpl Implement code frequency graph (#29191) 2024-02-23 23:41:24 +00:00
blame.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl Implement code frequency graph (#29191) 2024-02-23 23:41:24 +00:00
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl Show commit status for releases (#29149) 2024-02-19 10:27:05 +00:00
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl
commits_table.tmpl
contributors.tmpl Deduplicate translations for contributors graph (#29256) 2024-02-19 12:47:38 +00:00
create.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
create_helper.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
empty.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl
home.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
icon.tmpl
latest_commit.tmpl
navbar.tmpl Implement code frequency graph (#29191) 2024-02-23 23:41:24 +00:00
packages.tmpl
pulse.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
release_tag_header.tmpl
search.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
upload.tmpl
user_cards.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
view_file.tmpl
view_list.tmpl
watch_unwatch.tmpl
watchers.tmpl