gitea/services
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 Improve the issue_comment workflow trigger event (#29277) 2024-02-22 22:47:35 +08:00
agit Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
asymkey
attachment
auth Revert "Support SAML authentication (#25165)" (#29358) 2024-02-24 12:18:49 +08:00
automerge
context
convert Add merge style fast-forward-only (#28954) 2024-02-12 23:37:23 +01:00
cron Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
doctor
externalaccount Revert "Support SAML authentication (#25165)" (#29358) 2024-02-24 12:18:49 +08:00
feed
forms Revert "Support SAML authentication (#25165)" (#29358) 2024-02-24 12:18:49 +08:00
gitdiff
indexer
issue Refactor issue template parsing and fix API endpoint (#29069) 2024-02-12 05:04:10 +00:00
lfs
mailer Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
markup
migrations Properly migrate target branch change GitLab comment (#29340) 2024-02-24 07:49:16 +00:00
mirror
notify
org
packages Use general token signing secret (#29205) 2024-02-18 17:39:04 +00:00
pull Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
release Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
repository Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
secrets
task
uinotification
user Unify password changing and invalidate auth tokens (#27625) 2024-02-04 14:05:26 +00:00
webhook Abstract hash function usage (#28138) 2023-12-13 21:02:00 +00:00
wiki Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00