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/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)
12 months ago
..
actions Improve the `issue_comment` workflow trigger event (#29277) 12 months ago
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) 12 months ago
asymkey Simplify how git repositories are opened (#28937) 1 year ago
attachment Even more `db.DefaultContext` refactor (#27352) 1 year ago
auth Revert "Support SAML authentication (#25165)" (#29358) 12 months ago
automerge Simplify how git repositories are opened (#28937) 1 year ago
context Another round of `db.DefaultContext` refactor (#27103) 1 year ago
convert Add merge style `fast-forward-only` (#28954) 12 months ago
cron Refactor locale&string&template related code (#29165) 12 months ago
doctor Simplify how git repositories are opened (#28937) 1 year ago
externalaccount Revert "Support SAML authentication (#25165)" (#29358) 12 months ago
feed More `db.DefaultContext` refactor (#27265) 1 year ago
forms Revert "Support SAML authentication (#25165)" (#29358) 12 months ago
gitdiff Add option to disable ambiguous unicode characters detection (#28454) 1 year ago
indexer Fix missing issue search index update when changing status (#28325) 1 year ago
issue Refactor issue template parsing and fix API endpoint (#29069) 12 months ago
lfs Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
mailer Refactor locale&string&template related code (#29165) 12 months ago
markup make writing main test easier (#27270) 1 year ago
migrations Properly migrate target branch change GitLab comment (#29340) 12 months ago
mirror Simplify how git repositories are opened (#28937) 1 year ago
notify Update status and code index after changing the default branch (#27018) 1 year ago
org Delete repos of org when purge delete user (#27273) 1 year ago
packages Use general token signing secret (#29205) 12 months ago
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) 12 months ago
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) 12 months ago
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) 12 months ago
secrets Refactor deletion (#28610) 1 year ago
task Fix incorrect ctx usage in defer function (#27740) 1 year ago
uinotification Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
user Unify password changing and invalidate auth tokens (#27625) 1 year ago
webhook Abstract hash function usage (#28138) 1 year ago
wiki Fix an actions schedule bug (#28942) 1 year ago